:root{color:#203247;font-synthesis:none;text-rendering:optimizelegibility;--bg:#f2f5f6;--paper:#fff;--paper-muted:#f8fafb;--ink:#203247;--muted:#5d6b77;--line:#d9e1e5;--accent:#286c56;--accent-ink:#fff;--accent-soft:#e6f1ec;--danger:#a3453a;--shadow:0 8px 26px #172a360b;background:#f2f5f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#141e2a;--paper:#1d2b39;--paper-muted:#243443;--ink:#e9f0f4;--muted:#a8b8c3;--line:#394b5a;--accent:#9bd4bd;--accent-ink:#14231e;--accent-soft:#29453d;--danger:#f19a8e;--shadow:0 10px 28px #00000029}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:8px 12px;font-size:12px;transition:background .12s,border-color .12s,transform .12s;display:inline-flex}button:hover:not(:disabled){border-color:var(--accent)}a{color:var(--accent)}svg{flex-shrink:0}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,.drawing-area:focus-visible{outline:3px solid color-mix(in srgb, var(--accent), transparent 42%);outline-offset:2px}input:not([type=checkbox]),textarea,select{border:1px solid var(--line);background:var(--paper-muted);width:100%;color:var(--ink);border-radius:6px;padding:9px 10px}textarea{resize:vertical}input[type=checkbox]{accent-color:var(--accent)}:where(.icon-button,.quiet-button) svg{width:17px;height:17px}:where(.export-actions) svg,:where(.app-footer) svg{width:16px;height:16px}:where(.toolbar-actions,.actions,.editor-actions,.section-heading) button svg{width:17px;height:17px}:where(.page-card) button svg{width:16px}.app-shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);background:var(--paper);align-items:center;gap:22px;height:68px;padding:0 max(28px,50% - 640px);display:flex}.brand{color:var(--ink);letter-spacing:-.04em;align-items:center;gap:9px;font-size:17px;font-weight:750;text-decoration:none;display:flex}.brand svg{fill:none;width:34px;height:34px;stroke:var(--accent);stroke-width:2.6px;stroke-linejoin:round;stroke-linecap:round}.brand svg circle{fill:var(--accent);stroke:none}.tagline{color:var(--muted);margin:0;font-size:13px}.top-controls{align-items:center;gap:8px;margin-left:auto;display:flex}.top-controls select{border:1px solid var(--line);background:var(--paper-muted);border-radius:7px;padding:7px 26px 7px 9px;font-size:12px}.icon-button,.quiet-button{border:1px solid var(--line);background:0 0;border-radius:7px;align-items:center;gap:7px;padding:7px 9px;display:inline-flex}.loading{text-align:center;color:var(--muted);padding:15vh 28px}main{max-width:1280px;margin:0 auto;padding:0 28px 36px}.intro{justify-content:space-between;align-items:center;padding:36px 0 22px;display:flex}.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-size:10px;font-weight:750}.intro h1{letter-spacing:-.04em;margin:2px 0 0;font-size:23px}.intro p{color:var(--muted);margin:0;font-size:13px}.sample-button,.primary{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:7px;align-items:center;gap:8px;padding:9px 13px;font-weight:650;display:inline-flex}.sample-button{background:var(--paper);color:var(--ink);border-color:var(--line)}.specimen-hero{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr);display:grid;overflow:hidden}.specimen-side{min-width:0;padding:20px 24px 14px}.hero-label,.hero-foot{color:var(--muted);justify-content:space-between;align-items:center;font-size:11px;display:flex}.hero-label{font-weight:650}.live-dot{background:var(--accent);border-radius:50%;width:7px;height:7px}.hero-copy{letter-spacing:.015em;overflow-wrap:anywhere;min-height:130px;max-height:220px;margin:18px 0 17px;font-family:ui-serif,Georgia,serif;font-size:clamp(56px,7vw,96px);line-height:1.45;overflow:auto}.hero-foot{border-top:1px solid var(--line);padding-top:10px}.hero-tools{background:var(--paper-muted);border-left:1px solid var(--line);flex-direction:column;gap:8px;padding:17px 19px;display:flex}.hero-tools label{color:var(--muted);font-size:11px;font-weight:650}.hero-tools textarea{resize:vertical;min-height:60px}.specimen-download{align-self:flex-start}.preview-diagnostics{max-height:40px;color:var(--muted);font-size:10px;overflow:auto}.quiet-button{justify-content:center;margin-top:auto;font-size:12px}.stage-nav{border-bottom:1px solid var(--line);gap:4px;margin:22px 0 16px;display:flex}.stage-nav button{color:var(--muted);background:0 0;border:0;align-items:center;gap:8px;padding:12px 16px;font-weight:630;display:flex;position:relative}.stage-nav button.selected{color:var(--accent)}.stage-nav button.selected:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:12px;right:12px}.panel{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:21px}.section-heading,.editor-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.section-heading h2,.editor-heading h2,.export-panel h2{letter-spacing:-.03em;margin:2px 0 0;font-size:18px}.setup{max-width:760px;margin:0 auto}.setup>label,.scan-controls>label,.settings-grid>label{color:var(--muted);flex-direction:column;gap:6px;margin:14px 0;font-size:12px;font-weight:650;display:flex}.presets{border:0;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;display:flex}.presets legend{color:var(--muted);margin-bottom:8px;padding:0;font-size:12px;font-weight:650}.presets .chip{border-radius:999px;min-height:32px;padding:4px 12px;font-size:12px}.analysis{color:var(--muted);flex-wrap:wrap;gap:14px;margin:13px 0;font-size:12px;display:flex}.bad{color:var(--danger)}.sample-disclosure{color:var(--muted);margin-top:18px;font-size:12px}.toolbar{justify-content:space-between;align-items:center;margin:12px 0;display:flex}.project-label{align-items:center;gap:10px;font-weight:700;display:flex}.project-label small{color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 6px;font:11px ui-monospace,monospace}.toolbar-actions,.editor-actions,.actions,.export-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}:where(.toolbar-actions,.actions,.editor-actions,.export-actions)>button:not(.primary){border:1px solid var(--line);background:var(--paper);border-radius:6px;align-items:center;gap:7px;padding:7px 10px;font-size:12px;display:inline-flex}.notice,.save-status{border:1px solid var(--line);background:var(--paper);border-radius:7px;align-items:center;gap:9px;margin:10px 0;padding:9px 12px;font-size:12px;display:flex}.notice{color:var(--accent)}.notice button{background:0 0;border:0;margin-left:auto;font-size:12px}.recovery-notice{flex-wrap:wrap}.recovery-notice span{flex-basis:100%}.save-status{color:var(--accent)}.save-status.error{color:var(--danger)}.save-status button{background:var(--paper);border:1px solid;border-radius:5px;margin-left:auto;padding:5px 9px}.page-stage>p,.instructions{color:var(--muted);font-size:12px}.page-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;margin:17px 0;display:grid}.page-card{background:var(--paper-muted);border:1px solid var(--line);border-radius:8px;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px;display:grid;position:relative}.page-card img{object-fit:cover;border:1px solid var(--line);width:44px;height:62px}.page-card div{flex-direction:column;font-size:11px;display:flex}.page-card small{color:var(--muted)}.page-card button{background:0 0;border:0;padding:3px}.instructions{background:var(--accent-soft);color:var(--ink);border-radius:6px;padding:11px}.scan-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.scan-panel h3{margin:0;font-size:16px}.scan-panel>p{color:var(--muted);font-size:12px}.file-picker{border:1px dashed var(--line);color:var(--accent);cursor:pointer;border-radius:7px;align-items:center;gap:8px;padding:12px;font-weight:650;display:inline-flex}.file-picker input{opacity:0;width:1px;height:1px;position:absolute}.file-picker:focus-within{outline:3px solid color-mix(in srgb, var(--accent), transparent 42%);outline-offset:3px}.scan-workspace{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;margin-top:18px;display:grid}.scan-preview{max-width:650px;margin:auto;position:relative}.scan-preview img{object-fit:contain;width:100%;max-height:720px;display:block}.scan-preview svg{pointer-events:none;touch-action:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.scan-preview polygon{fill:#286c5614;stroke:var(--accent);stroke-width:2px}.corner-handle{pointer-events:all;fill:#0000;stroke:none;cursor:grab;touch-action:none}.corner-marker{pointer-events:none;fill:var(--accent);stroke:var(--paper);stroke-width:6px}.corner-handle:active{cursor:grabbing}.corner-handle:focus-visible{stroke:var(--ink);stroke-width:2px;vector-effect:non-scaling-stroke}.scan-controls{border:1px solid var(--line);background:var(--paper-muted);border-radius:7px;padding:12px}.draft-item{gap:4px;min-width:0;display:flex}.draft-item button:first-child{overflow-wrap:anywhere;min-width:0}.scan-controls>label{margin:9px 0}.scan-controls small{color:var(--muted);font-size:10px}fieldset{border:1px solid var(--line);border-radius:6px;margin:12px 0;padding:8px}.corner-input{grid-template-columns:22px 1fr 1fr;align-items:center;gap:6px;margin:4px 0;display:grid}.corner-input input{padding:5px}.corner-input span{color:var(--accent);font-weight:700}.scan-controls>label.confirm{flex-direction:row;align-items:start;display:flex}.workshop-layout{grid-template-columns:275px minmax(0,1fr);gap:14px;display:grid}.glyph-browser{align-self:start;padding:16px}.count-pill{background:var(--accent-soft);color:var(--accent);border-radius:20px;padding:3px 8px;font-size:11px}.review-progress{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;display:flex}.review-progress p{margin:0}.review-progress .review-done{color:var(--accent)}.review-progress button{padding:4px 8px;font-size:12px}.glyph-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-height:420px;display:grid;overflow:auto}.glyph-tile{border:1px solid var(--line);background:var(--paper-muted);border-radius:5px;flex-direction:column;justify-content:center;align-items:center;height:52px;display:flex;position:relative}.glyph-tile span{font-size:20px;line-height:1}.glyph-tile small{color:var(--muted);height:12px;font-size:9px}.glyph-tile.active{outline:2px solid var(--accent);outline-offset:-2px}.glyph-tile.done{background:color-mix(in srgb, var(--accent-soft), var(--paper) 45%)}.glyph-tile.missing{color:var(--muted)}.draw-launch{border:1px dashed var(--accent);width:100%;color:var(--accent);background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:8px;margin-top:12px;padding:9px;display:flex}.editor-column{min-width:0}.editor{padding:18px}.editor-heading{margin-bottom:14px}.editor-actions button{padding:6px 8px;font-size:11px}.source-outline{border:1px solid var(--line);border-radius:7px;grid-template-columns:1fr 1fr;display:grid;overflow:hidden}.glyph-source,.outline-wrap{background:var(--paper-muted);min-width:0;padding:12px}.glyph-source{border-right:1px solid var(--line)}.glyph-source>div,.outline-wrap>div{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;justify-content:space-between;align-items:center;font-size:10px;font-weight:700;display:flex}.glyph-source small,.outline-wrap small{text-transform:none;letter-spacing:0;font-weight:500}.glyph-source img{object-fit:contain;image-rendering:auto;width:100%;height:220px;margin-top:8px;display:block}.outline-wrap svg{background:#fff;border:1px solid #e2e7ea;width:100%;height:220px;margin-top:8px}.outline-wrap line{stroke:#9db0bd;stroke-width:1px;stroke-dasharray:6 4}.outline-wrap path{fill:#203247;fill-rule:evenodd;stroke:#203247;stroke-width:.003px}.empty-editor{min-height:180px;color:var(--muted);justify-content:center;align-items:center;gap:12px;display:flex}.empty-editor button{border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:6px}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;margin-top:15px;display:grid}.settings-grid>label{margin:0}.settings-grid input{padding:7px}.crop-settings{grid-column:1/-1;grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.crop-settings label{color:var(--muted);flex-direction:column;gap:4px;font-size:10px;display:flex}.drawing-area{flex-direction:column;align-items:center;gap:8px;display:flex}.drawing-area p{color:var(--muted);margin:0;font-size:12px}.draw-tools{flex-wrap:wrap;justify-content:center;gap:6px;max-width:100%;display:flex}.draw-tools button{border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:5px 8px}.drawing-area canvas{aspect-ratio:1;border:1px solid var(--line);touch-action:none;background-color:#fff;background-image:linear-gradient(#e6ecef 1px,#0000 1px),linear-gradient(90deg,#e6ecef 1px,#0000 1px);background-size:32px 32px;width:min(100%,360px)}.spacing-panel{justify-content:space-between;align-items:flex-end;gap:16px;margin-top:14px;display:flex}.spacing-panel label{max-width:180px;margin-top:6px;display:block}.spacing-panel small{color:var(--muted);margin-top:6px;display:block}.export-panel{justify-content:space-between;align-items:center;gap:16px;margin-top:14px;display:flex}.export-panel p{color:var(--muted);margin:4px 0 0;font-size:11px}.export-actions{justify-content:flex-end}.partial{align-items:center;gap:5px;font-size:11px;display:flex}.app-footer{color:var(--muted);justify-content:space-between;align-items:center;padding:18px 3px;font-size:11px;display:flex}.app-footer button{color:var(--accent);background:0 0;border:0;text-decoration:underline}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=800px){main{padding:0 16px 28px}.topbar{padding:0 16px}.tagline{display:none}.specimen-hero{grid-template-columns:1fr}.hero-tools{border-left:0;border-top:1px solid var(--line)}.workshop-layout{grid-template-columns:1fr}.glyph-grid{grid-template-columns:repeat(10,minmax(0,1fr));max-height:210px}.scan-workspace{grid-template-columns:1fr}.scan-controls{order:-1}.toolbar{flex-direction:column;align-items:flex-start;gap:8px}.toolbar-actions{width:100%}.toolbar-actions button{flex:1;justify-content:center}.editor-heading{align-items:flex-start;gap:8px}.editor-actions{justify-content:flex-end}.export-panel,.spacing-panel{flex-direction:column;align-items:flex-start}.export-actions{justify-content:flex-start}.page-cards{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}@media (width<=520px){.topbar{height:58px}.brand{font-size:15px}.brand svg{width:29px}.top-controls{gap:4px}.top-controls select{max-width:100px;padding:6px 4px;font-size:10px}.icon-button{display:none}.intro{padding:22px 0 15px}.intro h1{font-size:20px}.sample-button{padding:8px;font-size:11px}.stage-nav{background:var(--bg);z-index:3;justify-content:space-around;margin:12px -16px;padding:0 8px;position:sticky;top:0}.stage-nav button{flex-direction:column;flex:1;justify-content:center;gap:1px;padding:8px 4px;font-size:10px}.stage-nav button.selected:after{left:5px;right:5px}.panel{padding:15px}.source-outline{grid-template-columns:1fr 1fr}.glyph-source,.outline-wrap{padding:8px}.glyph-source img,.outline-wrap svg{height:150px}.editor-heading{flex-direction:column}.editor-actions{justify-content:flex-start;width:100%}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-settings{grid-template-columns:repeat(2,1fr)}.glyph-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.page-cards{grid-template-columns:minmax(0,1fr)}.page-card{grid-template-columns:35px minmax(0,1fr);gap:4px;padding:7px}.page-card button{grid-column:1/-1;justify-content:flex-start}.page-card img{width:35px;height:50px}.toolbar-actions button{padding:6px;font-size:10px}.save-status{align-items:flex-start}.app-footer{flex-direction:column;align-items:flex-start;gap:7px}}@media (prefers-reduced-motion:no-preference){button,.panel,.glyph-tile{transition:background-color .16s,border-color .16s,transform .16s}button:hover:not(:disabled){transform:translateY(-1px)}}.missing-preview{color:var(--danger);background:color-mix(in srgb, var(--danger), transparent 91%);border-bottom:2px solid var(--danger);text-align:center;min-width:.55em;display:inline-block}.draft-queue{flex-wrap:wrap;gap:6px;margin:12px 0;display:flex}.draft-queue button{border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:6px 8px;font-size:11px}.draft-queue button.selected{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#141e2a;--paper:#1d2b39;--paper-muted:#243443;--ink:#e9f0f4;--muted:#a8b8c3;--line:#394b5a;--accent:#9bd4bd;--accent-ink:#14231e;--accent-soft:#29453d;--danger:#f19a8e;--shadow:0 10px 28px #00000029}}fieldset{border:0;min-width:0;margin:0;padding:0}.stage-content:disabled{opacity:.8}.sample-actions{flex-direction:column;align-items:flex-end;gap:8px;display:flex}.intro p{align-items:center;gap:8px;display:flex}.toolbar-actions,.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar-actions button,.actions button,.editor-actions button,.section-heading button{justify-content:center;align-items:center;gap:7px;display:inline-flex}.section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.specimen-placeholder{color:var(--muted);font-family:inherit;font-size:22px;font-weight:500}.hero-copy{white-space:pre-wrap;overflow-wrap:anywhere}.hero-tools .sample-disclosure{margin-bottom:0}.rectified-preview{max-width:320px;margin:18px 0 0}.rectified-preview figcaption{color:var(--muted);margin-bottom:8px;font-size:12px}.rectified-preview canvas{aspect-ratio:1000/1414;border:1px solid var(--line);background:#fff;width:100%;display:block}.preview-state{min-height:1.5em;color:var(--muted);margin:4px 0 0;font-size:12px}.rectified-preview canvas[hidden]{display:none}.scan-job{background:var(--paper);border:1px solid var(--accent);border-radius:8px;align-items:center;gap:16px;padding:16px;display:flex;position:sticky;bottom:16px;box-shadow:0 4px 16px #0002}progress{accent-color:var(--accent);width:min(100%,280px)}.draw-canvas{flex-shrink:0;position:relative}.drawing-viewport{aspect-ratio:1;border:1px solid var(--line);overscroll-behavior:contain;background:#fff;width:min(100%,384px);overflow:auto}.draw-canvas canvas{aspect-ratio:auto;width:100%;height:auto;display:block}.drawing-viewport canvas{cursor:crosshair;border:0}.drawing-viewport.panning canvas{cursor:grab}.drawing-viewport.panning canvas:active{cursor:grabbing}.drawing-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:100%;display:flex}.drawing-controls label{align-items:center;gap:8px;margin:0;font-size:12px;display:flex}.drawing-controls input{width:64px;padding:5px}.drawing-controls output{text-align:center;align-self:center;min-width:42px;font-size:12px}.draw-baseline{pointer-events:none;border-top:1px dashed #a1b6a3;position:absolute;inset-inline:0}.app-footer>span,.app-footer a{align-items:center;gap:7px;display:inline-flex}@media (width<=640px){.sample-actions{align-items:flex-start}.section-heading{flex-direction:column;align-items:flex-start}.scan-job{flex-wrap:wrap;bottom:8px}.toolbar-actions button{min-height:40px}}.zoom-control{color:var(--muted);flex-direction:column;gap:6px;margin:12px 0;font-size:12px;font-weight:650;display:flex}.zoom-control input{width:100%;accent-color:var(--accent)}
