:root{color-scheme:dark;--navy:#303030;--blue:#1677c8;--ink:#f2f2f2;--muted:#c4c4c4;--line:#5c5c5c;--paper:#3a3a3a;--bg:#303030;--soft:#454545;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #8eafff;outline-offset:3px}button{border:0}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}a{color:var(--blue)}.topbar{padding:18px max(24px,calc((100vw - 1160px)/2));background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:20px;white-space:nowrap}.brand-mark{background:#fff;color:var(--navy);border-radius:9px;width:36px;height:36px;display:grid;place-items:center;font-weight:800;font-size:24px}.brand strong{font-weight:750}.privacy-pill{display:flex;gap:8px;align-items:center;color:#d6e3ff;background:#22395b;border:1px solid #496080;border-radius:30px;padding:8px 12px;font-size:14px}.privacy-pill svg{width:18px;height:18px}main{max-width:1208px;margin:auto;padding:32px 24px 18px}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 25px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:0 0 5px}h1{font-size:36px;letter-spacing:-.035em;line-height:1.2;margin:0}h2{font-size:20px;line-height:1.35;margin:0 0 8px;letter-spacing:-.015em}p{margin:0 0 14px}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.tool{display:flex;align-items:center;text-align:left;padding:16px 14px;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);min-height:88px}.tool.active{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:0 4px 12px #14254415}.tool-icon{font-size:28px;line-height:1;color:var(--blue)}.tool.active .tool-icon{color:#91b4ff}.tool strong{font-size:15px;display:block}.tool small{font-size:13px;color:var(--muted);display:block;margin-top:3px}.tool.active small{color:#bbcbe5}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px}.editor,.output-panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:24px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.section-head p{color:var(--muted);font-size:14px;margin:0}.count{white-space:nowrap;color:var(--muted);background:var(--bg);padding:4px 9px;border-radius:7px;font-size:13px}.import-row{display:flex;gap:10px;margin-bottom:20px;align-items:center;justify-content:space-between}.primary{background:var(--blue);color:#fff;border-radius:9px;font-weight:650;padding:12px 18px;min-height:46px}.primary:hover:enabled{background:#1955c6}.secondary{background:var(--soft);color:#2059bf;border:1px solid #c9d9f7;border-radius:9px;padding:10px 12px;font-weight:600;min-height:44px}.quiet{background:transparent;color:var(--muted);padding:10px;min-height:44px;border-radius:8px}.quiet:hover:enabled{background:var(--bg)}.drop-zone{border:1.5px dashed #bac9e0;background:#f8faff;border-radius:12px;min-height:295px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:36px 20px}.drop-zone.drag-over{background:var(--soft);border-color:var(--blue)}.drop-zone svg{width:64px;height:64px;color:#779bd4;margin-bottom:20px}.drop-zone strong{font-size:18px;margin-bottom:8px}.drop-zone p{font-size:15px;color:var(--muted);max-width:330px;margin-bottom:22px}.drop-zone span{font-size:13px;color:var(--muted)}.output-panel .eyebrow{margin-bottom:8px}.output-panel h2{margin-bottom:22px}label{display:block;font-size:14px;font-weight:650;margin:16px 0 7px}input,select{width:100%;color:var(--ink);background:#fff;border:1px solid #c9d2e1;border-radius:8px;padding:11px 10px;min-height:44px;max-width:100%}.hint{font-size:13px;color:var(--muted);line-height:1.5;margin-top:9px;margin-bottom:14px}.export-summary{font-size:14px;color:var(--muted);margin:20px 0 12px}.export-button{width:100%}.local-note{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:12px}.local-note svg{flex:none;color:var(--muted)}.local-note strong{font-size:14px}.local-note p{font-size:13px;color:var(--muted);margin:4px 0 0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}.card.selected{border-color:#6e9bfc;box-shadow:0 0 0 1px #6e9bfc}.card-head{display:flex;justify-content:space-between;gap:4px;align-items:center;padding:8px 9px;font-size:13px}.card-head label{margin:0;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;cursor:pointer}.card-head input{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--blue)}.preview-button{display:block;width:100%;background:#edf1f7;position:relative;height:150px;padding:8px;color:var(--muted);font-size:13px;overflow:hidden}.preview-button canvas,.preview-button img{max-width:100%;max-height:100%;object-fit:contain}.card-caption{font-size:12px;color:var(--muted);padding:8px 9px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-actions{display:flex;justify-content:space-between;gap:3px;padding:5px}.icon-button{background:transparent;border-radius:6px;padding:6px;color:var(--muted);min-width:33px;min-height:40px}.icon-button:hover:enabled{background:var(--soft);color:var(--blue)}.icon-button svg{width:18px;height:18px}.page-controls{background:#f8faff;border-radius:10px;padding:1px 12px 6px;margin-bottom:18px}.range-row{display:flex;gap:8px}.range-row input{min-width:0}.selection-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;margin-top:5px;font-size:13px;color:var(--muted)}.text-button{background:transparent;color:var(--blue);font-size:13px;padding:7px 0;min-height:36px}.error{background:#fff0ef;border:1px solid #edbbb6;color:#9c3228;padding:12px 14px;border-radius:9px;font-size:14px;margin-top:16px}#work-status{color:var(--muted);font-size:14px;margin-top:16px}#work-status:empty{display:none}.results{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.result-heading{display:flex;gap:8px;align-items:center;font-size:15px}.result-heading>span{background:#e6f5ea;color:#1b783c;border-radius:50%;width:24px;text-align:center}.results p{font-size:13px;color:var(--muted);margin:10px 0}.download-link{display:block;overflow-wrap:anywhere;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.full{width:100%;margin-top:10px}.result-warning{color:#906218;background:#fff8e7;border-radius:7px;padding:10px;font-size:13px;margin-top:10px;white-space:pre-line}footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;padding:22px 2px}dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:min(680px,calc(100% - 24px));max-height:85dvh;color:var(--ink);overflow:auto}dialog::backdrop{background:#14254499}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialog-head h2{margin:0}dialog p,dialog li{font-size:15px;line-height:1.6}dialog h3{font-size:16px;margin-top:22px}dialog ol,dialog ul{padding-left:22px}#preview-body{text-align:center}#preview-body canvas,#preview-body img{max-width:100%;height:auto;max-height:66dvh;object-fit:contain}body.busy #cards button,body.busy #cards input,body.busy .page-controls button,body.busy .page-controls input{pointer-events:none;opacity:.55}[hidden]{display:none!important}@media(max-width:1000px){.tools{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:minmax(0,1fr) 290px}.editor,.output-panel{padding:20px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.topbar{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top))}.brand{font-size:17px;gap:8px}.brand-mark{height:32px;width:32px;font-size:22px}.privacy-pill{font-size:12px;padding:7px 9px;gap:5px}.privacy-pill svg{width:15px}main{padding:23px 14px max(18px,env(safe-area-inset-bottom))}.intro{margin-bottom:20px;gap:8px}h1{font-size:30px}.intro .eyebrow{font-size:10px}.intro .quiet{font-size:13px;padding:8px}.tools{gap:8px;margin-bottom:16px}.tool{padding:12px 10px;gap:8px;min-height:82px}.tool strong{font-size:14px}.tool small{font-size:12px}.tool-icon{font-size:23px}.workspace{grid-template-columns:1fr;gap:16px}.editor,.output-panel{padding:18px;border-radius:12px}.section-head{margin-bottom:16px}.section-head h2{font-size:19px}.section-head p{font-size:13px}.count{font-size:12px}.import-row{margin-bottom:16px}.primary{padding:11px 14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preview-button{height:152px}.drop-zone{min-height:250px;padding:25px 15px}.drop-zone strong{font-size:17px}.drop-zone p{font-size:14px}.output-panel h2{margin-bottom:15px}.output-panel label{margin-top:14px}.output-panel .hint{font-size:13px}.local-note{margin-top:18px;padding-top:16px}footer{flex-direction:column;padding-top:18px}dialog{padding:18px}.range-row .secondary{font-size:14px;padding:8px 9px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s,box-shadow .15s}}

/* Gray dark theme. All messages use light text; color is never the only cue. */
.topbar{background:#2b2b2b;border-bottom:1px solid #555}
.privacy-pill{background:#414141;border-color:#666;color:#f2f2f2}
.brand-mark{background:#eee;color:#303030}
.tool{background:#3a3a3a;color:#f2f2f2}
.tool.active{background:#454545;border-color:#8cb9eb;box-shadow:inset 0 3px 0 #8cb9eb}
.tool-icon,.tool.active .tool-icon{color:#a8cff7}
.tool.active small{color:#ddd}
.primary{background:#1677c8;color:#fff}
.primary:hover:enabled{background:#1265aa}
.secondary{background:#484848;color:#f2f2f2;border-color:#717171}
.drop-zone{background:#353535;border-color:#858585}
.drop-zone.drag-over{background:#454545;border-color:#acd1f5}
.drop-zone svg{color:#a8cff7}
input,select{background:#454545;color:#f2f2f2;border-color:#7b7b7b}
input::placeholder{color:#c2c2c2;opacity:1}
.count{background:#484848;color:#ddd}
.preview-button{background:#454545;color:#eee}
.card.selected{border-color:#98c1ee;box-shadow:0 0 0 1px #98c1ee}
.page-controls{background:#353535}
.text-button,a{color:#afd5ff}
.icon-button{color:#ddd}
.icon-button:hover:enabled{background:#505050;color:#fff}
.error{background:#484848;border-color:#aeaeae;color:#fff;white-space:pre-line}
.result-heading>span{background:#505050;color:#fff}
.result-warning{background:#484848;color:#fff;border:1px solid #858585}
dialog{background:#3a3a3a;color:#f2f2f2}
dialog::backdrop{background:#202020bb}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline-color:#afd5ff}
