/* Graphite / teal theme: shared finishing rules and accessible states. */
:root{color-scheme:dark;--ink:#edf3f3;--muted:#a8b5b6;--line:#354041;--accent:var(--tone-accent);--green:var(--tone-text)}
body{background:#141718;color:var(--ink)}
header.site-header{background:#181c1d;box-shadow:0 4px 18px #0003}
header.site-header a.wordmark{color:#f3f7f7}
header.site-header .site-navigation a[aria-current="page"]{color:var(--tone-bright);border-bottom-color:var(--tone-accent)}
header.site-header .site-navigation a:hover{background:var(--tone-soft);color:var(--tone-bright)}
.site-page-label,.site-tagline{color:#a8b5b6}
.explore-hero{background:radial-gradient(ellipse at top right,var(--tone-hero),#202627 68%);border:1px solid var(--tone-border)}
.explore-hero h1 span{color:var(--tone-bright)}.explore-hero p{color:#b6c4c5}
.explore-hero .eyebrow,.examples a{color:var(--tone-bright)}
.primary,#analyze,.search-row button,.action,.compare-controls .primary{background:var(--tone-accent);color:#102124;border-color:var(--tone-accent)}
.primary:hover,#analyze:hover,.search-row button:hover,.action:hover{background:var(--tone-bright);color:#102124}
#file-list button.active{background:var(--tone-accent);color:#102124}
.editor{background:#141718}.editor textarea,textarea,#project-code{color:#dce6e7;caret-color:var(--tone-bright)}
input,select{color:#dce6e7}input::placeholder,textarea::placeholder{color:#8fa3a5}
.dot,.privacy i{background:var(--tone-accent)}
.badge-status{background:#20392f;color:#9bdfbd}
.badge-status.failed,.notice.error{background:#3a242b;color:#f4afbd;border-color:#754455}
.badge-status.pending{background:#3b3223;color:#e9cd8b}
.status-row p.error{color:#f4afbd}
.sample-card.selected{background:var(--tone-soft);border-color:var(--tone-border);box-shadow:inset 0 3px var(--tone-accent)}
.tabs button.active{color:var(--tone-bright);border-bottom-color:var(--tone-accent)}
.project-source{top:144px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--tone-bright);outline-offset:3px}
::selection{background:var(--tone-selection);color:#fff}
@media(max-width:900px){.project-source{position:static}}

/* Accent palettes keep graphite surfaces and semantic status colors intact. */
:root[data-accent="blue"]{--tone-accent:#7db4ff;--tone-bright:#b2d3ff;--tone-text:#b4cae8;--tone-soft:#202d40;--tone-border:#456286;--tone-hero:#203955;--tone-selection:#365b85}
:root[data-accent="amber"]{--tone-accent:#efb85e;--tone-bright:#ffdaa0;--tone-text:#dec7a4;--tone-soft:#342b20;--tone-border:#79613c;--tone-hero:#46341e;--tone-selection:#74572d}
:root[data-accent="emerald"]{--tone-accent:#68d5ab;--tone-bright:#a1ebce;--tone-text:#aed8c8;--tone-soft:#1e322c;--tone-border:#3e7662;--tone-hero:#1d4136;--tone-selection:#316c57}
.site-header-options{display:flex;align-items:center;gap:24px;min-width:0}
.accent-picker{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:12px;white-space:nowrap}
.accent-picker select{width:auto;min-width:96px;margin:0;padding:8px 10px;border:1px solid var(--tone-border);border-radius:7px;background:#202627;color:var(--tone-bright);font:inherit;cursor:pointer}
@media(max-width:700px){.site-header-options .site-page-label{display:none}.site-header-options{gap:0}}
@media(max-width:390px){.site-header-primary{gap:10px}}

:root,:root[data-accent="teal"]{--tone-accent:#63c9c1;--tone-bright:#a2e3dc;--tone-text:#add6d2;--tone-soft:#203331;--tone-border:#426e69;--tone-hero:#1c403d;--tone-selection:#326e68}
