body[data-theme="paper"]{--theme-bg:#f5f7fa;--theme-surface:#fff;--theme-ink:#1a2837;--theme-muted:#66788a;--theme-line:#dbe2eb;--theme-side:#fefefe;--theme-side-ink:#354454;--theme-side-active:#e9f0fa;--theme-primary:#385c89;--theme-primary-ink:#fff;--theme-soft:#e1ebf8;--theme-soft-ink:#234a72;--theme-radius:12px}
body[data-theme="graphite"]{--theme-bg:#171d22;--theme-surface:#242d34;--theme-ink:#e9f0f1;--theme-muted:#a0afb7;--theme-line:#36434b;--theme-side:#11161b;--theme-side-ink:#c1cbd0;--theme-side-active:#2a383a;--theme-primary:#a8d56b;--theme-primary-ink:#142019;--theme-soft:#344638;--theme-soft-ink:#d7efbd;--theme-radius:12px}
body[data-theme="ocean"]{--theme-bg:#edf5f7;--theme-surface:#fff;--theme-ink:#18313b;--theme-muted:#607780;--theme-line:#d3e4e8;--theme-side:#102c39;--theme-side-ink:#c9e0e8;--theme-side-active:#1d4552;--theme-primary:#13758b;--theme-primary-ink:#fff;--theme-soft:#d5f0ec;--theme-soft-ink:#175b64;--theme-radius:12px}
body[data-theme="sand"]{--theme-bg:#f8f3eb;--theme-surface:#fffcf7;--theme-ink:#322a24;--theme-muted:#806f61;--theme-line:#e8dccd;--theme-side:#332b25;--theme-side-ink:#e6dbce;--theme-side-active:#514036;--theme-primary:#8c5b38;--theme-primary-ink:#fff;--theme-soft:#f3dfc1;--theme-soft-ink:#684323;--theme-radius:14px}
body[data-theme]:not([data-theme="forest"]){--ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-line);--paper:var(--theme-bg);--card:var(--theme-surface);--green:var(--theme-primary);background:var(--theme-bg);color:var(--theme-ink)}
body[data-theme]:not([data-theme="forest"]) aside{background:var(--theme-side);color:var(--theme-side-ink)}
body[data-theme]:not([data-theme="forest"]) .logo,body[data-theme]:not([data-theme="forest"]) nav button,body[data-theme]:not([data-theme="forest"]) .logout{color:var(--theme-side-ink)}
body[data-theme]:not([data-theme="forest"]) .logo span,body[data-theme]:not([data-theme="forest"]) .brand-mark{background:var(--theme-primary);color:var(--theme-primary-ink)}
body[data-theme]:not([data-theme="forest"]) nav button:hover,body[data-theme]:not([data-theme="forest"]) nav button.active{background:var(--theme-side-active);color:var(--theme-side-ink)}
body[data-theme]:not([data-theme="forest"]) header,body[data-theme]:not([data-theme="forest"]) .panel,body[data-theme]:not([data-theme="forest"]) .metric,body[data-theme]:not([data-theme="forest"]) .result-operation,body[data-theme]:not([data-theme="forest"]) .login-card,body[data-theme]:not([data-theme="forest"]) dialog{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line);border-radius:var(--theme-radius)}
body[data-theme]:not([data-theme="forest"]) header{border-radius:0}body[data-theme]:not([data-theme="forest"]) .hero p,body[data-theme]:not([data-theme="forest"]) .muted,body[data-theme]:not([data-theme="forest"]) .metric span,body[data-theme]:not([data-theme="forest"]) .empty,body[data-theme]:not([data-theme="forest"]) .user small,body[data-theme]:not([data-theme="forest"]) .result-control small{color:var(--theme-muted)}
body[data-theme]:not([data-theme="forest"]) .primary,body[data-theme]:not([data-theme="forest"]) .create-button,body[data-theme]:not([data-theme="forest"]) .login-card button[type="submit"]{background:var(--theme-primary);color:var(--theme-primary-ink)}
body[data-theme]:not([data-theme="forest"]) .secondary,body[data-theme]:not([data-theme="forest"]) .icon-button{background:var(--theme-soft);color:var(--theme-soft-ink)}
body[data-theme]:not([data-theme="forest"]) .status-pill,body[data-theme]:not([data-theme="forest"]) .attachment-icon,body[data-theme]:not([data-theme="forest"]) .instruction-summary-icon{background:var(--theme-soft);color:var(--theme-soft-ink)}
body[data-theme="paper"] .status-pill{background:#d7e9dc;color:#174a2a;border:1px solid #76a785;font-weight:700}
body[data-theme]:not([data-theme="forest"]) .metric em,body[data-theme]:not([data-theme="forest"]) .eyebrow,body[data-theme]:not([data-theme="forest"]) .result-operation-head span{color:var(--theme-primary)}
body[data-theme]:not([data-theme="forest"]) .bar{background:var(--theme-line)}body[data-theme]:not([data-theme="forest"]) .bar i{background:var(--theme-primary)}
body[data-theme]:not([data-theme="forest"]) .attachment,body[data-theme]:not([data-theme="forest"]) .issue,body[data-theme]:not([data-theme="forest"]) td,body[data-theme]:not([data-theme="forest"]) th,body[data-theme]:not([data-theme="forest"]) .result-control,body[data-theme]:not([data-theme="forest"]) .dialog-head{border-color:var(--theme-line)}
body[data-theme]:not([data-theme="forest"]) input,body[data-theme]:not([data-theme="forest"]) select,body[data-theme]:not([data-theme="forest"]) textarea{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
body[data-theme]:not([data-theme="forest"]) .attachment-link,body[data-theme]:not([data-theme="forest"]) .instruction-document,body[data-theme]:not([data-theme="forest"]) .instruction-disclosure{color:var(--theme-ink);background:var(--theme-surface);border-color:var(--theme-line)}
body[data-theme]:not([data-theme="forest"]) .result-tabs{background:var(--theme-line)}body[data-theme]:not([data-theme="forest"]) .result-tab.active{background:var(--theme-surface);color:var(--theme-ink)}
.settings-tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.settings-tabs button{border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);padding:10px 16px;font-weight:700;cursor:pointer}.settings-tabs button.active{background:var(--green);color:#fff;border-color:var(--green)}
.appearance-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}.appearance-option{border:2px solid var(--line);border-radius:13px;background:var(--card);color:var(--ink);padding:10px;text-align:left;cursor:pointer}.appearance-option.active{border-color:var(--green)}.appearance-option strong,.appearance-option small{display:block;margin:8px 2px 2px}.appearance-option small{color:var(--muted)}
.appearance-mini{display:grid;grid-template-columns:38px 1fr;height:100px;border:1px solid var(--mini-line);border-radius:8px;overflow:hidden;background:var(--mini-bg)}.appearance-mini aside{position:static;transform:none;height:auto;width:auto;padding:8px 5px;background:var(--mini-side)}.appearance-mini aside i{display:block;height:6px;margin:5px 0;border-radius:3px;background:var(--mini-side-text);opacity:.7}.appearance-mini main{padding:10px}.appearance-mini main b{display:block;width:56%;height:8px;border-radius:3px;background:var(--mini-ink);margin-bottom:12px}.appearance-mini main span{display:inline-block;width:42%;height:35px;margin-right:4%;border-radius:5px;background:var(--mini-card);border:1px solid var(--mini-line)}.appearance-mini main em{display:block;width:62%;height:7px;margin-top:10px;border-radius:3px;background:var(--mini-primary)}
body[data-theme] .appearance-mini aside{background:var(--mini-side)}
