@font-face { font-family: DMSans; src: url('/fonts/DMSans.ttf') format('truetype'); font-display: swap; font-weight: 100 1000; }
@font-face { font-family: DMSerif; src: url('/fonts/DMSerif.woff2') format('woff2'); font-display: swap; font-weight: 400; }
@font-face { font-family: DMSerif; src: url('/fonts/DMSerif-Italic.woff2') format('woff2'); font-display: swap; font-weight: 400; font-style: italic; }
:root {
  --ink: #252c32; --muted: #626b70; --blue: #314f98; --blue-light: #eff3fc;
  --line: #dedfd9; --paper: #f8f7f3; --canvas: #eeefea; --success: #3d6854;
  font-family: DMSans, Arial, sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [role=button]:focus-visible { outline: 3px solid #a07537; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.35px; }
h3 { font-size: 14px; font-weight: 600; }
.small { font-size: 12px; line-height: 1.65; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.5; }
.topbar, main, footer { max-width: 1328px; margin: auto; padding-left: 40px; padding-right: 40px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.75px; }
.brand img { width: 32px; height: 32px; }
.brand span { border-left: 1px solid #d2d5cf; padding-left: 15px; margin-left: 8px; font-size: 9px; font-weight: 550; color: var(--muted); letter-spacing: 1.2px; }
.topbar nav { display: flex; align-items: center; gap: 26px; }
.text-button { border: 0; background: none; color: inherit; padding: 9px 0; font-size: 13px; line-height: 1.4; }
.text-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.topbar .text-button { font-size: 12px; color: #515d64; min-height: 40px; }
.topbar #manage { padding: 8px 13px; border: 1px solid #d9dcd6; border-radius: 6px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0 30px; }
.intro .eyebrow { color: #766d5e; font-size: 9px; margin-bottom: 9px; letter-spacing: 1.8px; }
h1 { font-family: DMSerif, Georgia, serif; font-weight: 400; font-size: clamp(34px, 3.5vw, 47px); line-height: 1.14; letter-spacing: -1.4px; }
h1 em { color: var(--blue); font-weight: 400; }
.intro p:not(.eyebrow) { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.intro-note { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: var(--muted); line-height: 1.95; flex-shrink: 0; padding-top: 20px; }
.intro-note strong { color: var(--ink); font-size: 12px; font-weight: 550; }
.status-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin-top: 8px; }
.status { font-size: 13px; line-height: 1.5; padding: 12px 16px; border: 1px solid #d9e2d7; border-radius: 8px; background: #f0f4ed; margin-bottom: 14px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error { color: #894b29; background: #fff3e8; border-color: #e3cbb8; }
.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: white; border: 1px solid #d9dcd5; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 4px #232b2005, 0 12px 40px #232b2007; }
.controls { padding: 25px 25px 20px; display: flex; flex-direction: column; border-right: 1px solid #d9dcd5; }
.control-section + .control-section { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 23px; }
.step-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.step { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #d9dcd7; border-radius: 50%; font-size: 11px; font-weight: 500; color: #707877; font-variant-numeric: tabular-nums; }
.step.done { border-color: #d4e2d7; background: #edf4ee; color: var(--success); }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 23px 10px 17px; border: 1px dashed #bac5db; border-radius: 8px; background: #fafbff; cursor: pointer; }
.file-icon { display: block; width: 72px; height: 56px; margin-bottom: 15px; }
.file-icon svg { width: 100%; height: 100%; stroke: #9aaac6; stroke-width: 1; }
.file-icon .back-file { fill: #e8edf7; }
.file-icon .front-file { fill: white; stroke: #92a5cd; }
.file-icon .file-cell { fill: #b7c8eb; stroke: none; }
.dropzone strong { font-size: 14px; font-weight: 550; letter-spacing: -.25px; }
#upload-types { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.upload-cta { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 17px; margin-top: 19px; border-radius: 6px; background: var(--blue); color: white; font-size: 13px; font-weight: 550; box-shadow: inset 0 1px 0 #ffffff18, 0 2px 3px #253e7020; min-height: 42px; }
.upload-cta svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.file-limit { font-size: 10px; font-weight: 400; color: #6c7480; margin-top: 11px; }
.dropzone input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid #a07537; outline-offset: 4px; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: #f2f5fc; }
.dropzone.loaded { border: 0; padding: 9px 0 0; background: transparent; text-align: left; align-items: flex-start; }
.dropzone.loaded .file-icon, .dropzone.loaded #upload-types, .dropzone.loaded .upload-cta, .dropzone.loaded .file-limit { display: none; }
.dropzone.loaded strong { font-size: 12px; font-weight: 450; color: var(--blue); }
.import-card { display: flex; flex-direction: column; }
.import-card .step-heading { order: 0; }
.dropzone { order: 2; }
.file-summary { order: 1; display: flex; align-items: center; gap: 11px; padding: 13px 11px; border: 1px solid #dce2d8; border-radius: 7px; background: #fafcf8; }
.file-summary > div { min-width: 0; flex: 1; }
.file-summary strong { display: block; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-summary div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.file-check { flex-shrink: 0; width: 27px; height: 34px; border: 1px solid #cad9cd; border-radius: 3px; color: var(--success); background: white; display: grid; place-items: center; font-size: 13px; }
.sample-actions { order: 3; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 12px; }
.sample-actions button, .sample-actions a { font-size: 12px; color: #556171; text-decoration: none; }
.sample-actions button { min-height: 36px; }
.sample-actions a:hover { color: var(--blue); text-decoration: underline; }
.sample-actions > span { color: #a7ada7; }
.workspace[data-loaded=true] .sample-actions { display: none; }
#sheet-label { order: 4; margin-top: 15px; }
label { display: block; font-size: 12px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 42px; margin-top: 7px; padding: 10px; border: 1px solid #cfd4d5; border-radius: 6px; background: white; color: var(--ink); font-size: 13px; }
select { text-overflow: ellipsis; }
textarea { resize: vertical; }
.column-options summary { display: flex; justify-content: space-between; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.column-options summary::-webkit-details-marker, .settings summary::-webkit-details-marker { display: none; }
.column-options summary > span:first-child { min-width: 0; }
.column-options summary strong { display: block; color: var(--success); font-size: 12px; font-weight: 550; line-height: 1.5; }
.column-options summary strong.needs-review { color: #94532d; }
#mapping-note { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.summary-action { flex-shrink: 0; font-size: 12px; color: var(--blue); }
.summary-action > span { display: inline-block; margin-left: 4px; }
.column-options[open] .summary-action > span { transform: rotate(180deg); }
.mapping-help { margin-top: 15px; }
.mapping { display: grid; gap: 11px; margin-top: 15px; }
.mapping label { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 8px; font-size: 11px; }
.mapping select { margin: 0; padding: 8px; font-size: 12px; }
.stock-card { display: flex; align-items: center; gap: 11px; padding: 12px; background: #fafaf7; border: 1px solid #dde0d9; border-radius: 7px; }
.stock-card svg { width: 27px; height: 34px; flex-shrink: 0; }
.stock-card svg rect { fill: white; stroke: #aab8c1; }
.stock-card svg path { fill: #e9edf2; stroke: #b7c1cd; stroke-width: .6; }
.stock-card strong { display: block; font-size: 14px; font-weight: 550; }
.stock-card div > span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.stock-check { margin-left: auto; font-size: 13px; color: var(--success); }
.settings { margin-top: 8px; }
.settings summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; list-style: none; cursor: pointer; font-size: 12px; }
.settings summary::after { content: '⌄'; font-size: 13px; color: #647078; }
.setting-value { margin-left: auto; color: #6d7476; font-size: 11px; }
.settings[open] summary { margin-bottom: 10px; }
.settings[open] summary::after { transform: rotate(180deg); }
.settings > p { margin-top: 10px; }
.alignment-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0; }
.start-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 14px; padding: 10px; background: #f6f6f2; border: 1px solid #dedfd8; border-radius: 6px; }
.start-grid button { height: 26px; border: 1px solid #d4d9db; border-radius: 3px; background: white; color: #65727a; font-size: 10px; }
.start-grid button.used { background: #e8e9e4; border-style: dashed; color: #7e8787; }
.start-grid button[aria-pressed=true] { color: white; background: var(--blue); border-color: var(--blue); }
.privacy-note { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding-top: 25px; }
.privacy-note svg { width: 12px; height: 15px; flex-shrink: 0; stroke: #6a7775; fill: none; stroke-width: 1.3; margin-top: 3px; }
.privacy-note p { font-size: 11px; line-height: 1.8; color: #64706b; }
.privacy-note a { color: #637173; font-size: 10px; }
.preview-column { min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 26px; height: 54px; border-bottom: 1px solid #dce0d7; background: #f8f9f5; }
.preview-toolbar > div { display: flex; align-items: center; gap: 8px; }
.preview-toolbar h2 { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.preview-dot { display: inline-block; width: 6px; height: 6px; border: 1px solid #8a9494; border-radius: 50%; }
.preview-dot.ready { background: var(--success); border-color: var(--success); }
.back-to-list { display: none; }
.paper-badge { font-size: 11px; color: #647077; white-space: nowrap; }
.paper-badge span { margin-left: 9px; font-size: 10px; color: #677276; }
.preview-stage { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 254px; align-items: center; gap: 30px; padding: 24px 34px 12px; min-height: 498px; }
.sheet-toggle { display: none; }
.sheet-area { width: 100%; max-width: 310px; justify-self: center; }
.paper-dimension { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 8px; font-weight: 500; letter-spacing: 1.2px; color: #65706b; }
.paper-dimension::before, .paper-dimension::after { content: ''; flex: 1; height: 5px; border-top: 1px solid #bec6bb; }
.paper-dimension::before { border-left: 1px solid #bec6bb; }
.paper-dimension::after { border-right: 1px solid #bec6bb; }
#preview { background: white; aspect-ratio: 612 / 792; box-shadow: 0 1px 2px #20302018, 0 10px 16px -12px #20302055, 0 18px 32px -12px #20302024; }
#preview > svg { width: 100%; height: auto; display: block; }
#preview [role=button] { cursor: pointer; }
#preview [role=button]:hover > rect { stroke: #4566b7; }
.pager { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; }
.pager span { color: #59666a; font-size: 11px; min-width: 114px; text-align: center; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #52646a; font-size: 17px; }
.icon-button:hover:not(:disabled) { background: #e1e6e1; color: var(--blue); }
.label-inspector { margin-top: -5px; }
.inspector-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.inspector-heading h3 { font-size: 12px; font-weight: 500; color: #58646a; }
.inspector-heading > span { font-size: 11px; font-variant-numeric: tabular-nums; color: #65706f; }
.label-proof { position: relative; background: white; border: 1px solid #d3d9d2; border-radius: 7px; box-shadow: 0 3px 3px #26332605, 0 10px 18px -12px #26332630; overflow: hidden; }
#label-detail { min-height: 95px; padding: 2px; }
#label-detail svg { width: 100%; height: auto; display: block; }
#label-detail > p { font-size: 13px; color: #894b29; line-height: 1.6; padding: 14px; }
.label-measure { display: flex; justify-content: space-between; align-items: center; gap: 7px; border-top: 1px dashed #dee1db; padding: 10px 13px; color: #707a78; font-size: 9px; letter-spacing: .8px; }
#fit-status { color: var(--success); font-size: 10px; letter-spacing: 0; }
#fit-status[data-state=error] { color: #894b29; }
#fit-status[data-state=empty] { color: var(--muted); }
.inspector-controls { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 8px; }
.inspector-controls > p { font-size: 11px; color: #626d6e; }
.inspector-controls > div { display: flex; gap: 4px; }
.inspector-controls button { border: 1px solid #d5dcd2; background: #f5f7f1; width: 29px; height: 29px; font-size: 14px; }
.inspector-hint { margin-top: 10px; font-size: 11px; color: #657170; line-height: 1.6; max-width: 230px; }
.print-tip { display: flex; gap: 9px; padding-top: 22px; margin-top: 27px; border-top: 1px solid #d4dcd0; }
.tip-icon { width: 18px; height: 20px; flex-shrink: 0; fill: none; stroke: #5c6a6d; stroke-width: 1.2; stroke-linejoin: round; margin-top: 1px; }
.print-tip strong { font-size: 12px; font-weight: 550; }
.print-tip p { font-size: 11px; line-height: 1.8; color: #626f6c; margin-top: 6px; }
.print-tip b { font-weight: 550; color: #394b52; }
.print-tip button { color: var(--blue); font-size: 12px; padding: 8px 0 0; }
.review:empty { display: none; }
.review { background: #fff3df; color: #805027; border-bottom: 1px solid #e4cfaa; padding: 14px 25px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.review strong { font-weight: 600; }
.review ul { padding-left: 17px; margin: 6px 0 0; }
.export-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; min-height: 103px; border-top: 1px solid #d9ded4; background: white; }
.export-copy { min-width: 0; }
.export-copy .eyebrow { font-size: 8px; color: #6a746e; letter-spacing: 1.2px; margin-bottom: 6px; }
.export-copy h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; }
.export-copy > p:last-child { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; max-width: 325px; }
.export-empty { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.7; color: #596773; }
.export-empty strong { font-size: 10px; color: #6b7578; font-weight: 400; }
.export-sheet-icon { width: 28px; height: 36px; border: 1px solid #ced6df; border-radius: 4px; display: grid; place-items: center; color: var(--blue); font-size: 17px; }
.export-actions { flex-shrink: 0; min-width: 188px; text-align: center; }
.primary, .secondary { display: block; width: 100%; min-height: 44px; padding: 11px 17px; border-radius: 6px; border: 1px solid transparent; font-size: 13px; font-weight: 550; text-decoration: none; text-align: center; line-height: 1.5; }
.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: inset 0 1px 0 #ffffff12, 0 2px 2px #314f9810; }
.primary:disabled { background: #e6e9ec; border-color: #d8dfe4; color: #69757e; opacity: 1; box-shadow: none; }
.secondary { background: white; color: var(--blue); border-color: #cdd6e8; }
#first-thirty { font-size: 11px; color: #4f6174; min-height: 35px; padding-bottom: 0; }
.export-status { font-size: 11px; line-height: 1.5; color: var(--success); max-width: 220px; margin: 8px auto 0; }
.export-status:empty { display: none; }
.export-status.error { color: #894b29; }
.under-workspace { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 1px 24px; }
.under-workspace p { font-size: 11px; color: #6a7470; line-height: 1.7; }
.under-workspace .text-button { font-size: 11px; color: #536775; padding: 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e1e3dc; padding-top: 18px; padding-bottom: 22px; }
footer > div { display: flex; align-items: center; gap: 16px; }
footer a { font-size: 10px; color: #616e73; text-decoration: none; }
footer a:first-child { color: #47565e; }
.footer-divider { color: #a9b0a6; }
footer p { font-size: 9px; line-height: 1.6; color: #707973; }
dialog { width: calc(100% - 32px); max-width: 464px; max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #d4d9d0; border-radius: 13px; padding: 29px; color: var(--ink); background: #fffefa; box-shadow: 0 28px 100px #202b3640; }
dialog::backdrop { background: #26323e69; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.dialog-top .eyebrow { color: #697467; font-size: 9px; letter-spacing: 1.1px; }
dialog h2 { font-family: DMSerif, Georgia, serif; font-size: 31px; font-weight: 400; line-height: 1.15; letter-spacing: -.6px; }
dialog p { font-size: 13px; line-height: 1.7; color: #5f6c70; margin: 14px 0; }
dialog .primary, dialog .secondary { margin-top: 14px; }
.dialog-intro { margin-bottom: 23px; }
.plan { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border: 1px solid #d9dfd6; border-radius: 8px; padding: 18px; margin-top: 13px; }
.plan h3 { font-size: 14px; font-weight: 550; }
.plan p { font-size: 12px; margin: 5px 0 0; }
.plan > strong { font-size: 26px; font-weight: 450; line-height: 1.1; letter-spacing: -.7px; }
.plan > strong > span { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.plan-paid { background: #f0f4fc; border-color: #c6d2eb; flex-wrap: wrap; }
.plan ul { width: 100%; padding-left: 16px; margin: 0; font-size: 12px; line-height: 2; color: #526888; }
#checkout-state { font-size: 11px; text-align: center; }
.purchase-price { display: flex; align-items: center; gap: 18px; margin-top: 23px; }
.purchase-price > strong { font-size: 48px; line-height: 1.2; font-weight: 450; letter-spacing: -2px; }
.purchase-price > span { font-size: 12px; line-height: 1.8; color: #627388; }
p.purchase-prep { background: #f0f3f8; padding: 12px 14px; border-radius: 6px; font-size: 12px; }
#purchase-status:not(:empty) { border-left: 2px solid #94a9cc; padding-left: 13px; }
.restore { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.restore summary, .help-detail summary { cursor: pointer; font-size: 13px; padding: 5px 0; }
.restore label { margin-top: 13px; }
.danger { color: #93532d; }
p.refund-note { font-size: 11px; }
.help-steps { list-style: none; padding: 0; margin: 28px 0 20px; counter-reset: printstep; }
.help-steps li { position: relative; padding: 0 0 20px 36px; counter-increment: printstep; }
.help-steps li::before { content: counter(printstep); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 1px solid #d2d8dd; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #526584; }
.help-steps strong { font-size: 14px; font-weight: 550; }
.help-steps p { margin: 6px 0 0; font-size: 12px; }
.help-detail { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.help-detail p { font-size: 12px; }
.skip { position: absolute; top: -60px; left: 20px; background: white; padding: 12px; z-index: 5; }
.skip:focus { top: 10px; }
.legal { max-width: 800px; padding-top: 48px; padding-bottom: 48px; }
.legal h1 { font-size: 40px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p { font-size: 15px; line-height: 1.8; margin-top: 14px; }
@media (max-width: 1150px) {
  .topbar, main, footer { padding-left: 28px; padding-right: 28px; }
  .workspace { grid-template-columns: 290px minmax(0,1fr); }
  .controls { padding-left: 20px; padding-right: 20px; }
  .preview-stage { grid-template-columns: minmax(0,1fr) 220px; gap: 22px; padding-left: 24px; padding-right: 24px; }
  .intro { flex-wrap: wrap; row-gap: 12px; }
  .intro-note { display: flex; padding-top: 0; }
  .export-card { padding-left: 23px; padding-right: 23px; gap: 16px; }
  .export-copy > p:last-child { font-size: 11px; }
  .export-actions { min-width: 174px; }
  footer p { max-width: 240px; text-align: right; }
}
@media (max-width: 940px) {
  .workspace { grid-template-columns: 280px minmax(0,1fr); }
  .preview-stage { grid-template-columns: 1fr; gap: 18px; }
  .sheet-area { max-width: 275px; }
  .label-inspector { max-width: 275px; width: 100%; margin: 0 0 10px; justify-self: center; }
  .inspector-hint, .print-tip { display: none; }
  .export-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .export-empty { display: none; }
  .export-copy > p:last-child { max-width: none; font-size: 12px; }
  .under-workspace { align-items: flex-start; }
}
@media (max-width: 680px) {
  .topbar, main, footer { padding-left: 20px; padding-right: 20px; }
  .topbar { height: 68px; gap: 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { display: none; }
  .topbar nav { gap: 14px; }
  .topbar #manage { padding: 0; border: 0; font-size: 0; }
  .topbar #manage::after { content: 'Purchase'; font-size: 11px; }
  .topbar .text-button { font-size: 11px; }
  .topbar #open-help { font-size: 0; }
  .topbar #open-help::after { content: 'Help'; font-size: 11px; }
  .intro { display: block; padding: 17px 0 24px; }
  .intro .eyebrow { font-size: 8px; margin-bottom: 11px; }
  h1 { font-size: 38px; letter-spacing: -.8px; max-width: 440px; }
  .intro p:not(.eyebrow) { font-size: 13px; margin-top: 12px; max-width: 350px; }
  .intro-note { display: flex; padding-top: 13px; font-size: 11px; gap: 7px; line-height: 1.5; }
  .intro-note strong { font-size: 11px; margin-right: 6px; }
  .intro-note br { display: none; }
  .intro-note span:last-child { font-size: 0; }
  .status-dot { margin-top: 5px; }
  .workspace { display: flex; flex-direction: column; border-radius: 10px; }
  .controls { padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dropzone { padding-top: 19px; padding-bottom: 16px; }
  .file-icon { width: 59px; height: 46px; margin-bottom: 12px; }
  .file-limit { font-size: 11px; }
  .control-section + .control-section { padding-top: 19px; margin-top: 19px; }
  .privacy-note { padding-top: 18px; }
  .privacy-note p { font-size: 11px; }
  .workspace[data-loaded=true] .controls { padding-bottom: 17px; }
  .workspace[data-loaded=true] .import-card .step-heading { margin-bottom: 12px; }
  .workspace[data-loaded=true] .privacy-note { display: none; }
  .mapping label { grid-template-columns: 90px minmax(0,1fr); font-size: 12px; }
  input, select, textarea, .mapping select { font-size: 16px; min-height: 44px; }
  .settings summary { min-height: 40px; }
  .preview-toolbar { padding: 0 22px; height: 51px; }
  .paper-badge span { display: none; }
  .back-to-list { display: block; font-size: 11px; color: var(--blue); min-height: 40px; }
  .workspace[data-loaded=true] .paper-badge { display: none; }
  #preview-title, #mapping-card, #review, #workspace { scroll-margin-top: 20px; }
  .preview-stage { grid-template-columns: 1fr; padding: 22px 25px 10px; gap: 17px; min-height: 0; }
  .preview-stage[data-show-sheet=false] .sheet-area { display: none; }
  .sheet-area, .label-inspector { max-width: 350px; }
  .label-inspector { order: -2; margin: 0; }
  .sheet-toggle { display: block; order: -1; min-height: 40px; color: var(--blue); font-size: 12px; }
  .inspector-controls button { width: 40px; height: 40px; }
  .inspector-controls > p { font-size: 12px; }
  #label-detail { min-height: 90px; }
  .label-measure { padding-top: 9px; padding-bottom: 9px; }
  .export-card { padding: 20px 22px; gap: 16px; }
  .primary, .secondary { min-height: 46px; }
  #first-thirty { min-height: 40px; font-size: 12px; }
  .under-workspace { flex-direction: column; align-items: center; gap: 3px; text-align: center; padding-top: 15px; }
  .under-workspace p, .under-workspace .text-button { font-size: 11px; }
  footer { flex-direction: column; align-items: flex-start; gap: 13px; }
  footer > div { gap: 14px; }
  footer p { max-width: none; text-align: left; }
  dialog { padding: 24px; }
  dialog h2 { font-size: 29px; }
}
@media (max-width: 360px) {
  .topbar, main, footer { padding-left: 14px; padding-right: 14px; }
  .topbar nav { gap: 10px; }
  .brand { font-size: 17px; }
  h1 { font-size: 35px; }
  .controls { padding: 20px; }
  .preview-stage { padding-left: 21px; padding-right: 21px; }
  .export-card { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .dropzone, .upload-cta { transition: background-color .16s, border-color .16s, box-shadow .16s; }
  .primary:hover:not(:disabled), .dropzone:hover .upload-cta { background: #244181; border-color: #244181; }
  .primary:active:not(:disabled) { transform: translateY(1px); }
  .secondary:hover { background: var(--blue-light); }
  .label-proof { animation: settle .22s ease-out; }
  @keyframes settle { from { opacity: .7; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
}

/* Small, real print proofs; native radio controls retain keyboard semantics. */
.style-picker { margin: 0; padding: 16px 26px 12px; border: 0; border-bottom: 1px solid #dce0d7; min-width: 0; background: #fafbf8; }
.style-picker legend { float: left; width: 100%; padding: 0 0 10px; font-size: 12px; font-weight: 600; }
.style-picker legend span { float: right; color: #49735c; font-size: 10px; font-weight: 500; }
.style-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; clear: both; }
.style-choice { position: relative; display: grid; gap: 4px; margin: 0; padding: 8px 10px 7px; background: white; border: 1px solid #d9ded6; border-radius: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.style-choice svg { display: block; width: 100%; height: 44px; }
.style-choice span { font-size: 11px; font-weight: 500; text-align: center; }
.style-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-choice:has(input:checked) { border-color: #35559c; box-shadow: 0 0 0 1px #35559c; background: #f3f6fe; }
.style-choice:has(input:checked) span { color: #294880; }
.style-choice:has(input:focus-visible) { outline: 3px solid #9eafe0; outline-offset: 3px; }
.style-choice:hover { border-color: #8194bc; }
.style-note { margin: 9px 0 0; color: #59645d; font-size: 11px; }
@media (max-width: 680px) {
  .style-picker { padding: 16px 22px 12px; }
  .style-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .style-choice svg { height: 42px; }
}
