@charset "UTF-8";

@font-face {
  font-family: 'GSDM GS Marker';
  src: url('/assets/gs-marker.ttf?v=2') format('truetype');
  size-adjust: 120%;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+001D, U+241D;
}

/* Shared components for the label generator and help page. */
:root {
  color-scheme: light;
  --page: #f4f6fa;
  --surface: #fff;
  --ink: #182433;
  --muted: #66758a;
  --line: #e2e8f0;
  --blue: #206bc4;
  --blue-dark: #17549c;
  --blue-light: #edf4fd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 14px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
button, a, input, select, textarea, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #76a8e5; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.8px; font-weight: 650; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.4; font-weight: 650; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.shell { width: calc(100% - clamp(24px, 5vw, 112px)); margin-inline: auto; }
.muted, .field-hint { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--surface); border-radius: 6px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 23px; font-weight: 750; letter-spacing: -.7px; }
.brand:hover { text-decoration: none; }
.brand-domain { color: var(--muted); margin-left: -10px; font-weight: 450; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a { color: var(--muted); font-weight: 550; padding-block: 23px; border-bottom: 2px solid transparent; white-space: nowrap; }
.header-nav a:hover { color: var(--blue); text-decoration: none; }
.header-nav .nav-active { color: var(--blue); border-color: var(--blue); }
.header-nav .nav-app { display: inline-flex; align-items: center; gap: 5px; }
.header-nav .nav-app svg { width: 16px; height: 16px; }
.header-nav .support-link { font-weight: 400; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 34px; }
.page-heading > div { min-width: 0; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.page-description { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.small-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; background: var(--surface); }

.workspace-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); max-width: 1440px; gap: 20px; align-items: stretch; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 3px #18243303; }
.card-header { display: flex; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-header > div { min-width: 0; }
.card-header > .small-badge { margin-left: auto; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--blue); background: var(--blue-light); border-radius: 8px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-body { padding: 22px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-select, textarea { display: block; width: 100%; color: var(--ink); border: 1px solid #cdd7e3; background: var(--surface); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.form-select { min-height: 42px; padding: 9px 10px; font-size: 13px; }
.category-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.category-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 42px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.2; }
.category-switch button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.category-switch button:disabled { opacity: .65; }
.category-switch svg { width: 18px; height: 18px; }
.category-icon { display: flex; flex: 0 0 18px; }
.category-switch button > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.form-select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #206bc419; outline: 0; }
.field-hint { font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.label-fields { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.label-fields legend { padding: 0; margin-bottom: 13px; font-size: 13px; font-weight: 600; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; }
.form-check { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 12px; }
.form-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; margin: 0; flex-shrink: 0; border: 1px solid #b7c4d3; border-radius: 4px; background: var(--surface) center / 13px 13px no-repeat; }
.form-check input[type="checkbox"]:checked { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-check input[type="checkbox"]:disabled { cursor: default; opacity: .65; }
.form-check label { flex: 1; cursor: pointer; }
.field-checkmark { width: 17px; flex: 0 0 17px; color: var(--blue); font-size: 18px; line-height: 1; text-align: center; }
.field-fixed { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.field-fixed label { cursor: default; }
.field-fixed .muted { margin-left: 5px; font-size: 11px; }
.input-card { display: flex; flex-direction: column; }
.input-card > .card-header { background: var(--surface); border-radius: 9px 9px 0 0; }
.template-collapse { display: none; place-items: center; flex: 0 0 44px; width: 44px; height: 40px; margin: -8px 0 -8px auto; padding: 0; border: 0; border-radius: 6px; color: var(--blue); background: transparent; }
.template-collapse[aria-expanded="false"] svg { transform: rotate(180deg); }
.input-card .card-body { display: flex; flex-direction: column; flex: 1; }
.input-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.input-toolbar .field-label { margin: 0; }
.input-scanner-actions { display: flex; align-items: flex-start; gap: 6px; flex-shrink: 0; }
.serial-scanner-controls { position: relative; display: flex; align-items: center; gap: 6px; }
.input-scanner-actions > .btn, .serial-scanner-controls > .btn { height: 32px; min-height: 32px; }
.input-scanner-actions .btn > svg { width: 18px; height: 18px; flex-shrink: 0; }
.serial-scanner-controls [role="status"] { position: absolute; top: calc(100% + 4px); right: 0; display: flex; align-items: center; gap: 6px; width: max-content; max-width: 280px; height: 24px; padding: 4px 6px; border-radius: 5px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 15px; visibility: hidden; }
.serial-scanner-controls [role="status"].has-message { visibility: visible; }
.serial-status-icon { display: flex; flex: 0 0 16px; }
.serial-status-icon svg { width: 16px; height: 16px; }
.serial-status-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serial-scanner-controls [data-tone="success"] { color: #187344; }
.serial-scanner-controls [data-tone="warning"] { color: #946000; }
.serial-scanner-controls [data-tone="error"] { color: #b42318; }
.serial-scanner-controls .serial-scanner-choose { width: 32px; padding-inline: 0; }
.serial-scanner-controls button.serial-scanner-toggle.is-connected { color: #187344; border-color: #78b694; background: #eaf7ef; }
.serial-scanner-indicator { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; }
.is-connected .serial-scanner-indicator { opacity: 1; }
.serial-scanner-controls [data-tooltip] { position: relative; }
.serial-scanner-controls [data-tooltip]:is(:hover, :focus-visible)::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 20; width: max-content; padding: 6px 8px; border-radius: 5px; background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 400; pointer-events: none; }
@media (min-width: 768px) {
  .input-toolbar:has(.serial-scanner-controls) { align-items: flex-start; }
  .input-scanner-actions { padding-bottom: 28px; }
}
@media (max-width: 767px) { .serial-scanner-controls { display: none; } }
textarea { resize: vertical; min-height: 205px; flex: 1; padding: 14px; line-height: 1.8; font: 12px/1.8 ui-monospace, Consolas, monospace; }
textarea::placeholder { color: #8a99ad; }
textarea:disabled { background: #f8fafc; }
#codes { flex: 1 0 auto; font-family: 'GSDM GS Marker', ui-monospace, Consolas, monospace; white-space: pre; overflow-wrap: normal; word-break: normal; overflow-x: auto; }
#codes { background-color: #fff; }
.input-card { background-color: #fff; background-repeat: repeat; background-size: 100% 100%, 512px 512px; background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)), url("/assets/lp.webp?v=2"); }
.input-card:has(#codes[data-category="shoes"]) { background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)), url("/assets/shoes.webp?v=2"); }
.input-card:has(#codes[data-category="toys"]) { background-image: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)), url("/assets/games.webp?v=2"); }
.input-card:has(#codes[data-category="chemistry"]) { background-size: 100% 100%, 320px 320px; background-image: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)), url("/assets/chemistry.webp?v=1"); }
.input-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; margin-top: 8px; }
#codeCount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.input-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 22px; }
.input-actions [type="submit"] { grid-column: 2; }
#clearCodesBtn { grid-column: 3; justify-self: end; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 550; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; }
#downloadPdfBtn.pdf-cooldown { position: relative; overflow: hidden; }
#downloadPdfBtn.pdf-cooldown::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(var(--pdf-cooldown-progress, 1)); transform-origin: left; transition: transform .25s linear; pointer-events: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px #1824330c; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary { background: var(--surface); border-color: #cdd7e3; color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #f4f7fb; }
.btn-quiet { background: transparent; color: var(--muted); padding-inline: 10px; }
.btn-quiet:hover:not(:disabled) { background: #f0f3f8; color: var(--ink); }
.btn-small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.btn-small svg { width: 16px; height: 16px; }
.btn-danger { background: #b72d40; color: white; }
.busy-line { text-align: center; min-height: 0; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid #d5e5fa; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin-top: 12px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { margin: 14px 0 0; padding: 11px 14px; border: 1px solid; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.alert-danger { color: #a32d3c; border-color: #f2c8cf; background: #fff1f3; }
.alert-warning { color: #865b0c; border-color: #eedcad; background: #fffaeb; }
.error-message { display: none; }

.empty-state { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 32px 20px; margin-top: 20px; border: 1px dashed #cfd9e5; border-radius: 10px; }
.empty-state h2 { font-size: 14px; color: #4a5a70; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.results-card { margin-top: 20px; overflow: hidden; }
.results-notices .alert { margin: 14px 22px; }
.table-container { width: 100%; max-width: 100%; overflow: auto; max-height: 280px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bdcbdc #f6f8fb; }
.table-container table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; text-align: left; }
.table-container th, .table-container td { height: 36px; padding: 3px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 20px; }
.table-container th { position: sticky; top: 0; z-index: 1; background: #f6f8fb; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 600; }
.table-container tbody tr:last-child td { border-bottom: 0; }
.table-container .result-row:hover { background: #f8fafd; }
.result-row td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 100px; max-width: 340px; }
.result-row [data-column="number"] { min-width: 44px; width: 44px; color: var(--muted); }
.result-row [data-column="product_name"] { min-width: 200px; font-weight: 550; }
.result-row [data-column="status"] { min-width: 180px; }
.result-row [data-column="code"] { min-width: 220px; }
.code-preview { display: inline-block; max-width: 25ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/20px ui-monospace, Consolas, monospace; user-select: all; vertical-align: middle; }
.show-full-codes .code-preview { width: min(38ch, 65vw); max-width: none; overflow: visible; text-overflow: clip; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; font-size: 10.5px; line-height: 15px; }
.show-full-codes .result-row [data-column="code"] { white-space: normal; }
.show-full-codes [data-result-action="copy"], .show-full-codes .copy-feedback { display: none; }
.result-row [data-column="code"] .btn { min-height: 28px; padding: 3px 5px; margin-left: 5px; color: var(--blue); vertical-align: middle; }
.result-row [data-column="code"] .btn svg { width: 14px; height: 14px; }
.result-row [data-column="code"] { white-space: nowrap; }
.result-status-note, .result-error { font-size: 12px; margin: 0; }
.result-status-note { display: block; margin: 0; color: var(--muted); font-size: 11px; line-height: 14px; }
.code-status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; font-size: 13px; font-weight: 600; line-height: 17px; }
.code-status::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.code-status-green { color: #168357; background: #eaf6ef; }
.code-status-blue { color: var(--blue); background: var(--blue-light); }
.code-status-gray { color: var(--muted); background: #f0f2f5; }
.code-status-orange { color: #a86513; background: #fff3df; }
.code-status-red { color: #ba3547; background: #fceef0; }
.code-status + .result-status-note { margin-top: 3px; }
.result-row [data-column="status"] { white-space: normal; overflow-wrap: anywhere; line-height: 17px; }
.result-error { color: #ba3547; white-space: normal; overflow-wrap: anywhere; }
.copy-feedback { color: var(--muted); font-size: 12px; margin: 4px 0 0; white-space: normal; }
.copy-feedback:empty { margin: 0; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.table-modes { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #edf1f7; border-radius: 7px; }
.table-modes .btn { color: var(--muted); background: transparent; }
.table-modes .btn[aria-pressed="true"] { color: var(--blue); background: var(--surface); border-color: var(--line); }
#customTableMode { font-size: 12px; }
#columnPickerBtn { margin-left: auto; flex-shrink: 0; }
.column-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px; margin: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafd; }
.column-choices .form-check { cursor: pointer; }
.column-choices input:disabled { opacity: .65; }
.status-yes { color: #168357; font-weight: 600; }
.status-no { color: #ba3547; font-weight: 600; }
.gray-text { color: #929eae; }
.about-service { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-service summary, .help-question summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; padding: 18px 0; font-size: 13px; color: var(--muted); gap: 16px; }
.about-service summary::-webkit-details-marker, .help-question summary::-webkit-details-marker { display: none; }
.about-service summary span, .help-question summary span { font-size: 18px; line-height: 1; flex-shrink: 0; }
.about-service[open] summary span, .help-question[open] summary span { transform: rotate(45deg); }
.prose { max-width: 850px; padding: 5px 0 20px; font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.prose h2, .prose h3 { color: var(--ink); font-size: 15px; margin: 18px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.site-footer { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 30px; color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 11000; max-width: calc(100% - 32px); padding: 14px 20px; background: #182433; color: #fff; border-radius: 8px; box-shadow: 0 6px 24px #18243326; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); }

.help-layout { display: grid; grid-template-columns: 220px minmax(0, 900px); gap: 28px; align-items: start; margin-top: 28px; }
.help-nav { display: grid; gap: 6px; position: sticky; top: 20px; }
.help-nav a { padding: 9px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.help-nav a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.help-content { display: grid; min-width: 0; gap: 20px; }
.help-content section { scroll-margin-top: 20px; }
@media (min-width: 1001px) {
  #support .card-body { padding: 22px; }
}
.help-steps { margin: 0; padding-left: 50px; }
.help-steps li { padding-left: 6px; margin-bottom: 18px; }
.help-steps li:last-child { margin-bottom: 0; }
.help-steps li::marker { color: var(--blue); font-weight: 650; }
.help-steps h3 { font-size: 14px; margin-bottom: 5px; }
.help-steps p, .help-formats dd { color: var(--muted); font-size: 13px; margin: 0; }
.help-formats { display: grid; gap: 14px; margin: 0; }
.help-formats > div + div { padding-top: 14px; border-top: 1px solid var(--line); }
.help-formats dt { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.help-faq { display: grid; gap: 10px; }
.help-faq > h2 { margin: 5px 0; }
.help-question summary { padding: 16px 18px; color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.help-question .prose { padding: 0 18px 18px; max-width: none; }

/* Compact generator layout; help keeps its existing spacing. */
.generator-page .page-heading { padding-top: 18px; margin-bottom: 16px; gap: 10px; }
.generator-page .eyebrow { margin-bottom: 5px; }
.generator-page h1 { font-size: 28px; margin-bottom: 0; }
.generator-page .workspace-grid { gap: 14px; }
.generator-page .card-header { padding: 10px 14px; gap: 10px; }
.generator-page .card-body { padding: 14px; }
.generator-page .label-fields { margin-top: 14px; }
.generator-page .label-fields legend { margin-bottom: 9px; }
.generator-page .fields-grid { gap: 9px 10px; }
.generator-page .field-fixed { padding-bottom: 8px; }
.generator-page textarea { min-height: 150px; padding: 10px; }
.generator-page .input-actions { margin-top: 12px; }
.generator-page .empty-state { padding: 14px; margin-top: 14px; }
.generator-page .results-card { margin-top: 14px; }
.generator-page .results-card .card-header { flex-wrap: wrap; }
.generator-page .results-card .card-header > div { flex: 1 1 180px; }
.generator-page .results-card .small-badge { margin-left: 0; }
#downloadForm { margin-left: auto; flex: 0 0 auto; }
.results-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 7px 14px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.generator-page .about-service { margin-top: 16px; }
.generator-page .about-service summary { padding-block: 12px; }

@media (max-width: 1000px) {
  .workspace-grid { grid-template-columns: 310px minmax(0, 1fr); gap: 16px; }
  .card-header, .card-body { padding: 18px; }
  .input-card .small-badge { display: none; }
  .fields-grid { gap: 12px 6px; }
}
@media (max-width: 760px) {
  .template-collapse { display: inline-grid; }
  .template-card.is-collapsed > .card-body { display: none; }
  .template-card.is-collapsed > .card-header { border-bottom: 0; }
  .header-inner { min-height: 62px; gap: 0 12px; flex-wrap: wrap; }
  .brand { font-size: 21px; gap: 7px; }
  .brand-domain { margin-left: -7px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-nav { gap: 18px; font-size: 12px; }
  .header-nav a { padding-block: 21px 18px; }
  .header-nav .support-link { display: none; }
  .page-heading { padding-top: 25px; }
  .page-description { font-size: 13px; }
  .eyebrow { font-size: 10px; letter-spacing: .7px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .fields-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .label-fields { margin-top: 20px; }
  textarea { min-height: 210px; font-size: 16px; }
  #codes { font-size: 12px; }
  .form-select { font-size: 16px; }
  .btn { min-height: 44px; }
  .input-card .small-badge { display: inline-flex; }
  .card-header { gap: 10px; }
  .card-header p { font-size: 11px; }
  .empty-state { justify-content: flex-start; padding: 24px 18px; }
  .results-card .card-header { flex-wrap: wrap; }
  .table-toolbar { padding: 8px 12px; }
  .table-toolbar .btn { font-size: 11px; padding-inline: 8px; }
  .table-modes { gap: 1px; padding: 2px; }
  .table-container table, .table-container th { font-size: 11px; }
  .table-container th, .table-container td { height: 32px; padding: 3px 6px; line-height: 16px; }
  .result-row td { min-width: 70px; max-width: 240px; }
  .result-row [data-column="number"] { min-width: 28px; width: 28px; }
  .result-row [data-column="code"] { min-width: 160px; }
  .code-preview { max-width: 19ch; font-size: 11px; line-height: 16px; }
  .result-row [data-column="code"] .btn { margin-left: 2px; padding: 3px; }
  .result-row [data-column="status"] { min-width: 105px; line-height: 15px; }
  .result-status-note { font-size: 10px; line-height: 13px; }
  .result-row [data-column="product_name"] { min-width: 145px; }
  .column-choices { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; padding: 10px; margin-inline: 12px; }
  .site-footer { flex-direction: column; gap: 8px; font-size: 11px; }
  .toast { right: 16px; bottom: 16px; font-size: 12px; }
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
  .help-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .help-nav a { padding: 7px 10px; background: #eaf0f7; font-size: 12px; }
}
@media (max-width: 420px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .header-nav { width: 100%; gap: 0 22px; flex-wrap: wrap; }
  .header-nav a { padding-block: 10px 12px; }
  .fields-grid { grid-template-columns: 1fr 1fr; }
  .input-card .small-badge { display: none; }
  .input-toolbar .field-label { max-width: 160px; font-size: 12px; }
  .input-actions .btn { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.about-page { max-width: 960px; margin: 24px auto; padding: clamp(18px, 3vw, 32px); }
.about-page h1 { font-size: 26px; margin: 0 0 18px; }
.about-page h2 { font-size: 17px; margin-top: 24px; }
.about-page hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.about-page #privacy { scroll-margin-top: 20px; }
