/* ============================================================================
   Console theme — light instrument-panel skin for the whole Boombox site.
   Loaded after assets/style.css. Overrides tokens and surfaces only; no markup
   or JS changes, so every filter, sort, chart and simulator keeps working.
   Palette and type lifted from concept 07 (/concepts/console/).
   ========================================================================== */

:root{
  color-scheme: light;

  --bg:#f1f3ef;
  --panel:#ffffff;
  --panel2:#f6f7f4;
  --line:#e0e4dd;
  --text:#1a211d;
  --dim:#5f6a63;
  --dim2:#78837b;

  --amber:#0f766e;        /* accent = console teal */
  --amber-d:#0b5d56;
  --green:#4d7c0f;
  --red:#b3261e;
  --yellow:#b45309;

  --r:14px;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  --sans:"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:15.5px;
  line-height:1.6;
}
a{color:var(--amber)}
a:hover{color:var(--amber-d)}
::selection{background:rgba(15,118,110,.16)}

/* ------------------------------------------------------------------ nav */
.nav{background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.nav-in{height:62px}
.brand{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--text)}
.brand .dot{width:7px;height:7px;background:var(--amber);box-shadow:none}
.brand small{font-size:9.5px;letter-spacing:.14em;color:var(--dim2);font-weight:600}
.nav-links a{color:var(--dim);font-size:13px;font-weight:600;padding:7px 11px;border-radius:9px}
.nav-links a:hover{color:var(--text);background:#f2f4f0}
.nav-links a.on{color:#0b5d56;background:#e8f1ef;box-shadow:inset 0 0 0 1px #cfe2de}
.navtoggle{background:#fff;border:1px solid var(--line)}
.navtoggle span{background:var(--text)}
.navtoggle:hover{background:#f6f7f4;border-color:#cfd6cc}

/* ----------------------------------------------------------------- hero */
.hero{
  padding:54px 0 42px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.kicker{color:var(--amber);font-size:10.5px;letter-spacing:.16em;font-weight:600}
h1{font-size:clamp(30px,4.2vw,46px);font-weight:650;letter-spacing:-.022em;line-height:1.1}
h1 em{color:var(--amber);font-style:normal}
.lede{font-size:16.5px;color:var(--dim);max-width:720px}
.lede strong{color:var(--text);font-weight:650}

/* --------------------------------------------------------------- buttons */
.btn{background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--text);font-weight:650;font-size:14px;padding:11px 18px}
.btn:hover{background:#f6f7f4;border-color:#cfd6cc;color:var(--text)}
.btn.primary{background:var(--amber);border-color:var(--amber);color:#fff}
.btn.primary:hover{background:var(--amber-d);border-color:var(--amber-d);color:#fff}

/* -------------------------------------------------------------- sections */
section{padding:46px 0;border-bottom:1px solid var(--line)}
h2{font-size:clamp(23px,2.8vw,30px);font-weight:650;letter-spacing:-.02em}
h3{font-size:17px;font-weight:650;letter-spacing:-.005em}
.sub{color:var(--dim);font-size:14.5px}
.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--dim2);font-weight:600}

/* ----------------------------------------------------------------- cards */
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:none;
}
.card h3{font-size:13px;font-weight:650;letter-spacing:.02em}
.card .num,.stat{
  font-family:var(--sans);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  font-weight:600;
}
.stat{font-size:32px;line-height:1.05;color:var(--text)}
.stat small{font-size:11.5px;color:var(--dim);font-weight:500;letter-spacing:0;line-height:1.4}

/* ----------------------------------------------------------------- pills */
.pill{
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 10px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--dim);
}
.pill.ok{color:#3f6212;background:#f1f6e7;border-color:#d9e6c4}
.pill.warn{color:#b45309;background:#fdf4e7;border-color:#f0dfc1}
.pill.bad{color:#b3261e;background:#fbeceb;border-color:#f1d0cd}
.pill.v{color:#0b5d56;background:#e9f2f0;border-color:#c9e0dc}

/* ---------------------------------------------------------------- tables */
.tablewrap{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:none;
}
table{font-size:13.5px}
th{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:.08em;
  color:#6d786f;
  background:var(--panel2);
  border-bottom:1px solid var(--line);
  font-weight:600;
}
td{border-bottom:1px solid #eceee9}
tbody tr:hover{background:#f8faf7}
td.n,th.n{font-family:var(--mono);font-variant-numeric:tabular-nums}
th[data-sort]:hover{color:var(--text)}
th[data-sort]:hover .arw,
th[aria-sort="ascending"] .arw,
th[aria-sort="descending"] .arw{color:var(--amber)}
th[aria-sort]:not([aria-sort="none"]){color:var(--text)}
th[data-sort]:focus-visible{outline:2px solid var(--amber);outline-offset:-2px}
.tname{font-weight:650}
.tsub,.muted{color:var(--dim)}
.hint{color:var(--dim2)}

/* ----------------------------------------------------------------- forms */
label,.field .label,.fld .flbl{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);font-weight:600}
select,input,textarea{
  background:#fff;
  border:1px solid #d9dfd7;
  border-radius:10px;
  color:var(--text);
  font-family:var(--sans);
}
select:focus,input:focus,textarea:focus{
  outline:none;
  border-color:var(--amber);
  box-shadow:0 0 0 3px rgba(15,118,110,.12);
}
.tsearch input{background:#fff}
.tsearch input:focus{border-color:var(--amber);box-shadow:0 0 0 3px rgba(15,118,110,.12)}
.fld select:focus,.fld input:focus{border-color:var(--amber)}
.fclear{background:#fff;border:1px solid var(--line);color:var(--dim);border-radius:9px}
.fclear:hover:not(:disabled){background:#f6f7f4;color:var(--text);border-color:#cfd6cc}
.th{color:var(--text)}

/* ----------------------------------------------------------------- chips */
.chip{background:#fff;border:1px solid var(--line);color:var(--dim);font-size:12.5px;font-weight:600}
.chip:hover{border-color:#cfd6cc;color:var(--text)}
.chip.on{background:#e8f1ef;border-color:#b9d5d0;color:#0b5d56}

/* ----------------------------------------------------------------- notes */
.note{background:#fff;border-left:3px solid var(--amber);color:var(--dim);border-radius:0 10px 10px 0}
.note strong{color:var(--text)}
.warnbox{background:#fdf3f2;border-left:3px solid var(--red);color:#8f2b22;border-radius:0 10px 10px 0}
ul.clean li{border-bottom:1px solid var(--line);color:var(--dim)}
ul.clean li::before{color:var(--amber)}
ul.clean li strong{color:var(--text)}

/* --------------------------------------------------------------- scoring */
.ring{background:conic-gradient(var(--c) calc(var(--v)*1%),#e6e9e4 0)}
.ring::before{background:var(--panel)}
.ring b{color:var(--text)}
.crit{border-bottom:1px solid var(--line)}
.crit .lbl{color:var(--text);font-weight:650}
.crit .why{color:var(--dim)}
.verdict{color:var(--text)}

/* ------------------------------------------------------------- diagrams */
.diagram{background:#fbfcfa;border:1px solid var(--line);border-radius:var(--r)}
.diagram .cap,.cap{color:var(--dim2)}
.dg-box{fill:#fff;stroke:#ccd4cb}
.dg-box-amp{fill:#eef5f3;stroke:rgba(15,118,110,.5)}
.dg-box-dash{fill:#f8faf7;stroke:#c3cbc3}
.dg-lbl{fill:#1a211d}
.dg-sub{fill:#5f6a63}
.dg-pin{fill:#78837b}
/* Connector paths are stroke-only in the base sheet. Override stroke colour and
   leave fill:none alone, or the polylines render as filled wedges. */
.dg-pos{stroke:#0f766e}
.dg-neg{stroke:#8a9490}
.dg-sig{stroke:#4d7c0f}
.dg-opt{stroke:#8a9490}
.dg-dot{fill:#0f766e}
.dg-dotg{fill:#8a9490}
.dg-arrow{fill:#0f766e}
.dg-arrowg{fill:#4d7c0f}
.dg-val{fill:#3f6212}
.dg-drv{fill:#f2f4f1;stroke:#9aa79c}
.dg-drv-in{stroke:#9aa79c}
.dlegend span{color:var(--dim)}
/* Battery nominal column: some rows carry a long prose note in .tsub. Base sheet
   sets white-space:nowrap on td.n, so one 176-char note stretched the column to
   1256px. Let only that sub-line wrap, capped, so the table fits without hiding text. */
.battable td.n .tsub{white-space:normal;display:block;max-width:210px;margin-left:auto}


/* --------------------------------------------------- instrument screens */
/* The 3D viewports and baffle stages stay graphite on purpose: inside a light
   instrument panel a dark display reads as a screen, not as the page theme. */
.viewport{background:#101512;border:1px solid #cfd6cc}
.baf-stage{background:#101512}
.baf-stage3d{background:#0d100e}
.baf-card{background:#fff;border:1px solid var(--line)}
.baf-title{color:var(--text)}

/* -------------------------------------------------------------- controls */
.vbtn,.baf-btn{background:#fff;border:1px solid var(--line);color:var(--dim);border-radius:9px}
.vbtn:hover,.baf-btn:hover{background:#f6f7f4;border-color:#cfd6cc;color:var(--text)}
.sw-btn{background:#fff;border:1px solid var(--line);color:var(--dim)}
.sw-btn.on{background:#e8f1ef;border-color:#b9d5d0;color:#0b5d56}
.sw-btn .dot-c{background:#b9c2ba}
.seg-btn{background:#fff;border:1px solid var(--line);color:var(--dim)}
.seg-btn.on{background:#e8f1ef;border-color:#b9d5d0;color:#0b5d56}
.kv-row{border-bottom:1px solid var(--line)}
.kv-row .k{color:var(--dim2)}
.kv-row .v{color:var(--text)}
.tot .dim{color:var(--dim2)}
.tot strong{color:var(--text)}
.sp-note{color:var(--dim)}
.sp-warn{color:#b45309}
.sp-ok{color:#3f6212}
.flash{background:#fff;border:1px solid var(--line);color:var(--dim)}
.studio-foot{color:var(--dim2)}

/* ---------------------------------------------------------------- footer */
footer{background:#fff;border-top:1px solid var(--line);color:var(--dim2);font-size:12.5px;padding:36px 0 52px}
footer a{color:var(--dim)}
footer a:hover{color:var(--text)}

/* -------------------------------------------------------- phone tweaks */
@media (max-width:700px){
  .tablewrap{box-shadow:inset -14px 0 14px -16px rgba(0,0,0,.10)}
  thead th:first-child,td:first-child{background:var(--panel2)}
  body{font-size:15px}
  .hero{padding:40px 0 34px}
}
