:root { --navy:#0b1220; --navy-2:#101a2b; --navy-3:#142239; --ink:#f4efe5; --muted:#aeb8c5; --dim:#748397; --brass:#d4ad68; --brass-dark:#8f713f; --line:#27364b; --danger:#e27c6f; --green:#8fc1a4; --shadow:0 18px 42px rgba(0,0,0,.22); --radius:12px; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--navy); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--navy); }
body { margin:0; min-width:320px; background:radial-gradient(circle at 60% -20%, #162743 0, var(--navy) 38rem); color:var(--ink); font-size:16px; line-height:1.45; }
button, input, select { font:inherit; }
button { color:inherit; cursor:pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid var(--brass); outline-offset:3px; }
.app-shell { max-width:1600px; margin:0 auto; min-height:100vh; padding:0 28px 28px; }
.topbar { min-height:82px; display:flex; align-items:center; gap:36px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; font-family:Georgia, serif; font-size:25px; letter-spacing:-.03em; white-space:nowrap; }
.brand-mark { width:30px; height:36px; display:grid; place-items:center; background:var(--brass); color:var(--navy); clip-path:polygon(0 0,100% 0,100% 82%,50% 100%,0 82%); font-family:Georgia,serif; font-weight:bold; }
.primary-nav { display:flex; gap:28px; align-self:stretch; margin-left:auto; }
.nav-link { position:relative; border:0; background:none; color:var(--muted); padding:4px 0; font-size:15px; }
.nav-link:hover, .nav-link.active { color:var(--brass); }
.nav-link.active::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:var(--brass); }
.nav-count { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:4px; border-radius:50%; background:var(--navy-3); color:var(--brass); font-size:12px; }
.top-actions { display:flex; align-items:center; gap:9px; margin-left:auto; }
.status-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(143,193,164,.12); }
.top-status { color:var(--dim); font-size:13px; }
.outline-button, .icon-button { border:1px solid var(--line); background:transparent; border-radius:7px; min-height:38px; padding:0 14px; color:var(--ink); font-size:14px; }
.outline-button:hover, .icon-button:hover { border-color:var(--brass-dark); color:var(--brass); }
.icon-button { width:38px; padding:0; display:inline-grid; place-items:center; font-size:20px; }
.text-button { border:0; background:none; color:var(--muted); padding:5px 0; font-size:13px; }
.text-button:hover { color:var(--brass); }
.danger:hover { color:var(--danger); }
main { padding-top:28px; }
.workspace { display:grid; grid-template-columns:260px minmax(0,1fr); gap:28px; min-height:610px; }
.panel-rule { border-right:1px solid var(--line); }
.library-panel { padding:2px 26px 0 0; }
.section-heading, .collection-toolbar, .panel-topline, .inspector-header, .queue-header, .sheet-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.eyebrow { margin:0 0 6px; color:var(--brass); text-transform:uppercase; letter-spacing:.13em; font-size:11px; font-weight:700; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:Georgia, serif; font-weight:500; letter-spacing:-.025em; }
h1 { font-size:27px; margin-bottom:0; }
h2 { font-size:25px; margin-bottom:0; }
h3 { font-size:20px; margin-bottom:8px; }
.count-label, .muted, .helper, .action-note, .library-note, .queue-empty span, .footer { color:var(--muted); }
.count-label { font-size:12px; white-space:nowrap; padding-top:25px; }
.search-wrap { display:flex; align-items:center; gap:8px; margin:25px 0 26px; height:44px; border:1px solid var(--line); border-radius:7px; padding:0 12px; background:rgba(12,21,36,.62); }
.search-wrap:focus-within { border-color:var(--brass-dark); }
.search-icon { color:var(--brass); font-size:23px; transform:rotate(-18deg); }
.search-wrap input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:var(--ink); font-size:14px; }
.search-wrap input::placeholder { color:var(--dim); }
.family-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:var(--dim); text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:700; }
.family-list { display:grid; gap:3px; }
.family-button { display:flex; align-items:center; gap:10px; width:100%; min-height:39px; border:1px solid transparent; border-radius:6px; padding:0 10px; background:transparent; color:var(--muted); text-align:left; font-size:14px; }
.family-button::before { content:""; width:4px; height:22px; border-radius:2px; background:var(--family-color, var(--brass)); opacity:.7; }
.family-button:hover { color:var(--ink); background:rgba(255,255,255,.03); }
.family-button.active { border-color:var(--brass-dark); background:rgba(212,173,104,.08); color:var(--ink); }
.library-note { display:flex; gap:10px; margin-top:34px; padding-top:18px; border-top:1px solid var(--line); font-size:13px; line-height:1.55; }
.library-note p { margin:0; }
.note-icon { color:var(--brass); font-size:17px; }
.collection-panel { min-width:0; }
.collection-toolbar { align-items:flex-end; margin-bottom:22px; }
.collection-toolbar h2 { font-size:24px; }
.toolbar-actions { display:flex; gap:8px; }
.select-compact select, .select-wide select, .number-input { min-height:38px; border:1px solid var(--line); border-radius:6px; background:var(--navy-2); color:var(--ink); padding:0 10px; font-size:14px; }
.select-compact select { max-width:150px; }
.banner-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(142px,1fr)); gap:14px; }
.banner-card { position:relative; min-height:218px; border:1px solid var(--line); border-radius:9px; background:linear-gradient(145deg,rgba(20,34,57,.94),rgba(11,18,32,.92)); padding:10px; text-align:left; transition:border-color .2s,transform .2s,box-shadow .2s; }
.banner-card:hover { transform:translateY(-2px); border-color:var(--brass-dark); box-shadow:var(--shadow); }
.banner-card.selected { border-color:var(--brass); box-shadow:0 0 0 1px var(--brass),var(--shadow); }
.banner-card img { display:block; width:100%; height:142px; object-fit:contain; }
.card-copy { padding:7px 2px 0; }
.card-name { display:block; overflow:hidden; color:var(--ink); font-family:Georgia,serif; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.card-meta { display:block; margin-top:3px; color:var(--dim); font-size:11px; }
.card-chip { position:absolute; right:9px; top:9px; background:rgba(11,18,32,.86); color:var(--brass); border:1px solid var(--brass-dark); border-radius:4px; padding:2px 5px; font-size:10px; }
.empty-state { padding:80px 20px; border:1px dashed var(--line); text-align:center; }
.empty-symbol { display:block; color:var(--brass); font-size:28px; margin-bottom:10px; }
.hidden { display:none !important; }
.workbench { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:28px; margin-top:36px; }
.preview-panel { min-width:0; padding-right:28px; }
.panel-topline { align-items:center; }
.panel-topline h2 { font-size:27px; }
.preview-tools { display:flex; align-items:center; gap:9px; }
.zoom-label { color:var(--dim); font-size:13px; }
.preview-stage { display:flex; align-items:center; justify-content:center; gap:28px; min-height:405px; margin-top:23px; padding:27px 18px; background:radial-gradient(circle at 50% 45%,rgba(36,61,93,.33),rgba(8,15,27,.08) 62%); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.preview-face { flex:1; min-width:0; text-align:center; }
.face-label { display:block; margin-bottom:17px; color:var(--muted); font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.banner-hanger { position:relative; display:flex; align-items:flex-start; justify-content:center; height:318px; }
.banner-hanger img { max-width:100%; height:305px; object-fit:contain; filter:drop-shadow(0 12px 12px rgba(0,0,0,.35)); }
.reverse-wrap { height:305px; overflow:hidden; position:relative; width:min(100%,220px); display:flex; justify-content:center; }
.reverse-wrap img { transform:scaleX(-1); }
.finial { width:8px; height:18px; margin-top:0; background:var(--brass); box-shadow:0 0 0 2px var(--brass-dark); }
.finial.left { border-radius:4px 0 0 4px; }
.finial.right { border-radius:0 4px 4px 0; }
.fold-arrow { color:var(--brass); font-size:27px; padding-top:35px; }
.geometry-readout { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; color:var(--dim); font-size:12px; margin-top:17px; }
.geometry-readout span { display:inline-flex; align-items:center; gap:6px; }
.legend-swatch { width:9px; height:9px; display:inline-block; border-radius:2px; }
.front-swatch { background:#b64b44; }.gutter-swatch { background:var(--brass); }.reverse-swatch { background:#3c6885; }
.inspector-panel { padding-left:0; }
.inspector-header { align-items:center; margin-bottom:21px; }
.ready-label { display:inline-flex; align-items:center; gap:7px; color:var(--green); font-size:12px; }
.control-group { border:0; border-top:1px solid var(--line); padding:18px 0 4px; margin:0; }
.control-group legend { width:100%; margin-bottom:13px; padding:0; color:var(--ink); font-family:Georgia,serif; font-size:18px; }
.unit-label { float:right; color:var(--dim); font-family:inherit; font-size:12px; font-weight:400; }
.dimension-row { display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; margin:9px 0; color:var(--muted); font-size:14px; }
.number-input { display:flex; align-items:center; gap:7px; padding-right:8px; }
.number-input input { min-width:0; flex:1; border:0; outline:0; color:var(--ink); background:transparent; text-align:right; }
.number-input span { color:var(--dim); font-size:12px; }
.toggle-line { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:13px; margin:16px 0 8px; cursor:pointer; }
.toggle-line input { position:absolute; opacity:0; }
.toggle-ui { width:29px; height:17px; padding:2px; border-radius:15px; background:var(--line); transition:background .2s; }
.toggle-ui::before { content:""; display:block; width:13px; height:13px; border-radius:50%; background:var(--muted); transition:transform .2s,background .2s; }
.toggle-line input:checked + .toggle-ui { background:var(--brass-dark); }.toggle-line input:checked + .toggle-ui::before { transform:translateX(12px); background:var(--ink); }
.info-mark { display:inline-grid; place-items:center; width:15px; height:15px; border:1px solid var(--dim); border-radius:50%; color:var(--dim); font:11px Georgia,serif; }
.warning { color:var(--danger); margin:0 0 7px 38px; font-size:12px; }
.select-wide { display:block; }.select-wide select { width:100%; }
.entry-path { margin-top:12px; }.field-label { display:block; margin-bottom:6px; color:var(--muted); font-size:12px; }.select-native { width:100%; min-height:38px; border:1px solid var(--line); border-radius:6px; background:var(--navy-2); color:var(--ink); padding:0 10px; font-size:14px; }.resolved-sizing { display:flex; align-items:flex-start; gap:8px; margin-top:12px; padding:9px 10px; border-left:2px solid var(--brass); background:rgba(212,173,104,.07); color:var(--brass); font-size:12px; line-height:1.4; }.resolved-sizing .status-dot { margin-top:5px; flex:none; }.helper { margin:8px 0 7px; font-size:12px; line-height:1.45; }
.range-row { display:flex; align-items:center; gap:12px; }.range-row input { accent-color:var(--brass); width:100%; }.range-row output { min-width:50px; color:var(--brass); text-align:right; font-size:13px; }
.range-scale { display:flex; justify-content:space-between; color:var(--dim); font-size:11px; margin-top:1px; }
.primary-action { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; width:100%; border:1px solid var(--brass); border-radius:6px; background:var(--brass); color:var(--navy); font-weight:700; font-size:15px; margin-top:19px; }.primary-action:hover { background:#e0bd78; }.primary-action.small { min-height:40px; margin-top:0; font-size:13px; }
.action-note { margin:9px 0; font-size:12px; line-height:1.5; }
.queue-panel { margin-top:38px; border-top:1px solid var(--line); padding-top:23px; }
.queue-header { align-items:center; }.queue-header h2 { font-size:26px; }.queue-header h2 span { color:var(--brass); font:15px Inter,sans-serif; vertical-align:middle; }
.queue-controls { display:flex; align-items:center; gap:9px; }.queue-body { display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:28px; margin-top:20px; }
.queue-list { min-height:120px; display:grid; gap:10px; }.queue-empty { display:flex; align-items:center; gap:10px; min-height:100px; border:1px dashed var(--line); padding:18px; }.queue-empty .empty-symbol { margin:0; }.queue-empty p { margin:0; font-family:Georgia,serif; font-size:18px; }.queue-empty span:last-child { font-size:13px; }
.queue-item { display:grid; grid-template-columns:52px minmax(0,1fr) auto auto; gap:14px; align-items:center; min-height:112px; border:1px solid var(--line); background:rgba(16,26,43,.8); border-radius:7px; padding:10px 13px; }.queue-item img { width:44px; height:88px; object-fit:contain; }.queue-item h3 { font-size:17px; margin-bottom:3px; }.queue-item p { margin:0; color:var(--muted); font-size:12px; }.queue-controls-inline { display:flex; align-items:center; gap:7px; }.queue-controls-inline button { width:27px; height:27px; padding:0; border:1px solid var(--line); background:transparent; color:var(--muted); }.queue-controls-inline button[data-queue-action="edit"], .queue-controls-inline button[data-queue-action="duplicate"] { width:auto; padding:0 6px; font-size:11px; }.queue-controls-inline button:hover { color:var(--brass); border-color:var(--brass-dark); }.queue-quantity { min-width:24px; text-align:center; color:var(--ink); }.remove-button { border:0; background:none; color:var(--dim); font-size:19px; }.remove-button:hover { color:var(--danger); }
.queue-summary { border-left:1px solid var(--line); padding-left:20px; }.summary-line { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; margin-bottom:10px; }.summary-line strong { color:var(--ink); font-weight:500; }.summary-divider { height:1px; background:var(--line); margin:18px 0; }.print-note { display:flex; gap:10px; color:var(--muted); font-size:12px; line-height:1.45; }.print-note p { margin:0; }.calibration-mini { width:32px; height:14px; margin-top:4px; flex:none; border-top:2px solid var(--brass); }
.sheet-preview { margin-top:38px; border-top:1px solid var(--line); padding-top:25px; }.sheet-header { align-items:center; }.sheet-actions { display:flex; gap:9px; }.print-instruction { margin:22px 0 18px; padding:12px 16px; border:1px solid var(--brass-dark); background:rgba(212,173,104,.08); color:var(--brass); font-size:14px; }.calibration-line { display:flex; align-items:center; gap:12px; margin-bottom:22px; color:var(--muted); font-size:12px; }.calibration-line span { display:block; width:50mm; max-width:60%; border-top:2px solid var(--brass); }.print-pages { display:grid; gap:24px; }.print-page { position:relative; width:min(100%,620px); min-height:700px; padding:12mm; background:#fbfaf6; color:#19202b; box-shadow:var(--shadow); overflow:auto; }.print-page-label { position:absolute; right:12mm; top:7mm; color:#6a6f77; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }.print-piece { position:absolute; display:flex; align-items:stretch; }.print-piece img { display:block; width:var(--piece-width); height:var(--piece-height); object-fit:fill; }.print-piece .gutter { flex:none; width:var(--gutter); height:var(--piece-height); border-left:1px dashed #9c7d45; border-right:1px dashed #9c7d45; background:repeating-linear-gradient(135deg,rgba(190,153,87,.15) 0,rgba(190,153,87,.15) 1px,transparent 1px,transparent 5px); }.print-piece .reverse { transform:scaleX(-1); }.print-calibration { position:absolute; left:12mm; bottom:18mm; display:flex; align-items:center; gap:7px; color:#6a6f77; font-size:10px; }.print-calibration span { display:block; width:50mm; border-top:1.5px solid #9c7d45; }.print-legend { position:absolute; bottom:8mm; left:12mm; color:#6a6f77; font-size:10px; }
.footer { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); margin-top:42px; padding-top:17px; font-size:11px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:1050px) { .app-shell { padding-left:18px; padding-right:18px; }.topbar { gap:20px; }.top-actions .top-status { display:none; }.workspace { grid-template-columns:220px minmax(0,1fr); gap:18px; }.library-panel { padding-right:18px; }.workbench { grid-template-columns:minmax(0,1fr) 320px; gap:18px; }.preview-panel { padding-right:18px; }.preview-stage { gap:12px; }.banner-grid { grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); } }
@media (max-width:780px) { .app-shell { padding:0 14px 22px; }.topbar { min-height:70px; flex-wrap:wrap; gap:12px; padding:12px 0 0; }.brand { font-size:22px; }.primary-nav { order:3; width:100%; height:38px; gap:21px; margin:0; }.top-actions { margin-left:auto; }.top-actions .outline-button { min-height:34px; padding:0 9px; font-size:12px; }.workspace, .workbench { display:block; min-height:0; }.library-panel { border-right:0; padding:0 0 22px; border-bottom:1px solid var(--line); }.family-list { display:flex; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }.family-button { width:auto; flex:none; min-height:34px; font-size:12px; padding:0 9px; }.family-button::before { width:3px; height:17px; }.library-note { display:none; }.collection-panel { padding-top:24px; }.collection-toolbar { align-items:center; }.collection-toolbar h2 { font-size:21px; }.select-compact select { max-width:132px; }.banner-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.banner-card { min-height:204px; }.banner-card img { height:134px; }.workbench { margin-top:28px; }.preview-panel { border-right:0; padding:0 0 24px; }.preview-stage { min-height:285px; gap:4px; padding:20px 4px; }.banner-hanger, .banner-hanger img, .reverse-wrap { height:220px; }.banner-hanger img { height:210px; }.fold-arrow { font-size:20px; }.face-label { font-size:10px; margin-bottom:8px; }.finial { width:5px; height:12px; }.inspector-panel { padding-top:20px; border-top:1px solid var(--line); }.queue-panel { margin-top:27px; }.queue-header { align-items:flex-start; flex-direction:column; }.queue-controls { width:100%; flex-wrap:wrap; }.queue-controls .outline-button { flex:1; }.queue-body { display:block; }.queue-summary { border-left:0; border-top:1px solid var(--line); margin-top:17px; padding:17px 0 0; }.footer { flex-direction:column; }.sheet-header { flex-direction:column; align-items:flex-start; }.print-page { transform-origin:top left; min-height:560px; } }
@media print { body { background:#fff; color:#111; }.app-shell { max-width:none; padding:0; }.topbar, main > :not(.sheet-preview), .footer, .sheet-header, .print-instruction, .calibration-line { display:none !important; }.sheet-preview { display:block !important; margin:0; padding:0; border:0; }.print-pages { display:block; }.print-page { width:var(--page-width); height:var(--page-height); min-height:var(--page-height); padding:12mm; margin:0; box-shadow:none; page-break-after:always; overflow:hidden; }.print-page:last-child { page-break-after:auto; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }

/* 0001 banner-first correction: let the collection lead, then disclose the bench. */
.promise { color:var(--muted); font-size:12px; letter-spacing:.02em; white-space:nowrap; }
.workspace { display:block; min-height:0; }
.library-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; padding:17px 0 31px; border-bottom:1px solid var(--line); }
.library-hero h1 { max-width:760px; font-size:48px; line-height:1.02; }
.library-hero h1 span { color:var(--brass); }
.hero-copy { max-width:550px; margin:16px 0 0; color:var(--muted); font-size:17px; }
.hero-proof { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:6px 10px; min-width:240px; padding:14px 0 2px 20px; border-left:1px solid var(--brass-dark); color:var(--muted); font-size:12px; line-height:1.35; }
.hero-proof-mark { grid-row:span 2; color:var(--brass); font:46px/1 Georgia,serif; }
.hero-proof-rule { grid-column:2; width:100%; height:1px; margin:2px 0; background:var(--line); }
.library-panel { padding:24px 0 0; border-right:0; }
.library-switch-wrap { margin-bottom:22px; }
.library-switch-wrap .eyebrow { margin-bottom:8px; }
.library-filter-row { display:grid; grid-template-columns:minmax(220px,280px) minmax(0,1fr); grid-template-areas:"search heading" "search families"; gap:7px 22px; align-items:center; margin-bottom:25px; }
.library-filter-row .search-wrap { grid-area:search; margin:0; height:48px; }
.library-filter-row .family-heading { grid-area:heading; margin:0; }
.library-filter-row .family-list { grid-area:families; display:flex; gap:6px; overflow-x:auto; padding:0 0 3px; scrollbar-width:thin; }
.library-filter-row .family-button { flex:0 0 auto; width:auto; min-height:32px; border:1px solid var(--line); border-radius:999px; padding:0 11px; font-size:12px; }
.library-filter-row .family-button::before { width:5px; height:12px; }
.library-filter-row .family-button.active { border-color:var(--brass); background:rgba(212,173,104,.1); }
.library-switch { display:flex; gap:8px; margin:0 0 22px; overflow-x:auto; }
.library-tab { min-height:36px; padding:0 13px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--muted); font-size:12px; white-space:nowrap; cursor:pointer; }
.library-tab span { margin-left:5px; color:var(--dim); }
.library-tab.active { border-color:var(--brass); background:rgba(212,173,104,.1); color:var(--ink); }
.collection-toolbar { align-items:center; margin-bottom:18px; }
.collection-tools { display:flex; align-items:center; gap:11px; }
.collection-tools .count-label { padding-top:0; }
.collection-panel { min-width:0; }
.banner-grid { grid-template-columns:repeat(auto-fill,minmax(178px,1fr)); gap:16px; }
.banner-card { min-height:292px; padding:12px; border-radius:10px; }
.banner-card img { height:218px; }
.card-copy { padding-top:9px; }
.card-name { font-size:16px; }
.card-meta { font-size:12px; }
.card-chip { top:11px; right:11px; padding:3px 6px; font-size:10px; }
.workbench { margin-top:60px; }
.preview-panel { padding-right:34px; }
.preview-stage { min-height:430px; margin-top:20px; }
.inspector-panel { padding:19px 0 0; }
.primary-sizing { padding-top:0; border-top:0; }
.quantity-row { display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; margin:18px 0 4px; color:var(--muted); font-size:14px; }
.advanced-options { margin-top:22px; border-top:1px solid var(--line); }
.advanced-options summary { padding:16px 0; color:var(--ink); cursor:pointer; font-family:Georgia,serif; font-size:16px; list-style-position:inside; }
.advanced-options summary::marker { color:var(--brass); }
.advanced-options[open] summary { color:var(--brass); }
.advanced-content { padding-bottom:4px; }
.advanced-content .control-group:first-child { border-top:0; padding-top:0; }
.advanced-content .control-group { padding-bottom:9px; }
@media (max-width:1050px) {
  .promise { display:none; }
  .library-hero h1 { font-size:42px; }
  .banner-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
  .banner-card { min-height:270px; }
  .banner-card img { height:195px; }
}

/* Craft-proof labels sit just outside the artwork so they remain visible in the browser proof. */
.print-piece .gutter { position:relative; }
.cut-guide-label { position:absolute; left:2mm; top:-5mm; color:#8b6d3c; font-size:8px; font-weight:700; letter-spacing:.12em; z-index:2; }
.fold-label { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) rotate(-90deg); color:#8b6d3c; font-size:7px; font-weight:700; letter-spacing:.08em; }
.print-instruction { line-height:1.55; }
@media print {
  .cut-guide-label, .fold-label { color:#5b4829; }
}
@media (max-width:780px) {
  .library-hero { display:block; padding:9px 0 24px; }
  .library-hero h1 { font-size:36px; }
  .hero-copy { margin-top:12px; font-size:16px; }
  .hero-proof { grid-template-columns:auto 1fr auto 1fr; min-width:0; margin-top:22px; padding:12px 0 0; border-left:0; border-top:1px solid var(--line); }
  .hero-proof-mark { font-size:36px; }
  .hero-proof-rule { grid-column:auto; width:1px; height:30px; margin:0 3px; }
  .library-filter-row { display:block; margin-bottom:22px; }
  .library-filter-row .search-wrap { margin-bottom:15px; }
  .library-filter-row .family-heading { margin-bottom:7px; }
  .library-filter-row .family-list { margin-right:-14px; padding-right:14px; }
  .collection-toolbar { align-items:flex-start; }
  .collection-tools { gap:7px; }
  .collection-tools .count-label { display:none; }
  .banner-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .banner-card { min-height:250px; padding:9px; }
  .banner-card img { height:175px; }
  .card-name { font-size:15px; }
  .card-meta { font-size:11px; }
  .workbench { margin-top:42px; }
  .preview-panel { padding-right:0; }
  .inspector-panel { padding-top:23px; }
  .quantity-row { grid-template-columns:70px 1fr; }
}

/* 0001 condition selector: the finish is a first-class print choice. */
.condition-group { padding-top:0; border-top:0; margin-bottom:3px; }
.condition-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.condition-option { position:relative; display:block; cursor:pointer; }
.condition-option input { position:absolute; opacity:0; }
.condition-option span { display:block; min-height:58px; padding:10px 11px; border:1px solid var(--line); border-radius:7px; background:rgba(16,26,43,.75); }
.condition-option strong { display:block; font-family:Georgia,serif; font-size:15px; font-weight:500; }
.condition-option small { display:block; margin-top:3px; color:var(--dim); font-size:11px; line-height:1.3; }
.condition-option input:checked + span { border-color:var(--brass); box-shadow:0 0 0 1px var(--brass); color:var(--ink); }
.condition-option input:focus-visible + span { outline:3px solid var(--brass); outline-offset:3px; }
.condition-badge { color:var(--green); }
.condition-badge.worn { color:var(--danger); }
.physical-test-action { width:100%; margin-top:12px; }
.physical-piece-label { position:absolute; left:0; top:-4mm; max-width:100%; overflow:hidden; color:#5b4829; font-size:7px; font-weight:700; letter-spacing:.04em; text-overflow:ellipsis; white-space:nowrap; }

/* 0002 live presentation correction: display framing only. Print geometry stays in engine.mjs. */
.banner-card img,
.banner-hanger,
.banner-hanger img,
.reverse-wrap,
.queue-item img { background:#000; }
.banner-grid { grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
.banner-card { min-height:324px; }
.banner-card img { height:246px; padding:12px; object-fit:contain; object-position:center; background:linear-gradient(145deg,#142239,#0b1220); border:1px solid rgba(83,96,112,.45); }
.banner-card[data-form="pennant"] img { padding:8px 6px; }
.banner-card[data-form="horizontal"] img { padding:10px 8px; }
.banner-card[data-form="swallowtail"] img,
.banner-card[data-form="hanging"] img { padding:15px 13px; }
.preview-stage[data-form="pennant"] .banner-hanger { padding:22px 18px; }
.preview-stage[data-form="pennant"] .banner-hanger img,
.preview-stage[data-form="pennant"] .reverse-wrap { height:244px; }
.preview-stage[data-form="horizontal"] .banner-hanger { padding:16px 12px; }
.preview-stage[data-form="horizontal"] .banner-hanger img,
.preview-stage[data-form="horizontal"] .reverse-wrap { height:270px; }
@media (max-width:1050px) {
  .banner-grid { grid-template-columns:repeat(auto-fill,minmax(174px,1fr)); }
  .banner-card { min-height:290px; }
  .banner-card img { height:212px; }
}
@media (max-width:780px) {
  .banner-card { min-height:266px; }
  .banner-card img { height:186px; padding:10px; }
  .banner-card[data-form="pennant"] img { padding:6px 4px; }
}
.diagnostic-piece-label { position:absolute; max-width:75mm; overflow:hidden; color:#5b4829; font-size:6px; font-weight:700; letter-spacing:.02em; text-overflow:ellipsis; white-space:nowrap; }
.registration-mark { position:absolute; width:4mm; height:4mm; transform:translate(-50%,-50%); z-index:3; }.registration-mark::before,.registration-mark::after { content:""; position:absolute; background:#5b4829; }.registration-mark::before { top:50%; left:0; width:100%; height:.2mm; }.registration-mark::after { top:0; left:50%; width:.2mm; height:100%; }

/* 0001 cosmetic fold-guide refinement: preserve the exact gutter width while reducing visual weight. */
.fold-arrow { color:rgba(212,173,104,.72); font-size:22px; }
.print-piece .gutter { position:relative; border:0; background:transparent; }
.print-piece .gutter::before { content:""; position:absolute; top:0; bottom:0; left:50%; border-left:1px dashed rgba(156,125,69,.76); transform:translateX(-.5px); }
.print-cut-guide { position:absolute; top:0; width:var(--piece-width); height:var(--piece-height); overflow:visible; pointer-events:none; z-index:2; }
.print-cut-guide.front { left:0; }
.print-cut-guide.reverse { right:0; }
.print-cut-guide path { fill:none; stroke:rgba(91,72,41,.72); stroke-width:1.1; stroke-dasharray:3 2; vector-effect:non-scaling-stroke; }
.print-piece:not(.duplex-piece) > img:first-of-type { transform:scaleX(-1); }
.print-piece:not(.duplex-piece) > .gutter + img { transform:none; }
.print-piece:not(.duplex-piece) > .print-cut-guide.front { transform:scaleX(-1); transform-origin:center; }
.duplex-piece[data-duplex-side="front"] > .print-cut-guide { left:var(--gutter); }
.duplex-piece[data-duplex-side="reverse"] > .print-cut-guide { left:0; }
@media (max-width:780px) { .fold-arrow { font-size:20px; } }
@media print {
  #physical-preview, #duplex-diagnostic-preview { display:none !important; }
  body[data-print-mode="physical"] #sheet-preview, body[data-print-mode="physical"] #duplex-diagnostic-preview { display:none !important; }
  body[data-print-mode="physical"] #physical-preview { display:block !important; }
  body[data-print-mode="duplex"] #sheet-preview, body[data-print-mode="duplex"] #physical-preview { display:none !important; }
  body[data-print-mode="duplex"] #duplex-diagnostic-preview { display:block !important; }
  .physical-piece-label { color:#392f22; }
}

/* 0002 print-packing correction: the paper page owns all geometry. */
.print-pages { align-items:start; }
.print-page-frame { width:var(--preview-width); height:var(--preview-height); overflow:hidden; }
.print-page { box-sizing:border-box; width:var(--page-width); height:var(--page-height); min-height:0; padding:0; overflow:hidden; transform:scale(var(--preview-scale,.72)); transform-origin:top left; }
@media screen and (max-width:780px) {
  .family-list { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
}
@media screen and (max-width:1050px) {
  .sheet-preview { width:100%; max-width:100%; min-width:0; box-sizing:border-box; overflow-x:auto; overscroll-behavior-inline:contain; }
  .print-pages { width:max-content; min-width:100%; }
}
.print-page-header { position:absolute; left:5mm; top:5mm; max-width:calc(100% - 10mm); color:#392f22; font-size:3mm; font-weight:700; letter-spacing:.04em; white-space:nowrap; }
.print-page-instruction { position:absolute; left:5mm; bottom:5mm; max-width:calc(100% - 10mm); color:#5b4829; font-size:2.5mm; white-space:nowrap; }
.print-calibration { left:5mm; bottom:10mm; font-size:2.5mm; }
.print-calibration span { width:50mm; }
.print-screen-legend { margin:0 0 18px; padding:12px 16px 12px 34px; border:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.5; }
.print-screen-legend li + li { margin-top:4px; }
.print-screen-legend strong { color:var(--brass); }
.physical-piece-label, .diagnostic-piece-label, .print-page-label, .print-legend { display:none !important; }
.print-piece { z-index:1; }
.registration-mark { z-index:2; }
@media print {
  .print-screen-legend, .print-page-header, .print-page-instruction { display:block !important; }
  .print-screen-legend { display:none !important; }
  .print-page-frame { width:var(--page-width); height:var(--page-height); overflow:visible; page-break-after:always; }
  .print-page-frame:last-child { page-break-after:auto; }
  .print-page { transform:none; width:var(--page-width); height:var(--page-height); page-break-after:auto; }
}
