  .workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr 260px;
    gap: 0;
    min-height: 0;
  }

  .panel {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
  }

  .section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text3);
    margin-bottom: 10px;
  }

  .hint-text {
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
    line-height: 1.65;
  }

  .hint-text--warn {
    color: #ef4444;
    font-weight: 600;
  }

  .mode-row {
    display: flex;
    gap: 8px;
  }

  .mode-btn {
    flex: 1;
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-weight: 500;
    font-size: 13px;
  }
  .mode-btn:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }
  .mode-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }

  .file-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .mini-btn {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-weight: 500;
    font-size: 12px;
  }
  .mini-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }

  section {
    padding: 14px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .content-input {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    resize: vertical;
  }
  .content-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }

  .select {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
  .field > span {
    font-size: 12px;
    color: var(--text2);
    font-weight: 500;
  }

  .range-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .range-row input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
  }
  .range-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .range-row strong {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text3);
    min-width: 46px;
    text-align: right;
  }

  .field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
  }

  .field--switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 10px;
    background: var(--surface-muted);
  }
  .field--switch span { flex: 1; min-width: 0; font-size: 12px; color: var(--text2); font-weight: 500; }
  .field--switch input { width: 16px; height: 16px; accent-color: var(--accent); }

  .field--color {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 10px;
    background: var(--surface-muted);
  }
  .field--color span { flex: 1; min-width: 0; font-size: 12px; color: var(--text2); font-weight: 500; }
  .field--color input[type=color] {
    width: 42px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }

  .canvas-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 32px;
    gap: 16px;
    background: #eef0f6;
    position: relative;
    overflow: hidden;
  }

  .barcode-wrap {
    z-index: 1;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-width: min(920px, 100%);
    overflow: auto;
  }
  #barcode {
    display: block;
    height: auto;
  }

  .empty-state { z-index: 1; text-align: center; padding: 24px; }
  .empty-state svg { width: 52px; height: 52px; stroke: var(--border-strong); margin-bottom: 14px; }
  .empty-state p { font-size: 14px; color: var(--text3); }

  .meta-badge {
    z-index: 1;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text2);
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .output-panel {
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 22px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .empty-output {
    padding: 14px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
    color: var(--text3);
    font-size: 13px;
    text-align: center;
  }

  .btn-dl-all {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s var(--ease);
  }
  .btn-dl-all:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

  .info-row {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
  }

  @media (max-width: 980px) {
    .workspace {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr auto;
    }
    .panel {
      border-right: none;
      border-bottom: 1px solid var(--border);
    }
    .output-panel {
      border-left: none;
      border-top: 1px solid var(--border);
      max-height: 320px;
    }
    .canvas-area { min-height: 360px; }
  }

  @media (max-width: 420px) {
    .field-grid { grid-template-columns: 1fr; }
  }
