@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("fonts/hanken-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- tokens: silver screen. Neutral greys of 1930s film stock, ink black, ivory-white, butter gold ---------- */
:root {
  --paper: #EEEEEC;
  --bone: #F8F8F6;
  --sunk: #E1E2E2;
  --text: #16171A;
  --graphite: #16171A;
  --smoke: #53565C;
  --ash: #9B9EA4;
  --bar: #C7C9CC;
  --rule: rgb(22 23 26 / .12);
  --rule-strong: rgb(22 23 26 / .28);
  --wash: rgb(22 23 26 / .05);
  --butter: #E6B43A;
  --oxblood: #A2312B;
  --oxblood-soft: rgb(162 49 43 / .12);
  --side: #16171A;
  --side-text: #E6E7E8;
  --side-muted: #A0A3A8;
  --title: #16171A;
  --title-text: #F8F8F6;
  --title-muted: #B9BCC1;
  --spot: #DBDCDD;
  --fill: var(--text);
  --switch-on: var(--text);
  --knob-on: var(--butter);
  --rim-c: transparent;
  --bubs-rim: none;
  --bubs-floor: none;
  --bubs-own-shadow: inline;
  --title-edge: none;
  --dock-edge: 0 0 0 0 transparent;
  --scrim: rgb(22 23 26 / .22);
  --scrim-strong: rgb(22 23 26 / .45);
  --raised: var(--bone);
  --track: #DCDDDF;
  --float: 0 24px 48px -28px rgb(22 23 26 / .55), 0 2px 6px -2px rgb(22 23 26 / .12);
  --display: "Big Shoulders", "Arial Narrow", ui-sans-serif, sans-serif;
  --sans: "Hanken", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316; --bone: #1B1C20; --sunk: #0C0D0F; --text: #ECECEA; --smoke: #A4A7AD; --ash: #6A6D73; --bar: #383A3F;
    --rule: rgb(236 236 234 / .1); --rule-strong: rgb(236 236 234 / .26); --wash: rgb(236 236 234 / .05);
    --oxblood: #E0756B; --oxblood-soft: rgb(224 117 107 / .14);
    --side: #0B0C0E; --title: #24262A; --spot: #D0D1D3; --track: rgb(236 236 234 / .13); --fill: #C9CBCE; --switch-on: var(--butter); --knob-on: #16171A; --rim-c: rgb(236 236 234 / .92); --bubs-rim: drop-shadow(1.6px 0 0 var(--rim-c)) drop-shadow(-1.6px 0 0 var(--rim-c)) drop-shadow(0 1.6px 0 var(--rim-c)) drop-shadow(0 -1.6px 0 var(--rim-c)); --bubs-floor: block; --bubs-own-shadow: none; --title-edge: 0 0 0 1px rgb(236 236 234 / .16); --dock-edge: 0 0 0 1px rgb(236 236 234 / .14); --scrim: rgb(0 0 0 / .5); --scrim-strong: rgb(0 0 0 / .6); --raised: #24262A;
    --float: 0 24px 48px -24px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121316; --bone: #1B1C20; --sunk: #0C0D0F; --text: #ECECEA; --smoke: #A4A7AD; --ash: #6A6D73; --bar: #383A3F;
  --rule: rgb(236 236 234 / .1); --rule-strong: rgb(236 236 234 / .26); --wash: rgb(236 236 234 / .05);
  --oxblood: #E0756B; --oxblood-soft: rgb(224 117 107 / .14);
  --side: #0B0C0E; --title: #24262A; --spot: #D0D1D3; --track: rgb(236 236 234 / .13); --fill: #C9CBCE; --switch-on: var(--butter); --knob-on: #16171A; --rim-c: rgb(236 236 234 / .92); --bubs-rim: drop-shadow(1.6px 0 0 var(--rim-c)) drop-shadow(-1.6px 0 0 var(--rim-c)) drop-shadow(0 1.6px 0 var(--rim-c)) drop-shadow(0 -1.6px 0 var(--rim-c)); --bubs-floor: block; --bubs-own-shadow: none; --title-edge: 0 0 0 1px rgb(236 236 234 / .16); --dock-edge: 0 0 0 1px rgb(236 236 234 / .14); --scrim: rgb(0 0 0 / .5); --scrim-strong: rgb(0 0 0 / .6); --raised: #24262A;
  --float: 0 24px 48px -24px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--ash) transparent; }
body { margin: 0; background: var(--paper); color: var(--text); font: 450 15px/1.55 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; caret-color: var(--text); }
/* A fine, still grain over everything, like ink on old stock. */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.145 0 0 0 0 0.16 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .025; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: .025; } }
::selection { background: var(--butter); color: #16171A; }
::placeholder { color: var(--smoke); opacity: 1; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.side :focus-visible, .intertitle :focus-visible, .tabs :focus-visible, .savebar :focus-visible, .toast :focus-visible, .player :focus-visible { outline-color: var(--butter); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
/* A site named in running text: underlined in butter like the page's other links, opening in a new tab. The line is
   drawn under the words and the new-tab arrow alike, below the descenders, so nothing breaks it. */
.out-link { font-weight: 650; text-decoration: none; background: linear-gradient(var(--butter), var(--butter)) left calc(100% - 1px) / 100% 2px no-repeat; padding-bottom: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.out-link:hover { background-image: linear-gradient(currentColor, currentColor); }
.out-link .ic { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: 0; }
/* The page's other links underline the words: one unbroken line, set low enough to clear the descenders. */
.info-link, .reset, .err-go, .verdict-lines a, .side-note-link, .text-link { text-decoration-skip-ink: none; }
h1, h2, h3 { margin: 0; font-size: inherit; }
p { margin: 0; }
.mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: .85em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ic { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 95; background: var(--butter); color: #16171A; padding: 10px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); }
.side-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: calc(env(safe-area-inset-top, 0px) + 26px) 16px 22px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; text-decoration: none; border-radius: 10px; }
.brand-mark { width: 36px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: auto; }
.brand-word { font: 800 27px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--title-text); }
.tabs { position: relative; display: flex; flex-direction: column; gap: 2px; }
.tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 550; font-size: 15px; color: var(--side-muted); transition: color .25s; }
.tab:hover { color: var(--side-text); }
.tab[aria-current="page"] { color: var(--title-text); }
.tab-marker { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 44px; border-radius: 10px; background: rgb(248 248 246 / .07); transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.tab-marker::before { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--butter); }
.tabs.no-anim .tab-marker { transition: none; }
/* The sidebar has room for the full word; the phone dock uses the short one. */
.word-short { display: none; }
.badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--oxblood); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.side-end { margin-top: auto; display: grid; gap: 10px; padding: 0 4px; }
.updated-row { display: flex; align-items: center; justify-content: space-between; color: var(--side-muted); font-size: 13px; padding-left: 8px; }
.side-actions { display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -1px 0 rgb(248 248 246 / .12); padding-top: 12px; margin-top: 4px; }
.side .icon-btn, .side .text-btn { color: var(--side-text); }
.side .icon-btn:hover, .side .text-btn:hover { background: rgb(248 248 246 / .08); }
.icon-btn { appearance: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text); transition: background-color .2s, transform .3s var(--spring); }
.icon-btn:hover { background: var(--wash); }
.icon-btn:active { transform: scale(.92); }
.text-btn { appearance: none; border: 0; background: transparent; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 550; font-size: 14px; }

.work { min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 56px) 72px; outline: none; view-transition-name: work; flex: 1; }
.panel { display: grid; gap: 72px; }

/* Sections cross-fade with a short rise; the sidebar stays put. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(work) { animation: vt-out .16s ease-in both; }
::view-transition-new(work) { animation: vt-in .46s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }

.block { display: grid; gap: 20px; min-width: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
/* A heading with its help button; the explanation floats under it and moves nothing. */
.head-title { display: flex; align-items: center; gap: 8px; }
.info-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.info-btn { appearance: none; border: 0; background: transparent; color: var(--smoke); width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--wash); color: var(--text); }
.info-btn .ic { width: 18px; height: 18px; }
.info-link { appearance: none; border: 0; background: none; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.info-link .ic { width: 16px; height: 16px; }
.info-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 12px; background: var(--side); color: var(--side-text); font: 450 14px/1.55 var(--sans); text-transform: none; letter-spacing: 0; box-shadow: var(--float); animation: vt-in .25s var(--ease) both; }
.info-pop b { color: var(--title-text); font-weight: 650; }
/* Find in Activity. */
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; }
.search .ic { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--smoke); pointer-events: none; }
.search .field { padding-left: 38px; padding-right: 36px; }
.search .field::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--bone); color: var(--smoke); font: 600 12px/1 var(--sans); box-shadow: 0 1px 0 var(--rule-strong); }
.search .field:focus ~ kbd, .search .field:not(:placeholder-shown) ~ kbd { display: none; }
/* Shortcuts. */
.kbd-hint { appearance: none; border: 0; background: none; color: var(--smoke); font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0; min-height: 32px; }
.kbd-hint:hover { color: var(--text); }
.help-dialog { border: 0; border-radius: 22px; background: var(--bone); color: var(--text); padding: 20px 22px 22px; width: min(460px, calc(100vw - 32px)); box-shadow: var(--float); }
.help-dialog::backdrop { background: rgb(22 23 26 / .5); }
.help-dialog[open] { animation: vt-in .3s var(--ease); }
.help-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.guide-dialog { width: min(600px, calc(100vw - 32px)); max-height: min(86vh, 820px); }
.guide-body { display: grid; gap: 12px; color: var(--smoke); line-height: 1.55; }
.guide-body b { color: var(--text); font-weight: 650; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.guide-steps > li { counter-increment: step; position: relative; min-height: 28px; padding-left: 40px; }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 2px; background: var(--text); color: var(--paper); font: 700 14px/1 var(--sans); }
.guide-warn { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--oxblood); background: var(--oxblood-soft); color: var(--text); }
.guide-warn .ic { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--oxblood); }
.guide-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule, rgb(0 0 0 / .12)); font-size: 13px; }
.help-head h2 { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.keys { margin: 0; display: grid; }
.keys div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.keys dt { display: flex; gap: 4px; align-items: center; color: var(--smoke); }
.keys dd { margin: 0; }
.block-head h2 { font: 800 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.block-head .meta { color: var(--smoke); font-size: 13.5px; }
.page-head { display: grid; gap: 10px; }
.panel > .page-head { margin-bottom: -34px; }
.reset-line { font-size: 14px; color: var(--text) !important; }
.reset-line .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.reset-line b { font-weight: 700; }
.page-head h1 { font: 900 clamp(48px, 6vw, 84px)/.88 var(--display); letter-spacing: .01em; text-transform: uppercase; }
/* A page title with its one action beside it (Configurations: New configuration). */
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
/* The sidebar's way to setup, above the update time; phones use the Configurations page's button. */
.side .side-link { display: flex; align-items: center; gap: 12px; width: calc(100% + 8px); margin: 0 -4px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--side-muted); font-weight: 550; font-size: 15px; text-decoration: none; transition: color .25s, background-color .25s; }
.side .side-link:hover { color: var(--side-text); background: rgb(248 248 246 / .07); }
.page-head p { color: var(--smoke); max-width: 74ch; font-size: 16px; }

/* ---------- the stage: Bubs leaning out of an intertitle ---------- */
.stage { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); align-items: end; }
#bubs-host { position: relative; z-index: 2; margin-right: -96px; }
.bubs-hit { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; width: 100%; display: block; border-radius: 40px; }
.bubs-spot { position: relative; display: grid; place-items: center; }
.bubs-spot svg, .noir-live svg { position: relative; width: 100%; height: auto; display: block; overflow: visible; filter: var(--bubs-rim); }
.bubs-spot svg .bubs-shadow, .noir-live svg .bubs-shadow { display: var(--bubs-own-shadow); }
.noir-live { position: relative; }
.bubs-spot::before, .noir-live::before { content: ""; display: var(--bubs-floor); position: absolute; left: 16%; right: 16%; bottom: 0; height: 4%; border-radius: 50%; background: rgb(0 0 0 / .55); }
.intertitle {
  box-shadow: var(--title-edge);
  position: relative; background: var(--title); color: var(--title-text);
  border-radius: 26px; padding: 48px 48px 44px 128px; min-height: 320px;
  display: grid; align-content: center; gap: 18px; margin-bottom: 28px;
}
/* A double rule inside the card, the way title cards were framed. */
.intertitle::before, .intertitle::after { content: ""; position: absolute; pointer-events: none; }
.intertitle::before { inset: 12px; border: 1.5px solid rgb(248 248 246 / .3); border-radius: 17px; }
.intertitle::after { inset: 18px; border: 1px solid rgb(248 248 246 / .14); border-radius: 12px; }
.scrim { display: none; }
.scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); animation: fade .3s var(--ease) both; }
.unsaved { display: none; margin-left: 10px; padding: 0 7px; border-radius: 8px; border: 1.5px solid var(--text); color: var(--text); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.set.changed .unsaved { display: inline-block; }
.caption { font: 900 clamp(48px, 7vw, 96px)/.86 var(--display); letter-spacing: .01em; text-transform: uppercase; margin: 0; position: relative; z-index: 1; }
.caption::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 18px; border-radius: 2px; background: var(--butter); transform-origin: left; animation: draw .9s 1.1s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } }
.caption .w { display: inline-block; transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease); }
.caption .w.wait { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.verdict-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; z-index: 1; }
.verdict-lines a, .verdict-lines span.line { display: inline-flex; align-items: center; gap: 11px; min-height: 40px; text-decoration: none; font-size: 17px; font-weight: 550; color: var(--title-text); }
.verdict-lines a:hover { text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.verdict-lines .chev { width: 16px; height: 16px; color: var(--title-muted); transition: transform .3s var(--ease); }
.verdict-lines a:hover .chev { transform: translateX(3px); }
.synced-line { color: var(--title-muted); font-size: 15px; position: relative; z-index: 1; }
.synced-line b { color: var(--title-text); font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--text); }
.intertitle .dot { background: var(--butter); }
/* Worth a look is a ring, something's wrong is solid: the two never read the same, even small. */
.dot.warn { background: transparent; box-shadow: inset 0 0 0 2px var(--oxblood); }
.dot.bad { background: var(--oxblood); }
.intertitle .dot.warn { box-shadow: inset 0 0 0 2px #E0756B; }
.intertitle .dot.bad { background: #E0756B; }
/* Something's wrong: the title card itself turns oxblood-dark, its frame and rule go red. */
.level-bad .intertitle { background: color-mix(in srgb, var(--title) 74%, #A2312B); }
.level-bad .intertitle::before { border-color: rgb(224 117 107 / .7); }
.level-bad .intertitle::after { border-color: rgb(224 117 107 / .3); }
.level-bad .caption::after { background: #E0756B; }
.level-bad .verdict-lines a { font-weight: 650; }
.dot.quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--smoke); }

/* ---------- meter ---------- */
.tube { --v: 0; position: relative; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; min-width: 60px; }
.tube > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 999px; background: var(--fill); transform-origin: left; animation: fill 1s var(--ease) both; }
.tube.warn > i, .tube.bad > i { background: var(--oxblood); }
.tube.thin { height: 6px; }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- the exposure sheet: 24 hours, a lane per configuration ---------- */
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--smoke); font-size: 13px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.cue { display: inline-block; flex: none; }
.cue.synced { width: 7px; height: 16px; border-radius: 4px; background: var(--butter); box-shadow: inset 0 0 0 1.5px #16171A; }
.cue.asis { width: 7px; height: 16px; border-radius: 4px; background: var(--bone); box-shadow: inset 0 0 0 1.5px var(--text); }
.cue.list { width: 3px; height: 14px; border-radius: 1px; background: var(--text); opacity: .7; }
.cue.error { width: 7px; height: 16px; border-radius: 4px; background: var(--oxblood); }
.tracks { position: relative; display: grid; user-select: none; touch-action: pan-y; padding-top: 6px; }
.lane { display: grid; grid-template-columns: 112px 1fr; align-items: center; height: 46px; border-bottom: 1px dashed var(--rule); }
.lane-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.lane-track { position: relative; height: 100%; }
.lane-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--rule-strong); }
.lane.paused .lane-track::before { background: none; height: 0; border-top: 1.5px dashed var(--oxblood); }
.lane-track .cue { position: absolute; top: 50%; transform: translate(-50%, -50%); animation: cue-in .5s var(--ease) both; }
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, -20%) scaleY(.4); } }
.axis { display: grid; grid-template-columns: 112px 1fr; height: 26px; color: var(--smoke); font-size: 12px; }
.axis-in { position: relative; }
.axis-in span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.axis-in span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--rule-strong); }
.now { position: absolute; top: 2px; bottom: 0; right: 0; width: 0; pointer-events: none; }
.now::before { content: ""; position: absolute; top: 0; bottom: 24px; left: -1px; width: 2px; background: var(--butter); border-radius: 2px; }
.now::after { content: ""; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--butter); }
.now b { position: absolute; bottom: 3px; right: 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.scrub-line { position: absolute; top: 0; bottom: 26px; width: 0; border-left: 1.5px dashed var(--text); pointer-events: none; opacity: .55; transition: left .12s var(--ease); }
.readout { min-height: 24px; color: var(--smoke); font-size: 14px; }
.readout b { color: var(--text); font-weight: 650; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--smoke); cursor: pointer; }

/* Off: an outlined track with a smaller grey knob, both at 5:1 or more in either theme.
   On: a filled track with a full-size knob. */
.switch { appearance: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--sunk); box-shadow: inset 0 0 0 1.5px var(--smoke); cursor: pointer; flex: none; margin: 0; transition: background-color .25s, box-shadow .25s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--smoke); transform: scale(.72); transition: transform .4s var(--spring), background-color .25s; }
.switch:checked { background: var(--switch-on); box-shadow: none; }
.switch:checked::after { transform: translateX(18px); background: var(--knob-on); box-shadow: 0 1px 3px rgb(22 23 26 / .35); }

/* ---------- ledger ---------- */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 0; }
.ledger .row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "note value" "meter meter"; align-items: end; column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { grid-area: label; font-weight: 650; font-size: 15px; }
.ledger .note { grid-area: note; color: var(--smoke); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.ledger dd { grid-area: value; margin: 0; font: 800 48px/.9 var(--display); letter-spacing: .005em; align-self: center; }
.ledger dd .unit { font: 600 13px var(--sans); color: var(--smoke); margin-left: 4px; letter-spacing: 0; }
.ledger dd a { text-decoration: none; }
.ledger dd a:hover { color: var(--smoke); }
.ledger .tube { grid-area: meter; margin-top: 12px; }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.chart { display: grid; gap: 12px; min-width: 0; }
.chart h3 { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.chart .hint { color: var(--smoke); font-size: 13.5px; max-width: 52ch; }
.sticks { position: relative; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); align-items: end; gap: 12px; height: 190px; padding-top: 28px; border-bottom: 1.5px solid var(--text); }
.stick { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 10px 10px 0 0; }
.stick:hover, .stick:focus-visible { background: var(--wash); }
.stick i { font-style: normal; position: relative; display: block; width: min(36px, 72%); height: var(--h); min-height: 3px; background: var(--bar); border-radius: 9px 9px 0 0; transform-origin: bottom; animation: grow .9s var(--ease) both; transition: background-color .25s; }
.stick:nth-child(2) i { animation-delay: .04s; } .stick:nth-child(3) i { animation-delay: .08s; } .stick:nth-child(4) i { animation-delay: .12s; }
.stick:nth-child(5) i { animation-delay: .16s; } .stick:nth-child(6) i { animation-delay: .2s; } .stick:nth-child(7) i { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(0); } }
.stick:hover i { background: var(--ash); }
.stick.today i { background: var(--butter); }
.stick.today i::after { content: ""; position: absolute; right: 24%; top: 4px; width: 7px; height: 12px; background: var(--butter); border-radius: 0 0 6px 6px; transform: translateY(100%); }
.stick.tiny i::after { display: none; }
/* A day with nothing: a dashed mark on the baseline. Its class is its own, since .empty is the empty-state block further down. */
.stick.blank i { background: transparent; border-top: 1.5px dashed var(--ash); height: 2px; }
.stick .val { position: absolute; left: 50%; bottom: calc(100% + 6px); font-size: 12px; font-weight: 650; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .3s var(--ease); color: var(--text); }
.stick .val { opacity: 1; transform: translate(-50%, 0); color: var(--smoke); font-weight: 600; }
.stick.today .val, .stick:hover .val, .stick:focus-visible .val { color: var(--text); font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 12px; color: var(--smoke); font-size: 12px; text-align: center; }
.days span { white-space: nowrap; }
.days .today { color: var(--text); font-weight: 700; }

/* ---------- right now ---------- */
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.readout-item { display: grid; gap: 10px; align-content: start; }
.readout-item h3 { font-size: 14px; font-weight: 650; color: var(--smoke); }
.readout-item .big { font: 800 52px/.9 var(--display); }
.readout-item .big .unit { font: 600 13px var(--sans); color: var(--smoke); margin-left: 4px; }
.readout-item p { color: var(--smoke); font-size: 13.5px; }
/* The disk's own bar, under its line: apart from the cache's size above it, which it isn't a share of. */
.disk-meter { display: grid; gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--rule); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---------- tables ---------- */
/* Tables sit in a wrapper 12 px wider on each side, so a hovered row's band reaches past its first and last
   cell instead of stopping flush against the logo and the last figure. */
.table-wrap { overflow-x: auto; margin-inline: -12px; padding-inline: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.src-lines { display: none; list-style: none; margin: 0; padding: 0; }
.src-lines li { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.src-lines .src-figs { color: var(--smoke); font-size: 13.5px; padding-left: 32px; }
.src-lines .src-figs .bad { color: var(--oxblood); font-weight: 700; }
/* The 24-hour readout: a fixed summary, then one line for the request in view. That line keeps one
   height whatever is pointed at: the time, configuration and result never wrap, and a long file name ends in
   an ellipsis (its full name is in the track's spoken value and in Activity). */
.readout { display: grid; gap: 2px; }
.readout-now { display: flex; align-items: center; gap: 14px; min-width: 0; white-space: nowrap; }
.ro-meta { flex: none; }
.ro-what { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ro-what .cue { vertical-align: -3px; margin-right: 7px; }
@media (max-width: 860px) {
  /* On phones: the time, configuration and result on one line, the file name on the next; always two lines. */
  .readout-now { display: grid; gap: 1px; }
  .ro-meta { overflow: hidden; text-overflow: ellipsis; }
}
.col-help { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--smoke); font-size: 13px; }
.col-help div { display: flex; gap: 6px; }
.col-help dt { font-weight: 700; color: var(--text); }
.col-help dd { margin: 0; }
th, td { text-align: right; padding: 13px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
/* The first and last columns sit 12 px in, so a row's hover colour has room around its words and stays inside the table. */
th:first-child, td:first-child { text-align: left; padding-left: 12px; }
td:last-child, th:last-child { padding-right: 12px; }
thead th { color: var(--smoke); font-weight: 600; font-size: 12.5px; padding-top: 0; border-bottom: 1.5px solid var(--text); }
td.bad { color: var(--oxblood); font-weight: 700; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: var(--wash); }
.src { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.src img { width: 22px; height: 22px; border-radius: 6px; display: block; background: #fff; box-shadow: 0 0 0 1px var(--rule-strong); }
/* A grid item as wide as its section: a table inside scrolls on its own instead of widening the page. */
details.more { min-width: 0; }
details.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; list-style: none; min-height: 40px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ic { transition: transform .3s var(--ease); width: 16px; height: 16px; }
details.more[open] summary .ic { transform: rotate(90deg); }

/* ---------- controls ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--rule-strong); background: var(--bone); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, transform .3s var(--spring), box-shadow .3s var(--ease); }
.btn:hover { border-color: var(--text); box-shadow: 0 6px 16px -10px rgb(22 23 26 / .5); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--butter); color: #16171A; border-color: transparent; }
.btn.primary:hover { background: #DCA82C; }
.btn.danger { color: var(--oxblood); border-color: color-mix(in srgb, var(--oxblood) 45%, transparent); background: transparent; }
.btn.danger:hover { border-color: var(--oxblood); }
.btn.danger.solid { background: var(--oxblood); color: #fff; border-color: transparent; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn .ic { width: 16px; height: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sunk); gap: 2px; }
.seg button { appearance: none; border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--smoke); cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .2), 0 0 0 1px var(--rule-strong); }
.set-control .seg { justify-self: start; }
.seg.small button { height: 30px; padding: 0 10px; font-size: 12.5px; }
.field, .select { height: 42px; border-radius: 12px; border: 1.5px solid var(--rule-strong); background: var(--bone); padding: 0 14px; min-width: 0; width: 100%; transition: border-color .2s, box-shadow .25s; }
.field:hover, .select:hover { border-color: var(--ash); }
.field:focus, .select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgb(230 180 58 / .35); }
textarea.field { height: auto; min-height: 92px; padding: 10px 14px; resize: vertical; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; line-height: 1.6; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353565C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; width: auto; cursor: pointer; font-weight: 600; }
.unit-field { position: relative; display: block; }
.unit-field .field { padding-right: 96px; }
.unit-field span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--smoke); font-size: 13.5px; pointer-events: none; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.pair-row .select { width: 100%; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--sunk); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--butter); color: #16171A; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--rule-strong); font-size: 13px; font-weight: 600; color: var(--smoke); white-space: nowrap; }
.tag.here { border-color: transparent; background: var(--butter); color: #16171A; }

/* ---------- keys ---------- */
.group { display: grid; }
.group-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--text); }
.group-head h2 { font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.group-head .mono { color: var(--smoke); }
.key { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.key-id { display: grid; gap: 6px; }
.key-id .src { font-size: 16px; }
.key-id p { color: var(--smoke); font-size: 13.5px; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.meter { display: grid; gap: 9px; align-content: start; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; }
.meter-top b { font: 800 26px/1 var(--display); }
.meter-top .of { color: var(--smoke); }
.meter .note { color: var(--smoke); font-size: 12.5px; }
/* An unused limit recedes through its empty track and a quieter figure; its words keep full contrast. */
.meter.unused .tube { opacity: .5; }
.meter.unused .meter-top b { color: var(--smoke); }
.idle-list { list-style: none; margin: 0; padding: 0; }
.idle-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--smoke); flex-wrap: wrap; }
.idle-list li b { color: var(--text); }

/* ---------- activity ---------- */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* Rows keep their own height: the fitted page height leaves room under a short page instead of stretching its rows. */
.log { display: grid; align-content: start; }
.log-day { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 16px 0 10px; border-bottom: 1.5px solid var(--text); display: flex; justify-content: space-between; align-items: baseline; }
.log-day span { color: var(--smoke); font: 500 13px var(--sans); letter-spacing: 0; text-transform: none; }
.log-row { position: relative; appearance: none; text-align: left; background: transparent; border: 0; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px minmax(0, 190px) 100px 64px; gap: 14px; align-items: center; min-height: 48px; padding: 6px 12px; margin: 0 -12px; width: calc(100% + 24px); border-radius: 10px; transition: background-color .2s; }
.log-row:hover { background: var(--wash); }
.log-row::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--rule); }
.log-row .t { color: var(--smoke); font-size: 13.5px; }
.log-row .what { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row .kind { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--smoke); }
.log-row .res { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row .res.bad { color: var(--oxblood); font-weight: 650; }
.log-row .who { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row .ms { text-align: right; color: var(--smoke); font-size: 13px; }
/* Kind, result and configuration sit in their own columns when there is room, on a second line when not. */
.log-row .sub { display: contents; }
.log-cols { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px minmax(0, 190px) 100px 64px; gap: 14px; padding: 0 12px 8px; margin: 0 -12px; color: var(--smoke); font-size: 12.5px; font-weight: 600; }
.log-cols span:last-child { text-align: right; }
.log-cols + .log-day { padding-top: 6px; }
.log-row .dbg { font-size: 11px; font-weight: 700; color: var(--smoke); border: 1px dashed var(--ash); border-radius: 6px; padding: 1px 6px; margin-left: 8px; vertical-align: 1px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.pager span { color: var(--smoke); font-size: 13.5px; }
/* A one-page list shows only its count, in a pager as tall as one with buttons. */
.pager.single { justify-content: center; min-height: 44px; }
.empty { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 28px 0; }
.empty .bubs-spot { width: 150px; }
.empty h2 { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.empty p { color: var(--smoke); margin-top: 6px; max-width: 48ch; }

/* ---------- drawer ---------- */
.drawer { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); background: var(--raised); color: var(--text); border-radius: 22px; box-shadow: var(--float), 0 0 0 1px var(--rule); display: grid; grid-template-rows: auto 1fr; overflow: hidden; animation: slide-in .5s var(--ease) both; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 22px 20px 16px 24px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { display: grid; gap: 6px; min-width: 0; }
.drawer-kind { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.drawer-name { font: 650 15px/1.4 var(--sans); color: var(--smoke); overflow-wrap: anywhere; }
.drawer-body { overflow: auto; padding: 18px 24px 28px; display: grid; gap: 22px; align-content: start; }
.drawer-body h3 { font-size: 13px; font-weight: 700; color: var(--smoke); }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--smoke); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
.kv .bad-text { color: var(--oxblood); }
/* Copy diagnostics: the drawer's first action, with what it holds beside it. */
.diag { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.diag p, .drawer-body .hint { font-size: 13.5px; color: var(--smoke); }
.diag p { flex: 1 1 220px; }
.diag-box textarea { min-height: 180px; font-size: 12.5px; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.picks li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.picks li img { width: 22px; height: 22px; border-radius: 6px; }
.picks li .rel { color: var(--smoke); font-size: 12.5px; display: block; overflow-wrap: anywhere; }
.fit { display: flex; align-items: center; gap: 12px; }
.fit .tube { flex: 1; }

/* ---------- configurations ---------- */
.config { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "name side" "uses side" "actions actions"; gap: 20px 48px; padding: 30px 0; border-top: 1.5px solid var(--text); }
.config-name { grid-area: name; }
.config > .uses { grid-area: uses; margin-top: 0; }
.config-side { grid-area: side; }
.config > .actions { grid-area: actions; }
.config:last-child { border-bottom: 1px solid var(--rule); }
.config-name { display: grid; gap: 6px; align-content: start; }
.config-name h2 { font: 900 44px/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.config-name .mono { color: var(--smoke); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 8px; font: 650 12.5px var(--sans); text-transform: none; letter-spacing: 0; background: var(--sunk); }
.status-pill.paused { background: var(--oxblood-soft); color: var(--oxblood); }
.uses { display: grid; gap: 10px; margin-top: 14px; }
/* Label column, then the values; wrapped chips line up under the first chip, not under the label. */
.uses-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; }
.uses-row .lbl { color: var(--smoke); line-height: 28px; }
.uses-row .vals { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; min-height: 28px; }
.uses-row .set-to { display: block; line-height: 1.55; padding-top: 3.5px; }
.pending { color: var(--smoke); font-style: italic; font-size: 13.5px; }
/* A source: its logo and its name in one chip, as the languages are. */
.src-chip { gap: 7px; padding-left: 4px; }
.src-chip img { width: 20px; height: 20px; background: #fff; box-shadow: 0 0 0 1px var(--rule-strong); }
.src-chip .ic { width: 16px; height: 16px; margin-left: 2px; }
.config-side { display: grid; gap: 18px; align-content: start; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.figs div { display: grid; gap: 4px; }
.figs dt { color: var(--smoke); font-size: 12.5px; order: 2; }
.figs dd { margin: 0; font: 800 38px/.9 var(--display); order: 1; }
.mini { position: relative; height: 26px; }
.mini::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--rule-strong); }
.mini .cue { position: absolute; top: 50%; transform: translate(-50%, -50%) scale(.85); }
.mini-cap { display: flex; justify-content: space-between; color: var(--smoke); font-size: 12px; }
/* A day without requests says so in words, instead of drawing an empty track. */
.mini-none { color: var(--smoke); font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; align-items: center; }
.actions .push { margin-left: auto; }
.inline-form { grid-column: 1 / -1; display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--sunk); animation: vt-in .4s var(--ease) both; }
.inline-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .row .field { flex: 1 1 220px; width: auto; }
.inline-form p { font-size: 13.5px; color: var(--smoke); }
.inline-form p b { color: var(--text); }

/* ---------- errors ---------- */
/* An error: the source's own tile with a red dot, what happened in plain words, then who, and the raw message. */
.err { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.err:first-child { border-top: 1.5px solid var(--text); }
.err-src { position: relative; width: 36px; height: 36px; margin-top: 1px; }
.err-src img { display: block; width: 36px; height: 36px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--rule-strong); }
.err-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--oxblood); box-shadow: 0 0 0 3px var(--paper); }
.err-body { display: grid; gap: 4px; min-width: 0; }
.err-title { font: 650 17px/1.3 var(--sans); letter-spacing: -0.005em; }
.err-meta { color: var(--smoke); font-size: 13.5px; }
.err-meta span + span::before { content: "·"; margin: 0 7px; }
.err-meta span:first-child { color: var(--text); font-weight: 600; }
.err-do { font-size: 14px; color: var(--text); max-width: 70ch; margin-top: 2px; }
.err-raw { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.err-raw code { font: 13px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--sunk); color: var(--text); padding: 3px 9px; border-radius: 8px; overflow-wrap: anywhere; }
.err-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 650; text-decoration: none; min-height: 32px; }
.err-go:hover { text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.err-go .chev { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.err-go:hover .chev { transform: translateX(3px); }
.err .when { display: grid; justify-items: end; gap: 4px; text-align: right; white-space: nowrap; }
.err .when b { font: 800 30px/.9 var(--display); }
.err .when span { color: var(--smoke); font-size: 13px; }
.err-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.err-scope { color: var(--smoke); font-size: 13.5px; }
.err-lost { margin: 8px 0 12px; }
.err-tools .select { width: auto; max-width: 100%; }
.err-on { overflow-wrap: anywhere; }
.err-times { color: var(--smoke); font-size: 13px; }
.err .when .err-times b { font: 650 13px var(--sans); color: var(--text); }
@media (min-width: 861px) { .err-tools .err-scope { margin-left: auto; } }
.err .dbg { font-size: 11px; font-weight: 700; color: var(--smoke); border: 1px dashed var(--ash); border-radius: 6px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
/* Cleared errors: listed apart, closed, and quieter (a hollow dot, muted titles), since they count nowhere. */
.cleared-errors { margin-top: 28px; }
.cleared-errors > .err-scope { margin: 2px 0 12px; }
.cleared-errors > .err-scope + .err { border-top: 1.5px solid var(--text); }
.err.is-cleared .err-dot { background: var(--paper); box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 2px var(--smoke); }
.err.is-cleared .err-title, .err.is-cleared .when b { color: var(--smoke); }
.count-tag { color: var(--smoke); font-weight: 600; font-size: 13.5px; }
.err.is-test .err-title { color: var(--smoke); }

/* ---------- settings ---------- */
.settings { display: grid; gap: 52px; }
.set-group { display: grid; }
.set-group > h2 { font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding-bottom: 12px; border-bottom: 1.5px solid var(--text); }
.set { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.set-label { display: grid; gap: 4px; }
.set-label label, .set-label .lbl { font-weight: 650; font-size: 15px; }
.set-label p { color: var(--smoke); font-size: 13.5px; max-width: 52ch; }
.set-label .src-line { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.set-control { display: grid; gap: 8px; }
.set-control .live { color: var(--smoke); font-size: 13px; }
.set-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--oxblood); font-size: 13.5px; font-weight: 600; }
.set-warn .ic { width: 16px; height: 16px; margin-top: 1px; }
.reset-to { font-weight: 450; color: var(--smoke); overflow-wrap: anywhere; }

.reset { appearance: none; border: 0; background: none; padding: 0; font-weight: 650; font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.env-list { list-style: none; margin: 0; padding: 0; display: grid; }
.env-list li { display: grid; grid-template-columns: minmax(160px, 5fr) minmax(0, 14fr) minmax(84px, auto); gap: 4px 28px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.env-what { color: var(--smoke); font-size: 13.5px; }
.env-name { color: var(--smoke); }
/* The sections' index, and how many settings come from where. */
.set-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.set-jump { appearance: none; height: 34px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; color: var(--text); font: 600 13.5px var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.set-jump:hover { border-color: var(--text); background: var(--wash); }
.set-summary { margin-left: auto; color: var(--smoke); font-size: 13.5px; }
.set-group { scroll-margin-top: 24px; }
.set-group > h2:focus { outline: none; }
.set-note { color: var(--smoke); font-size: 13.5px; padding: 14px 0 4px; max-width: 74ch; }
.set-control .switch-row { color: var(--text); font-weight: 600; }
.set-control .live.strong { color: var(--text); font-weight: 600; }
.set-control .live.strong:empty { display: none; }
/* What a setting's subject is doing now, read-only, under its control. */
.set-state { display: grid; gap: 8px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--wash); font-size: 13.5px; }
.set-state-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.set-state-name { color: var(--smoke); font-weight: 600; }
.set-state .state { align-items: flex-start; font-weight: 550; }
.set-state .state .dot { margin-top: 6px; }
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.savebar { position: fixed; z-index: 70; left: calc(50% + 126px); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 16px; background: var(--side); color: var(--side-text); box-shadow: var(--float); max-width: calc(100vw - 32px); animation: rise .5s var(--ease) both; }
.savebar .btn { background: transparent; color: inherit; border-color: rgb(248 248 246 / .3); height: 38px; }
.savebar .btn.primary { background: var(--butter); color: #16171A; border-color: transparent; }
.savebar-text { font-weight: 650; margin-right: 8px; white-space: nowrap; }
.savebar.blocked .savebar-text { color: #EFA39A; }
.savebar .btn[disabled] { opacity: .5; }
/* A field the server would refuse. */
.field-error { display: flex; gap: 8px; align-items: flex-start; color: var(--oxblood); font-size: 13.5px; font-weight: 600; animation: vt-in .35s var(--ease) both; }
.field-error .ic { width: 16px; height: 16px; margin-top: 2px; }
.field[aria-invalid] { border-color: var(--oxblood); box-shadow: 0 0 0 4px var(--oxblood-soft); }
.savebar.saved .savebar-text { color: var(--butter); }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }
.toast { position: fixed; z-index: 75; left: calc(50% + 126px); bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); transform: translateX(-50%); background: var(--side); color: var(--side-text); padding: 12px 12px 12px 20px; border-radius: 14px; box-shadow: var(--float); font-weight: 550; display: flex; gap: 12px; align-items: center; animation: rise .5s var(--ease) both; max-width: calc(100vw - 32px); }
.toast button { appearance: none; border: 0; background: var(--butter); color: #16171A; font-weight: 700; height: 34px; padding: 0 14px; border-radius: 10px; cursor: pointer; }

/* ---------- footer ---------- */
.foot { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 56px) 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--smoke); font-size: 13px; border-top: 1px solid var(--rule); }

/* ---------- Bubs motion ---------- */
.bubs-blink ellipse { animation: blink 5.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } 97% { transform: scaleY(0); } }
.bounce .bubs-upper { animation: sway .7s var(--ease) 2 alternate; transform-origin: 200px 266px; }
@keyframes sway { to { transform: rotate(-2.5deg) translateY(-3px); } }
.bubs-arm-right { transform-origin: 300px 198px; }
.noir-wave { transform-origin: 350px 160px; }
.cheer .bubs-arm-right { animation: wave 1.1s var(--ease); }
@keyframes wave { 25% { transform: rotate(-9deg); } 55% { transform: rotate(5deg); } 80% { transform: rotate(-4deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .stage { grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); }
  #bubs-host { margin-right: -56px; }
  .intertitle { padding: 40px 36px 36px 84px; min-height: 0; }
  .caption { font-size: clamp(44px, 5.6vw, 72px); }
}
@media (max-width: 1180px) {
  .ledger, .charts { grid-template-columns: 1fr; }
  .key { grid-template-columns: 1fr; gap: 16px; }
  .config { grid-template-columns: 1fr; grid-template-areas: "name" "side" "actions" "uses"; }
  .log-cols { display: none; }
  .log-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "t what ms" "t sub sub"; gap: 3px 14px; padding: 10px 12px; }
  .log-row .t { grid-area: t; align-self: start; padding-top: 1px; }
  .log-row .what { grid-area: what; }
  .log-row .ms { grid-area: ms; }
  .log-row .sub { grid-area: sub; display: flex; flex-wrap: wrap; align-items: center; min-width: 0; color: var(--smoke); font-size: 13.5px; }
  .log-row .sub > span { white-space: nowrap; }
  .log-row .sub > span + span::before { content: "·"; margin: 0 8px; color: var(--smoke); font-weight: 450; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .panel > .page-head { margin-bottom: -26px; }
  .side-in { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; }
  .brand { padding: 0; }
  .brand-word { font-size: 21px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; }
  .side-end { margin: 0; display: flex; gap: 4px; padding: 0; }
  .updated-row { padding: 0; }
  /* On phones Sign out is its icon alone; the word stays as its accessible name. */
  .signout span:not(.ic) { display: none; }
  /* New configuration is its icon alone in the top bar, as setup's Dashboard is: each page reaches the other. */
  .side .new-link span:last-child { display: none; }
  .new-link { min-width: 44px; justify-content: center; }
  .side .side-link { width: 44px; margin: 0; padding: 0; justify-content: center; }
  /* Shortcuts need a keyboard; What's new stays, the way back to the notes once their card is dismissed. */
  .kbd-hint:not(#show-notes) { display: none; }
  #show-notes { min-height: 44px; }
  .notes-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .notes-dialog .notes-head { padding: 18px 18px 14px; }
  .notes-dialog .notes-head h2 { font-size: 26px; }
  .notes-body { padding: 4px 18px 8px; }
  .notes-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .notes-foot .btn { flex: 1 1 100%; height: 48px; }
  .info-btn { width: 44px; height: 44px; margin: -6px 0; }
  .info-link { min-height: 44px; margin: -10px 0; }
  .search { flex: 1 1 100%; max-width: none; }
  .search kbd { display: none; }
  .info-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); width: auto; }
  .icon-btn { width: 44px; height: 44px; }
  .btn, .btn.small, .field, .select, .text-btn, .brand, .skip, .err-go, .reset, .switch-row { min-height: 44px; }
  .btn.small { height: 44px; }
  .seg button, .seg.small button { height: 44px; }
  .set .set-label > label { display: block; padding: 12px 0; margin: -12px 0; }
  .signout, .dash-link { min-width: 44px; justify-content: center; }
  .skip { display: inline-flex; align-items: center; }
  .reset { display: inline-flex; align-items: center; padding: 0 8px; margin: 0 -8px; }
  .set-jump { height: 44px; flex: 1 1 auto; }
  .set-summary { margin-left: 0; flex-basis: 100%; }
  .env-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .env-what { grid-column: 1 / -1; grid-row: 2; }
  details.more summary { min-height: 44px; }
  .ledger dd a { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; }
  .updated-row .updated { font-size: 13px; white-space: nowrap; }
  /* The top bar holds the time alone beside refresh, so New configuration fits; screen readers still hear "Updated". */
  .upd-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-end, .updated-row, .side-actions { gap: 0; }
  .src-wrap { display: none; }
  .src-lines { display: block; }
  .src-wrap thead { display: none; }
  .src-wrap table, .src-wrap tbody { display: block; }
  .src-wrap tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .src-wrap tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .src-wrap tbody td { display: grid; gap: 1px; text-align: left; border: 0; padding: 0; font: 800 22px/1 var(--display); }
  .src-wrap tbody td::before { content: attr(data-label); font: 500 12px/1.4 var(--sans); color: var(--smoke); }
  .side-actions { border: 0; padding: 0; margin: 0; gap: 2px; box-shadow: none; }
  /* The dock: flush on the bottom edge, full width, as a phone's tab bar is, the home indicator's strip inside it. */
  .tabs {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    flex-direction: row; justify-content: space-between; padding: 6px 12px calc(env(safe-area-inset-bottom, 0px) + 6px); border-radius: 0; background: var(--side); box-shadow: var(--dock-edge);
  }
  .tab { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; height: 56px; padding: 0; font-size: 12px; letter-spacing: -0.005em; border-radius: 12px; }
  .tab .ic { width: 21px; height: 21px; }
  .word-long { display: none; }
  .word-short { display: inline; }
  .tab-marker { top: 6px; left: 0; right: auto; height: 56px; border-radius: 12px; }
  .tab-marker::before { right: auto; left: 50%; top: auto; bottom: 5px; width: 6px; height: 6px; margin: 0 0 0 -3px; }
  .badge { position: absolute; top: 4px; right: calc(50% - 24px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); }
  main { padding-top: 18px; }
  .panel { gap: 56px; }
  .stage { grid-template-columns: 1fr; }
  #bubs-host { width: 132px; margin: 0 0 0 14px; }
  .intertitle { padding: 30px 22px 26px; min-height: 0; border-radius: 22px; margin-bottom: 16px; }
  .intertitle::before { inset: 9px; border-radius: 12px; }
  .intertitle::after { inset: 14px; border-radius: 8px; }
  .caption { font-size: 34px; }
  .caption::after { width: 48px; margin-top: 12px; }
  .verdict-lines a, .verdict-lines span.line { font-size: 15px; min-height: 44px; }
  .synced-line { font-size: 13.5px; }
  .readouts { grid-template-columns: 1fr; gap: 26px; }
  .lane, .axis { grid-template-columns: 76px 1fr; }
  .track-card > .tracks { order: 3; }
  .track-card > .readout { order: 2; min-height: 44px; }
  .lane-name { font-size: 13px; }
  .sticks, .days { gap: 5px; }
  .sticks { height: 150px; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .ledger .row { grid-column: 1 / -1; }
  .ledger .row.small { grid-column: auto; grid-template-columns: 1fr; grid-template-areas: "value" "label" "note"; row-gap: 4px; align-content: start; }
  .ledger .row.small dd { font-size: 28px; align-self: start; }
  .ledger .row.small dt { font-size: 13.5px; }
  .ledger .row.small .note { font-size: 12.5px; }
  .days { font-size: 11px; }
  /* A key's limits side by side, figure over label, so a key is one short block. */
  .meters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
  .meter-top { flex-direction: column-reverse; align-items: flex-start; gap: 3px; font-size: 12.5px; color: var(--smoke); }
  .meter-top b { font-size: 24px; }
  .meter-top .of { font-size: 12px; }
  .meter .note { font-size: 11.5px; line-height: 1.35; }
  .key { padding: 18px 0; gap: 14px; }
  .log-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 3px 12px; padding: 8px 10px; }
  .log-day { padding-top: 10px; }
  .log-row .what { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
  .log-row .sub { font-size: 13px; }
  .log-row .sub .kind { gap: 6px; font-size: 13px; }
  .log-row .res, .log-row .who { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* Filters one under another, each the full width: search, kind, configuration, test plays. */
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .filters .seg { display: flex; }
  .filters .seg button { flex: 1; }
  .filters .select { width: 100%; }
  .set { grid-template-columns: 1fr; }
  .empty { grid-template-columns: 96px 1fr; gap: 16px; }
  .empty .bubs-spot { width: 96px; }
  .config-name h2 { font-size: 38px; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn.push { flex: 0 0 auto; margin-left: auto; border-color: transparent; background: none; box-shadow: none; padding: 0 6px; }
  .scrim:not([hidden]) { background: var(--scrim-strong); }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 22px 22px 0 0; animation: sheet .45s var(--ease) both; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .drawer::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--rule-strong); }
  .savebar, .toast { left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); }
  .savebar-text { white-space: normal; font-size: 13.5px; }
  .stick .val { font-size: 11px; }
  .err { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .err .when { grid-column: 2; grid-row: 1; display: flex; justify-items: start; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .err .when b { font-size: 22px; }
  .err-body { grid-column: 2; }
  .err-src { grid-row: 1 / 3; }
  .ledger dd, .readout-item .big { font-size: 42px; }
}
@media (max-width: 400px) {
  .caption { font-size: 38px; }
}
/* Reduce motion: animations end at once, and nothing transitions. A tiny transition duration instead would give
   every element a transition on every property (transition-property defaults to all), so a size that settles
   after layout, like a preview line in container units, paints a frame at its first value. */
@media (prefers-reduced-motion: reduce) {
  html:not(.moving) *, html:not(.moving) *::before, html:not(.moving) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html:not(.moving) .bubs-blink ellipse { animation: none !important; transform: scaleY(0) !important; }
  html:not(.moving)::view-transition-group(*), html:not(.moving)::view-transition-old(*), html:not(.moving)::view-transition-new(*) { animation: none !important; }
}
/* The same when Reduce motion is switched on in the shortcuts dialog. */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
html.calm .bubs-blink ellipse { animation: none !important; transform: scaleY(0) !important; }
html.calm::view-transition-group(*), html.calm::view-transition-old(*), html.calm::view-transition-new(*) { animation: none !important; }

.chart .hint, .synced-line { text-wrap: pretty; }
/* Section intros keep a readable measure (74 characters) and balanced lines, so none ends in a stub. */
.page-head p { text-wrap: balance; }

/* ---------- silver screen: a double rule under each heading, as 1930s print and title cards framed things ---------- */
.block-head, .group-head, .set-group > h2, .log-day { border-bottom: 3px double var(--text); }
/* A real failure is a cinema-red title card (never a brown mix of ink and red), with ivory text, frame and rule. */
.level-bad .intertitle { background: #7A1C17; }
.level-bad .intertitle::before { border-color: rgb(248 248 246 / .4); }
.level-bad .intertitle::after { border-color: rgb(248 248 246 / .18); }
.level-bad .caption::after { background: var(--title-text); }
.level-bad .intertitle .dot.bad { background: var(--title-text); }
.level-bad .intertitle .dot.warn { box-shadow: inset 0 0 0 2px var(--title-text); }

/* Desktop rows stay one truncated line: the file-name break points are for the drawer and phones only. */
@media (min-width: 861px) { .log-row .what wbr { display: none; } }

/* Keys: limits still at zero, as one quiet line across the meters. */
.meters-zero { align-self: start; margin: 0; padding-top: 4px; color: var(--smoke); font-size: 13px; line-height: 1.6; }
/* Activity: the column names sit right under the first day's rule. */
.log-day + .log-cols { padding-top: 10px; }

/* ---------- what's new and updates: cards above New configuration, above the dock on phones ---------- */
.side-notes { display: grid; gap: 8px; }
.side-note { display: grid; gap: 4px; padding: 10px 10px 8px 12px; border: 1px solid rgb(248 248 246 / .12); border-radius: 3px; background: rgb(248 248 246 / .04); color: var(--side-muted); font-size: 12.5px; line-height: 1.45; }
.side-note-head { display: flex; align-items: center; gap: 8px; color: var(--side-text); font-size: 13.5px; }
.side-note-head > .ic { width: 16px; height: 16px; flex: none; }
.side-note.update .side-note-head > .ic { color: var(--butter); }
.side-note-head b { font-weight: 650; margin-right: auto; }
.side-note .dismiss { width: 32px; height: 32px; margin: -6px -6px -6px 0; color: var(--side-muted); }
.side-note .dismiss .ic { width: 14px; height: 14px; }
.side-note p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-note-link { appearance: none; justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--side-text); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: rgb(230 180 58 / .7); text-underline-offset: 3px; cursor: pointer; }
.side-note-link .ic { width: 14px; height: 14px; }
.notes-inline { display: none; }
/* What's new: a label and the release as the title over a double rule, the changes in a body that scrolls on
   its own, and a foot that stays: the release notes and Got it. */
.notes-dialog { width: min(580px, calc(100vw - 32px)); max-height: min(86vh, 780px); padding: 0; overflow: hidden; }
.notes-dialog[open] { display: flex; flex-direction: column; }
.notes-dialog .notes-head { align-items: flex-start; margin: 0; padding: 22px 24px 16px; border-bottom: 3px double var(--text); }
.notes-kicker { margin: 0 0 8px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.notes-dialog .notes-head h2 { font-size: 30px; line-height: 1.05; text-transform: none; }
.notes-dialog .notes-head h2:focus { outline: none; }
.notes-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 24px 10px; }
.notes-body p { margin: 0 0 10px; color: var(--smoke); line-height: 1.55; }
.notes-body .notes-summary { margin: 14px 0 6px; font-size: 16px; line-height: 1.5; color: var(--text); }
.notes-body code { font: 13px ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; color: var(--text); background: var(--sunk); padding: 3px 7px; border-radius: 3px; overflow-wrap: anywhere; }
.notes-items { list-style: none; margin: 0; padding: 0; }
.notes-items li { padding: 14px 0; border-top: 1px solid var(--rule); }
.notes-items li:first-child { border-top: 0; }
.notes-items h3 { margin: 0 0 4px; font: 700 15.5px/1.35 var(--sans); color: var(--text); }
.notes-items p { margin: 0; }
.notes-items p b { color: var(--text); font-weight: 700; }
.notes-small { font-size: 12.5px; }
.notes-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 24px 18px; border-top: 1px solid var(--rule-strong); }
.notes-foot .info-link .ic { width: 13px; height: 13px; }
.notes-foot .btn { min-width: 120px; margin-left: auto; }
/* Phones: the cards float above the dock, where the home-screen prompt sits, so Overview never moves when
   one comes or goes; they wait while that prompt or a toast has the spot. */
@media (max-width: 860px) {
  .side .side-notes { display: none; }
  .notes-inline:not(:empty) { position: fixed; z-index: 39; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); max-width: 420px; margin: 0 auto; display: grid; gap: 8px; animation: install-in .5s var(--ease) both; }
  body:has(.install-card) .notes-inline, body:has(#toast:not([hidden])) .notes-inline { display: none; }
  .notes-inline .side-note { background: var(--graphite); border-color: transparent; color: var(--side-muted); box-shadow: var(--float), 0 0 0 1px rgb(248 248 246 / .08); }
  .notes-inline .side-note .dismiss, .notes-inline .side-note-link { min-height: 44px; }
  .notes-inline .side-note .dismiss { width: 44px; height: 44px; margin: -12px -10px -12px 0; }
}

/* iOS zooms the page into a field whose text is under 16 px as soon as it's tapped: on touch screens every
   field's text is 16 px, so tapping one never zooms. */
@media (hover: none), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea, .field { font-size: 16px !important; }
}

/* In a home-screen app the status bar lies over the page (black-translucent): its strip is the top bar's
   graphite at every scroll, so the clock never sits on the page. In a browser the strip has no height. */
html::before { content: ""; position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--side); pointer-events: none; }
/* iOS tints the strip under its status bar from the page's own background, not from theme-color or the strip
   above: on phones that background is the top bar's graphite, the content column keeps the paper, and the
   room left for the dock is the column's own padding. */
@media (max-width: 860px) {
  html:has(.shell), html:has(.shell) body { background: var(--side); }
  html:has(.shell) body { padding-bottom: 0; }
  .shell > .work { background: var(--paper); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); }
  .cfg-page .shell > .work { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}
/* Narrow phones (360 px): the top bar's padding, gaps and wordmark a size smaller, so the time and its four
   buttons still fit beside the brand. */
@media (max-width: 380px) {
  .side-in { gap: 4px; padding-left: 10px; padding-right: 10px; }
  .side .brand-word { font-size: 17px; }
  .side .brand { gap: 6px; }
}

/* ---------- the home-screen prompt (install.js): a card above the dashboard's dock, on phones only ---------- */
.install-card { position: fixed; z-index: 39; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); max-width: 420px; margin: 0 auto; padding: 14px 14px 12px; background: var(--side); color: var(--side-text); border-radius: 3px; box-shadow: var(--float), 0 0 0 1px rgb(248 248 246 / .08); animation: install-in .5s var(--ease) both; }
.install-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(230 180 58 / .75), transparent); }
@keyframes install-in { from { transform: translateY(16px); opacity: 0; } }
.install-card :focus-visible { outline-color: var(--butter); }
.install-head { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; }
.install-head img { width: 40px; height: 40px; border-radius: 9px; }
.install-title { margin: 1px 0 0; font-weight: 650; font-size: 15px; line-height: 1.3; }
.install-sub { margin: 3px 0 0; color: var(--side-muted); font-size: 13px; line-height: 1.4; }
.install-card .icon-btn { width: 44px; height: 44px; margin: -10px -8px 0 0; color: var(--side-muted); }
.install-card .icon-btn .ic { width: 16px; height: 16px; }
.install-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; color: var(--side-muted); font-size: 13px; line-height: 1.35; }
.install-steps b { color: var(--side-text); font-weight: 650; margin-right: 2px; }
.install-key { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; border: 1px solid rgb(248 248 246 / .16); background: rgb(248 248 246 / .06); color: var(--side-text); }
.install-key .ic { width: 16px; height: 16px; }
.install-key.word { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.install-go { display: flex; justify-content: flex-end; margin-top: 10px; }
.install-go .btn { height: 44px; }
.install-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgb(248 248 246 / .1); color: var(--side-muted); font-size: 12.5px; line-height: 1.45; }
/* While changes wait to be saved, the save bar has the spot. */
body:has(#savebar:not([hidden])) .install-card { display: none; }
@media (min-width: 861px) { .install-card { display: none; } }
/* A message while the save bar is up sits above it, so it never covers Save. */
body:has(#savebar:not([hidden])) .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
@media (max-width: 860px) { body:has(#savebar:not([hidden])) .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); } }
