:root{
    color-scheme:light;
    --graph-edge:#7a8c97;--control-bg:#fff;--control-border:#7b8e99;--focus:#936200;
    --sidebar-bg:#f7fafb;--topic-hover:#e8f0f5;--topic-selected:#dceef0;--topic-selected-ink:#004f52;
    --map-bg:#f5f9fc;--edge:#738d9c;--node-border:#7b929f;--review-border:#7587be;--source-border:#9b7a40;
    --topic-fill:#006f72;--topic-ink:#fff;--topic-caption:#d3efef;--button-fill:#006f72;--button-ink:#fff;
    --detail-line:#dbe8ed;--badge-bg:#eaf0f4;--success-bg:#dff0ed;--success-ink:#126556;
    --pending-bg:#fff0d2;--pending-ink:#80500a;--published-bg:#e8eefc;
    --notice-bg:#f0f5f8;--notice-border:#91b4c5;--notice-ink:#49616e;--diff-bg:#f4f7f9;
    --error-bg:#fff0ef;--error-ink:#90363d;--error-border:#b75c68;
    --arrow:#526b7a;--assumption-bg:#fffaf0;--claim-border:#779b98;--claim-bg:#f0faf8;--quote-bg:#f0f7f7;
}
:root[data-theme="black"]{
    color-scheme:dark;
    --graph-edge:#536c7c;--paper:#000;--wash:#111a20;--ink:#e7edf1;--muted:#a7b6c0;--line:#526976;
    --teal:#8cdad4;--blue:#a8c3ff;--amber:#e7c17b;--red:#ffabb6;
    --control-bg:#080c0e;--control-border:#718894;--focus:#ffd277;
    --sidebar-bg:#050809;--topic-hover:#15232b;--topic-selected:#103537;--topic-selected-ink:#b4f0eb;
    --map-bg:#060a0c;--edge:#819ba9;--node-border:#819ba9;--review-border:#9cadde;--source-border:#d7b573;
    --topic-fill:#003d40;--topic-ink:#f0ffff;--topic-caption:#b7e5e2;--button-fill:#005d60;--button-ink:#f0ffff;
    --detail-line:#526976;--badge-bg:#1a252d;--success-bg:#11362b;--success-ink:#b1e9ce;
    --pending-bg:#362709;--pending-ink:#ffda91;--published-bg:#1a2b4a;
    --notice-bg:#101c25;--notice-border:#719aaa;--notice-ink:#b7d1dd;--diff-bg:#0e151a;
    --error-bg:#38131b;--error-ink:#ffc0c9;--error-border:#d68793;
    --arrow:#a1bac7;--assumption-bg:#201a0c;--claim-border:#85b7b0;--claim-bg:#0a2321;--quote-bg:#0a2423;
    --bg:#000;--rule:#526976;--link:#a8c3ff;--code:#111a20;--draft:#ffda91;--draftbg:#362709;
}
.theme-picker{display:flex;align-items:center;gap:8px;color:var(--muted);font:12px/1.4 Aptos,"Segoe UI",system-ui,sans-serif}
.theme-picker select{font:inherit;padding:7px 9px;min-height:34px;border:1px solid var(--control-border);border-radius:6px;background:var(--control-bg);color:var(--ink)}
.theme-picker select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.theme-status{font:12px/1.5 Aptos,"Segoe UI",system-ui,sans-serif;color:var(--error-ink);background:var(--error-bg);padding:8px 12px;margin:0}
header.site{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
header.site+.theme-status{max-width:46rem;margin:0 auto}
:root[data-theme="black"] ::selection{background:#9adbd7;color:#002323}
:root[data-theme="black"] .graph-node.topic rect{stroke:var(--teal)}
@media(max-width:760px){.masthead{column-gap:14px}.masthead>.theme-picker{margin-left:auto}.masthead>.quiet{margin-left:0}}

:root[data-theme="black"] .graph-modes button[aria-pressed=true]{border-color:var(--teal)}
:root[data-theme="black"] .topic-button[aria-pressed=true]{box-shadow:inset 3px 0 var(--teal)}

.topic-button[aria-pressed=true] small{color:inherit}
input::placeholder{color:var(--muted);opacity:1}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
@media(max-width:760px){.theme-picker select{min-height:44px}.master-controls button{min-width:40px;min-height:40px}}
