:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #171714;
  background: #f3f2ed;
  --page: #f3f2ed;
  --surface: #ffffff;
  --surface-soft: #f7f6f2;
  --surface-active: #1b1b18;
  --line: #dfded8;
  --line-strong: #c9c8c1;
  --text: #171714;
  --muted: #74736d;
  --muted-light: #99978f;
  --success: #2f6b47;
  --danger: #b23a31;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 22px 68px rgba(31, 30, 25, .075);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 7% -8%, rgba(255,255,255,.96), transparent 34rem),
    linear-gradient(180deg, #f7f6f2 0%, #efeee9 100%);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}
.hero-copy { max-width: 930px; }
h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 790;
  letter-spacing: -.065em;
  line-height: .92;
}
.hero-subtitle {
  max-width: 820px;
  margin: 16px 0 0;
  color: #35342f;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.hero-description {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.52;
}
.app-close {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 1px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.66);
  color: #575650;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.app-close:hover { transform: translateY(-1px); border-color: var(--line-strong); background: #fff; }
.app-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.workspace {
  display: grid;
  grid-template-columns: minmax(350px, 412px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.output-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.controls {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 548px;
  padding: 23px;
}
.panel-caption,
.export-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel-caption > span,
.export-topline strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.015em;
}
.panel-caption small,
.export-topline p { color: var(--muted); font-size: 11px; line-height: 1.4; }
.export-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.settings-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.settings-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 15px;
  background: #efeee9;
}
.mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #62615b;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.mode-tab:hover { transform: translateY(-1px); }
.mode-tab.is-active { background: var(--surface-active); color: #fff; box-shadow: 0 3px 10px rgba(23,23,20,.13); }
.mode-panel { display: grid; gap: 14px; min-width: 0; }
.mode-panel.is-hidden { display: none; }
.field, .color-field { display: grid; gap: 8px; min-width: 0; }
.field > label,
.field > span,
.color-field > span:first-child,
.range-head {
  color: #46453f;
  font-size: 13px;
  font-weight: 710;
}
.input-wrap, .batch-input-wrap { position: relative; min-width: 0; }
.input-wrap input,
.batch-textarea,
.select-control {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: #141411;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-wrap input {
  height: 56px;
  padding: 0 58px 0 15px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .03em;
}
.batch-textarea {
  display: block;
  min-height: 164px;
  padding: 14px 52px 42px 15px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.52;
}
.select-control { height: 48px; padding: 0 42px 0 14px; cursor: pointer; }
.input-wrap input:focus,
.batch-textarea:focus,
.select-control:focus {
  border-color: #85837a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23,23,20,.055);
}
.input-wrap input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(178,58,49,.07); }
.input-state {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: #ebeae5;
  color: #65645e;
  font-size: 12px;
  font-weight: 760;
}
.batch-import-button {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d3d2cb;
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  color: #56554f;
  box-shadow: 0 4px 12px rgba(31,30,25,.08);
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}
.batch-import-button:hover { transform: translateY(-1px); color: #171714; border-color: #9e9c94; background: #fff; }
.batch-import-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.batch-input-meta { display: grid; gap: 7px; }
.batch-input-meta .hint { max-width: none; }
.batch-import-summary {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f6e68;
  font-size: 11px;
  line-height: 1.35;
}
.batch-import-summary.is-hidden { display: none; }
.import-file-icons {
  display: flex;
  align-items: center;
  min-width: 0;
}
.import-file-icon {
  position: relative;
  width: 25px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid #cbc9c2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31,30,25,.055);
}
.import-file-icon + .import-file-icon { margin-left: -5px; }
.import-file-icon::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-left: 1px solid #cbc9c2;
  border-bottom: 1px solid #cbc9c2;
  border-radius: 0 5px 0 4px;
  background: #f4f3ef;
}
.import-file-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 7px;
  border-top: 1px solid #c5c3bd;
  border-bottom: 1px solid #c5c3bd;
}
.import-file-icon:nth-child(3) { opacity: .55; }
.import-file-icon:nth-child(4) { opacity: .28; }
.import-file-name {
  min-width: 0;
  max-width: 250px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  color: #62615b;
}
.import-file-count {
  white-space: nowrap;
  font-weight: 720;
  color: #575650;
}
.hint, .error, .portable-note, .field small, .format-hint { margin: 0; font-size: 12px; line-height: 1.45; }
.hint, .portable-note, .field small, .format-hint { color: var(--muted); }
.error { min-height: 0; color: var(--danger); }
.error:not(:empty) { min-height: 17px; }
.field-group.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 7px 10px 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.color-control input[type="color"] { width: 34px; height: 34px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.08); border-radius: 9px; }
.color-control output { color: #575650; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.range-head, .range-scale { display: flex; align-items: center; justify-content: space-between; }
.range-head output { color: var(--text); font-size: 13px; }
.range-field input[type="range"] { width: 100%; margin: 1px 0 0; accent-color: #171714; cursor: pointer; }
.range-scale { color: var(--muted-light); font-size: 10px; }

.preview-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 548px;
  min-height: 548px;
  padding: 20px;
  overflow: hidden;
}
.preview-head, .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.preview-footer { position: relative; z-index: 2; min-height: 18px; }
.preview-head { grid-row: 1; }
.batch-metrics-shell { grid-row: 2; }
.preview-content { grid-row: 3; }
.preview-footer { grid-row: 4; }
.preview-head > div { display: grid; gap: 4px; }
.preview-label, .preview-footer { color: var(--muted); font-size: 12px; }
.preview-head strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; letter-spacing: .04em; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf5ef;
  color: var(--success);
  font-size: 11px;
  font-weight: 760;
}
.status-badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-badge.is-waiting { background: #efeee9; color: #77756e; }
.status-badge.is-error { background: #fff0ee; color: var(--danger); }
.preview-content {
  min-height: 0;
  margin: 14px 0 12px;
  overflow: hidden;
}
.preview-content:not(.is-batch-layout) {
  display: grid;
  min-height: 0;
  align-self: stretch;
}
.preview-content.is-batch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  gap: 12px;
}
.preview-frame-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}
.preview-content:not(.is-batch-layout) .preview-frame-column {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.preview-frame-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: #46453f;
  font-size: 11px;
  font-weight: 720;
}
.preview-frame-label small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e6e4de;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(45deg, #f2f1ed 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(-45deg, #f2f1ed 25%, transparent 25%) 0 10px/20px 20px,
    linear-gradient(45deg, transparent 75%, #f2f1ed 75%) 10px -10px/20px 20px,
    linear-gradient(-45deg, transparent 75%, #f2f1ed 75%) -10px 0/20px 20px,
    #faf9f6;
}
.barcode-card {
  width: min(90%, 750px);
  transform-origin: center;
  filter: drop-shadow(0 18px 24px rgba(28,27,23,.12));
  transition: opacity .24s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.barcode-card svg { display: block; max-width: 100%; max-height: 100%; }
.barcode-card.is-single-preview {
  display: grid;
  place-items: center;
  width: min(76%, 620px);
  height: 250px;
  max-height: 76%;
}
.barcode-card.is-single-preview svg { width: 100%; height: 100%; }
.barcode-card.is-batch-preview { width: min(92%, 520px); filter: none; }
.barcode-card.is-batch-preview svg { width: 100%; height: auto; }
.barcode-card.is-batch-sample { display: grid; place-items: center; min-height: 100%; }
.preview-stage.is-generating .barcode-card { opacity: .3; transform: scale(.985); }
.preview-stage.is-ready .barcode-card { animation: settle .42s cubic-bezier(.2,.75,.2,1); }
@keyframes settle { from { opacity: .25; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.generation-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.82) 48%, transparent 100%);
  transform: translateX(-120%);
}
.preview-stage.is-generating .generation-sweep { animation: sweep .7s ease-in-out infinite; }
@keyframes sweep { to { transform: translateX(120%); } }

.export-panel {
  display: grid;
  gap: 15px;
  padding: 18px 20px 20px;
}
.export-topline p { max-width: 260px; margin: 0; text-align: right; }
.formats { min-width: 0; margin: 0; padding: 0; border: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.compact-formats .format-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.format-option { position: relative; cursor: pointer; }
.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.compact-formats .format-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: #52514c;
  font-size: 11px;
  font-weight: 790;
  letter-spacing: .04em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.compact-formats .format-option:hover span { transform: translateY(-1px); border-color: var(--line-strong); }
.compact-formats .format-option input:checked + span { border-color: #1c1c18; background: #1c1c18; color: #fff; }
.compact-formats .format-option input:focus-visible + span { outline: 3px solid rgba(23,23,20,.16); outline-offset: 2px; }
.format-hint { margin-top: 7px; }
.export-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
  gap: 18px;
  align-items: start;
}
.export-settings-row:has(.export-mode-control.is-hidden) { grid-template-columns: 1fr; }
.export-field-label {
  display: block;
  margin: 0 0 8px;
  color: #46453f;
  font-size: 12px;
  font-weight: 720;
}
.export-mode-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.export-mode-control.is-hidden { display: none; }
.export-mode-control small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.export-mode-control .select-control { height: 36px; border-radius: 11px; font-size: 11px; }
.actions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 8px;
}
.actions.is-single-mode { grid-template-columns: 48px minmax(0, 1fr); }
.actions.is-batch-mode { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.primary { position: relative; background: var(--surface-active); color: #fff; }
.secondary { background: #ecebe6; color: #24231f; }
.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.generate-button.icon-only {
  width: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: #ecebe6;
  color: #24231f;
}
.generate-button.icon-only .button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.action-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.action-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  background: var(--surface-active);
  color: #fff;
  text-align: left;
}
.download-label { font-size: 13px; font-weight: 780; line-height: 1.15; }
.download-meta {
  display: block;
  overflow: hidden;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-button:disabled .download-meta { opacity: .8; }
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
}
.primary.is-loading .button-label, .primary.is-loading .action-icon { opacity: 0; }
.primary.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.batch-metrics-shell {
  margin-top: 12px;
}
.batch-metrics-shell.is-hidden,
.batch-list-pane.is-hidden,
.preview-frame-label.is-hidden { display: none; }
.batch-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8f7f3;
}
.metric strong { display: block; font-size: 18px; line-height: 1; letter-spacing: -.03em; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.2; }
.batch-list-pane {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(205,204,198,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
}
.batch-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.batch-card-title h4 { margin: 0; font-size: 12px; }
.batch-card-title span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.batch-code-list { display: grid; gap: 6px; max-height: 100%; overflow: auto; padding-right: 2px; }
.batch-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f8f7f3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}
.batch-code-item span { flex: 0 0 auto; }
.batch-code-item small { min-width: 0; overflow: hidden; color: var(--muted); font-family: inherit; text-overflow: ellipsis; white-space: nowrap; }
.batch-code-item.is-invalid { background: #fff4f2; color: #8a2f28; }
.batch-code-item.is-invalid small { color: #8a2f28; }
.batch-empty-list,
.batch-empty-sample {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.batch-empty-list { min-height: 150px; }
.batch-empty-sample { min-height: 140px; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 17px 4px 0; color: #85837c; font-size: 11px; }
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #171714;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.portable-only { display: none; }
body.is-portable .portable-only { display: initial; }
body.is-portable label.portable-only { display: inline-flex; }
body.is-portable .app-close { display: inline-flex; }
body.is-portable .portable-note { display: none; }

@media (max-width: 1040px) {
  .shell { padding-top: 38px; }
  .workspace { grid-template-columns: 1fr; }
  .controls { min-height: auto; }
  .preview-panel { height: 570px; min-height: 570px; }
  .preview-content.is-batch-layout { grid-template-columns: minmax(0, 1.08fr) minmax(230px, .92fr); }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1240px); padding-top: 24px; }
  .hero { gap: 18px; }
  .hero-description { font-size: 14px; }
  .hero-subtitle { font-size: 19px; }
  .app-close { width: 40px; padding: 0; }
  .app-close span { display: none; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  .controls, .preview-panel, .export-panel { padding: 18px; border-radius: 22px; }
  .field-group.two-columns { grid-template-columns: 1fr; }
  .preview-panel { height: auto; min-height: 620px; }
  .preview-content.is-batch-layout { grid-template-columns: 1fr; }
  .batch-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-list-pane { min-height: 200px; }
  .preview-content.is-batch-layout .preview-stage { min-height: 220px; }
  .preview-panel { height: auto; min-height: 520px; }
  .preview-stage { height: 340px; min-height: 340px; }
  .barcode-card.is-single-preview { width: 88%; height: 220px; max-height: 72%; }
  .barcode-card.is-batch-preview { width: 88%; }
  .export-settings-row { grid-template-columns: 1fr; }
  .actions.is-single-mode { grid-template-columns: 48px minmax(0, 1fr); }
  .actions.is-batch-mode { grid-template-columns: 1fr; }
  .export-topline { display: grid; gap: 4px; }
  .export-topline p { max-width: none; text-align: left; }
  footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 420px) {
  .hero { display: grid; }
  .app-close { position: absolute; top: 24px; right: 10px; }
  .compact-formats .format-option span { min-width: 52px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
