/* Barcode Generator workspace. Shared tool chrome (hero, card, summary bar, FAQ) is pdf-tools.css plus the
 * merge-pdf.css tool-page layer; this file follows its type scale (owner 2026-11-26: Compress PDF is the standard).
 * Created 2026-11-26 by Claude Opus 5.5 (claude-opus-5-5). */
.barcode-tool .bc-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.barcode-tool .bc-form { display: grid; gap: 22px; min-width: 0; }
.barcode-tool .bc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.barcode-tool .bc-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.barcode-tool .bc-field label { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.barcode-tool :is(.bc-field select, .bc-field textarea, .bc-unit) {
  box-sizing: border-box; width: 100%; min-height: 50px; border: 1px solid #d6dae1; border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; line-height: 1.4;
}
.barcode-tool .bc-field select { padding: 11px 36px 11px 14px; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e7580' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.barcode-tool .bc-field textarea { padding: 12px 14px; resize: vertical; min-height: 76px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 16px; }
.barcode-tool .bc-unit { display: flex; align-items: center; overflow: hidden; }
.barcode-tool .bc-unit input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 4px 11px 14px; font: inherit; font-size: 17px; color: inherit; outline: none; }
.barcode-tool .bc-unit span { padding: 0 14px 0 4px; font-size: 15px; color: var(--ink-dim); }
.barcode-tool :is(.bc-field select, .bc-field textarea):focus-visible, .barcode-tool .bc-unit:focus-within { outline: 3px solid #7abaff; outline-offset: 1px; border-color: #4b99e5; }
.barcode-tool .bc-hint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.barcode-tool .bc-toggles { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.barcode-tool .bc-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; color: var(--ink); cursor: pointer; }
.barcode-tool .bc-check input { width: 20px; height: 20px; margin: 0; accent-color: #0878ea; }
.barcode-tool .bc-form[data-group="2d"] .bc-linear, .barcode-tool .bc-form:not([data-type="qr"]) .bc-qr,
.barcode-tool .bc-form[data-fixed-size] .bc-sized, .barcode-tool .bc-form[data-no-rotation] .bc-rotatable { display: none; }
.barcode-tool .bc-stage { min-width: 0; display: grid; gap: 12px; position: sticky; top: 80px; }
.barcode-tool .bc-preview {
  min-height: 360px; border: 1px solid #edf0f4; border-radius: 18px; padding: 32px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #f6f7f9 radial-gradient(#e4e7ec 1px, transparent 1px) 0 0 / 16px 16px;
}
.barcode-tool .bc-preview img {
  display: block; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 8px 28px rgba(20, 30, 45, .07);
  width: clamp(180px, calc(var(--bc-width, 200px) * 2), 100%); max-height: 420px; height: auto; object-fit: contain;
}
.barcode-tool .bc-message { margin: 0; max-width: 420px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink-dim); }
.barcode-tool .bc-message.error { color: #ba5656; }
.barcode-tool .bc-stage-note { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.barcode-tool .bc-downloads { flex-wrap: wrap; justify-content: flex-end; }
.barcode-tool .bc-downloads .text-action { display: inline-flex; align-items: center; gap: 6px; }
.barcode-tool .bc-downloads .action-secondary { min-height: 50px; padding: 12px 20px; font-size: 16px; font-weight: 600; }
.barcode-tool .bc-downloads .action-primary { min-width: 0; }
.barcode-tool .bc-support-note { margin: 10px 36px 0; color: var(--ink-dim); font-size: .875rem; line-height: 1.5; text-align: right; }
.barcode-tool .bc-measure { position: absolute; left: -100000px; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
@media (max-width: 800px) {
  .barcode-tool .bc-layout { grid-template-columns: 1fr; gap: 22px; }
  .barcode-tool .bc-stage { position: static; order: -1; }
  .barcode-tool .bc-preview { min-height: 240px; padding: 24px; }
}
@media (max-width: 600px) {
  .barcode-tool .bc-grid { gap: 18px 12px; }
  .barcode-tool .bc-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .barcode-tool .bc-downloads .action-primary { grid-column: 1 / -1; order: -1; }
  .barcode-tool .bc-downloads .text-action { grid-column: 1 / -1; justify-content: center; order: 5; }
  .barcode-tool .bc-support-note { margin-inline: 20px; text-align: center; }
}
