:root {
  color-scheme: light;
  --ink: #172534;
  --muted: #5d6b76;
  --faint: #78838d;
  --line: #dce2e6;
  --paper: #fff;
  --canvas: #f4f6f8;
  --accent: #e65b25;
  --accent-dark: #ba4115;
  --accent-soft: #fff0e9;
  --success: #1b6b4a;
  --success-soft: #ecf8f1;
  --danger: #a42e23;
  --danger-soft: #fff1ee;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; flex-shrink: 0; }
p, h1, h2, h3 { margin-top: 0; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #2776b8; }
input::placeholder, textarea::placeholder { color: #87919a; opacity: 1; }
::selection { background: #ffdcc9; color: #172534; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 18px; background: var(--ink); color: white; border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1248px; min-height: 78px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 23px; font-weight: 780; letter-spacing: -.9px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 36px; color: white; background: var(--accent); border-radius: 8px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-beta { margin: 2px 0 0 -3px; padding: 3px 5px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .7px; }
.header-inner nav { display: flex; align-items: center; gap: 24px; }
.header-inner nav a { position: relative; padding: 28px 0; white-space: nowrap; color: #52606c; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { color: var(--ink); }
.header-inner nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--accent); }
.header-note { margin-left: auto; white-space: nowrap; font-size: 13px; color: var(--muted); }

.eyebrow { display: block; margin-bottom: 13px; color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: 1.65px; font-weight: 750; }
.eyebrow.accent { color: var(--accent-dark); }
.primary, .secondary, .file-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s; }
.primary { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 2px #a43a0f0c; }
.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.primary:disabled { background: #cbd1d6; border-color: #cbd1d6; color: #fdfefe; box-shadow: none; }
.primary svg, .secondary svg, .file-button svg { width: 17px; height: 17px; }
.primary.full { width: 100%; margin: 16px 0 0; }
.secondary, .file-button { border-color: #cdd5dc; background: white; color: #344453; }
.secondary:hover, .file-button:hover { border-color: #8c9ba8; background: #f7f9fa; }
.file-button { cursor: pointer; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 3px 0; border: 0; background: transparent; color: #344b60; font-size: 13px; font-weight: 650; text-decoration: underline; text-decoration-color: #c4d0da; text-underline-offset: 4px; }
.text-button:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

.home-hero { max-width: 1200px; min-height: 650px; padding: 65px 40px 70px 24px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; align-items: center; }
.hero-copy { padding-bottom: 10px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 { margin-bottom: 24px; font-size: clamp(48px, 4.8vw, 65px); font-weight: 780; letter-spacing: -3.4px; line-height: 1.045; }
.hero-copy > p { max-width: 465px; margin-bottom: 31px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-copy .primary { min-height: 49px; padding-right: 23px; padding-left: 23px; }
.hero-secondary { display: inline-flex; padding: 12px 0; margin-left: 23px; font-size: 14px; font-weight: 650; text-decoration-color: #b6c0c9; }
.hero-points { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 10px; margin-top: 27px; font-size: 12px; color: var(--muted); }
.hero-points span { display: inline-flex; gap: 5px; align-items: center; }
.hero-points svg { width: 14px; height: 14px; color: var(--success); }
.hero-visual { position: relative; width: 330px; justify-self: center; padding: 24px 4px 0; }
.hero-visual::before { content: ""; position: absolute; inset: 83px -44px 29px -38px; z-index: -1; background-image: radial-gradient(#c9d2db 1px, transparent 1px); background-size: 12px 12px; }
.visual-ruler { display: flex; justify-content: space-between; margin-bottom: 12px; padding: 0 1px 7px; border-bottom: 1px solid #c5cfd8; color: #77838e; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.visual-ruler span { letter-spacing: 1.4px; }
.demo-label { position: relative; min-height: 450px; padding: 23px 24px 21px; background: #fff; box-shadow: 0 16px 45px #17253418, 0 2px 6px #1725340c; border: 1px solid #e2e6ea; border-radius: 3px; transform: rotate(-2deg); }
.demo-label::before { content: ""; position: absolute; inset: 5px -7px -7px 5px; z-index: -1; border: 1px solid #e1e6e9; background: #fbfcfd; border-radius: 3px; transform: rotate(3.5deg); }
.label-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 2px solid #172534; font-size: 10px; letter-spacing: .5px; }
.label-head span { font-size: 9px; }
.demo-address { padding: 20px 0 18px; }
.demo-address > span, .demo-reference > span, .demo-sscc > span { display: block; font-size: 8px; line-height: 1.5; letter-spacing: .6px; }
.demo-address strong { display: block; margin: 9px 0; font-size: 26px; line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.demo-address p { margin-bottom: 0; font-size: 12px; }
.demo-reference { padding: 12px 0; border-top: 1px solid #a6afb6; border-bottom: 1px solid #a6afb6; }
.demo-reference b { display: block; margin-top: 3px; font-size: 15px; letter-spacing: .2px; }
.demo-sscc { padding-top: 17px; }
.demo-sscc > strong { display: block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; letter-spacing: .25px; }
.demo-sscc [data-demo-barcode] { margin-top: 12px; }
.demo-sscc svg { width: 100%; height: auto; max-height: 75px; }
.demo-sscc p { margin: 6px 0 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .3px; text-align: center; }
.visual-caption { margin-top: 28px; color: var(--faint); font-size: 9px; letter-spacing: 1.8px; text-align: center; }
.sample-label { position: absolute; right: -26px; bottom: 24px; padding: 7px 10px; border: 1px solid #dfe5e9; border-radius: 5px; background: white; box-shadow: 0 3px 8px #17253408; color: var(--muted); font-size: 11px; transform: rotate(3deg); }

.tools-section { max-width: 1248px; margin: 0 auto; padding: 48px 24px 62px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: 31px; line-height: 1.2; letter-spacing: -1.2px; }
.section-heading > p { margin-bottom: 1px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 325px; padding: 25px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s; }
.tool-card:hover { border-color: #aebbc7; box-shadow: 0 7px 22px #17253409; transform: translateY(-3px); }
.card-icon { display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 24px; border: 1px solid #e4e9ee; border-radius: 9px; background: #f4f7fa; color: #34526c; }
.card-icon svg { width: 23px; height: 23px; }
.tool-card .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.2px; }
.tool-card h3 { margin-bottom: 12px; font-size: 20px; font-weight: 730; line-height: 1.25; letter-spacing: -.5px; }
.tool-card p { margin-bottom: 21px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-detail { margin-top: auto; margin-bottom: 20px; color: var(--faint); font-size: 11px; }
.card-action { width: 100%; padding-top: 16px; border-top: 1px solid #e9edf0; color: #2c4357; font-size: 13px; font-weight: 700; }
.workflow-strip { display: grid; grid-template-columns: 1.15fr repeat(3,1fr); gap: 36px; max-width: 1200px; margin: 0 auto 75px; padding: 34px 24px 0; border-top: 1px solid var(--line); }
.workflow-strip .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
.workflow-strip h2 { margin-bottom: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.8px; }
.workflow-strip b { display: block; margin: 5px 0 10px; font-size: 14px; }
.workflow-strip p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.print-examples { max-width: 1248px; margin: 0 auto; padding: 0 24px 62px; }
.print-examples-intro { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 34px; margin-bottom: 22px; border-top: 1px solid var(--line); }
.print-examples-intro h2 { margin: 0; font-size: clamp(27px,3vw,37px); line-height: 1.15; letter-spacing: -1.3px; }
.print-examples-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.print-examples-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: clamp(170px,19vw,230px) clamp(145px,16vw,195px); gap: 8px; }
.print-example { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: flex-start; min-width: 0; padding: 10px; background: #d7dfe2; color: var(--ink); text-decoration: none; }
.print-example img { position: absolute; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.print-example--pallet { grid-column: 1 / 6; grid-row: 1 / 3; }
.print-example--product { grid-column: 6 / 10; grid-row: 1; }
.print-example--sheet { grid-column: 10 / 13; grid-row: 1; }
.print-example--printer { grid-column: 6 / 9; grid-row: 2; }
.print-example--bin { grid-column: 9 / 13; grid-row: 2; }
.print-example-caption { display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; max-width: 100%; padding: 6px 9px; background: #fff; font-size: 13px; font-weight: 650; line-height: 1.35; }
.print-example-caption > span { flex: none; color: #495f6f; }
.print-example:hover .print-example-caption, .print-example:focus-visible .print-example-caption { background: #19354a; color: #fff; }
.print-example:hover .print-example-caption > span, .print-example:focus-visible .print-example-caption > span { color: inherit; }

@media (max-width: 760px) {
  .print-examples-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 6px; }
  .print-example { grid-column: auto; grid-row: auto; aspect-ratio: 1.35; }
  .print-example--pallet { grid-column: 1 / -1; aspect-ratio: 2.1; }
}
@media (max-width: 500px) {
  .print-examples { padding: 0 20px 40px; }
  .print-examples-intro { padding-top: 26px; margin-bottom: 16px; }
  .print-examples-intro p { font-size: 13px; }
  .print-example { padding: 6px; aspect-ratio: 1.12; }
  .print-example--pallet { aspect-ratio: 1.5; }
  .print-example-caption { gap: 4px; padding: 5px 6px; font-size: 12px; }
}

.tool-main { max-width: 1248px; padding: 27px 24px 68px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 11px; align-items: center; margin-bottom: 32px; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb > span { color: #9aa5af; }
.tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 31px; }
.tool-heading .eyebrow { margin-bottom: 11px; font-size: 10px; }
.tool-heading h1 { margin-bottom: 11px; font-size: clamp(30px,3.5vw,43px); line-height: 1.15; font-weight: 750; letter-spacing: -1.6px; }
.tool-heading p { max-width: 730px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.free-badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 7px 11px; border: 1px solid #d7e5dd; border-radius: 6px; background: #f6fbf8; color: var(--success); font-size: 12px; font-weight: 650; }
.free-badge svg { width: 14px; height: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0,455px) minmax(0,1fr); gap: 22px; align-items: start; }
.controls-panel, .preview-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin: 0 24px; border-bottom: 1px solid #e4e8ec; }
.panel-heading h2, .preview-heading h2 { margin-bottom: 0; font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.panel-heading .text-button { font-size: 11px; font-weight: 500; }
#tool-form { padding: 23px 24px 25px; }
.segmented { display: flex; padding: 4px; gap: 3px; margin-bottom: 23px; border: 1px solid #e1e6ea; border-radius: 7px; background: #f1f4f6; }
.segmented button { flex: 1; min-width: 0; min-height: 35px; padding: 8px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #64717e; font-size: 12px; line-height: 1.35; font-weight: 650; }
.segmented button:hover { color: var(--ink); }
.segmented button.selected { border-color: #e1e6eb; background: white; color: var(--ink); box-shadow: 0 1px 4px #1725340b; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; margin-bottom: 18px; }
.field > span { color: #344453; font-size: 13px; font-weight: 650; line-height: 1.4; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #ced7de; border-radius: 6px; background: white; color: var(--ink); font-size: 14px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.field input, .field select { min-height: 42px; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a3b0bb; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #3e789f; box-shadow: 0 0 0 3px #3e789f15; }
.field select { appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' stroke='%235d6b76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.field textarea.code-input { padding: 12px; background: #fafbfd; color: #344b60; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; line-height: 1.75; tab-size: 2; overflow-wrap: normal; white-space: pre; }
.field textarea.zpl-source { min-height: 260px; font-size: 12px; }
.section-label { display: flex; justify-content: space-between; margin: 6px 0 18px; padding-top: 20px; border-top: 1px solid #e4e8ec; color: #344453; font-size: 13px; font-weight: 700; }
.section-label > span { color: var(--faint); font-size: 11px; font-weight: 400; }
.checkline { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.checkline input { flex-shrink: 0; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--accent); }
.inline-note { margin-top: 18px; padding: 12px 13px; border: 1px solid #e2e7ec; border-radius: 6px; background: #f5f8fa; color: var(--muted); font-size: 11px; line-height: 1.7; }
.import-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 17px; flex-wrap: wrap; }
.import-row .file-button, .import-row .secondary { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.import-row .text-button { font-size: 11px; }
.remote-notice { margin-top: 20px; padding: 15px; border: 1px solid #f0d7c9; border-radius: 7px; background: #fff7f2; }
.remote-notice > strong { font-size: 12px; color: #844722; }
.remote-notice > p { margin: 7px 0 12px; color: #7a6558; font-size: 11px; line-height: 1.7; }
.remote-notice .checkline { color: #604f43; font-size: 12px; }
.helper { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 0 24px; border-bottom: 1px solid #e4e8ec; }
.preview-heading > span { color: var(--muted); font-size: 11px; text-align: right; }
.preview-stage { min-height: 520px; display: grid; align-items: center; justify-items: center; overflow: auto; padding: 32px 28px; background-color: #edf1f4; background-image: linear-gradient(#cbd5df29 1px, transparent 1px), linear-gradient(90deg,#cbd5df29 1px,transparent 1px); background-size: 20px 20px; }
.preview-content { width: min(100%,340px); min-width: 0; color: var(--ink); }
.preview-content > svg { display: block; width: 100%; height: auto; max-height: 550px; margin: 0 auto; background: white; box-shadow: 0 8px 27px #17253417,0 1px 4px #17253414; }
.preview-content > p, .preview-empty { margin: 0 auto; max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.preview-content .empty-icon, .preview-empty > svg { width: 42px; height: 42px; margin: 0 auto 17px; color: #8a99a7; }
.pdf-stage { min-height: 585px; padding: 0; align-items: stretch; }
.pdf-stage .preview-content { display: grid; align-items: center; width: 100%; min-height: 585px; }
.preview-content iframe, .preview-content object, .preview-content embed { display: block; width: 100%; height: 585px; border: 0; background: #edf1f4; }
.preview-pagination { display: flex; justify-content: center; align-items: center; gap: 17px; min-height: 49px; border-top: 1px solid #dfe6ec; border-bottom: 1px solid #e5e9ed; background: #fafbfd; color: var(--muted); font-size: 11px; }
.icon-button { width: 27px; height: 27px; padding: 0; border: 1px solid #d7dfe6; border-radius: 4px; background: white; color: #53687b; font-size: 20px; line-height: 1; }
.icon-button:hover:not(:disabled) { border-color: #869aac; background: #f0f5f8; }
.icon-button:disabled { color: #bec7ce; opacity: .7; }
#preview-counter { min-width: 100px; text-align: center; font-variant-numeric: tabular-nums; }
#status:empty { display: none; }
#status { padding: 14px 20px 0; }
.error-box, .success-box, .warning-box { padding: 11px 13px; border: 1px solid; border-radius: 6px; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.error-box { border-color: #efc8c2; color: var(--danger); background: var(--danger-soft); }
.success-box { border-color: #cce6d7; color: var(--success); background: var(--success-soft); }
.warning-box { border-color: #ecd8af; color: #7b5c23; background: #fff9ec; }
.export-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 24px; }
.export-bar > div { min-width: 0; }
.export-bar b { display: block; font-size: 14px; letter-spacing: -.1px; }
.export-bar small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.export-bar .primary { flex-shrink: 0; font-size: 13px; }
.secondary-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 18px; padding: 0 24px 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.secondary-actions .text-button { min-height: 24px; font-size: 11px; }

.tool-guidance { display: grid; grid-template-columns: 1fr 1.65fr; gap: 85px; padding: 62px 8px 58px; }
.tool-guidance .eyebrow { font-size: 10px; }
.tool-guidance h2 { margin-bottom: 18px; font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.tool-guidance > div > p { max-width: 325px; margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.reference-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.reference-links a { color: #425f78; font-size: 12px; text-decoration-color: #b7c5d0; }
.faq-list details { padding: 17px 0; border-bottom: 1px solid #d9e0e6; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { position: relative; padding-right: 28px; list-style: none; font-size: 14px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: -2px; color: #788b9b; font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { margin: 12px 25px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.other-tools { padding: 30px 0 0; border-top: 1px solid var(--line); }
.other-tools h2 { margin-bottom: 19px; font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.other-tools > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.other-tools a { display: flex; align-items: center; gap: 11px; padding: 18px; border: 1px solid #dce3e9; border-radius: 8px; background: white; color: #344b60; font-size: 13px; font-weight: 650; text-decoration: none; }
.other-tools a:hover { border-color: #9db0be; }
.other-tools svg { width: 20px; height: 20px; color: #526f87; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; max-width: 1248px; margin: 0 auto; padding: 36px 24px 26px; border-top: 1px solid var(--line); color: var(--muted); }
.brand.small { gap: 8px; font-size: 19px; color: var(--ink); letter-spacing: -.6px; }
.brand.small svg { width: 23px; height: 23px; color: #587084; }
.site-footer > div > p { margin: 7px 0 0; font-size: 12px; }
.site-footer > div:nth-child(2) { display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: 11px; text-align: right; }
.site-footer .legal { grid-column: 1/-1; margin: 0; padding-top: 19px; border-top: 1px solid #e1e6eb; font-size: 10px; color: #7d8992; }

@media (min-width: 1400px) {
  .home-hero { gap: 100px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 25px; }
  .header-inner nav { gap: 19px; }
  .header-note { display: none; }
  .home-hero { gap: 45px; min-height: 620px; padding-right: 30px; }
  .hero-copy h1 { font-size: 55px; letter-spacing: -2.7px; }
  .hero-visual { width: 300px; }
  .demo-label { padding: 22px; }
  .demo-address strong { font-size: 24px; }
  .hero-copy > p { font-size: 16px; }
  .tool-grid { gap: 12px; }
  .tool-card { padding: 22px 18px 20px; }
  .tool-card h3 { font-size: 18px; }
  .workspace { grid-template-columns: minmax(0,420px) minmax(0,1fr); gap: 18px; }
  #tool-form { padding-right: 20px; padding-left: 20px; }
  .panel-heading { margin-right: 20px; margin-left: 20px; }
  .export-bar { padding-right: 18px; padding-left: 18px; gap: 12px; }
  .export-bar .primary { padding-right: 12px; padding-left: 12px; }
  .export-bar b { font-size: 13px; }
  .export-bar small { font-size: 10px; }
  .tool-guidance { gap: 55px; }
  .workflow-strip { gap: 27px; }
}
@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 17px; padding-bottom: 0; }
  .header-inner .brand { margin-right: auto; }
  .header-inner nav { width: 100%; order: 2; gap: 28px; overflow-x: auto; margin-top: 7px; scrollbar-width: none; }
  .header-inner nav::-webkit-scrollbar { display: none; }
  .header-inner nav a { padding-top: 13px; padding-bottom: 14px; font-size: 12px; }
  .header-note { display: block; }
  .home-hero { gap: 20px; padding-top: 46px; padding-bottom: 52px; min-height: 570px; }
  .hero-copy h1 { font-size: 48px; letter-spacing: -2.3px; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .hero-secondary { margin-left: 14px; font-size: 12px; }
  .hero-copy .primary { padding: 12px 15px; font-size: 12px; }
  .hero-points { gap: 8px 12px; font-size: 10px; }
  .hero-visual { width: 266px; }
  .demo-label { min-height: 407px; padding: 20px; }
  .demo-address { padding-top: 16px; padding-bottom: 15px; }
  .demo-address strong { font-size: 22px; }
  .demo-sscc > strong { font-size: 15px; }
  .demo-sscc p { font-size: 9px; }
  .sample-label { right: -6px; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .tool-card { min-height: 300px; padding: 25px; }
  .tool-card h3 { font-size: 21px; }
  .card-icon { margin-bottom: 18px; }
  .workflow-strip { grid-template-columns: 1fr 1fr; gap: 28px 45px; }
  .workflow-strip h2 { font-size: 25px; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .controls-panel { overflow: visible; }
  .preview-panel { overflow: hidden; }
  .panel-heading, .preview-heading { min-height: 62px; }
  #tool-form { padding: 23px 24px; }
  .panel-heading { margin: 0 24px; }
  .field small, .helper, .inline-note { font-size: 12px; }
  .field > span { font-size: 14px; }
  .field input, .field select, .field textarea { font-size: 15px; }
  .field textarea.code-input { font-size: 12px; }
  .preview-stage { min-height: 510px; }
  .preview-content { width: min(100%,320px); }
  .export-bar { padding: 21px 24px; }
  .export-bar b { font-size: 14px; }
  .export-bar small { font-size: 11px; }
  .export-bar .primary { padding-right: 19px; padding-left: 19px; }
  .tool-guidance { gap: 40px; padding-top: 52px; grid-template-columns: 1fr 1.3fr; }
  .tool-guidance h2 { font-size: 26px; }
  .other-tools > div { gap: 10px; }
  .other-tools a { padding: 15px 12px; font-size: 12px; gap: 8px; }
}
@media (max-width: 620px) {
  .header-inner { padding-right: 20px; padding-left: 20px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 31px; height: 33px; }
  .brand-beta { font-size: 9px; }
  .header-note { font-size: 10px; }
  .header-inner nav { gap: 24px; }
  .header-inner nav a { font-size: 12px; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 39px; padding: 43px 22px 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy .eyebrow { margin-bottom: 18px; }
  .hero-copy h1 { font-size: clamp(44px,10vw,58px); letter-spacing: -2.5px; }
  .hero-copy > p { max-width: 460px; margin-bottom: 24px; font-size: 16px; line-height: 1.7; }
  .hero-copy .primary { min-height: 46px; padding-right: 18px; padding-left: 18px; font-size: 13px; }
  .hero-secondary { margin-left: 20px; font-size: 13px; }
  .hero-points { margin-top: 21px; font-size: 11px; gap: 8px 15px; }
  .hero-visual { width: 270px; margin-left: -4px; }
  .hero-visual::before { inset: 65px -30px 28px; }
  .visual-ruler { font-size: 9px; }
  .demo-label { min-height: 410px; }
  .visual-caption { margin-top: 25px; font-size: 8px; }
  .sample-label { right: -12px; bottom: 25px; font-size: 10px; }
  .tools-section { padding: 35px 20px 40px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p { margin-top: 12px; font-size: 13px; }
  .section-heading > p br { display: none; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { position: relative; min-height: 0; padding: 23px; }
  .card-icon { position: absolute; top: 23px; right: 23px; width: 37px; height: 37px; margin: 0; }
  .card-icon svg { width: 20px; height: 20px; }
  .tool-card .eyebrow { margin: 0 55px 9px 0; }
  .tool-card h3 { margin-right: 35px; margin-bottom: 11px; font-size: 21px; }
  .tool-card p { max-width: 360px; margin-bottom: 15px; font-size: 14px; }
  .card-detail { margin-bottom: 15px; }
  .card-action { padding-top: 13px; }
  .workflow-strip { grid-template-columns: 1fr; gap: 24px; margin: 0 20px 46px; padding: 28px 3px 0; }
  .workflow-strip h2 br { display: none; }
  .workflow-strip b { margin-top: 0; margin-bottom: 5px; }
  .workflow-strip p { max-width: 440px; }
  .tool-main { padding: 22px 16px 42px; }
  .breadcrumb { gap: 9px; margin-bottom: 27px; font-size: 11px; }
  .tool-heading { align-items: flex-start; gap: 14px; margin-bottom: 25px; }
  .tool-heading > div { min-width: 0; }
  .tool-heading .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .tool-heading h1 { font-size: 31px; letter-spacing: -1.2px; }
  .tool-heading p { font-size: 14px; }
  .free-badge { display: none; }
  .workspace { gap: 20px; }
  .panel-heading { min-height: 59px; margin: 0 18px; gap: 12px; }
  .panel-heading h2, .preview-heading h2 { font-size: 14px; }
  .panel-heading .text-button { font-size: 11px; }
  #tool-form { padding: 19px 18px 22px; }
  .segmented { margin-bottom: 21px; }
  .segmented button { font-size: 12px; min-height: 36px; }
  .form-row { gap: 12px; }
  .field { gap: 7px; margin-bottom: 18px; }
  .field > span { font-size: 12px; }
  .field input, .field select, .field textarea { padding-right: 10px; padding-left: 10px; font-size: 16px; }
  .field select { padding-right: 29px; font-size: 14px; background-position: right 10px center; }
  .field input { min-height: 44px; }
  .field small { font-size: 11px; }
  .field textarea.code-input { font-size: 11px; }
  .checkline { font-size: 12px; }
  .inline-note { padding: 12px; font-size: 11px; }
  .remote-notice { padding: 13px; }
  .remote-notice > p { font-size: 12px; }
  .remote-notice .checkline { font-size: 12px; }
  .import-row .file-button, .import-row .secondary { min-height: 39px; }
  .import-row .text-button { font-size: 11px; }
  .preview-heading { padding: 0 18px; gap: 14px; min-height: 59px; }
  .preview-heading > span { max-width: 150px; font-size: 10px; }
  .preview-stage { min-height: 465px; padding: 26px 21px; }
  .preview-content { width: min(100%,280px); }
  .preview-content > svg { max-height: 450px; }
  .pdf-stage { padding: 0; min-height: 480px; }
  .pdf-stage .preview-content { width: 100%; min-height: 480px; }
  .preview-content iframe, .preview-content object, .preview-content embed { height: 480px; }
  .export-bar { flex-direction: column; align-items: stretch; gap: 15px; padding: 19px 18px 16px; }
  .export-bar > div { text-align: center; }
  .export-bar b { font-size: 14px; }
  .export-bar small { font-size: 11px; }
  .export-bar .primary { min-height: 45px; font-size: 14px; }
  .secondary-actions { flex-direction: column; align-items: center; padding: 0 18px 18px; text-align: center; font-size: 10px; }
  #status { padding: 13px 16px 0; }
  .tool-guidance { grid-template-columns: 1fr; gap: 27px; padding: 39px 3px 35px; }
  .tool-guidance h2 { font-size: 27px; margin-bottom: 13px; }
  .tool-guidance h2 br { display: none; }
  .tool-guidance > div > p { max-width: 100%; font-size: 13px; }
  .reference-links { gap: 8px; }
  .faq-list summary { font-size: 13px; }
  .faq-list details > p { margin-right: 12px; font-size: 13px; }
  .other-tools { padding-top: 26px; }
  .other-tools h2 { font-size: 18px; }
  .other-tools > div { grid-template-columns: 1fr; gap: 11px; }
  .other-tools a { padding: 16px; font-size: 13px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px 24px; }
  .site-footer > div:nth-child(2) { text-align: left; font-size: 11px; }
  .site-footer .legal { font-size: 10px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep operation labels readable at every viewport size. */
.header-inner nav a { font-size: 14px; }
.eyebrow, .hero-copy .eyebrow, .tool-card .eyebrow, .workflow-strip .eyebrow,
.tool-heading .eyebrow, .tool-guidance .eyebrow { font-size: 12px; }
.field > span, .segmented button, .section-label { font-size: 14px; }
.field small, .inline-note, .helper, .card-detail { font-size: 12px; }
.text-button, .panel-heading .text-button, .import-row .text-button,
.import-row .file-button, .import-row .secondary, .secondary-actions .text-button { font-size: 13px; }
.remote-notice > strong { font-size: 14px; }
.remote-notice > p, .remote-notice .checkline, .checkline { font-size: 13px; }
.preview-heading > span, .export-bar small, .secondary-actions { font-size: 12px; }
.breadcrumb, .preview-pagination { font-size: 13px; }
.site-footer .legal { font-size: 12px; }

@media print {
  .site-header, .controls-panel, .tool-guidance, .other-tools, .site-footer, .tool-heading, .breadcrumb, .preview-heading, .preview-pagination, .export-bar, .secondary-actions, #status { display: none !important; }
  .workspace, .preview-panel, .preview-stage, .preview-content { display: block; width: auto; margin: 0; padding: 0; border: 0; background: white; box-shadow: none; }
  .preview-content > svg { width: 100%; max-height: none; box-shadow: none; }
}

/* The active file, stock and output controls share a compact operator layout. */
.brand-mark, .brand-mark svg { width: 36px; height: 36px; }
.brand-mark { background: transparent; }
.workspace-link { margin-left: auto; padding: 8px 15px; border-radius: 6px; background: #19354a; color: #fff; text-decoration: none; font-weight: 650; font-size: 14px; }
.workspace-link:hover, .workspace-link[aria-current="page"] { background: #294e67; }
.site-footer nav { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 14px; }
.visual-caption { color: var(--muted); font-size: 12px; letter-spacing: .2px; }
.calibration-control { margin: 0 0 18px; padding: 9px 12px; border-left: 3px solid #aebfca; background: #f3f6f8; }
.calibration-control .text-button { min-height: 28px; }
.calibration-control .helper, .workspace-save-bar .helper { margin: 0; }
.calibration-control [role="status"]:not(:empty) { display: block; margin-top: 4px; }
#csv-mapping { margin: 0 0 12px; }
#csv-mapping summary { cursor: pointer; color: #31516a; font-size: 14px; font-weight: 650; }
#csv-mapping[open] summary { margin-bottom: 12px; }
.csv-check { margin: 0 0 18px; padding: 10px 12px; color: #285343; background: #eff7f3; border-left: 3px solid #7da88d; }
.csv-check:has(.csv-issues:not([hidden])) { background: #fff4ed; color: #6e3523; border-color: #c26940; }
.csv-check-summary { margin: 0; font-weight: 650; font-size: 13px; }
.csv-issues { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.csv-issues li + li { margin-top: 4px; }
.csv-issues .text-button { min-height: 24px; }
.native-output { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 13px 0; border-top: 1px solid var(--line); }
.native-output label { margin-right: auto; font-size: 13px; color: var(--ink); font-weight: 650; }
.native-output select { border: 1px solid #b6c4ce; border-radius: 5px; padding: 6px; background: white; color: var(--ink); }
.native-output .secondary { min-height: 35px; font-size: 13px; }
.workspace-save-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 18px; padding: 17px 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.workspace-save-bar > div:first-child { display: grid; gap: 2px; }
.workspace-save-bar small { color: var(--muted); }
.workspace-save-bar > div:nth-child(2) { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.workspace-save-bar #save-result:not(:empty) { flex-basis: 100%; }
.workspace-save-bar #save-result:empty { display: none; }
.save-dialog { width: min(420px, 92vw); padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.save-dialog::backdrop { background: #17253477; }
.save-dialog .panel-heading { margin: 0 0 18px; min-height: auto; padding-bottom: 14px; }
@media (max-width: 620px) {
  .site-footer nav { justify-content: flex-start; }
  .native-output { justify-content: flex-start; }
  .workspace-link { font-size: 13px; }
  .workspace-save-bar { padding: 16px; }
}
@media print { .workspace-save-bar { display: none; } }

@media (max-width: 480px) {
  .header-inner nav { justify-content: space-between; gap: 6px; }
  .header-inner nav a { font-size: 13px; }
}
@media (max-width: 350px) {
  .header-inner { padding-right: 14px; padding-left: 14px; }
  .header-inner nav { flex-wrap: wrap; }
}
