/* ---------- tokens (reference palette, light + selected dark) ---------- */
.viz-root {
  color-scheme: light;
  --page: #f9f9f7; --surface-1: #fcfcfb; --surface-2: #f3f2ee;
  --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #898781;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,0.10); --band: rgba(11,11,11,0.06);
  --always: #eb6834; --timer: #2a78d6; --amb: #898781;
  --seg-1: #1baf7a; --seg-2: #eda100; --seg-3: #e87ba4;
  --good: #0ca30c; --good-text: #006300; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --timer-band: rgba(42,120,214,0.10);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root {
    color-scheme: dark;
    --page: #0d0d0d; --surface-1: #1a1a19; --surface-2: #232321;
    --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10); --band: rgba(255,255,255,0.07);
    --always: #d95926; --timer: #3987e5; --seg-1: #199e70; --seg-2: #c98500; --seg-3: #d55181;
    --good-text: #0ca30c; --timer-band: rgba(57,135,229,0.14); --shadow: none;
  }
}
:root[data-theme="dark"] .viz-root {
  color-scheme: dark;
  --page: #0d0d0d; --surface-1: #1a1a19; --surface-2: #232321;
  --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10); --band: rgba(255,255,255,0.07);
  --always: #d95926; --timer: #3987e5; --seg-1: #199e70; --seg-2: #c98500; --seg-3: #d55181;
  --good-text: #0ca30c; --timer-band: rgba(57,135,229,0.14); --shadow: none;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--page); color: var(--text-primary); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; }
h2 { font-size: 18px; letter-spacing: -0.01em; }
a { color: var(--timer); }
button, input, select { font: inherit; color: inherit; }
.k-always { color: var(--text-primary); border-bottom: 3px solid var(--always); }
.k-timer { color: var(--text-primary); border-bottom: 3px solid var(--timer); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; margin-right: 6px; }

.top { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; padding: 28px clamp(16px, 4vw, 40px) 12px; max-width: 1500px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.lede { max-width: 760px; color: var(--text-secondary); margin: 8px 0 0; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn { border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 36px; }
.btn:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; }
.btn.icon { min-width: 36px; padding: 6px; }
.btn.primary { background: var(--timer); color: #fff; border-color: transparent; }
.btn.small { min-height: 28px; padding: 3px 9px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--timer); outline-offset: 2px; }

/* ---------- verdict ---------- */
.verdict { max-width: 1500px; margin: 8px auto 16px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile .who { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.tile .who .dot { margin: 0; }
.tile .big { font-size: clamp(26px, 3.6vw, 36px); font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.tile .big small { font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-left: 4px; }
.tile .meta { color: var(--text-secondary); font-size: 13px; }
.tile.always::before, .tile.timer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--always); }
.tile.timer::before { background: var(--timer); }
.tile.diff .big { font-size: clamp(22px, 3vw, 30px); }
.tile.diff .line { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.status .ic { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; color: #fff; }
.status.good .ic { background: var(--good); } .status.warn .ic { background: var(--warning); color: #0b0b0b; } .status.bad .ic { background: var(--critical); }

/* ---------- layout ---------- */
.layout { max-width: 1500px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 24px; display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 18px; align-items: start; }
main { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { margin-bottom: 10px; }
.sub { margin: 4px 0 0; color: var(--text-secondary); font-size: 13.5px; max-width: 900px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-h { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin: 14px 0 6px; }

/* ---------- controls ---------- */
.controls { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overscroll-behavior: contain; }
.sheet-head { display: none; }
.grp { border-bottom: 1px solid var(--border); }
.grp:last-child { border-bottom: 0; }
.grp > summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; user-select: none; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary::after { content: "▸"; margin-left: auto; color: var(--text-muted); transition: transform .15s; }
.grp[open] > summary::after { transform: rotate(90deg); }
.grp > summary .gsub { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.grp-body { padding: 0 16px 14px; display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field .lbl { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.field .lbl .u { color: var(--text-muted); font-size: 12px; }
.info { border: 1px solid var(--border); background: none; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; line-height: 1; padding: 0; cursor: pointer; color: var(--text-muted); flex: none; }
.help { font-size: 12.5px; color: var(--text-secondary); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.help a { word-break: break-all; }
.row { display: grid; grid-template-columns: 1fr 86px; gap: 10px; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--timer); height: 28px; }
input[type=number], input[type=text], input[type=time], select { width: 100%; padding: 5px 8px; min-height: 34px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; }
input[type=number] { font-variant-numeric: tabular-nums; }
input.invalid { border-color: var(--critical); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; min-height: 30px; }
.chip[aria-pressed=true] { background: var(--timer); color: #fff; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--timer); }
.field-err { color: var(--critical); font-size: 12px; }
.adv-note { font-size: 12px; color: var(--text-muted); }

/* events editor */
.events { display: grid; gap: 8px; }
.ev { border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: grid; grid-template-columns: 24px minmax(0,1fr) 112px 26px; gap: 6px; align-items: center; background: var(--surface-2); }
.ev .ev-ic { font-size: 18px; text-align: center; }
.ev .ev-x { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ev .ev-x label { font-size: 11px; color: var(--text-muted); display: grid; gap: 2px; }
.ev input { background: var(--surface-1); }
.ev .del { border: 0; background: none; cursor: pointer; color: var(--text-muted); font-size: 16px; }
.ev.off { opacity: .5; }
.ev-sum { font-size: 12.5px; color: var(--text-secondary); }

/* ---------- tanks ---------- */
.tanks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tank { margin: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px 12px; min-width: 0; }
.tank figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tank .tname { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.tank .state { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1); }
.tank .state.heat { background: #e34948; color: #fff; border-color: transparent; }
.tank .state.off { background: var(--surface-1); color: var(--text-muted); }
.tank svg { width: 100%; height: auto; display: block; margin: 6px 0; overflow: visible; }
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ro { background: var(--surface-1); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.ro .k { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .v { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 15px; }
.player { display: grid; grid-template-columns: 44px 1fr auto 130px; gap: 10px; align-items: center; margin-top: 12px; }
.player .btn { min-height: 40px; font-size: 16px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 18px; min-width: 56px; text-align: center; }
.legend-scale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.legend-scale .bar { height: 10px; flex: 1; max-width: 360px; border-radius: 5px; }
.drip { animation: drip .6s linear infinite; }
@keyframes drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
.glow { animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .65; } to { opacity: 1; } }
.wave { animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart canvas { display: block; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.12); min-width: 150px; z-index: 2; }
.chart-tip .tip-h { font-weight: 650; margin-bottom: 2px; }
.chart-tip .tip-r { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; color: var(--text-secondary); }
.chart-tip .tip-r i { width: 10px; height: 3px; border-radius: 2px; }
.chart-tip .tip-r b { color: var(--text-primary); font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-tip .tip-x { color: var(--text-muted); margin-top: 3px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--amb) 0 4px, transparent 4px 7px) !important; }
.legend i.box { height: 10px; width: 12px; border-radius: 3px; }
.strips { display: grid; gap: 6px; }
.strip { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-secondary); }
.strip canvas { width: 100%; height: 18px; display: block; border-radius: 4px; background: var(--surface-2); }
.sweep-status { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; min-height: 1.2em; }

/* breakdown */
.bd { display: grid; gap: 12px; }
.bd-row .bd-h { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.bd-row .bd-h b { font-variant-numeric: tabular-nums; }
.bd-bar { display: flex; gap: 2px; height: 26px; }
.bd-bar > div { border-radius: 4px; min-width: 2px; position: relative; cursor: default; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.bd-bar > div.dark-ink { color: #0b0b0b; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.bd-table th, .bd-table td { padding: 5px 6px; border-bottom: 1px solid var(--grid); text-align: right; }
.bd-table th:first-child, .bd-table td:first-child { text-align: left; }
.bd-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* checks */
.chk-list { display: grid; gap: 8px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13.5px; align-items: start; }
.chk .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; margin-top: 1px; }
.chk.good .ic { background: var(--good); } .chk.warn .ic { background: var(--warning); color: #0b0b0b; } .chk.bad .ic { background: var(--critical); } .chk.note .ic { background: var(--text-muted); }
.chk .t b { font-weight: 650; }
.chk .t div { color: var(--text-secondary); font-size: 12.5px; }
.shower-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.shower-table th, .shower-table td { padding: 5px 6px; border-bottom: 1px solid var(--grid); text-align: right; }
.shower-table th:first-child, .shower-table td:first-child { text-align: left; }
.shower-table th { color: var(--text-muted); font-size: 12px; font-weight: 600; }

/* cost card */
.viz-root { --band-peak: #52514e; --band-std: #a8a69f; --band-off: #e9e8e2; --band-flat: #c3c2b7; }
:root[data-theme="dark"] .viz-root { --band-peak: #c3c2b7; --band-std: #6b6a65; --band-off: #2f2f2c; --band-flat: #4a4945; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .viz-root { --band-peak: #c3c2b7; --band-std: #6b6a65; --band-off: #2f2f2c; --band-flat: #4a4945; } }
.seg-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 13px; cursor: pointer; min-height: 34px; color: var(--text-secondary); }
.seg button[aria-pressed=true] { background: var(--text-primary); color: var(--surface-1); font-weight: 600; }
.timetable { display: grid; gap: 4px; margin-bottom: 12px; }
.tt-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-secondary); }
.tt-bar { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: var(--surface-2); position: relative; }
.tt-bar > div { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.tt-bar > div.b-peak { background: var(--band-peak); color: var(--surface-1); }
.tt-bar > div.b-standard { background: var(--band-std); color: var(--text-primary); }
.tt-bar > div.b-offpeak { background: var(--band-off); color: var(--text-secondary); }
.tt-bar > div.b-flat { background: var(--band-flat); color: var(--text-primary); }
.tt-bar > div + div { box-shadow: inset 2px 0 0 var(--surface-1); }
.tt-bar.heat { height: 14px; background: var(--surface-2); }
.tt-bar.heat > div { box-shadow: none; position: absolute; top: 2px; bottom: 2px; border-radius: 3px; height: auto; }
.tt-axis { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: 11px; color: var(--text-muted); }
.tt-axis div { display: flex; justify-content: space-between; }
.tt-row.sep { margin-top: 6px; }
.grid2.tight { gap: 16px; margin-top: 12px; }
.rate-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rate-grid th, .rate-grid td { padding: 3px; text-align: left; font-weight: 500; color: var(--text-secondary); }
.rate-grid input { padding: 4px 6px; min-height: 30px; }
.sub-details > summary { cursor: pointer; font-size: 13px; color: var(--timer); padding: 2px 0; }
.ins-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cmp-wrap { margin-top: 14px; }
.cmp-wrap > summary { cursor: pointer; }
.bd-table.cmp { min-width: 680px; }
.bd-table.cmp td { vertical-align: top; }
.bd-table.cmp tr.cur td { background: var(--timer-band); }
.cmp-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.bd-table.cmp td:first-child { max-width: 320px; }
/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.fact { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.fact .fv { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.fact .fk { font-size: 12.5px; color: var(--text-secondary); }

/* prose */
.prose { max-width: none; }
.prose h2 { margin-bottom: 8px; }
.prose h3 { font-size: 15px; margin: 16px 0 4px; }
.prose p, .prose li { color: var(--text-secondary); max-width: 860px; }
.prose code, .formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; color: var(--text-primary); }
.formula { display: block; padding: 8px 10px; margin: 6px 0; overflow-x: auto; white-space: nowrap; }
.callout { border-left: 4px solid var(--timer); background: var(--surface-2); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 10px 0; }
.callout p { margin: 0; color: var(--text-primary); }

/* constants table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.ctable th, .ctable td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; text-align: left; }
.ctable th { color: var(--text-muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; background: var(--surface-1); }
.ctable td.v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ctable tr.sec td { background: var(--surface-2); font-weight: 650; color: var(--text-primary); }
.ctable td.src { color: var(--text-muted); font-size: 12px; }
.ctable td.src a { color: var(--text-secondary); }

.fab { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text-primary); color: var(--surface-1); padding: 8px 14px; border-radius: 10px; font-size: 14px; z-index: 60; }
.foot { max-width: 1500px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 40px; color: var(--text-muted); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 330px minmax(0, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .top { flex-direction: column; align-items: flex-start; padding-top: 18px; }
  .top-actions { justify-content: flex-start; }
  .verdict { grid-template-columns: 1fr 1fr; position: sticky; top: 0; z-index: 20; background: var(--page); padding-top: 8px; padding-bottom: 8px; margin-bottom: 8px; }
  .verdict .tile.diff { grid-column: 1 / -1; }
  .verdict.compact .tile .meta, .verdict.compact .tile.diff .line { display: none; }
  .verdict.compact .tile .who { font-size: 12px; }
  .verdict.compact .tile { padding: 8px 12px; }
  .verdict.compact .tile .big { font-size: 22px; }
  .verdict.compact .tile.diff .big { font-size: 18px; }
  .layout { grid-template-columns: 1fr; }
  .controls { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 72vh; border-radius: 16px 16px 0 0; z-index: 50; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); }
  .controls.open { transform: none; }
  .sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; position: sticky; top: 0; background: var(--surface-1); border-bottom: 1px solid var(--border); z-index: 1; }
  .sheet-summary { font-size: 12.5px; color: var(--text-secondary); flex: 1; text-align: right; }
  .fab { display: block; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--timer); color: #fff; font-weight: 650; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  body.sheet-open .fab { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .tanks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tank { padding: 8px; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .player { grid-template-columns: 44px 1fr auto; }
  .player select { grid-column: 1 / -1; }
  .card { padding: 14px 12px; border-radius: 12px; }
  .strip { grid-template-columns: 70px 1fr; }
  .tt-row, .tt-axis { grid-template-columns: 66px 1fr; }
  .tt-bar > div { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) { .drip, .glow, .wave { animation: none; } .controls { transition: none; } }
@media (forced-colors: active) { .tile.always::before, .tile.timer::before { background: CanvasText; } }
