/* Portal styles on top of Web Awesome (/wa/styles/webawesome.css: theme, native element styles, utilities).
   Web Awesome's rules sit in cascade layers, so anything here wins over them: keep this file to layout and
   portal-specific pieces, and colour, spacing and type through --wa-* tokens so light and dark both work. */

/* ---------- Local Minute brand (the tokens of localminute.news, branding/local-minute) ----------
   The brand is set once here as Web Awesome tokens, so every component and native element picks it up.
   river #0F4C52, deep #0A3438, night #06181a, sand #F4EAD5, cream #FBF5E8, cane #C9E265, soil #A8432A, ink #18261F. */
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 800 900; font-display: swap; src: url(/fonts/barlow-800.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-weight: 600 900; font-display: swap; src: url(/fonts/fraunces-900.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/fonts/nunito-900.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400 600; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format('woff2'); }

:root {
  --lm-river: #0F4C52; --lm-deep: #0A3438; --lm-night: #06181a; --lm-sand: #F4EAD5; --lm-cream: #FBF5E8;
  --lm-cane: #C9E265; --lm-cane-deep: #A9C445; --lm-soil: #A8432A; --lm-signal: #D93A2B; --lm-ink: #18261F;
  --lm-mono: 'IBM Plex Mono', ui-monospace, monospace; --lm-word: Nunito, Barlow, sans-serif;
}
:root, .wa-light, .wa-dark {
  /* River teal as the brand scale (95 lightest, 05 darkest) */
  --wa-color-brand-95: #ecf5f3; --wa-color-brand-90: #d5eae7; --wa-color-brand-80: #a9d3cf; --wa-color-brand-70: #74b4b0;
  --wa-color-brand-60: #3f918f; --wa-color-brand-50: #17707a; --wa-color-brand-40: #0F4C52; --wa-color-brand-30: #0c3f44;
  --wa-color-brand-20: #0A3438; --wa-color-brand-10: #08262a; --wa-color-brand-05: #06181a;
  --wa-color-brand: #0F4C52; --wa-color-brand-on: #FBF5E8;
  /* Warm greys, leaning to the brand's teal ink and sand */
  --wa-color-neutral-95: #f5f0e4; --wa-color-neutral-90: #e7e1d3; --wa-color-neutral-80: #cbc8bc; --wa-color-neutral-70: #aab0a8;
  --wa-color-neutral-60: #86918d; --wa-color-neutral-50: #66736f; --wa-color-neutral-40: #4d5f5c; --wa-color-neutral-30: #36443f;
  --wa-color-neutral-20: #22312d; --wa-color-neutral-10: #18261F; --wa-color-neutral-05: #0e1714;
  --wa-color-neutral: #4d5f5c; --wa-color-neutral-on: #FBF5E8;

  --wa-font-family-body: Barlow, ui-sans-serif, system-ui, sans-serif;
  --wa-font-family-heading: Fraunces, Georgia, serif;
  --wa-font-family-code: var(--lm-mono);
  --wa-font-weight-normal: 500; --wa-font-weight-semibold: 600; --wa-font-weight-bold: 700;
  --wa-font-weight-heading: 900; --wa-font-weight-action: 700;
  --wa-border-radius-scale: 1.35;
}
/* Light: cream page, near-white cards, ink text, river-teal buttons and links. */
:root, .wa-light {
  --wa-color-surface-raised: #fffdf8; --wa-color-surface-default: #fffdf8; --wa-color-surface-lowered: var(--lm-cream);
  --wa-color-surface-border: rgb(10 52 56 / .13);
  --wa-color-text-normal: var(--lm-ink); --wa-color-text-quiet: #4d5f5c; --wa-color-text-link: var(--lm-river);
  --wa-color-focus: #17707a;
  --wa-color-brand-fill-quiet: #e9f1df; --wa-color-brand-fill-normal: #dceac4; --wa-color-brand-fill-loud: var(--lm-river);
  --wa-color-brand-on-quiet: var(--lm-river); --wa-color-brand-on-normal: var(--lm-deep); --wa-color-brand-on-loud: var(--lm-cream);
  --lm-accent: var(--lm-soil);
}
/* Dark: the site's night teal, sand text, cane-green buttons. */
.wa-dark {
  --wa-color-surface-raised: #123b3e; --wa-color-surface-default: #0c2c2f; --wa-color-surface-lowered: var(--lm-night);
  --wa-color-surface-border: rgb(244 234 213 / .12);
  --wa-color-text-normal: var(--lm-sand); --wa-color-text-quiet: rgb(244 234 213 / .66); --wa-color-text-link: var(--lm-cane);
  --wa-color-focus: var(--lm-cane);
  --wa-color-brand-fill-quiet: rgb(201 226 101 / .13); --wa-color-brand-fill-normal: rgb(201 226 101 / .22); --wa-color-brand-fill-loud: var(--lm-cane);
  --wa-color-brand-border-quiet: rgb(201 226 101 / .2); --wa-color-brand-border-normal: rgb(201 226 101 / .35); --wa-color-brand-border-loud: var(--lm-cane-deep);
  --wa-color-brand-on-quiet: var(--lm-cane); --wa-color-brand-on-normal: #d6ec7c; --wa-color-brand-on-loud: var(--lm-deep);
  --wa-color-neutral-fill-quiet: rgb(244 234 213 / .07); --wa-color-neutral-fill-normal: rgb(244 234 213 / .12);
  --wa-color-neutral-border-quiet: rgb(244 234 213 / .14); --wa-color-neutral-border-normal: rgb(244 234 213 / .22);
  --lm-accent: #f0a48f;
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--wa-font-family-heading); font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
h4, h5, h6 { font-family: var(--wa-font-family-body); }
::selection { background: var(--lm-cane); color: var(--lm-deep); }
/* Primary buttons are pills, like the site's calls to action. */
button.wa-brand, .wa-button.wa-brand, wa-button[variant=brand]::part(base) { border-radius: var(--wa-border-radius-pill); }
button.wa-brand, .wa-button.wa-brand { padding-inline: 1.25em; }
button:has(> wa-icon), .wa-button:has(> wa-icon) { gap: .4em; } /* flex drops the space after an icon */

html, body { min-height: 100%; margin: 0; padding: 0; }
/* Web Awesome's default look: a grey page with white cards on it. */
body, wa-page { background: var(--wa-color-surface-lowered); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video { max-width: 100%; }
h1 { font-size: var(--wa-font-size-2xl); }
h2 { font-size: var(--wa-font-size-l); }
/* Plain links (no dotted underline) so lists of titles stay easy to scan. */
a:where(:not(.wa-button)) { text-decoration: none; }
/* :where keeps this weak, so a card link's own "text-decoration: none" on hover wins (Liam, 11 Nov 2026) */
a:where(:not(.wa-button)):hover { text-decoration: underline; }
.muted { color: var(--wa-color-text-quiet); }
.small { font-size: var(--wa-font-size-s); }
.hint { display: block; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-xs); font-weight: var(--wa-font-weight-body); margin-top: 5px; }
/* .hint margin-top: 5px plus the room Barlow leaves above its capitals at 12px (about 3px) puts the hint's text about 8px under the field above it. */
/* Info: an (i) beside a label or heading whose longer explanation shows on hover, focus or a tap (src/views/ui.tsx Info,
   public/app.client.js). While it's closed the text is clipped, not removed, so screen readers still read it in place. */
.info { position: relative; display: inline-flex; vertical-align: baseline; margin-left: .3em; font-family: var(--wa-font-family-body);
  font-size: var(--wa-font-size-s); font-weight: var(--wa-font-weight-body); letter-spacing: normal; line-height: 1; text-transform: none; }
.info-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em;
  margin: -.25em; border-radius: 50%; color: var(--wa-color-text-quiet); cursor: help; font-size: 1em; }
.info-btn wa-icon { font-size: .95em; }
.info.warn .info-btn { color: var(--k-bad); }
.info-btn:hover, .info.open .info-btn { color: var(--wa-color-text-link); }
.info-btn:focus-visible { outline: var(--wa-focus-ring); outline-offset: 1px; }
.info-tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.info:hover > .info-tip, .info:focus-within > .info-tip, .info.open > .info-tip {
  clip-path: none; overflow: visible; white-space: normal; width: max-content; max-width: min(20rem, calc(100vw - 2rem)); height: auto;
  z-index: 50; top: calc(100% + 8px); left: -.6em; padding: var(--wa-space-s) var(--wa-space-m); box-sizing: border-box;
  background: var(--wa-color-surface-raised); color: var(--wa-color-text-normal); border: 1px solid var(--wa-color-surface-border);
  border-radius: var(--wa-border-radius-m); box-shadow: var(--wa-shadow-l); font-size: var(--wa-font-size-s); line-height: 1.45; text-align: left; }
.info.shut > .info-tip { clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; white-space: nowrap; }
/* A strip over the gap, so the pointer can move from the (i) into the text (and its link) without it closing. */
.info:hover > .info-tip::before, .info.open > .info-tip::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
/* app.client.js sets these when the text would run off the screen: --info-x moves it sideways, .up puts it above. */
.info > .info-tip { translate: var(--info-x, 0) 0; }
.info.up > .info-tip { top: auto; bottom: calc(100% + 8px); }
.info.up > .info-tip::before { top: auto; bottom: -10px; }
label.check .info, label.inline .info { margin-left: 0; }
.error-text { color: var(--wa-color-danger-on-quiet); }

/* App shell (wa-page): header bar and the sidebar, which becomes a slide-out menu on phones. */
wa-page { --menu-width: 13rem; }
wa-page[view='mobile'] { --menu-width: auto; }
.topbar { padding: var(--wa-space-xs) var(--wa-space-l); min-height: 64px; box-sizing: border-box; background: var(--lm-deep); color: var(--lm-sand); border-bottom: 1px solid rgb(244 234 213 / .08); }
/* The header is always the site's deep teal, in light and dark. */
.topbar wa-button::part(base) { color: var(--lm-sand); }
.topbar button.wa-plain { color: rgb(244 234 213 / .8); }
.topbar button.wa-plain:hover { color: var(--lm-cane); background: rgb(244 234 213 / .08); }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
a.lockup:hover { text-decoration: none; }
.lockup svg { width: 38px; height: 38px; flex: none; }
.lockup b { font: 900 19px/.86 var(--lm-word); letter-spacing: -.02em; }
.brand-tag { font: 500 11px/1 var(--lm-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--lm-cane); border: 2px solid rgb(201 226 101 / .24); border-radius: var(--wa-border-radius-pill); padding: 5px 9px; margin-left: 4px; }
.me a { color: var(--lm-sand); text-decoration: none; font-weight: var(--wa-font-weight-semibold); }
.me a:hover { color: var(--lm-cane); text-decoration: none; }
.me form { margin: 0; }
/* The country dropdown (lib/country.ts): quiet on the dark bar, like the links beside it. */
.country-pick select { background: rgb(244 234 213 / .08); color: var(--lm-sand); border: 1px solid rgb(244 234 213 / .2); border-radius: var(--wa-border-radius-m); padding: 4px 8px; font: inherit; font-weight: var(--wa-font-weight-semibold); min-height: 0; width: auto; }
.country-pick select:disabled { opacity: 1; cursor: default; appearance: none; }
.country-pick option { color: initial; background: initial; }
.sidenav { display: flex; flex-direction: column; gap: var(--wa-space-3xs); padding: var(--wa-space-m) var(--wa-space-s); }
.sidenav a { display: flex; align-items: center; gap: var(--wa-space-s); padding: var(--wa-space-xs) var(--wa-space-s); border-radius: var(--wa-border-radius-m); color: var(--wa-color-text-quiet); text-decoration: none; font-weight: var(--wa-font-weight-semibold); }
.sidenav a wa-icon { width: 1.25em; color: var(--wa-color-text-quiet); }
.sidenav a:hover { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }
.sidenav a.on { background: var(--lm-cane); color: var(--lm-deep); }
.wa-dark .sidenav a.on { background: rgb(201 226 101 / .16); color: var(--lm-cane); }
.sidenav a.on wa-icon { color: inherit; }
wa-page[view='desktop'] .sidenav { position: sticky; top: 0; }
/* desktop: the first item's middle lines up with the page title's (h1 32px at the top of main; Liam, 12 Nov 2026) */
wa-page[view='desktop'] .sidenav { padding-top: calc(var(--wa-space-m) + 13px); }

.page { max-width: 1200px; padding: var(--wa-space-xl) var(--wa-space-l) var(--wa-space-4xl); }
.page.narrow { max-width: 26rem; margin: 0 auto; padding-top: 12vh; }
main.page > wa-callout { margin-bottom: var(--wa-space-m); }

/* Cards and grids */
.card { background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); padding: var(--wa-space-l); margin-bottom: var(--wa-space-l); }
.card > :first-child, .card > form > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--wa-space-l); margin-bottom: var(--wa-space-xl); }
.cards .card { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wa-space-2xl); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-m); flex-wrap: wrap; margin-bottom: var(--wa-space-m); }
.row h1, .row h2 { margin: 0; }
.crumbs { color: var(--wa-color-text-quiet); margin: 0 0 var(--wa-space-xs); font: 500 var(--wa-font-size-2xs)/1.6 var(--lm-mono); letter-spacing: .1em; text-transform: uppercase; }
.crumbs a { color: var(--lm-accent); }
.stack > * + * { margin-top: var(--wa-space-m); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wa-space-m) var(--wa-space-l); }
.grid2 .wide { grid-column: 1 / -1; }
/* Media › Test videos: a card per test with its win rate against the 70% goal, then the list in Media's layout. */
.trial-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--wa-space-s); margin: var(--wa-space-m) 0 var(--wa-space-l); }
.trial-score { display: flex; flex-direction: column; gap: var(--wa-space-2xs); padding: var(--wa-space-m); background: var(--wa-color-surface-raised);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); }
.trial-score.won { border-color: var(--wa-color-brand-border-normal); background: linear-gradient(var(--wa-color-brand-fill-quiet), var(--wa-color-surface-raised)); }
.trial-score-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-xs); font-family: var(--lm-mono); text-transform: uppercase; letter-spacing: .06em; font-size: var(--wa-font-size-s); }
.trial-score-head .count { font-family: var(--wa-font-family-body); text-transform: none; letter-spacing: 0; }
.trial-score-big { font-family: var(--wa-font-family-heading); font-size: var(--wa-font-size-2xl); font-weight: var(--wa-font-weight-bold); line-height: 1.1; }
.trial-score-big .small { font-family: var(--wa-font-family-body); font-weight: var(--wa-font-weight-body); }
.trial-meter { position: relative; height: 6px; margin: var(--wa-space-2xs) 0 var(--wa-space-xs); border-radius: 3px; background: var(--wa-color-neutral-fill-quiet); }
.trial-meter::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 3px; background: var(--wa-color-text-quiet); }
.trial-score.won .trial-meter::before { background: var(--wa-color-brand-fill-loud); }
.trial-meter i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--wa-color-text-normal); border-radius: 1px; }
.thumb .ph.trial-ph { display: flex; align-items: center; justify-content: center; color: var(--wa-color-text-quiet); text-decoration: none; }
.trial-test { font-family: var(--lm-mono); font-size: .85em; padding: 0 .4em; border-radius: var(--wa-border-radius-s); background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }
.trials-list .status .wa-button { white-space: nowrap; }
.trials-list.tab-review .reviewer { display: none; }
@media (max-width: 640px) {
  .trial-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wa-space-xs); }
  .trial-score { padding: var(--wa-space-s); }
  .trial-score-big { font-size: var(--wa-font-size-xl); }
}
.grid2.trial-grid { margin-bottom: var(--wa-space-l); } /* a test video's players, then its verdict card */
.grid2 > *, .cols > *, .cards > * { min-width: 0; margin: 0; }
fieldset > * + * { margin-top: var(--wa-space-s); }
textarea { resize: vertical; }
label.check, label.inline { display: flex; gap: var(--wa-space-xs); align-items: center; font-weight: var(--wa-font-weight-body); width: auto; }
label.inline { display: inline-flex; }

/* Tabs (each tab is its own page, so they are links rather than wa-tab-group). Every main menu is the same row of
   pills (Liam, 12 Nov: "make every main menu in the portal the same" as Analytics): an icon and a label, the open tab
   lifted onto a card. On a phone the row scrolls sideways. */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 -4px var(--wa-space-l); padding: 4px; } /* -4px: the first pill lines up with the hero and cards below (Liam, 12 Nov) */
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: var(--wa-font-size-s);
  color: var(--wa-color-text-quiet); border: var(--wa-border-width-s) solid transparent; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a > wa-icon { font-size: .95em; opacity: .8; }
.tabs a:hover { text-decoration: none; color: var(--wa-color-text-normal); background: var(--wa-color-neutral-fill-quiet); }
.tabs a.on { background: var(--wa-color-surface-default); color: var(--wa-color-text-normal); border-color: var(--wa-color-surface-border); box-shadow: var(--wa-shadow-s); }
.tabs a.on > wa-icon { color: var(--lm-cane-deep); opacity: 1; }
.wa-dark .tabs a.on > wa-icon { color: var(--lm-cane); }
.tabs a .count { margin-left: -2px; }
.tabs a.on .count { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); }
.card .tabs { margin-top: calc(-1 * var(--wa-space-xs)); }
.card .tabs a.on { background: var(--wa-color-surface-lowered); box-shadow: none; }
/* the quality score's split of the review queue, under the status tabs */
/* A row that scrolls sideways (the tabs on a phone) fades on the side with more; app.client.js sets the classes. */
.more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
.more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem); mask-image: linear-gradient(to right, transparent, #000 3rem); }
.more-start.more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.tabs.sub { margin-top: calc(-1 * var(--wa-space-m)); padding: 0 4px; gap: 4px; }
/* a card that opens with its sub-tabs (Sponsors › Sponsors): room between the pills and the table under them */
.card > .tabs.sub:first-child { margin: 0 0 var(--wa-space-m); padding: 0; }
.tabs.sub a { padding: var(--wa-space-2xs) var(--wa-space-s); font-weight: 600; border-radius: 99px; }
.tabs.sub a.on { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); border-color: transparent; box-shadow: none; }
.bulk-approve { display: flex; align-items: center; gap: var(--wa-space-s); flex-wrap: wrap; margin-bottom: var(--wa-space-m); }
.count { display: inline-block; min-width: 1.5em; text-align: center; font-size: var(--wa-font-size-2xs); background: var(--wa-color-neutral-fill-quiet); border-radius: var(--wa-border-radius-pill); padding: 0 .4em; color: var(--wa-color-text-quiet); font-weight: var(--wa-font-weight-semibold); }

.filters { display: flex; gap: var(--wa-space-xs); flex-wrap: wrap; align-items: center; margin-bottom: var(--wa-space-l); }
.filters input, .filters select { width: auto; margin: 0; }
.filters input[type=search] { min-width: 240px; flex: 1; }

/* Tables */
table.list { background: var(--wa-color-surface-default); box-shadow: var(--wa-shadow-s); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: var(--wa-space-l); }
.list th, .list td { text-align: left; padding: var(--wa-space-s) var(--wa-space-m); vertical-align: top; }
.list th { font: 500 var(--wa-font-size-2xs)/1.4 var(--lm-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wa-color-text-quiet); background: var(--wa-color-surface-default); }
.list td { border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
/* Web Awesome draws a line under every header cell, and the first row's cells draw their own line on top, so the
   header showed a double border. Drop the header's line everywhere and keep the rows' line. */
thead, thead th { border-bottom: none; }
.list.compact td, .list.compact th { padding: var(--wa-space-xs) var(--wa-space-s); }
.list tr.off td { opacity: .55; }
.list .actions { display: flex; gap: var(--wa-space-xs); align-items: flex-start; justify-content: flex-end; }
.list .actions form { margin: 0; }
.list details summary { cursor: pointer; font-size: var(--wa-font-size-s); }
form.inline { display: flex; gap: var(--wa-space-xs); margin-top: var(--wa-space-xs); align-items: center; }
form.inline input { margin: 0; }
.rowform { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr 1.4fr auto auto; gap: var(--wa-space-xs); align-items: center; }
.rowform input, .rowform select { margin: 0; }
.rowform label { font-weight: var(--wa-font-weight-body); min-width: 0; }
.media-list .thumb, .pick-list .pick { width: 1%; }
.pick-list th.pick, .pick-list td.pick { padding-right: 0; }
/* Media: every column but the title is as narrow as its content, so the title gets the room, on one line cut with an
   ellipsis (the whole title is its tooltip and on the video's page; max-width: 0 lets the cell shrink below its text).
   The review time breaks only before the clock (Stamp in src/pages/media.tsx). */
.media-list th { white-space: nowrap; }
.media-list .clamp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 641px) {
  .media-list .town, .media-list .episode, .media-list .status, .media-list .reviewer { width: 1%; }
  .media-list td.town, .media-list .reviewer .name { white-space: nowrap; }
  .media-list td.title { max-width: 0; }
}
/* To review: nobody has reviewed these yet, and every one is "Ready for review", so neither needs saying on each row. */
.media-list.tab-to_review .s-pending_review { display: none; }
.review-flags { margin-top: 2px; }
.review-flags .muted { max-width: 22ch; }
.flag-list { margin: 0.4em 0 0.6em; padding-left: 1.1em; }
.flag-list li { margin: 0.25em 0; }
/* the town goes under the episode date once the window is too narrow for its own column (phones: before the date) */
.ep-town { display: none; }
@media (max-width: 1100px) {
  .media-list .town { display: none; }
  .ep-town { display: block; white-space: nowrap; }
  .ep-town .sep { display: none; }
}
/* a narrow window: tighter cells, so the title keeps some room */
@media (min-width: 641px) and (max-width: 1100px) { .media-list th, .media-list td { padding-left: var(--wa-space-xs); padding-right: var(--wa-space-xs); } }
.nowrap { white-space: nowrap; }
.pick-box { display: block; margin: 0; cursor: pointer; }
.pick-list input[type=checkbox], .bulk-bar input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--wa-color-brand-fill-loud); cursor: pointer; }
.pick-list tr.picked td { background: var(--wa-color-brand-fill-quiet); }
/* The Media list's tick boxes (web/tables.js): "tick all" above the list, and with rows ticked, their actions in a
   bar floating along the bottom of the screen, so it's in reach wherever the list is scrolled to. */
.bulk-bar { display: contents; }
.bulk-bar .bulk-all { display: none; } /* the list's header has the tick-all box; phones have no header row */
.bulk-all { display: flex; align-items: center; gap: var(--wa-space-xs); margin: 0; font-weight: var(--wa-font-weight-body); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); cursor: pointer; }
.bulk-actions:not([hidden]) { position: fixed; z-index: 20; bottom: calc(var(--wa-space-m) + env(safe-area-inset-bottom, 0px)); left: var(--wa-space-m); right: var(--wa-space-m);
  display: flex; gap: var(--wa-space-xs); flex-wrap: wrap; align-items: center; padding: var(--wa-space-s) var(--wa-space-m);
  background: var(--wa-color-surface-raised); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-l); }
wa-page[view='desktop'] .bulk-actions:not([hidden]) { left: calc(var(--menu-width) + var(--wa-space-xl)); right: var(--wa-space-xl); }
.bulk-n { font-weight: var(--wa-font-weight-semibold); margin-right: auto; }
main.page:has(.bulk-actions:not([hidden])) { padding-bottom: 7rem; }
.bulk-actions button { margin: 0; }
.bulk-actions button[hidden] { display: none; }
.thumb img, .thumb .ph { width: 36px; height: 64px; max-width: none; object-fit: cover; border-radius: var(--wa-border-radius-s); background: var(--wa-color-neutral-fill-quiet); display: block; }
tr.st-check td { background: var(--wa-color-warning-fill-quiet); }
/* Emails: one line per cell, cut with an ellipsis (the full text is the title, and on the email's own page). */
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.emails-list { table-layout: fixed; width: 100%; }
.emails-list th.when { width: 11.5rem; } .emails-list th.to { width: 22%; } .emails-list th.status { width: 6.5rem; }
@media (min-width: 641px) and (max-width: 1100px) { .emails-list th.when { width: 10rem; } .emails-list th.to { width: 18%; } }
.emails-list td { vertical-align: middle; }
.emails-list td.subject a { font-weight: var(--wa-font-weight-semibold); color: var(--wa-color-text-normal); }
.emails-list td.subject a:hover { color: var(--lm-accent); text-decoration: underline; }
.emails-list td.subject .small { margin-top: 2px; }
.emails-list td.when, .emails-list td.to { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
.email-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs); overflow-wrap: anywhere; }

/* DataTables (web/tables.js) on table.list: its search, page size, info and paging, in Web Awesome's tokens. */
.dt-container { margin-bottom: var(--wa-space-l); }
.dt-container table.list { margin-bottom: 0; width: 100%; }
.dt-layout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wa-space-xs) var(--wa-space-m); }
.dt-layout-row:first-child:not(.dt-layout-table) { margin-bottom: var(--wa-space-m); }
.dt-layout-row:last-child:not(.dt-layout-table) { margin-top: var(--wa-space-s); }
.dt-layout-row.dt-layout-table { display: block; }
.dt-layout-cell:empty { display: none; }
.dt-layout-start { margin-right: auto; } .dt-layout-end { margin-left: auto; }
.dt-search { flex: 1 1 auto; }
/* the search box runs across to the page-size menu */
.dt-layout-start:has(.dt-search) { flex: 1 1 320px; margin-right: 0; }
.dt-container { position: relative; }
.dt-processing { position: absolute; z-index: 2; top: 5rem; left: 50%; transform: translateX(-50%); padding: var(--wa-space-xs) var(--wa-space-m);
  background: var(--wa-color-surface-raised); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-pill);
  box-shadow: var(--wa-shadow-m); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.dt-processing > div { display: none; }
.dt-search input.dt-input { margin: 0; width: 100%; }
.dt-length { display: flex; align-items: center; gap: var(--wa-space-xs); color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
.dt-length label { font-weight: var(--wa-font-weight-body); margin: 0; }
.dt-length select.dt-input { width: auto; margin: 0; }
.dt-info { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
.dt-paging nav { display: flex; gap: var(--wa-space-3xs); flex-wrap: wrap; }
.dt-paging .dt-paging-button { all: unset; box-sizing: border-box; min-width: 2.25em; height: 2.25em; padding: 0 .6em; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--wa-border-radius-pill); font-size: var(--wa-font-size-s); font-weight: var(--wa-font-weight-semibold); color: var(--wa-color-text-normal); cursor: pointer; }
.dt-paging .dt-paging-button:hover:not(.disabled):not(.current) { background: var(--wa-color-neutral-fill-quiet); }
.dt-paging .dt-paging-button:focus-visible { outline: var(--wa-focus-ring); outline-offset: var(--wa-focus-ring-offset); }
.dt-paging .dt-paging-button.current { background: var(--wa-color-brand-fill-loud); color: var(--wa-color-brand-on-loud); cursor: default; }
.dt-paging .dt-paging-button.disabled { color: var(--wa-color-text-quiet); opacity: .5; cursor: default; }
.dt-paging .ellipsis { padding: 0 .3em; color: var(--wa-color-text-quiet); align-self: center; }
/* Sortable headings: a quiet ↕, the sorted column an arrow in the brand colour. */
.list th .dt-column-header { display: flex; align-items: center; gap: .35em; }
.list th.r .dt-column-header, .list th.dt-right .dt-column-header { justify-content: flex-end; } /* right-aligned numbers: title and sort arrow pushed to the right, the arrow still after the title */
.list th.r, .list th.dt-right { text-align: right; }
.list th.dt-orderable-asc, .list th.dt-orderable-desc { cursor: pointer; user-select: none; }
.list th.dt-orderable-asc:hover, .list th.dt-orderable-desc:hover { color: var(--wa-color-text-normal); }
.list th .dt-column-order:empty { display: none; }
.list th.dt-orderable-asc .dt-column-order, .list th.dt-orderable-desc .dt-column-order { display: inline-block; font-family: var(--wa-font-family-body); letter-spacing: 0; opacity: .45; }
.list th.dt-orderable-asc .dt-column-order::after, .list th.dt-orderable-desc .dt-column-order::after { content: '↕'; }
.list th.dt-ordering-asc .dt-column-order, .list th.dt-ordering-desc .dt-column-order { opacity: 1; color: var(--wa-color-brand-on-quiet); }
.list th.dt-ordering-asc .dt-column-order::after { content: '↑'; }
.list th.dt-ordering-desc .dt-column-order::after { content: '↓'; }
.list th:focus-visible { outline: var(--wa-focus-ring); outline-offset: calc(-1 * var(--wa-focus-ring-width, 3px)); }
.dt-sort { display: none; }
/* Above phone width the column headers sort, so a top row holding only the phone's sort menu takes no room. */
@media (min-width: 641px) { .dt-layout-cell:not(:has(> :not(.dt-sort))), .dt-layout-row:not(.dt-layout-table):not(:has(.dt-layout-cell > :not(.dt-sort))) { display: none; } }
.list td.dt-empty { text-align: center; color: var(--wa-color-text-quiet); padding: var(--wa-space-l); }

/* Status badges and tags */
wa-badge.badge { white-space: nowrap; vertical-align: middle; }
.tag { display: inline-block; font-size: var(--wa-font-size-2xs); border: var(--wa-border-width-s) solid var(--wa-color-neutral-border-quiet); background: var(--wa-color-neutral-fill-quiet); border-radius: var(--wa-border-radius-s); padding: .05em .45em; margin-left: var(--wa-space-2xs); color: var(--wa-color-text-quiet); vertical-align: middle; }
.tag.live { color: var(--wa-color-success-on-quiet); border-color: var(--wa-color-success-border-normal); background: var(--wa-color-success-fill-quiet); }
.tag.warn { color: var(--wa-color-warning-on-quiet); border-color: var(--wa-color-warning-border-normal); background: var(--wa-color-warning-fill-quiet); }
.ai-issues li > div { margin-top: var(--wa-space-3xs); }
.ai-fixed ul { margin: var(--wa-space-2xs) 0 var(--wa-space-m); padding-left: 1.2rem; }

/* Review page */
.detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--wa-space-xl); align-items: start; }
.detail > * { min-width: 0; }
.player { position: sticky; top: var(--wa-space-l); }
/* Sized by height, so the whole 9:16 video fits on screen beside the details. */
.player video, .ph.tall { height: min(480px, calc(100vh - 160px)); width: auto; aspect-ratio: 9 / 16; background: #000; border-radius: var(--wa-border-radius-l); display: block; }
.ph.tall { display: grid; place-items: center; color: var(--wa-color-text-quiet); background: var(--wa-color-neutral-fill-quiet); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--wa-space-3xs) var(--wa-space-m); margin: var(--wa-space-m) 0 0; }
.facts dt { color: var(--wa-color-text-quiet); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.review-actions { display: flex; gap: var(--wa-space-s); flex-wrap: wrap; align-items: center; margin: var(--wa-space-s) 0 var(--wa-space-2xs); }
.review-actions form { margin: 0; }
.review-form { margin: var(--wa-space-s) 0 var(--wa-space-2xs); }
.review-form .issues { display: block; }
.review-form textarea { width: 100%; margin: var(--wa-space-2xs) 0 0; resize: vertical; }
pre.caption { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--wa-font-size-s); background: var(--wa-color-surface-lowered); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); padding: var(--wa-space-s) var(--wa-space-m); border-radius: var(--wa-border-radius-m); margin: var(--wa-space-xs) 0; }
ul.plain, ul.history, ul.risk, ul.links { list-style: none; padding: 0; margin: 0 0 var(--wa-space-m); }
ul.plain li, ul.risk li { padding: var(--wa-space-xs) 0; border-bottom: var(--wa-border-width-s) solid var(--wa-color-surface-border); margin: 0; }
ul.history li { padding: var(--wa-space-3xs) 0; font-size: var(--wa-font-size-s); margin: 0; }
ul.links li { padding: var(--wa-space-3xs) 0; overflow-wrap: anywhere; margin: 0; }
.empty { color: var(--wa-color-text-quiet); padding: var(--wa-space-xl); text-align: center; background: var(--wa-color-surface-default); border: var(--wa-border-width-s) dashed var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); }
p.empty.small { padding: var(--wa-space-s); text-align: left; }
.pager { display: flex; gap: var(--wa-space-m); justify-content: center; align-items: center; color: var(--wa-color-text-quiet); }
/* Sign-in: the site's hero gradient behind a cream card. */
html:has(main.page.narrow) { background: var(--lm-deep); }
body:has(main.page.narrow) { min-height: 100vh; min-height: 100dvh; background: radial-gradient(110% 80% at 15% 0%, #17707a 0%, var(--lm-river) 35%, var(--lm-deep) 75%) fixed; }
.page.narrow > .lockup { color: var(--lm-sand); margin-bottom: var(--wa-space-l); }
.page.narrow > .lockup svg { width: 46px; height: 46px; }
.page.narrow > .lockup b { font-size: 23px; }
.page.narrow > .card { box-shadow: 0 30px 70px rgb(0 0 0 / .35); border: 0; }
.login h1 { font-size: var(--wa-font-size-2xl); } .login form > * + * { margin-top: var(--wa-space-m); } .login button { width: 100%; }
.danger-zone { border-color: var(--wa-color-danger-border-normal); }
.platforms { display: flex; flex-direction: column; gap: var(--wa-space-l); }
.platforms > * { min-width: 0; }
/* One platform per row: a header, then Profile, Posting and Connection side by side on a wide screen. */
.platform { --brand: #555; --brand-bar: var(--brand); --brand-tint: rgb(0 0 0 / .03); }
.card.platform { position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--brand-tint), transparent 220px), var(--wa-color-surface-default); }
.card.platform::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-bar); }
.platform-head h2 { display: inline-flex; align-items: center; gap: .4em; }
.platform-head h2 wa-icon { color: var(--brand); }
.platform-head { display: flex; align-items: baseline; gap: var(--wa-space-s) var(--wa-space-m); flex-wrap: wrap; margin-bottom: var(--wa-space-m); }
.platform-head h2 { margin: 0; margin-right: auto; }
.platform-cols { display: flex; flex-direction: column; gap: var(--wa-space-m); }
/* Profile, Posting and Connection: sub cards one under another, fields full width. */
.pcol { display: flex; flex-direction: column; gap: var(--wa-space-s); min-width: 0; margin: 0; padding: var(--wa-space-s) var(--wa-space-l) var(--wa-space-m);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); background: transparent; }
.pcol input:not([type=checkbox]):not([type=file]), .pcol textarea { background: #fff; }
.wa-dark .pcol input:not([type=checkbox]):not([type=file]), .wa-dark .pcol textarea { background: var(--wa-color-surface-raised); }
.platform .publish-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs) var(--wa-space-l); }
.pcol > legend { padding: 0 var(--wa-space-xs); margin-left: calc(-1 * var(--wa-space-xs)); font-family: var(--wa-font-family-heading); font-weight: var(--wa-font-weight-heading, 700); font-size: var(--wa-font-size-m); color: var(--wa-color-text-normal); }
.pcol > .hint { margin: 0; }
.platform fieldset.pcol { margin: 0; } .platform fieldset.pcol > * + * { margin-top: 0; } /* the flex gap spaces the fields */
.platform-actions { display: flex; justify-content: flex-end; margin-top: var(--wa-space-m); }
.platform .pcol label.locked input, .platform .pcol label.locked textarea { background: var(--wa-color-neutral-fill-normal); border-style: dashed; color: var(--wa-color-text-quiet); cursor: not-allowed; }
.platform label.check { align-self: flex-start; }
/* Profile pictures and banners: one tile each, the picture in a fixed frame above its label and controls. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 260px)); gap: var(--wa-space-m); margin-top: var(--wa-space-2xs); }
.tile { margin: 0; display: flex; flex-direction: column; gap: var(--wa-space-xs); min-width: 0; }
.tile .frame { height: 112px; display: flex; align-items: center; justify-content: center; background: var(--wa-color-neutral-fill-quiet); border-radius: var(--wa-border-radius-m); overflow: hidden; }
.tile .frame a { display: contents; }
.tile .frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile-picture .frame img { height: 96px; width: 96px; border-radius: 50%; object-fit: cover; }
.tile-watermark .frame img { height: 64px; width: 64px; object-fit: contain; }
.tile-cover .frame img, .tile-banner .frame img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { display: flex; flex-direction: column; gap: var(--wa-space-xs); min-width: 0; }
.tile figcaption .hint { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } /* two lines at most; the full note is its title */
.tile input[type=file] { font-size: var(--wa-font-size-s); max-width: 100%; }
.tile.locked .frame { opacity: .85; }
.gallery { display: grid; gap: var(--wa-space-xs); grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); }
.gallery figure { margin: 0; min-width: 0; position: relative; }
.gallery img, .gallery video { width: 100%; border-radius: var(--wa-border-radius-m); background: var(--wa-color-neutral-fill-quiet); display: block; object-fit: cover; }
.g-post img { aspect-ratio: 4 / 5; } .g-clip video { aspect-ratio: 9 / 16; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); margin-top: var(--wa-space-3xs); }
.gallery figcaption form { margin: 0; }
/* A feed carousel: cards side by side that swipe and snap, the next one peeking in (src/pages/media.tsx, Carousel) */
.carousel { display: flex; gap: var(--wa-space-xs); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding-bottom: var(--wa-space-2xs); }
.carousel figure { flex: 0 0 min(240px, 80%); margin: 0; min-width: 0; position: relative; scroll-snap-align: start; }
.carousel img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--wa-border-radius-m); background: var(--wa-color-neutral-fill-quiet); }
.carousel figcaption { display: flex; justify-content: space-between; align-items: center; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); margin-top: var(--wa-space-3xs); }
.carousel figcaption form { margin: 0; }
.trial-carousel { margin: var(--wa-space-m) 0 var(--wa-space-xs); font-size: var(--wa-font-size-s); }
.cover-row { display: flex; gap: var(--wa-space-m); align-items: flex-start; }
.cover-row > * { min-width: 0; }
.cover-row form.inline input { width: auto; flex: 1; }
.cover { width: 90px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--wa-border-radius-m); background: var(--wa-color-neutral-fill-quiet); flex: none; }
.nick-section { margin-bottom: var(--wa-space-xl); }
.nick-audio { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs) var(--wa-space-m); margin-top: var(--wa-space-xs); }
.nick-audio .clip { display: flex; flex-direction: column; gap: var(--wa-space-3xs); }
.nick-audio audio { height: 32px; max-width: 260px; }
.nick-extra { display: flex; gap: var(--wa-space-m); align-items: flex-start; margin-top: var(--wa-space-xs); font-size: var(--wa-font-size-s); }
.nick-extra form { margin: 0; }
.nick-extra ul { margin: var(--wa-space-2xs) 0 0; padding-left: 1.2rem; color: var(--wa-color-text-quiet); }
.formats { display: flex; gap: var(--wa-space-m); flex-wrap: wrap; padding-left: 1.6rem; }
.logo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-2xs); margin-top: var(--wa-space-2xs); }
.logo-upload input[type=file] { font-size: var(--wa-font-size-xs); max-width: 100%; min-width: 0; }
.logo-row { display: flex; gap: var(--wa-space-s); align-items: flex-start; }
.logo-row > label { flex: 1; min-width: 0; }
/* a sponsor's page: room above the Stripe links under the billing buttons, and between the end card preview and its form */
.stripe-links { margin-top: var(--wa-space-m); }
/* the end card as it airs (src/pages/sponsors.tsx CardPreview), beside the form that changes it */
.end-card-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: var(--wa-space-xl); align-items: start; }
.end-card { margin: 0; position: sticky; top: var(--wa-space-l); }
.end-card canvas { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 22px; background: #0A3438; box-shadow: 0 12px 30px rgba(10, 52, 56, .25); }
.end-card figcaption { margin-top: var(--wa-space-xs); }
details.pay-link { margin-top: var(--wa-space-l); } details.pay-link summary { cursor: pointer; color: var(--wa-color-text-quiet); }
@media (max-width: 760px) { .end-card-layout { grid-template-columns: minmax(0, 1fr); } .end-card { position: static; max-width: 240px; margin: 0 auto; order: -1; } }
.logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--wa-color-neutral-fill-quiet); flex: none; }
h2.section-title { font-size: var(--wa-font-size-xl); margin: var(--wa-space-2xl) 0 var(--wa-space-xs); }
.add-trusted { margin-top: var(--wa-space-m); align-items: end; }
ol.stories { margin: 0 0 var(--wa-space-s); padding-left: 1.3rem; } ol.stories li { padding: var(--wa-space-2xs) 0; overflow-wrap: anywhere; margin: 0; }
.trusted .actions { align-items: center; }

/* Blocked page */
.cat-head { display: flex; gap: var(--wa-space-m); align-items: flex-start; justify-content: space-between; }
.blocked-cat details { margin-top: var(--wa-space-xs); }
.blocked-cat details form { margin-top: var(--wa-space-s); }
.card.country-towns { padding: 0; }
.country-towns > summary { cursor: pointer; padding: var(--wa-space-s) var(--wa-space-m); margin: 0; }
.country-towns > :not(summary) { margin-inline: var(--wa-space-m); }
.country-towns > :last-child { margin-bottom: var(--wa-space-s); }
.country-towns .town-chips { display: flex; flex-wrap: wrap; gap: var(--wa-space-2xs); }
.country-towns .town-chips .chip { max-width: none; background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); font-weight: var(--wa-font-weight-semibold); }
.country-towns .town-chips .chip:hover { background: var(--lm-cane); color: var(--lm-deep); text-decoration: none; }
.country-towns p { margin-top: var(--wa-space-xs); }
.blocked-cat.off strong { color: var(--wa-color-text-quiet); }
.trust-row { display: flex; gap: var(--wa-space-s); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--wa-space-s) var(--wa-space-m); }
.switches { display: flex; flex-direction: column; gap: var(--wa-space-xs); align-items: flex-end; flex: none; }
.switch-row { display: flex; gap: var(--wa-space-s); align-items: center; }
/* Block / Allow pair: a segmented control. */
.toggle { display: inline-flex; flex: none; border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); overflow: hidden; margin: 0; }
.toggle button { border: 0; border-radius: 0; background: transparent; color: var(--wa-color-text-quiet); min-height: 40px; }
.toggle button + button { border-left: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.toggle button.on.block { background: var(--wa-color-danger-fill-loud); color: var(--wa-color-danger-on-loud); }
.toggle button.on.allow { background: var(--wa-color-success-fill-loud); color: var(--wa-color-success-on-loud); }

.show-sm { display: none; }

@media (max-width: 800px) {
  .detail, .cols, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .player { position: static; width: fit-content; }
  .player video, .ph.tall { height: min(420px, 60vh); }
  .list thead .rowform { display: none; }
  .rowform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.list { display: block; overflow-x: auto; }
}

/* Phones (iPhone 13 is 390 px wide). */
@media (max-width: 640px) {
  .topbar { padding: var(--wa-space-xs) var(--wa-space-s); min-height: 56px; }
  .topbar .brand-tag { display: none; }
  .topbar .lockup svg { width: 34px; height: 34px; }
  .topbar .lockup b { font-size: 17px; }
  .page { padding: var(--wa-space-m) var(--wa-space-m) var(--wa-space-3xl); }
  /* iOS zooms into any field under 16px when it's focused. */
  input, select, textarea { font-size: 16px; }
  h1 { font-size: var(--wa-font-size-xl); }
  .card { padding: var(--wa-space-m); }
  .show-sm { display: inline; } .hide-sm { display: none !important; }
  /* Scroll sideways only. overflow-x: auto also makes overflow-y auto, and the tabs' -1px margin
     (their underline sitting on the border) gave the menu a 1px vertical scroll. Draw the border
     as an inset shadow instead so the tabs fit inside and the vertical overflow can be hidden. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
  .filters > * { flex: 1 1 140px; }
  .filters input[type=search] { min-width: 0; flex-basis: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .dt-search input.dt-input { min-width: 0; max-width: none; }
  .dt-search, .dt-layout-start { flex-basis: 100%; }
  /* The header row is hidden on phones, so sorting is a menu above the list, beside the page size. */
  .dt-layout-end { flex: 1 1 100%; margin-left: 0; display: flex; flex-wrap: wrap; gap: var(--wa-space-xs) var(--wa-space-m); align-items: center; justify-content: space-between; }
  .dt-sort { display: flex; align-items: center; gap: var(--wa-space-xs); flex: 1 1 200px; margin: 0; font-weight: var(--wa-font-weight-body); color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
  .dt-sort select.dt-input { flex: 1; min-width: 0; margin: 0; width: auto; }
  /* Filters: two to a row, the dates' fields filling their half. */
  .filters label.inline { display: flex; min-width: 0; }
  .filters label.inline input { flex: 1; min-width: 0; width: auto; }

  /* Tables become one card per row; cells with a data-label show it. */
  table.list, .list tbody { display: block; overflow: visible; }
  .list thead { display: none; }
  .list tr { display: flex; flex-wrap: wrap; gap: var(--wa-space-3xs) var(--wa-space-m); padding: var(--wa-space-s) var(--wa-space-m); border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
  .list tr:first-child { border-top: 0; }
  .list td, .list.compact td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .list td:first-child { flex-basis: 100%; }
  .list td[data-label]::before { content: attr(data-label) ": "; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
  .list td:empty { display: none; }
  .list .actions { justify-content: flex-start; flex-basis: 100%; flex-wrap: wrap; }
  .media-list tr { display: grid; grid-template-columns: auto 54px minmax(0, 1fr); gap: var(--wa-space-3xs) var(--wa-space-s); }
  .media-list td.pick { grid-column: 1; grid-row: 1 / span 4; }
  .media-list td.thumb { grid-column: 2; grid-row: 1 / span 4; }
  .media-list td:not(.thumb):not(.pick) { grid-column: 3; }
  .ep-town, .ep-town .sep { display: inline; white-space: normal; }
  /* a thumb-sized target: the whole strip down the card's left edge ticks it */
  .media-list .pick-box { height: 100%; padding: var(--wa-space-2xs) var(--wa-space-2xs) 0 0; }
  .pick-list input[type=checkbox], .bulk-bar input[type=checkbox] { width: 1.4rem; height: 1.4rem; }
  .bulk-bar { display: flex; align-items: center; margin-bottom: var(--wa-space-s); padding: 0 var(--wa-space-m); }
  .bulk-bar .bulk-all { display: flex; }
  .bulk-actions:not([hidden]) { left: var(--wa-space-s); right: var(--wa-space-s); bottom: calc(var(--wa-space-s) + env(safe-area-inset-bottom, 0px)); padding: var(--wa-space-s); }
  .bulk-n { flex: 1 1 100%; }
  .bulk-actions button { flex: 1 1 auto; min-height: 44px; }
  .bulk-actions [data-bulk-clear] { flex: 0 0 auto; }
  main.page:has(.bulk-actions:not([hidden])) { padding-bottom: 10rem; }
  .pick-list tr.picked { background: var(--wa-color-brand-fill-quiet); }
  .pick-list tr.picked td { background: none; }
  .trials-list td.pick { flex-basis: auto; }
  /* Emails on a phone: subject and its line first, then who it went to and when, with the status at the end. */
  .emails-list { table-layout: auto; }
  .emails-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--wa-space-3xs) var(--wa-space-s); align-items: center; }
  .emails-list td.subject { grid-column: 1 / -1; grid-row: 1; }
  .emails-list td.to { grid-column: 1; grid-row: 2; }
  .emails-list td.status { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .emails-list td.when { grid-column: 1; grid-row: 3; }
  .list.nick tr { display: block; }
  .rowform label .show-sm { display: block; font-size: var(--wa-font-size-2xs); color: var(--wa-color-text-quiet); }
  .rowform label:has([name=notes]) { grid-column: 1 / -1; }
  .add .rowform input[name=notes] { grid-column: 1 / -1; }

  /* Review page: video first, then big approve and deny buttons. */
  .review .row { align-items: flex-start; flex-wrap: nowrap; }
  .review .row > wa-badge { flex: none; }
  .review .row > h1 { min-width: 0; overflow-wrap: anywhere; }
  .review-actions { flex-direction: column; align-items: stretch; }
  .review-actions button { width: 100%; }
  .review-actions button { min-height: 48px; font-size: var(--wa-font-size-l); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-clip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-row, .cover-row form.inline, .nick-extra, form.inline { flex-wrap: wrap; }
  .cover-row form.inline input { width: 100%; flex-basis: 100%; }
  .cat-head { flex-direction: column; }
  .switches { align-items: stretch; width: 100%; }
  .switch-row { justify-content: space-between; }

  /* Mobile pass (Liam, 12 Nov 2026: "check every page at 390 px"). */
  .topbar .me { gap: var(--wa-space-xs); }
  .topbar .signout { padding-inline: var(--wa-space-xs); font-size: var(--wa-font-size-m); }
  /* compact lists' cells are blocks on phones, which stacked an actions cell's buttons one per line */
  .list td.actions { display: flex; align-items: center; gap: var(--wa-space-xs); }
  .filters input[type=date] { padding-inline: var(--wa-space-xs); }
  input[type=file] { width: 100%; max-width: 100%; }
  .pcol { padding: var(--wa-space-xs) var(--wa-space-m) var(--wa-space-m); }
  .card .card.platform { padding: var(--wa-space-s); }
}

/* Media viewer (lightbox): always dark, whatever the page theme. */
html.viewer-on { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 1000; background: rgb(10 10 10 / .94); display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; grid-template-rows: auto minmax(0, 1fr); color: #fff; }
.viewer[hidden] { display: none; }
.viewer-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--wa-space-m); padding: var(--wa-space-xs) var(--wa-space-s); }
.viewer-count { flex: 1; font-size: var(--wa-font-size-s); opacity: .8; }
.viewer-open { color: #fff; font-size: var(--wa-font-size-s); opacity: .85; text-decoration: none; display: inline-flex; gap: var(--wa-space-2xs); align-items: center; }
.viewer-open:hover { opacity: 1; }
.viewer .viewer-close, .viewer .viewer-nav { background: transparent; border: 0; color: #fff; font-size: var(--wa-font-size-xl); padding: 0; width: 44px; height: 44px; min-height: 0; min-width: 0; flex: none; aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
/* Fixed size: Safari let the arrows stretch into an oval (Liam, 12 Nov). */
.viewer .viewer-close:hover, .viewer .viewer-nav:hover { background: rgb(255 255 255 / .14); }
.viewer-nav { grid-row: 2; align-self: center; justify-self: center; }
.viewer-prev { grid-column: 1; }
.viewer-next { grid-column: 3; }
.viewer.single .viewer-nav { visibility: hidden; }
.viewer-stage { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wa-space-xs); min-width: 0; min-height: 0; padding-bottom: var(--wa-space-m); }
.viewer-media { max-width: 100%; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: var(--wa-border-radius-m); background: #000; }
/* A picture fills the viewer (Liam, 16 Nov: "Sometimes when I click on images they only come up small"): with only a
   max size, Safari could lay a tall picture out small (before it loaded, or shrunk by the flex column) and never grow it. */
.viewer-stage > img.viewer-media { flex: 0 1 auto; min-height: 0; width: 100%; height: calc(100vh - 6.5rem); height: calc(100dvh - 6.5rem); max-height: none; background: transparent; border-radius: 0; }
.viewer-pdf { width: min(900px, 100%); height: calc(100vh - 6rem); height: calc(100dvh - 6rem); border: 0; background: #fff; }
.viewer-title { font-size: var(--wa-font-size-s); opacity: .8; text-align: center; }
.view-expand { position: absolute; top: var(--wa-space-2xs); right: var(--wa-space-2xs); background: rgb(0 0 0 / .6); color: #fff; border-radius: var(--wa-border-radius-s); padding: .1rem .45rem; font-size: var(--wa-font-size-xs); text-decoration: none; }
.view-expand:hover { color: #fff; background: rgb(0 0 0 / .8); }
.player { position: relative; }
a[data-view] img { cursor: zoom-in; }
@media (max-width: 640px) {
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer-stage { grid-column: 1; padding: 0 var(--wa-space-xs) var(--wa-space-m); }
  .viewer .viewer-nav { display: none; }
}
/* The dashboard's videos (data-panel, Liam 15 Nov): a card over the dimmed page on a computer, full screen on a phone. */
.viewer.panel { background: rgb(10 10 10 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-card { display: flex; flex-direction: column; width: fit-content; max-width: 100%; max-height: 100%; background: #111; border-radius: var(--wa-border-radius-l); overflow: hidden; box-shadow: 0 24px 64px rgb(0 0 0 / .5); }
.viewer-card .viewer-media { border-radius: 0; max-height: calc(100vh - 10.5rem); max-height: calc(100dvh - 10.5rem); min-width: min(320px, 100%); aspect-ratio: 9 / 16; width: auto; }
.viewer-card img.viewer-media { aspect-ratio: auto; }
.viewer-info { display: flex; align-items: center; gap: var(--wa-space-m); padding: var(--wa-space-s) var(--wa-space-m); width: 0; min-width: 100%; box-sizing: border-box; }
.viewer-text { flex: 1; min-width: 0; }
.viewer-name { font-weight: var(--wa-font-weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-sub { font-size: var(--wa-font-size-xs); opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-page { flex: none; }
a[data-panel] { cursor: pointer; }
@media (max-width: 640px) {
  .viewer.panel { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; grid-template-rows: auto minmax(0, 1fr); }
  .viewer.panel .viewer-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: linear-gradient(rgb(0 0 0 / .6), transparent); padding-top: max(var(--wa-space-xs), env(safe-area-inset-top)); }
  .viewer.panel .viewer-stage { grid-row: 1 / -1; padding: 0; }
  .viewer-card { width: 100%; height: 100%; border-radius: 0; background: #000; box-shadow: none; }
  .viewer-card .viewer-media { flex: 1; min-height: 0; width: 100%; max-height: none; aspect-ratio: auto; }
  .viewer-info { padding: var(--wa-space-s) var(--wa-space-m) max(var(--wa-space-s), env(safe-area-inset-bottom)); }
}
@media (min-width: 801px) { .player { position: sticky; } }
.tag.merged { color: var(--wa-color-text-quiet); background: var(--wa-color-neutral-fill-quiet); }
.tag.merged a { color: inherit; text-decoration: underline; }
.list tr.off .tag.merged { opacity: 1; }

/* Branding tab */
.brand-grid { display: grid; gap: var(--wa-space-m); grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
.brand-grid figure { margin: 0; min-width: 0; }
.brand-grid img, .brand-grid video, .brand-grid .ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: repeating-conic-gradient(var(--wa-color-neutral-fill-quiet) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); display: block; }
.brand-grid .ph { display: grid; place-items: center; color: var(--wa-color-text-quiet); font-weight: var(--wa-font-weight-semibold); }
.brand-grid figcaption { display: flex; flex-direction: column; gap: var(--wa-space-3xs); font-size: var(--wa-font-size-xs); margin-top: var(--wa-space-2xs); }
.brand-grid figcaption .name { overflow-wrap: anywhere; font-weight: var(--wa-font-weight-semibold); }
@media (max-width: 640px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lists inside a card: no rule under the last row, and an empty note without its own box. */
.card ul.plain { margin-bottom: 0; }
.card ul.plain li:last-child { border-bottom: 0; }
.card .empty { border: 0; padding: var(--wa-space-m) 0; background: none; text-align: left; }
.cols { gap: var(--wa-space-l); }

/* web/portal.js: a thin bar along the top while a page's data is on its way */
.portal-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: left;
  background: var(--lm-cane, #C9E265); transition: transform 8s cubic-bezier(.1, .7, .1, 1), opacity .2s; }
.portal-progress.on { opacity: 1; transform: scaleX(.9); transition: transform 8s cubic-bezier(.1, .7, .1, 1), opacity .2s .15s; }

/* the Towns table's Active status: green on, red paused */
td:has(> .dot) { white-space: nowrap; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .4em; vertical-align: baseline; }
.platform-icons { display: inline-flex; gap: .55em; font-size: 1.15rem; vertical-align: middle; color: var(--wa-color-text-normal); }
table.one-line td { white-space: nowrap; } .none-icon { font-size: 1.05rem; vertical-align: middle; }
.platform-icons > * { display: inline-flex; color: inherit; } .platform-icons a:hover { color: var(--wa-color-brand-fill-loud); }
.platform-icons > .off { color: var(--wa-color-text-quiet); opacity: .35; }
.dot.on { background: var(--wa-color-success-fill-loud); }
.dot.off { background: var(--wa-color-danger-fill-loud); }

/* web/actions.js: the dialog every form action runs in */
.action-dialog { --width: 26rem; }
.action-dialog .action-text { margin: 0 0 var(--wa-space-m); overflow-wrap: anywhere; }
.action-dialog .action-text:has(+ wa-progress-bar[hidden]) { margin-bottom: 0; }
.action-dialog wa-progress-bar { --track-height: 6px; }
.action-dialog.running::part(close-button) { visibility: hidden; }
.action-dialog .action-foot { display: flex; gap: var(--wa-space-s); justify-content: flex-end; }
.action-dialog.failed .action-text wa-icon { color: var(--wa-color-danger-fill-loud); }
.action-toast { position: fixed; right: var(--wa-space-l); bottom: var(--wa-space-l); z-index: 1000; max-width: min(26rem, calc(100vw - 2 * var(--wa-space-l)));
  display: flex; gap: var(--wa-space-xs); align-items: baseline; padding: var(--wa-space-s) var(--wa-space-m); border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-surface-raised); color: var(--wa-color-text-normal); box-shadow: var(--wa-shadow-l); border: var(--wa-border-width-s) solid var(--wa-color-surface-border);
  overflow-wrap: anywhere; cursor: default; opacity: 0; transform: translateY(.5rem); pointer-events: none; transition: opacity .2s, transform .2s; }
.action-toast.on { opacity: 1; transform: none; pointer-events: auto; }
.action-toast wa-icon { color: var(--wa-color-success-fill-loud); flex: none; }
@media (prefers-reduced-motion: reduce) { .action-toast { transition: none; transform: none; } }

/* The image cropper (public/app.client.js). */
dialog.cropper { border: 0; border-radius: var(--wa-border-radius-l); padding: var(--wa-space-l); width: min(780px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; background: var(--wa-color-surface-raised); color: var(--wa-color-text-normal); box-shadow: var(--wa-shadow-l); }
dialog.cropper::backdrop { background: rgb(0 0 0 / .55); }
/* Pause overlay (public/app.client.js): how long, 1 to 30 days or forever. */
dialog.pause-dlg { border: 0; border-radius: var(--wa-border-radius-l); padding: var(--wa-space-l); width: min(420px, calc(100vw - 32px)); box-sizing: border-box; background: var(--wa-color-surface-raised); color: var(--wa-color-text-normal); box-shadow: var(--wa-shadow-l); }
dialog.pause-dlg::backdrop { background: rgb(0 0 0 / .55); }
dialog.pause-dlg h2 { margin: 0 0 var(--wa-space-s); font-size: var(--wa-font-size-l); }
.pause-dlg .pause-value { margin: 0 0 var(--wa-space-xs); font-size: var(--wa-font-size-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.pause-dlg input[type=range] { width: 100%; accent-color: var(--wa-color-brand-fill-loud); }
.pause-dlg .pause-ends { display: flex; justify-content: space-between; }
.pause-dlg .pause-note { margin: var(--wa-space-s) 0 var(--wa-space-l); min-height: 2.6em; }
.pause-dlg .pause-ends, .pause-dlg .pause-actions { width: 100%; }
.pause-dlg .pause-actions { display: flex; gap: var(--wa-space-s); justify-content: flex-end; }
dialog.cropper h2 { margin: 0 0 var(--wa-space-2xs); font-size: var(--wa-font-size-l); }
dialog.cropper .hint { margin: 0 0 var(--wa-space-m); }
.cropper-stage { display: block; margin: 0 auto; max-width: 100%; height: auto !important; cursor: grab; touch-action: none; border-radius: var(--wa-border-radius-s);
  background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.cropper-stage:active { cursor: grabbing; }
.cropper-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-s) var(--wa-space-m); margin-top: var(--wa-space-m); }
.cropper-zoom { display: flex; align-items: center; gap: var(--wa-space-xs); flex: 1 1 200px; }
.cropper-zoom input { flex: 1; }
.cropper-bg { display: inline-flex; align-items: center; gap: var(--wa-space-xs); }
.cropper-bg[hidden] { display: none; }
.cropper-bg input[type=color] { width: 2.25rem; height: 1.75rem; padding: 0; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-s); }
.cropper-actions { display: flex; justify-content: flex-end; gap: var(--wa-space-s); margin-top: var(--wa-space-l); }

/* Places tab: one collapsible card per town and venue, with its nickname and photos inside */
.places-section { margin-bottom: var(--wa-space-2xl); }
/* "Add a venue" and "Confirm the N to check" above the list: the confirm button sat on the first venue (Liam, 16 Nov) */
.row-actions > form { margin: 0 0 var(--wa-space-l); }
.places-section h3.group { margin: var(--wa-space-l) 0 var(--wa-space-xs); font-size: var(--wa-font-size-m); color: var(--wa-color-text-quiet); }
details.place { padding: 0; margin: 0 0 var(--wa-space-2xs); }
details.place > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-2xs) var(--wa-space-s); padding: var(--wa-space-xs) var(--wa-space-m); cursor: pointer; }
details.place > summary .place-name { font-weight: 600; }
details.place.card > summary, details.place.card[open] > summary { margin: 0; }
details.place[open] > summary { border-bottom: 1px solid var(--wa-color-surface-border); }
.place-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-2xs) var(--wa-space-s); flex: 1; }
.place-tags { display: flex; flex-wrap: wrap; gap: var(--wa-space-3xs); }
.place-tags .tag { margin-left: 0; }
.place-tags .tag.muted { opacity: .6; }
.place-body { padding: var(--wa-space-s) var(--wa-space-m) var(--wa-space-m); display: grid; gap: var(--wa-space-l); }
.place-part h3 { margin: 0 0 var(--wa-space-3xs); font-size: var(--wa-font-size-m); }
.rowform.pform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wa-space-xs); }
.rowform.pform label { display: flex; flex-direction: column; gap: var(--wa-space-3xs); flex: 1 1 10rem; font-size: var(--wa-font-size-s); }
.rowform.pform label span { color: var(--wa-color-text-quiet); }
/* "Voice says" on the Places tab (app.client.js): the sample from Test, on its own line under the field. */
.rowform.pform .voice-sample { flex: 1 1 100%; }
.voice-sample .clip { display: flex; flex-direction: column; gap: var(--wa-space-3xs); }
.voice-sample audio, .voice-now audio { height: 32px; max-width: 280px; }
.voice-now { margin: var(--wa-space-2xs) 0; }
/* "Words the voice says differently" (Places tab): one table, labels once at the top, the add row in the same columns. */
.word-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 10rem minmax(0, 1.6fr) auto; gap: var(--wa-space-xs) var(--wa-space-xs); align-items: center; margin-top: var(--wa-space-s); }
.word-head, .word-row, .word-form { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.word-head { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.word-row { row-gap: var(--wa-space-3xs); }
.word-form label { margin: 0; min-width: 0; }
.word-form input, .word-form select { margin: 0; width: 100%; }
.word-actions { display: flex; gap: var(--wa-space-2xs); justify-content: flex-end; }
.word-clips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--wa-space-xs); }
.word-clips audio { height: 32px; max-width: 280px; }
.word-add { padding-top: var(--wa-space-xs); border-top: 1px dashed var(--wa-color-surface-border); }
@media (max-width: 640px) {
  .word-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .word-head { display: none; }
  .word-row { padding-bottom: var(--wa-space-s); border-bottom: 1px solid var(--wa-color-surface-border); }
  .word-form label .show-sm { display: block; font-size: var(--wa-font-size-2xs); color: var(--wa-color-text-quiet); }
  .word-actions { grid-column: 1 / -1; }
  .word-actions { justify-content: flex-start; }
}
form.inline { display: inline; }

/* Tickets: the thread of a ticket, internal notes tinted so nobody mistakes one for what the customer saw */
.ticket-thread { display: grid; gap: var(--wa-space-s); margin: var(--wa-space-l) 0; }
.ticket-thread .tm { margin: 0; }
.ticket-thread .tm-reply { border-left: 3px solid var(--lm-cane-deep); }
.ticket-thread .tm-note { background: var(--wa-color-warning-fill-quiet); }
.ticket-thread .tm-chat pre.caption, .ticket-thread .tm-note pre.caption { background: transparent; }

/* The side menu's counts: what's waiting (layout.tsx NavCount, web/portal.js drawBadges) */
.sidenav a .nav-count { margin-left: auto; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: var(--lm-soil); color: #fff; font-size: var(--wa-font-size-2xs); line-height: 1.6; text-align: center; font-weight: var(--wa-font-weight-bold); }
.sidenav a.on .nav-count { background: var(--lm-deep); color: var(--lm-cane); }

/* Today dashboard. Chart colours: platforms keep one hue each everywhere (--viz-1..4, checked for colour-blind
   separation on both surfaces), and approved / waiting / denied use the status trio. */
:root, .wa-light { --viz-1: #008c99; --viz-2: #c9472a; --viz-3: #7a52d1; --viz-4: #b07800; --k-good: #4c8a1e; --k-warn: #d99a12; --k-bad: #c9472a; --k-mute: #9aa6a2; }
.wa-dark { --viz-1: #1a9ea9; --viz-2: #df5f40; --viz-3: #9076e0; --viz-4: #a8800f; --k-good: #9cc23c; --k-warn: #e0a92a; --k-bad: #e5694b; --k-mute: #5d706c; }
.v-tiktok { fill: var(--viz-1); background: var(--viz-1); } .v-youtube { fill: var(--viz-2); background: var(--viz-2); }
.v-facebook { fill: var(--viz-3); background: var(--viz-3); } .v-instagram { fill: var(--viz-4); background: var(--viz-4); }
.k-good { fill: var(--k-good); background: var(--k-good); } .k-warn { fill: var(--k-warn); background: var(--k-warn); }
.k-bad { fill: var(--k-bad); background: var(--k-bad); } .k-mute { fill: var(--k-mute); background: var(--k-mute); }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-l); }
/* Grid and flex children default to their content's width; zero lets a wide row (8 bars, a strip of covers) shrink or scroll instead of widening the page. */
.dash > *, .dash-hero > *, .hb, .kpi, .strip { min-width: 0; }
.dash h2, .dash h3 { margin: 0 0 var(--wa-space-s); }
.dash h3 { font-size: var(--wa-font-size-m); }
.dash .card { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4em; font-size: var(--wa-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.num { display: block; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 2.2rem; line-height: 1.05; letter-spacing: -.02em; color: var(--wa-color-text-normal); }
.num.sm { font-size: 1.6rem; }
.num small { font-size: .5em; font-weight: 700; color: var(--wa-color-text-quiet); }

/* The money banner. */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: var(--wa-space-xl); align-items: center; padding: var(--wa-space-xl);
  border-radius: calc(var(--wa-border-radius-l) * 1.6); color: var(--lm-sand); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #17707a 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgb(201 226 101 / .22) 0%, transparent 60%), var(--lm-deep); }
.dash-hero .eyebrow { color: rgb(244 234 213 / .75); }
.dash-hero .big { display: block; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.03em; color: var(--lm-cane); margin: .15em 0 .1em; }
.delta { font-weight: 700; font-size: var(--wa-font-size-s); color: rgb(244 234 213 / .7); }
.delta.up { color: var(--lm-cane); } .delta.down { color: #f0a48f; }
.hero-sub { display: flex; flex-wrap: wrap; gap: var(--wa-space-l); margin-top: var(--wa-space-m); font-size: var(--wa-font-size-s); color: rgb(244 234 213 / .75); }
.hero-sub b { color: var(--lm-sand); font-size: var(--wa-font-size-l); font-family: var(--wa-font-family-heading); margin-right: .2em; }
.hero-bars { display: flex; align-items: flex-end; gap: clamp(3px, 1vw, 8px); height: 130px; }
.hb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; cursor: default; }
.hb i { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: rgb(201 226 101 / .45); transition: background .15s, transform .15s; transform-origin: bottom; }
.hb:last-child i { background: var(--lm-cane); box-shadow: 0 0 22px rgb(201 226 101 / .45); }
.hb:hover i { background: var(--lm-cane); transform: scaleY(1.03); }
.hb span { font-size: 10px; color: rgb(244 234 213 / .55); font-family: var(--lm-mono); }

.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--wa-color-neutral-fill-normal); }
.dash-hero .ring { width: 124px; height: 124px; }
.dash-hero .ring-track { stroke: rgb(244 234 213 / .14); }
.ring-fill { stroke: var(--wa-color-brand-fill-loud); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-fill.cane { stroke: var(--lm-cane); } .ring-fill.good { stroke: var(--k-good); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.ring-label b { font-family: var(--wa-font-family-heading); font-size: 1.3rem; font-weight: 900; }
.dash-hero .ring-label b { font-size: 1.6rem; color: var(--lm-sand); }
.ring-label span { font-size: 11px; color: var(--wa-color-text-quiet); }
.dash-hero .ring-label span { color: rgb(244 234 213 / .7); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--wa-space-l); }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: var(--wa-space-l); background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); color: inherit; transition: transform .15s, box-shadow .15s; }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--wa-shadow-m); }
.kpi .ring { width: 64px; height: 64px; } .kpi .ring-label b { font-size: 1rem; }
.kpi-row { display: flex; align-items: center; gap: var(--wa-space-m); }
.split { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin-top: auto; background: var(--wa-color-neutral-fill-quiet); }
.split i { display: block; min-width: 3px; }

.queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wa-space-m); }
.q { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--wa-space-m); align-items: center; padding: var(--wa-space-m) var(--wa-space-l); border-radius: var(--wa-border-radius-l); color: inherit; transition: transform .15s; }
.q:hover { text-decoration: none; transform: translateY(-2px); }
.q wa-icon { grid-row: span 2; font-size: 1.6rem; }
.q b { font-family: var(--wa-font-family-heading); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.q span { font-size: var(--wa-font-size-s); font-weight: 600; }
.q.hot { background: #fde7b0; color: #5a3d00; }
.q.clear { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); }
.wa-dark .q.hot { background: rgb(224 169 42 / .2); color: #f3d27f; }

.town-strips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--wa-space-m); }
.strip { padding: var(--wa-space-m); background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); }
.strip-head { display: flex; justify-content: space-between; align-items: center; gap: var(--wa-space-s); margin-bottom: var(--wa-space-s); }
.strip-head > a:first-child { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: var(--wa-font-size-m); color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.chip.cane { background: var(--lm-cane); color: var(--lm-deep); }
.chip.open { border: 1.5px dashed var(--wa-color-surface-border); color: var(--wa-color-text-quiet); }
.chip.open:hover { border-color: var(--lm-cane-deep); color: var(--wa-color-text-normal); text-decoration: none; }
/* The padding leaves room for a cover's hover lift and tilt, which overflow-x would otherwise cut off. */
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 6px; margin: -8px -6px; }
.th { position: relative; flex: none; width: 84px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--wa-color-neutral-fill-quiet); color: inherit; transition: transform .15s; }
.th:hover { transform: translateY(-3px) rotate(-1deg); text-decoration: none; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .ph, .th.none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--wa-color-text-quiet); }
.th .ph { position: absolute; inset: 0; font-size: 1.4rem; }
.th.none { border: 2px dashed var(--wa-color-surface-border); background: none; } .th.none wa-icon { font-size: 1.3rem; }
.th.late { border-color: var(--k-bad); color: var(--k-bad); }
.th .ed { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.th .st { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.th.good .st { background: var(--k-good); } .th.warn .st { background: var(--k-warn); } .th.bad .st { background: var(--k-bad); }
.th .at { position: absolute; top: 5px; left: 5px; padding: 1px 5px; border-radius: 6px; font-size: 9px; font-weight: 700; color: #fff; background: rgb(0 0 0 / .55); font-family: var(--lm-mono); }

.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wa-space-l); }
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid { stroke: var(--wa-color-surface-border); stroke-width: 1; }
.viz .tick { font-size: 9px; fill: var(--wa-color-text-quiet); font-family: var(--lm-mono); }
.viz .hit { fill: transparent; }
.viz .mark:hover .hit, .viz .mark.on .hit { fill: var(--wa-color-neutral-fill-quiet); }
.viz .mark[data-vals] { cursor: pointer; outline: none; }
.live-legend { gap: var(--wa-space-xs) var(--wa-space-l); }
/* The number sits out of the flow (Liam, 15 Nov 2026: "position absolute so it doesn't move the labels when the value gets
   updated"). The item keeps its room: padding below for the number's line, and an invisible copy of the total (data-w) on
   that line for its width, since the total is the largest number the item shows. */
.live-legend [data-k] { position: relative; display: flex; flex-direction: column; padding-bottom: calc(var(--wa-font-size-m) * 1.3 + 2px); }
.live-legend b, .live-legend [data-k]::after { font-size: var(--wa-font-size-m); font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 15px; line-height: 1.3; white-space: nowrap; }
.live-legend b { position: absolute; left: 0; bottom: 0; color: var(--wa-color-text-normal); }
.live-legend [data-k]::after { content: attr(data-w); height: 0; overflow: hidden; visibility: hidden; }
.live-legend .lg-when { flex-basis: 100%; font-weight: 600; color: var(--wa-color-text-normal); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--wa-space-s); font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.legend i, .tally i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbars { display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: var(--wa-space-s); font-size: var(--wa-font-size-s); }
.hrow .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .track { display: flex; gap: 2px; height: 14px; }
.hrow .track i { display: block; height: 100%; min-width: 3px; }
.hrow .track i:last-child { border-radius: 0 4px 4px 0; }
.hrow b { text-align: right; font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); }
.trial-row { display: flex; align-items: center; gap: var(--wa-space-xl); }
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--wa-font-size-s); }
.tally b { margin-left: .4em; font-family: var(--lm-mono); }
.cost { margin-top: var(--wa-space-l); padding-top: var(--wa-space-m); border-top: 1px solid var(--wa-color-surface-border); }
.spark { width: 140px; height: 36px; overflow: visible; }
.spark path { fill: none; stroke: var(--viz-3); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--viz-3); }

/* Platform health (pages/home.tsx PlatformHealth): a town x platform grid of what each account can do. */
.health-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--wa-space-s) var(--wa-space-l); margin-bottom: var(--wa-space-s); }
.health-head h2 { margin: 0; }
.health-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs) var(--wa-space-m); font-size: var(--wa-font-size-s); font-weight: 700; }
.health-sum wa-icon { vertical-align: -2px; }
.health .h-good { color: var(--k-good); } .health .h-warn { color: #9a6a00; } .health .h-bad { color: var(--k-bad); } .health .h-mute { color: var(--wa-color-text-quiet); }
.wa-dark .health .h-warn { color: var(--k-warn); }
.health-grid { display: grid; grid-template-columns: minmax(90px, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 4px; }
.hg-row { display: contents; }
.hg-top .short { display: none; }
.hg-top > span { font-size: var(--wa-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); padding: 0 8px; }
.hg-town { font-weight: 700; color: inherit; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-cell { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; font-size: var(--wa-font-size-s); font-weight: 600; min-width: 0; white-space: nowrap; }
.hg-cell span { overflow: hidden; text-overflow: ellipsis; }
.hg-cell:hover { text-decoration: none; filter: brightness(.96); }
.hg-cell.h-good { background: rgb(76 138 30 / .1); } .hg-cell.h-warn { background: rgb(217 154 18 / .16); }
.hg-cell.h-bad { background: rgb(201 71 42 / .14); } .hg-cell.h-mute { background: var(--wa-color-neutral-fill-quiet); font-weight: 400; }
.health-note { margin: var(--wa-space-s) 0 0; }
/* A cell's own Pause or Resume (pages/pause.tsx), and a paused account's countdown. */
.hg-cell { padding-right: 4px; }
.hg-cell > a { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; color: inherit; }
.hg-cell > a:hover { text-decoration: none; }
.hg-cell .countdown { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .85; }
.pause-form { display: contents; }
.pause-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .45; cursor: pointer; font-size: 11px; }
.pause-btn:hover, .pause-btn:focus-visible { opacity: 1; background: rgb(0 0 0 / .08); }
.hg-cell.paused .pause-btn { opacity: .9; }
.ck-badge.warn { background: rgb(217 154 18 / .18); color: #9a6a00; }
.wa-dark .ck-badge.warn { color: var(--k-warn); }
.ck.paused { border-color: rgb(217 154 18 / .5); }
.ck-foot .pause-form { display: block; }
@media (max-width: 640px) {
  .health-grid { grid-template-columns: minmax(70px, 1fr) repeat(4, 44px); }
  .hg-top > span { padding: 0; text-align: center; } .hg-top .long { display: none; } .hg-top .short { display: inline; }
  .hg-cell { justify-content: center; padding: 6px 0; flex-direction: column; gap: 2px; } .hg-cell span { display: none; }
  .hg-cell > a { justify-content: center; flex-direction: column; gap: 2px; }
  .hg-cell span.countdown { display: block; font-size: 10px; } .pause-btn { width: 22px; height: 18px; }
}

.dash-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--wa-space-l); }
.alerts a { display: flex; align-items: center; gap: var(--wa-space-s); padding: 4px 0; font-size: var(--wa-font-size-s); } /* same gap as the Latest feed's avatar and name */
.feed-row { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--wa-space-s); align-items: center; padding: 5px 0; font-size: var(--wa-font-size-s); }
.feed-row img, .feed-row .avatar { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.feed-row .avatar { display: flex; align-items: center; justify-content: center; background: var(--lm-cane); color: var(--lm-deep); font-weight: 900; }
.feed-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1000px) {
  .dash-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-bars { grid-column: 1 / -1; grid-row: 2; height: 100px; }
  .kpis, .queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > :first-child { grid-column: span 2; }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dash-hero { padding: var(--wa-space-l); gap: var(--wa-space-l); }
  .dash-hero .ring { width: 92px; height: 92px; }
  .kpis { gap: var(--wa-space-s); } .kpi { padding: var(--wa-space-m); } .num { font-size: 1.7rem; }
  .queue { gap: var(--wa-space-s); } .q { padding: var(--wa-space-s) var(--wa-space-m); }
}
.top-row { display: grid; grid-template-columns: repeat(6, minmax(0, 120px)); gap: var(--wa-space-m); }
.top-card { display: flex; flex-direction: column; gap: 2px; color: inherit; min-width: 0; }
.top-card:hover { text-decoration: none; }
.top-card .th { width: 100%; }
.top-card > b { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.4rem; margin-top: 6px; }
.top-card > span.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-card .rank { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; background: var(--lm-cane); color: var(--lm-deep); }
.top-card:first-child .rank { width: 32px; height: 32px; font-size: 16px; box-shadow: 0 0 0 3px rgb(201 226 101 / .4); }
@media (max-width: 600px) { .top-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wa-space-l); }
a.pnl { color: inherit; display: flex; flex-direction: column; gap: 6px; }
a.pnl:hover { text-decoration: none; box-shadow: var(--wa-shadow-m); }
.num.pos { color: var(--k-good); } .num.neg { color: var(--k-bad); }
.wf { display: grid; gap: 9px; margin-top: var(--wa-space-s); }
.wf-row { display: grid; grid-template-columns: 6.5rem 1fr 4rem; gap: var(--wa-space-s); align-items: center; font-size: var(--wa-font-size-s); }
.wf-row b { text-align: right; font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); }
.wf-row.total { padding-top: 8px; border-top: 1px solid var(--wa-color-surface-border); font-weight: 700; }
.wf-row.total b { font-size: var(--wa-font-size-s); }
.wf-track { position: relative; height: 16px; }
.wf-track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.unit-costs { display: flex; flex-wrap: wrap; gap: var(--wa-space-l); margin-top: var(--wa-space-m); padding-top: var(--wa-space-s); border-top: 1px solid var(--wa-color-surface-border); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.unit-costs b { font-family: var(--wa-font-family-heading); font-size: 1.3rem; color: var(--wa-color-text-normal); margin-right: .2em; }
@media (max-width: 1000px) { .money { grid-template-columns: 1fr; } }
.pos-text { color: var(--k-good); }
.hrow.wide { grid-template-columns: 11rem 1fr 4.5rem; }
.fixed-costs td { padding-inline: 0; }
.fixed-row { display: grid; grid-template-columns: minmax(8rem, 2fr) 7rem 6.5rem 7.5rem 5.5rem 9.5rem; gap: var(--wa-space-s); align-items: center; margin: 0; }
.fixed-row select, .fixed-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.fixed-row > :last-child { justify-self: end; }
.fixed-row .mono { font-family: var(--lm-mono); font-size: var(--wa-font-size-s); }
@media (max-width: 700px) { .fixed-row { grid-template-columns: 1fr 1fr; } .fixed-row > :first-child { grid-column: 1 / -1; } }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.four > :first-child { grid-column: auto; } }
.voice-form [hidden] { display: none !important; }

/* Outreach (pages/outreach.tsx): the sample videos first, then leads by industry and town, then the list. */
.ob-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.ob-next p { margin: 0 0 var(--wa-space-s); font-size: var(--wa-font-size-s); color: rgb(244 234 213 / .8); }
.ob-next b { color: var(--lm-cane); font-family: var(--wa-font-family-heading); font-size: var(--wa-font-size-l); }
.ob-next .ob-off { padding: var(--wa-space-xs) var(--wa-space-s); border-radius: var(--wa-border-radius-m); background: rgb(244 234 213 / .08); }
.ob-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--wa-space-s); margin-bottom: var(--wa-space-m); }
.ob-head h2 { margin: 0; }
.ob-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: var(--wa-space-l) var(--wa-space-m); }
.ob-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; }
.ob-card:hover { text-decoration: none; }
.ob-card:hover .ob-cover { transform: translateY(-3px); box-shadow: var(--wa-shadow-m); }
.ob-card strong { margin-top: 6px; line-height: 1.2; }
.ob-card > span { overflow: hidden; text-overflow: ellipsis; }
.ob-hl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--wa-color-text-quiet); }
.ob-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16; width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); font-size: 1.4rem; transition: transform .15s, box-shadow .15s; }
.ob-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-cover .play { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--lm-cane); color: var(--lm-deep); font-size: 12px; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.ob-cover.sm { width: 34px; flex: none; border-radius: 6px; font-size: .8rem; }
.ob-bars { display: grid; gap: 4px; }
.ob-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3.5rem; align-items: center; gap: var(--wa-space-s); padding: 6px 8px; margin: 0 -8px;
  border-radius: var(--wa-border-radius-m); color: inherit; font-size: var(--wa-font-size-s); }
.ob-row:hover, .ob-row.on { background: var(--wa-color-neutral-fill-quiet); text-decoration: none; }
.ob-row .lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; font-weight: 600; }
.ob-row .lbl small { flex-basis: 100%; font-weight: 400; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-xs); }
.ob-row .chip { font-size: 10px; padding: 0 7px; }
.ob-row .track { display: flex; gap: 2px; height: 12px; }
.ob-row .track i { display: block; height: 100%; min-width: 3px; border-radius: 3px; }
.ob-row b { text-align: right; font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); }
.ob-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs); margin: 0; }
.ob-filter select { width: auto; min-width: 0; max-width: 100%; }
.ob-biz { display: flex; align-items: center; gap: var(--wa-space-s); color: inherit; min-width: 0; }
.ob-biz:hover strong { text-decoration: underline; }
.ob-biz > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ob-biz .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.ob-lead-head h1 { margin-bottom: var(--wa-space-2xs); }
.ob-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-2xs) var(--wa-space-m); font-size: var(--wa-font-size-s); margin-bottom: var(--wa-space-l); }
.ob-lead { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--wa-space-xl); align-items: start; margin-bottom: var(--wa-space-l); }
.ob-player { display: grid; gap: var(--wa-space-s); }
.ob-player video, .ob-novideo { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; box-shadow: var(--wa-shadow-m); }
.ob-novideo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wa-space-s); padding: var(--wa-space-l); box-sizing: border-box;
  background: var(--wa-color-neutral-fill-quiet); box-shadow: none; color: var(--wa-color-text-quiet); text-align: center; font-size: var(--wa-font-size-s); }
.ob-novideo wa-icon { font-size: 2rem; }
.ob-side .card h2 { margin: var(--wa-space-2xs) 0 var(--wa-space-s); }
.ob-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--wa-space-l); margin: var(--wa-space-s) 0 0; font-size: var(--wa-font-size-s); }
.ob-dl dt { color: var(--wa-color-text-quiet); } .ob-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .ob-hero { grid-template-columns: minmax(0, 1fr) auto; } .ob-next { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 700px) {
  .ob-hero .hero-sub { gap: var(--wa-space-2xs) var(--wa-space-m); }
  .ob-lead { grid-template-columns: 1fr; } .ob-player { max-width: 300px; margin: 0 auto; width: 100%; }
  .ob-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-row { grid-template-columns: minmax(0, 8rem) 1fr 3rem; }
}

/* Advertorials (pages/advertorials.tsx): the week's slots, an industry card each, what needs a look, every town; then a
   page an industry. Each industry keeps one accent (--ind) everywhere: the week, its card, its page, the town grid. */
.ind-realestate { --ind: #a9c445; } .ind-cars { --ind: #3d8fd1; } .ind-trades { --ind: #d18a12; }
.ind-hospitality { --ind: #d0563a; } .ind-events { --ind: #8661d6; } .ind-shops { --ind: #c4508f; }
.wa-dark .ind-realestate { --ind: #c9e265; } .wa-dark .ind-cars { --ind: #6aaee6; } .wa-dark .ind-trades { --ind: #e6a93a; }
.wa-dark .ind-hospitality { --ind: #e5785e; } .wa-dark .ind-events { --ind: #a58ae6; } .wa-dark .ind-shops { --ind: #de7ab0; }
.ad-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 10px; font-size: 15px;
  color: var(--ind, var(--lm-deep)); background: color-mix(in srgb, var(--ind, var(--lm-cane)) 16%, transparent); }
.ad-ico.l { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
.crumb { margin: 0 0 var(--wa-space-2xs); font-size: var(--wa-font-size-s); }
.ad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--wa-space-m); flex-wrap: wrap; }
.ad-head h1 { margin: 0 0 var(--wa-space-2xs); }

.ad-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; }
.ad-hero-side { display: flex; flex-direction: column; align-items: center; gap: var(--wa-space-m); }
.ad-hero-week .eyebrow { margin-bottom: var(--wa-space-xs); }
.ad-week { display: grid; gap: 6px; }
.wk-row { display: grid; grid-template-columns: 4.6rem repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.wk-day { text-align: center; font: 600 10px/1 var(--lm-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(244 234 213 / .6); }
.wk-ed { align-self: center; font-size: var(--wa-font-size-xs); font-weight: 700; color: rgb(244 234 213 / .8); }
.wk-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; padding: 6px 2px; border-radius: 10px;
  font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; color: rgb(244 234 213 / .9); overflow: hidden;
  background: color-mix(in srgb, var(--ind) 22%, transparent); border: 1px dashed color-mix(in srgb, var(--ind) 70%, transparent); transition: transform .15s, background .15s; }
.wk-cell wa-icon { font-size: 15px; color: var(--ind); }
.wk-cell span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-cell.on { background: var(--ind); border-style: solid; border-color: var(--ind); color: var(--lm-deep); box-shadow: 0 0 22px color-mix(in srgb, var(--ind) 50%, transparent); }
.wk-cell.on wa-icon { color: var(--lm-deep); }
a.wk-cell:hover { text-decoration: none; transform: translateY(-2px); }
.wk-cell.none { background: rgb(244 234 213 / .04); border: 1px solid rgb(244 234 213 / .06); }

.ad-inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-m); }
.ad-ind { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--wa-space-l); overflow: hidden; color: inherit;
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l);
  box-shadow: var(--wa-shadow-s); transition: transform .15s, box-shadow .15s; }
.ad-ind::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ind); opacity: .35; }
.ad-ind.on::before { opacity: 1; }
/* hovers like a Regions card (Liam, 12 Nov 2026): a deeper shadow, no lift, the name in link colour, the arrow nudging right */
.ad-ind:hover { text-decoration: none; box-shadow: var(--wa-shadow-m); }
.ad-ind:hover h3 { color: var(--wa-color-text-link); }
.ad-ind:hover .rg-go { color: var(--wa-color-text-link); transform: translateX(3px); }
.ad-ind .rg-foot .ad-price { margin-top: 0; }
.ad-ind-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--wa-space-xs); }
.ad-ind h3 { margin: 0; font-size: var(--wa-font-size-l); }
.ad-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-xs); margin: var(--wa-space-s) 0; }
.ad-stats dt { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.ad-stats dd { margin: 0; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.35rem; line-height: 1.1; }
.ad-ind .split { margin-top: 0; height: 6px; }
.ad-price { margin-top: var(--wa-space-xs); font-size: var(--wa-font-size-xs); font-weight: 600; color: var(--wa-color-text-quiet); }

.ad-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--wa-space-l); }
.ad-pair > *, .ad > section { min-width: 0; }
.ad-attn { list-style: none; margin: 0 0 var(--wa-space-m); padding: 0; display: grid; gap: 2px; }
.ad-attn a { display: flex; align-items: center; gap: var(--wa-space-s); padding: 7px 8px; margin: 0 -8px; border-radius: var(--wa-border-radius-m); color: inherit; font-size: var(--wa-font-size-s); }
.ad-attn a:hover { background: var(--wa-color-neutral-fill-quiet); text-decoration: none; }
.ad-attn wa-icon { color: var(--wa-color-text-quiet); }
.ad-attn .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ad-clear { display: flex; align-items: center; gap: var(--wa-space-s); color: var(--k-good); font-weight: 600; }
.ad .ob-off { display: flex; gap: var(--wa-space-xs); align-items: flex-start; margin: 0; padding: var(--wa-space-s); border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.ad-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 110px; gap: var(--wa-space-m); overflow-x: auto; padding: 6px 4px 10px; margin: -6px -4px 0; }
.ad-strip-in { margin-bottom: var(--wa-space-m); }
.ad-strip .ob-card strong { font-size: var(--wa-font-size-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ad-matrix-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--wa-space-s)); padding: 0 var(--wa-space-s); }
.ad-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: var(--wa-font-size-s); min-width: 820px; table-layout: fixed; }
.ad-matrix thead th:first-child { width: 10.5rem; }
.ad-matrix thead th { vertical-align: bottom; padding: 0 0 6px; font-weight: 600; }
.ad-matrix thead th a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; font-size: var(--wa-font-size-xs); text-align: center; }
.ad-matrix thead th a:hover { text-decoration: none; } .ad-matrix thead th a:hover span { text-decoration: underline; }
.ad-matrix thead th .ad-ico { width: 28px; height: 28px; font-size: 13px; }
.ad-matrix thead th:first-child, .ad-matrix tbody th { text-align: left; white-space: nowrap; padding-right: var(--wa-space-m); }
.ad-matrix tbody th { font-weight: 600; }
.ad-matrix td { padding: 0; text-align: center; background: var(--wa-color-neutral-fill-quiet); border-radius: 8px; }
.ad-matrix td { height: 44px; transition: background .12s, box-shadow .12s; }
.ad-matrix td a { display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; height: 100%; min-height: 44px; padding: 6px;
  color: inherit; font-size: var(--wa-font-size-s); border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-matrix td a:hover { text-decoration: none; }
.ad-matrix td:hover { background: color-mix(in srgb, var(--ind) 22%, var(--wa-color-surface-default)); box-shadow: inset 0 0 0 2px var(--ind); }
.ad-matrix td b { font-family: var(--wa-font-family-heading); font-weight: 800; }
.ad-matrix td.none { background: none; border: 1px dashed var(--wa-color-surface-border); } .ad-matrix td.none a { font-size: var(--wa-font-size-xs); }
.ad-matrix td.live { background: var(--lm-cane); } .ad-matrix td.live a { color: var(--lm-deep); font-family: inherit; font-weight: 700; }

.ad-ind-head { display: flex; align-items: center; gap: var(--wa-space-l); }
.ad-ind-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--wa-space-s); margin: 0 0 var(--wa-space-2xs); }
.ad-ind-head h1 .chip { font-size: 12px; max-width: none; }
.ad-ind-head p.muted { margin: 0; }
.ad-ind-head .ad-ico.l { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ind) 40%, transparent); }
.ad-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-kpis .kpi { border-top: 3px solid var(--ind); }
.ad-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-l); padding: var(--wa-space-l); border-radius: var(--wa-border-radius-l);
  background: color-mix(in srgb, var(--ind) 9%, var(--wa-color-surface-default)); border: 1px solid color-mix(in srgb, var(--ind) 25%, transparent); }
.ad-about p { margin: 4px 0 0; }
.ad .tabs.sub { margin: 0; }
.ad-empty { display: flex; flex-direction: column; align-items: center; gap: var(--wa-space-m); padding: var(--wa-space-2xl) var(--wa-space-l); text-align: center; }
.ad-empty p { max-width: 46ch; margin: 0; color: var(--wa-color-text-quiet); }
.ad-empty a.wa-outlined { padding: 8px 16px; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); }

@media (max-width: 900px) { .ad-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .ad-hero { grid-template-columns: minmax(0, 1fr) auto; } .ad-hero-week { grid-column: 1 / -1; grid-row: 2; } .ad-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-about { grid-template-columns: 1fr; gap: var(--wa-space-s); }
  .wk-row { grid-template-columns: 3rem repeat(7, minmax(0, 1fr)); gap: 3px; }
  .wk-cell { min-height: 44px; font-size: 0; gap: 0; } .wk-cell wa-icon { font-size: 14px; }
  .ad-ind-head { align-items: flex-start; gap: var(--wa-space-m); } .ad-ind-head .ad-ico.l { width: 44px; height: 44px; font-size: 19px; }
}
@media (max-width: 480px) { .ad-inds { grid-template-columns: 1fr; } }

/* ---------- Media › Encoding: the Mac's renders (src/pages/encoding.tsx) ---------- */
.count.live { background: var(--lm-cane); color: var(--lm-deep); }
.enc { --st-plan: #9aa7a4; --st-timeline: #9aa7a4; --st-voice: var(--viz-3); --st-audio: var(--viz-4); --st-frames: var(--viz-1); --st-stills: var(--lm-cane-deep);
  --st-layout: #b9a77b; --st-encode: var(--viz-2); --st-clips: #5d8f6e; --st-cover: #c58fa8; --st-upload: var(--lm-river);
  display: grid; gap: var(--wa-space-xl); }
.enc h2 { margin: 0 0 var(--wa-space-s); }
.enc h3 { font-size: var(--wa-font-size-m); margin: var(--wa-space-l) 0 var(--wa-space-s); }
.spin { animation: enc-spin 1s linear infinite; }
@keyframes enc-spin { to { transform: rotate(360deg); } }

/* The banner: the Mac, the figures, the last 24 hours. */
.enc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, .9fr); gap: var(--wa-space-xl); align-items: center; padding: var(--wa-space-xl);
  border-radius: calc(var(--wa-border-radius-l) * 1.6); color: var(--lm-sand); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #17707a 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgb(201 226 101 / .2) 0%, transparent 60%), var(--lm-deep); }
.enc-hero > * { min-width: 0; }
.enc-hero .eyebrow { color: rgb(244 234 213 / .75); }
.enc-mac { padding-right: var(--wa-space-l); } /* room between the Mac's name and what sits beside it (Liam, 12 Nov) */
.mac-line { display: flex; align-items: center; gap: .6em; margin: .35em 0 .2em; }
.mac-line b { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.5rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mac-sub { font-size: var(--wa-font-size-s); color: rgb(244 234 213 / .72); }
.pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #8a9794; position: relative; }
.pulse.live { background: var(--lm-cane); box-shadow: 0 0 0 0 rgb(201 226 101 / .6); animation: enc-pulse 1.8s ease-out infinite; }
.pulse.quiet { background: #e0a92a; }
.pulse.on { background: #3fbf6a; box-shadow: 0 0 0 0 rgb(63 191 106 / .6); animation: enc-pulse-on 1.8s ease-out infinite; }
.pulse.down { background: #e5484d; }
@keyframes enc-pulse-on { 70% { box-shadow: 0 0 0 10px rgb(63 191 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 191 106 / 0); } }
@keyframes enc-pulse { 70% { box-shadow: 0 0 0 10px rgb(201 226 101 / 0); } 100% { box-shadow: 0 0 0 0 rgb(201 226 101 / 0); } }
.enc-figs { display: flex; justify-content: space-between; gap: var(--wa-space-m); } /* runs, renders, waiting, done, failed, average: one row */
.enc-figs div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.enc-figs b { overflow: hidden; text-overflow: ellipsis; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--lm-cane); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.enc-figs div:nth-child(n+3) b { color: var(--lm-sand); }
.enc-figs div.bad b { color: #f0a48f; }
.enc-figs div.warn span { color: #f3d27f; }
.enc-figs span { font-size: var(--wa-font-size-xs); color: rgb(244 234 213 / .7); line-height: 1.25; white-space: nowrap; } /* two short lines under every figure */
.enc-figs b + span { margin-top: 4px; }
.enc-hours { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.eh { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-bottom: 14px; cursor: default; }
.eh i { display: block; width: 100%; border-radius: 3px 3px 1px 1px; }
.eh i.d { background: rgb(201 226 101 / .55); min-height: 2px; }
.eh i.f { background: #f0a48f; }
.eh:hover i.d, .eh:last-child i.d { background: var(--lm-cane); }
.eh span { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font: 500 10px/1 var(--lm-mono); color: rgb(244 234 213 / .55); white-space: nowrap; }

/* Now: a card a render. */
.job-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-m); } /* stacked, a card a row (Liam, 12 Nov) */
.job-card { display: flex; flex-direction: column; gap: var(--wa-space-s); padding: var(--wa-space-l); background: var(--wa-color-surface-default);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); min-width: 0; }
.job-card.s-stalled { border-color: #e0a92a; }
.job-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--wa-space-s); }
.job-what { display: flex; flex-direction: column; min-width: 0; }
.job-what b { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: var(--wa-font-size-l); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-what span { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); font-weight: 600; }
.job-label { margin: -4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The step's name lines up with the top of the percentage, its detail with the bottom. */
.job-pct { display: flex; align-items: stretch; gap: var(--wa-space-m); }
.job-pct .big { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 2.6rem; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.job-pct .big small { font-size: .45em; color: var(--wa-color-text-quiet); margin-left: 2px; }
.job-now { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding-bottom: 3px; }
.job-now b { line-height: 1; }
.job-now .small { line-height: 1; }
.job-now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card .bar { height: 10px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; }
.job-card .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lm-river), var(--lm-cane-deep)); transition: width .8s ease;
  background-size: 200% 100%; position: relative; }
.job-card.s-running .bar i { background-image: linear-gradient(90deg, var(--lm-river), var(--lm-cane-deep), var(--lm-river)); animation: enc-flow 2.4s linear infinite; }
.job-card.s-stalled .bar i { background: #e0a92a; }
@keyframes enc-flow { to { background-position: -200% 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li { margin: 0; display: inline-flex; align-items: center; gap: .35em; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.steps li wa-icon { font-size: 10px; }
.steps li small { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.steps li.done { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); }
.steps li.run { background: var(--lm-cane); color: var(--lm-deep); }
.steps li.failed { background: rgb(229 105 75 / .15); color: var(--k-bad); }
.steps li.todo wa-icon { opacity: .35; }
/* A job card's progress: a segment a step, its name and time under it. Wraps onto more rows on a narrow screen. */
.seg-steps { list-style: none; margin: var(--wa-space-2xs) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--wa-space-s) 4px; }
@media (max-width: 760px) { .seg-steps { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }
.seg-steps li { margin: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; line-height: 1.25; color: var(--wa-color-text-quiet); }
.seg-steps li i { display: block; height: 10px; border-radius: 3px; background: var(--wa-color-neutral-fill-quiet); }
.seg-steps li:first-child i { border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.seg-steps li:last-child i { border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.seg-steps li span { font-weight: 600; overflow-wrap: anywhere; }
.seg-steps li span wa-icon { font-size: 9px; margin-right: .35em; vertical-align: 0; }
.seg-steps li.todo span wa-icon { opacity: .45; }
.seg-steps li.done { color: var(--wa-color-brand-on-quiet); }
.seg-steps li.done i { background: var(--lm-cane-deep); }
.seg-steps li.run { color: var(--wa-color-text-normal); }
.seg-steps li.run i { background: linear-gradient(90deg, rgb(201 226 101 / .3), var(--lm-cane), rgb(201 226 101 / .3)); background-size: 200% 100%; animation: enc-flow 2.4s linear infinite; }
.seg-steps li.run.held i { animation: none; background: #e0a92a; }
.seg-steps li.failed { color: var(--k-bad); }
.seg-steps li.failed i { background: var(--k-bad); }
.job-card footer { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs) var(--wa-space-m); border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); padding-top: var(--wa-space-s); }
.job-card footer wa-icon { vertical-align: -1px; }
.job-card footer .warn { color: #b07a00; font-weight: 600; }
.wa-dark .job-card footer .warn { color: #f3d27f; }
.chip.kind { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); flex: none; vertical-align: 1px; max-width: 100%; } /* a short label: the base .chip cap of 55% cut "Image post" in a phone-width cell */
.chip.kind wa-icon { font-size: .95em; } /* every kind chip stays grey with its icon: red means failed (Liam, 13 Nov) */
/* Uploads: each platform's queue for the country, then the posts going up. */
.enc-up > p { margin-top: calc(-1 * var(--wa-space-xs)); }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wa-space-m); margin-bottom: var(--wa-space-m); }
@media (max-width: 900px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lane { --brand: #555; --brand-bar: var(--brand); --brand-tint: rgb(0 0 0 / .03);
  /* each card's rows (name, calls, bar, status, button) share the row's tracks, so they line up across cards (Liam, 12 Nov 2026) */
  position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; align-items: start; gap: 8px; padding: var(--wa-space-m); overflow: hidden;
  background: linear-gradient(180deg, var(--brand-tint), transparent 70%), var(--wa-color-surface-default);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); }
/* one column the card's width: the button's text no longer sets it, wider than a phone's half (Liam, 12 Nov 2026) */
.lane { grid-template-columns: minmax(0, 1fr); }
.lane::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-bar); }
.lane header { display: flex; align-items: center; gap: .45em; }
.lane header wa-icon { color: var(--brand); font-size: 18px; }
.lane .big { font: 600 26px/1 var(--lm-mono); }
.lane .bar, .up-now .bar { height: 8px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; }
.lane .bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand-bar); transition: width .8s ease; }
.up-now .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lm-river), var(--lm-cane-deep)); transition: width .8s ease; }
.lane-instagram, .platform-instagram { --brand: #d62976; --brand-bar: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); --brand-tint: rgb(214 41 118 / .07); }
.lane-tiktok, .platform-tiktok { --brand: #111; --brand-bar: linear-gradient(90deg, #25f4ee, #111 50%, #fe2c55); --brand-tint: rgb(37 244 238 / .08); }
.wa-dark .lane-tiktok, .wa-dark .platform-tiktok { --brand: #fff; --brand-bar: linear-gradient(90deg, #25f4ee, #fff 50%, #fe2c55); }
.lane-facebook, .platform-facebook { --brand: #1877f2; --brand-tint: rgb(24 119 242 / .07); }
.lane-youtube, .platform-youtube { --brand: #ff0033; --brand-tint: rgb(255 0 51 / .06); }
.lane.full .bar i { background: #e0a92a; }
.lane.paused { border-color: #e0a92a; }
.lane.paused .bar i { background: var(--k-bad); }
.lane-figs { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .9em; min-height: 1.6em; }
.lane-waiting { flex-basis: 100%; } /* "24 waiting" on its own line under the pause (Liam, 12 Nov 2026) */
.lane-pause { color: #b07a00; } .lane-since { font-variant-numeric: tabular-nums; }
.lane-hold { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; margin-top: var(--wa-space-2xs); }
.up-now { min-width: 180px; }
.up-now .bar { margin: 4px 0 2px; max-width: 220px; }
.job-status.up-live { background: var(--wa-color-brand-fill-quiet); color: var(--k-good); }
.job-status.up-failed { background: rgb(229 105 75 / .14); color: var(--k-bad); }
.job-status.up-going, .job-status.up-queued, .job-status.up-scheduled { background: var(--wa-color-neutral-fill-quiet); }
.job-status.up-limit, .job-status.up-paused, .job-status.up-retry { background: rgb(224 169 42 / .18); color: #b07a00; }
.up-done { margin: var(--wa-space-s) 0; }
/* Renders and carousels sit side by side (runs stack): cards the same height, a line each for the label and detail. */
.job-cards.grid { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.job-card.compact footer { margin-top: auto; }
.job-card.compact .job-label, .job-card.compact .job-now .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card.compact .job-now { min-width: 0; }
.job-card.compact .seg-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 3px; }
.enc-now .empty wa-icon { margin-right: .3em; vertical-align: -1px; }

/* Waiting for a slot. */
.job-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.job-queue li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--wa-space-m); padding: var(--wa-space-xs) var(--wa-space-m);
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) dashed var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); }
.job-queue .qn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--lm-mono); background: var(--wa-color-neutral-fill-quiet); }
.job-queue .qw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-queue li.s-stalled { border-color: #e0a92a; }

/* Finished. */
.enc-done-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--wa-space-s); }
.enc-done-head .filters { margin: 0; }
.stepbar-legend { display: flex; flex-wrap: wrap; gap: 4px var(--wa-space-m); margin: var(--wa-space-s) 0 var(--wa-space-m); }
.stepbar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.stepbar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.stepbar { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; min-width: 120px; background: var(--wa-color-neutral-fill-quiet); }
.stepbar i { display: block; min-width: 3px; }
.enc [class^="st-"], .enc [class*=" st-"] { background: #9aa7a4; }
.enc .st-plan { background: var(--st-plan); } .enc .st-timeline { background: var(--st-timeline); } .enc .st-voice { background: var(--st-voice); }
.enc .st-audio { background: var(--st-audio); } .enc .st-frames { background: var(--st-frames); } .enc .st-stills { background: var(--st-stills); }
.enc .st-layout { background: var(--st-layout); } .enc .st-encode { background: var(--st-encode); } .enc .st-clips { background: var(--st-clips); }
.enc .st-cover { background: var(--st-cover); } .enc .st-upload { background: var(--st-upload); }
/* a whole run's steps (edition "run") */
.enc .st-setup, .enc .st-sources { background: #9aa7a4; } .enc .st-poll { background: #7f9c96; } .enc .st-pick { background: var(--viz-4); }
.enc .st-write { background: var(--viz-3); } .enc .st-check { background: #b9a77b; } .enc .st-render { background: var(--viz-1); }
.enc .st-review { background: var(--viz-2); } .enc .st-score { background: #c58fa8; }
.stepbar i.failed { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgb(255 255 255 / .45) 4px 8px); }
.enc-list td { vertical-align: top; }
.enc-list th.st, .enc-list td.st { width: 1%; padding-right: 0; }
.up-list td.when { white-space: nowrap; } .up-list .up-when-pre { display: block; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.enc-list th.steps-col { width: 26%; } .enc-list th.took { width: 1%; white-space: nowrap; } .enc-list th.when { width: 11rem; }
.enc-list td.steps-col { padding-top: calc(var(--wa-space-s) + 5px); }
.enc-list td.took { font-variant-numeric: tabular-nums; white-space: nowrap; }
.enc-list td.vid .small { margin-top: 2px; }
.up-list th.st { white-space: nowrap; } .up-list td.plat { white-space: nowrap; } .up-list td.act { text-align: right; white-space: nowrap; }
.up-list td.act form { display: inline-block; } .up-list td.act form + form { margin-left: .4em; }
/* one line for the post, one for its link, so a row is two lines tall (Liam, 12 Nov 2026: "far too much white-space") */
.up-list td { vertical-align: middle; padding-block: 8px; }
.up-list td.vid { width: 32%; max-width: 0; min-width: 200px; } /* the post takes what the other columns leave, its title cut with an ellipsis, so the table never runs off the page */
.up-list .up-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list .up-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list td.up-now .bar { margin: 3px 0 1px; }
.job-status { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; }
.job-status.s-done { background: var(--wa-color-brand-fill-quiet); color: var(--k-good); }
.job-status.s-failed { background: rgb(229 105 75 / .14); color: var(--k-bad); }
.job-status.s-running, .job-status.s-queued { background: var(--wa-color-neutral-fill-quiet); }
.job-status.s-stalled { background: rgb(224 169 42 / .18); color: #b07a00; }
.job-fail { margin-top: var(--wa-space-xs); padding: var(--wa-space-xs) var(--wa-space-s); border-left: 3px solid var(--k-bad); background: rgb(229 105 75 / .07); border-radius: 0 var(--wa-border-radius-s) var(--wa-border-radius-s) 0; font-size: var(--wa-font-size-s); }
.job-fail details { margin-top: 4px; }
.job-fail summary { cursor: pointer; color: var(--wa-color-text-quiet); }
.job-fail pre { margin: 6px 0 0; max-height: 280px; overflow: auto; font: 500 11px/1.5 var(--lm-mono); white-space: pre-wrap; word-break: break-word; }

@media (max-width: 1000px) {
  .enc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .enc-figs { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .enc-hero { grid-template-columns: minmax(0, 1fr); padding: var(--wa-space-l); gap: var(--wa-space-l); }
  .enc-figs { display: grid; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enc-hours { height: 72px; }
  .job-pct .big { font-size: 2.2rem; }
  table.enc-list { display: block; overflow: visible; }
  .enc-list thead { display: none; }
  .enc-list tbody { display: grid; gap: var(--wa-space-s); }
  .enc-list tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--wa-space-s); padding: var(--wa-space-s); background: var(--wa-color-surface-default);
    border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); }
  .enc-list td { display: block; padding: 0; border: 0; }
  .enc-list td.st { grid-row: span 4; }
  .enc-list td.steps-col, .enc-list td.took, .enc-list td.when { grid-column: 2; font-size: var(--wa-font-size-s); }
  .up-list td.plat, .up-list td.up-now { grid-column: 2; }
  .up-list td.act { grid-column: 2; text-align: left; } .up-list td.act:empty { display: none; }
  .enc-list td.st { grid-row: span 5; }
  .enc-list td.steps-col { padding-top: 4px; }
  .enc-list td.took::before, .enc-list td.when::before { content: attr(data-label) ' '; color: var(--wa-color-text-quiet); }
  /* the status is an icon in a narrow first column: its label squeezed in there stood one letter a line */
  .enc-list td.st[data-label]::before { content: none; }
  .lanes { gap: var(--wa-space-s); }
  .lane { padding: var(--wa-space-s); }
  .lane .big { font-size: 22px; }
  .lane-hold button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .spin, .pulse.live, .pulse.on, .job-card.s-running .bar i, .seg-steps li.run i { animation: none; } }

.ad-samp { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--k-good) 18%, transparent); color: var(--k-good); }
.ad-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.ad-legend > span { display: inline-flex; align-items: center; gap: 6px; } .ad-legend b { color: var(--wa-color-text-normal); }
.ad-on { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--lm-cane); }
.ad-ind-head .ad-scope { margin-left: auto; align-self: flex-end; }
/* the button sits on the same line as the town picker, not level with its label (Liam, 11 Nov 2026) */
.ad-ind-head > .wa-button { align-self: flex-end; flex: none; }
.ad-scope select, .ad-ind-head > .wa-button { height: var(--wa-form-control-height, 2.5rem); box-sizing: border-box; }
.ad-scope label { display: grid; gap: 4px; margin: 0; } .ad-scope select { min-width: 13rem; }
@media (max-width: 700px) { .ad-ind-head { flex-wrap: wrap; } .ad-ind-head .ad-scope { margin-left: 0; width: 100%; } .ad-scope select { width: 100%; } }
.ad-matrix td.live a { justify-content: flex-start; gap: 6px; } .ad-matrix td.live .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Sponsors overview (src/pages/sponsors.tsx), in the Advertorials look */
.sp-hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) auto; }
.sp-hero-cards .eyebrow { margin-bottom: var(--wa-space-s); }
.sp-hero-strip { display: flex; flex-wrap: wrap; gap: var(--wa-space-m); }
.sp-hero-strip a { display: flex; flex-direction: column; gap: 6px; flex: none; width: 104px; transition: color .2s ease; color: rgb(244 234 213 / .8); font-size: 11px; font-weight: 600; text-align: center; }
.sp-hero-strip a:hover { text-decoration: none; color: var(--lm-cane); }
/* Hover never moves anything: a lifting card either slips out from under the pointer at its edge or gets re-drawn a
   fraction of a pixel off when the lift ends (Safari especially), and both read as a wiggle. The outline and glow do the work. */
.sp-hero-strip .sp-mini { transition: box-shadow .2s ease, outline-color .2s ease; box-shadow: 0 8px 20px rgb(0 0 0 / .3), 0 0 0 1px rgb(244 234 213 / .14);
  outline: 3px solid transparent; outline-offset: 2px; }
.sp-hero-strip a:hover .sp-mini, .sp-hero-strip a:focus-visible .sp-mini { box-shadow: 0 12px 30px rgb(0 0 0 / .45), 0 0 22px rgb(201 226 101 / .28); outline-color: var(--lm-cane); }
.sp-hero-empty { margin: 0; padding: var(--wa-space-m); border: 1.5px dashed rgb(244 234 213 / .25); border-radius: var(--wa-border-radius-l); color: rgb(244 234 213 / .7); font-size: var(--wa-font-size-s); }
.sp-mini { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; background: var(--lm-deep); transition: transform .15s, box-shadow .15s; }
.sp-strip { grid-auto-columns: 104px; }
.sp-strip .ob-card:hover .sp-mini { transform: translateY(-3px); box-shadow: var(--wa-shadow-m); }

.sp-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: var(--wa-space-m); }
.sp-town { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--wa-space-l); overflow: hidden; min-width: 0;
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l);
  box-shadow: var(--wa-shadow-s); transition: transform .15s, box-shadow .15s; }
.sp-town::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--wa-color-surface-border); }
.sp-town.on::before { background: var(--lm-cane); }
.sp-town.on { background: linear-gradient(180deg, rgb(201 226 101 / .12), transparent 55%), var(--wa-color-surface-default); }
.sp-town:hover { box-shadow: var(--wa-shadow-m); } /* no lift: a tile that moves slips out from under the pointer at its edge */
.sp-town-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--wa-space-xs); }
.sp-mark { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: var(--lm-deep); padding: 4px; box-sizing: border-box; }
.sp-town h3 { margin: 0; font-size: var(--wa-font-size-l); }
.sp-who { display: flex; flex-direction: column; min-height: 2.6em; color: inherit; }
.sp-who strong { color: var(--wa-color-text-link); }
a.sp-who:hover { text-decoration: none; } a.sp-who:hover strong { text-decoration: underline; }
.sp-town .ad-stats { margin: var(--wa-space-xs) 0; }
.sp-town .ad-stats dd { font-size: 1.15rem; }
.sp-page { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--wa-color-text-quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-page wa-icon { font-size: 11px; flex: none; }
/* Regions (pages/towns.tsx TownsPage; Liam, 12 Nov 2026): a banner with the towns rising and falling most, a card for each active town
   (the whole card opens the town; the platform logos above it open the profiles), then the paused towns as tiles. */
.rg-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) auto; }
.rg-tile .chip { max-width: none; }
.rg-hero .hero-sub { gap: var(--wa-space-2xs) var(--wa-space-l); }
.rg-movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wa-space-m); align-self: center; min-width: 0; }
.rg-movers section { min-width: 0; }
.rg-movers h4 { margin: 0 0 8px; font: 700 var(--wa-font-size-2xs)/1 var(--wa-font-family-body); letter-spacing: .08em; text-transform: uppercase; color: rgb(244 234 213 / .72); display: flex; align-items: center; gap: 6px; }
.rg-movers h4 wa-icon { color: var(--lm-cane); }
.rg-movers section + section h4 wa-icon { color: #f08a6c; }
.rg-movers li { margin: 0; }
.rg-movers ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-movers p { margin: 0; font-size: var(--wa-font-size-s); color: rgb(244 234 213 / .55); }
.rg-movers a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 10px;
  color: inherit; text-decoration: none; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .07); transition: background .15s; }
.rg-movers a:hover { background: rgb(255 255 255 / .11); }
.rg-movers img { width: 22px; height: 22px; border-radius: 6px; }
.mv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-movers b { font-variant-numeric: tabular-nums; font-family: var(--wa-font-family-heading); }
.mv-chg { justify-self: end; font: 700 var(--wa-font-size-2xs)/1 var(--wa-font-family-body); padding: 4px 7px; border-radius: 99px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mv-chg.up, .mv-chg.new { background: rgb(201 226 101 / .18); color: var(--lm-cane); }
.mv-chg.down { background: rgb(240 138 108 / .16); color: #f4a48c; }
@media (max-width: 640px) { .rg-movers { grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-m); } }
}
.rg-link { color: inherit; } .rg-link:hover { text-decoration: none; }
.rg-link::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.rg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--wa-space-xs); }
.rg-go { color: var(--wa-color-text-quiet); transition: transform .15s, color .15s; }
.rg-paused { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--wa-space-s); }
.rg-tile { display: flex; align-items: center; gap: var(--wa-space-s); padding: var(--wa-space-s) var(--wa-space-m); color: inherit; min-width: 0;
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); transition: box-shadow .15s; }
.rg-tile:hover { text-decoration: none; box-shadow: var(--wa-shadow-m); }
.rg-tile > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
/* name, state and channel each on their own line, so every tile is the same height (Liam, 12 Nov 2026) */
.rg-tile > span:nth-child(2) b, .rg-tile > span:nth-child(2) .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-tile .sp-mark { width: 28px; height: 28px; border-radius: 8px; opacity: .75; }
.rg-tile .chip { flex: none; }
.rg-tile .chip .dot { width: .55em; height: .55em; margin-right: .35em; vertical-align: middle; }
@media (max-width: 1000px) { .rg-hero { grid-template-columns: minmax(0, 1fr) auto; } .rg-hero .rg-movers { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 1000px) { .sp-hero { grid-template-columns: minmax(0, 1fr) auto; } .sp-hero-cards { grid-column: 1 / -1; grid-row: 2; } }

/* Town prices (pages/tier-editor.tsx, lib/tier-ladder.ts): the price ladder. A step a tier, as wide as the views it
   covers and as tall as its price, on a dark stage like the page's hero; every town a dot on the step it pays. Drag a
   step's edge or its top (web/tier-editor.js). Each tier keeps one colour (--c) in the chart, its inputs and the chips. */
.tl-sub { margin: 2px 0 0; }
.tl-head-btns { display: flex; gap: var(--wa-space-xs); flex-wrap: wrap; margin: 0; }
.tl { display: grid; gap: var(--wa-space-m); margin: 0; min-width: 0; }
.tl > *, .tl-card { min-width: 0; }
.tl-stage { position: relative; padding: var(--wa-space-m) var(--wa-space-m) var(--wa-space-xs); border-radius: var(--wa-border-radius-l); color: var(--lm-sand);
  background: radial-gradient(120% 90% at 0% 0%, rgb(201 226 101 / .12), transparent 55%), linear-gradient(160deg, var(--lm-river), var(--lm-deep) 55%, var(--lm-night)); box-shadow: var(--wa-shadow-m); }
.tl-legend { display: flex; justify-content: space-between; align-items: baseline; gap: var(--wa-space-2xs) var(--wa-space-m); flex-wrap: wrap; }
.tl-legend .eyebrow { color: rgb(244 234 213 / .75); }
.tl-hint { font-size: var(--wa-font-size-xs); color: rgb(244 234 213 / .6); }
.tl-chart { margin: 0 calc(-1 * var(--wa-space-xs)); overflow-x: auto; overscroll-behavior-x: contain; }
.tl-svg { display: block; width: 100%; min-width: 620px; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.tl-svg text { fill: currentColor; text-anchor: middle; }
.tl-grid { stroke: rgb(244 234 213 / .07); }
.tl-floor { stroke: rgb(244 234 213 / .3); stroke-width: 1.5; }
.tl-tick { font: 500 11px var(--lm-mono); fill: rgb(244 234 213 / .45) !important; }
.tl-range { font: 600 11px var(--lm-mono); fill: rgb(244 234 213 / .7) !important; }
.tl-fill { transition: y .12s, height .12s; }
.tl-hit { fill: transparent; }
.tl-tread, .tl-riser { outline: none; touch-action: none; }
.tl-tread { cursor: ns-resize; }
.tl-riser { cursor: ew-resize; }
.tl-top { stroke: var(--c); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); transition: stroke-width .12s; }
.tl-price { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 26px; letter-spacing: -.02em; fill: var(--c) !important; }
.tl-price.sm { font-size: 16px; }
.tl-per { font-family: var(--lm-mono); font-size: 11px; font-weight: 600; letter-spacing: 0; fill: rgb(244 234 213 / .6); }
.tl-grip { fill: none; stroke: var(--lm-night); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .12s; }
.tl-tread:hover .tl-top, .tl-tread:focus .tl-top, .tl-tread.on .tl-top { stroke-width: 9; }
.tl-tread:hover .tl-grip, .tl-tread:focus-visible .tl-grip, .tl-tread.on .tl-grip { opacity: .8; }
.tl-edge { stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 4; opacity: .6; }
.tl-knob { fill: var(--lm-sand); stroke: var(--c); stroke-width: 3; transition: r .12s; }
.tl-pill { fill: var(--lm-night); stroke: color-mix(in srgb, var(--c) 70%, transparent); stroke-width: 1.5; }
.tl-pill-t { font: 700 11px var(--lm-mono); fill: var(--lm-sand) !important; }
.tl-riser:hover .tl-knob, .tl-riser:focus-visible .tl-knob, .tl-riser.on .tl-knob { r: 10; }
.tl-riser:hover .tl-edge, .tl-riser.on .tl-edge { opacity: 1; stroke-dasharray: none; }
.tl-riser.on .tl-pill, .tl-riser:hover .tl-pill, .tl-riser:focus-visible .tl-pill { fill: var(--c); } .tl-riser.on .tl-pill-t, .tl-riser:hover .tl-pill-t, .tl-riser:focus-visible .tl-pill-t { fill: var(--lm-night) !important; }
.tl-town { fill: var(--lm-sand); stroke: var(--c); stroke-width: 2.5; cursor: pointer; outline: none; transition: r .12s, cy .12s; }
.tl-town.hov, .tl-town.hl { r: 8; fill: var(--c); stroke: var(--lm-sand); }
/* The hover card over a dot or a handle (web/tier-editor.js places it; --ax is where its arrow points). */
.tl-tip { position: absolute; z-index: 5; display: grid; gap: 3px; min-width: 170px; max-width: 240px; padding: 9px 12px 10px; border-radius: var(--wa-border-radius-m);
  background: color-mix(in srgb, var(--lm-night) 94%, transparent); color: var(--lm-sand); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-top: 3px solid var(--c); box-shadow: 0 10px 28px rgb(0 0 0 / .35); font-size: var(--wa-font-size-xs); line-height: 1.35; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tl-tip-in .12s ease-out; }
.tl-tip[hidden] { display: none; }
.tl-tip::after { content: ''; position: absolute; left: var(--ax, 50%); top: 100%; width: 10px; height: 10px; translate: -50% -5px; rotate: 45deg;
  background: var(--lm-night); border: solid color-mix(in srgb, var(--c) 55%, transparent); border-width: 0 1px 1px 0; }
.tl-tip.below::after { top: auto; bottom: 100%; translate: -50% 7px; border-width: 1px 0 0 1px; background: var(--c); }
.tl-tip-h { font-family: var(--wa-font-family-heading); font-weight: 800; font-size: var(--wa-font-size-s); margin-bottom: 2px; color: var(--lm-sand); }
.tl-tip-r { display: flex; justify-content: space-between; gap: 14px; color: rgb(244 234 213 / .7); }
.tl-tip-r b { font-family: var(--lm-mono); font-weight: 700; color: var(--lm-sand); white-space: nowrap; }
.tl-tip-r s { opacity: .55; font-weight: 500; }
.tl-tip-k { margin-top: 3px; font-size: 10px; letter-spacing: .02em; color: var(--c); }
@keyframes tl-tip-in { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .tl-tip { animation: none; } }
@media (hover: none) { .tl-tip-k { display: none; } }
.tl.dragging, .tl.dragging * { cursor: grabbing !important; }

.tl-tiers { display: flex; flex-wrap: wrap; gap: var(--wa-space-s); }
.tl-tier { position: relative; display: grid; gap: 6px; padding: var(--wa-space-s) var(--wa-space-m) var(--wa-space-s) calc(var(--wa-space-m) + 4px); flex: 1 1 130px; max-width: 200px;
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-default); overflow: hidden; }
.tl-tier::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.tl-tier-n { display: flex; justify-content: space-between; align-items: center; font: 700 10px var(--lm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.tl-tier label { display: grid; gap: 2px; margin: 0; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.tl-tier input { width: 100%; min-width: 0; box-sizing: border-box; font-family: var(--lm-mono); font-size: var(--wa-font-size-s); }
.tl-tier input[readonly] { opacity: .6; }
.tl-x { all: unset; cursor: pointer; display: inline-flex; padding: 2px 4px; border-radius: 6px; color: var(--wa-color-text-quiet); font-size: 12px; }
.tl-x:hover { background: var(--wa-color-danger-fill-quiet); color: var(--wa-color-danger-on-quiet); }
.tl-add { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 1 140px; min-height: 70px; padding: var(--wa-space-s);
  border: 1.5px dashed var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); font-size: var(--wa-font-size-s); font-weight: 600; color: var(--wa-color-text-quiet); }
.tl-add:hover, .tl-add:focus-visible { border-color: var(--lm-cane-deep); color: var(--wa-color-text-normal); }

.tl-sum { display: flex; flex-wrap: wrap; gap: var(--wa-space-s) var(--wa-space-xl); align-items: flex-end; }
.tl-stat { display: flex; flex-direction: column; gap: 2px; }
.tl-stat span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.tl-stat b { font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.tl-stat s, .tl-chip s { font-weight: 500; opacity: .5; font-size: .75em; }
.tl-err { flex-basis: 100%; margin: 0; color: var(--wa-color-danger-on-quiet); font-weight: 600; font-size: var(--wa-font-size-s); }
.tl-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 6px; }
.tl-chip { margin: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-neutral-fill-quiet); font-size: var(--wa-font-size-s); cursor: pointer; transition: background .12s, box-shadow .12s; }
.tl-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tl-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-chip .tl-v { font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.tl-chip .tl-p { font-weight: 800; text-align: right; }
.tl-chip.moved { background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.tl-chip.hov, .tl-chip.hl { box-shadow: inset 0 0 0 2px var(--c); }
.tl-actions { display: flex; flex-wrap: wrap; gap: var(--wa-space-s); align-items: center; justify-content: flex-end; padding-top: var(--wa-space-s); border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.tl-actions input[name=note] { flex: 1 1 240px; min-width: 0; margin: 0; }
.tl:not(.dirty) .tl-actions input[name=note] { display: none; }
@media (max-width: 700px) {
  .tl-stage { padding: var(--wa-space-s) var(--wa-space-2xs) 0; }
  .tl-legend { padding: 0 var(--wa-space-xs); }
  .tl-tier { max-width: none; flex-basis: 120px; }
  .tl-actions { justify-content: stretch; } .tl-actions > * { flex: 1 1 auto; }
}
.wk-cell.bonus { --ind: var(--lm-cane); background: repeating-linear-gradient(135deg, rgb(244 234 213 / .06) 0 6px, transparent 6px 12px); border: 1px dashed rgb(244 234 213 / .3); color: rgb(244 234 213 / .75); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-s); }
@media (max-width: 600px) { .ad-hero { grid-template-columns: minmax(0, 1fr); } .ad-hero-side { flex-direction: row-reverse; justify-content: space-between; } }

/* ---------- A town's Overview tab (Liam, 12 Nov) ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-xl); }
.overview > * { min-width: 0; margin: 0; }
.overview h2 { margin: 0 0 var(--wa-space-m); }
.ov-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-l); padding: var(--wa-space-xl) var(--wa-space-2xl);
  border-radius: calc(var(--wa-border-radius-l) * 1.6); color: var(--lm-sand); position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, #17707a 0%, transparent 55%), radial-gradient(80% 140% at 0% 100%, rgb(201 226 101 / .2) 0%, transparent 60%), var(--lm-deep); }
.ov-hero .eyebrow { color: rgb(244 234 213 / .72); }
.ov-id { display: flex; flex-direction: column; align-items: flex-start; gap: var(--wa-space-2xs); min-width: 0; }
.ov-id .big { display: block; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: var(--lm-cane); margin: .1em 0 .15em; overflow-wrap: anywhere; }
.ov-state { display: inline-flex; align-items: center; padding: 3px 12px 3px 10px; border-radius: 99px; font-size: var(--wa-font-size-xs); font-weight: 700; background: rgb(244 234 213 / .1); color: var(--lm-sand); }
.ov-state .dot { margin-right: .5em; } .ov-state.on .dot { background: var(--lm-cane); box-shadow: 0 0 0 3px rgb(201 226 101 / .25); }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-m); position: relative; z-index: 1; }
.ov-stat { display: grid; grid-template-rows: auto 2.6rem 1.3rem; align-content: start; row-gap: 6px; min-width: 0; padding: var(--wa-space-m) var(--wa-space-l) var(--wa-space-m) var(--wa-space-m); border-radius: var(--wa-border-radius-l);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(244 234 213 / .12); color: inherit; backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
a.ov-stat:hover { text-decoration: none; background: rgb(255 255 255 / .1); transform: translateY(-2px); }
.ov-stat b { align-self: end; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; color: var(--lm-sand); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-stat b.name { font-size: 1.25rem; line-height: 1.5; letter-spacing: -.01em; }
.ov-stat b.free { color: var(--lm-cane); }
.ov-stat .platform-icons { display: flex; align-items: center; height: 1.3rem; }
.ov-stat .sub { display: block; line-height: 1.3rem; height: 1.3rem; min-width: 0; }
.ov-stat .sub { font-size: var(--wa-font-size-xs); color: rgb(244 234 213 / .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-stat .platform-icons { color: var(--lm-sand); font-size: 1rem; }
.ov-stat .platform-icons a:hover { color: var(--lm-cane); }
.ov-stat .platform-icons > .off { color: var(--lm-sand); opacity: .3; }

.ov-links { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs); margin-top: calc(-1 * var(--wa-space-s)); }
.ov-links .chip { max-width: none; font-size: var(--wa-font-size-xs); padding: 5px 12px; gap: .5em; color: var(--wa-color-text-normal); background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); box-shadow: var(--wa-shadow-s); }
.ov-links .chip wa-icon { color: var(--wa-color-text-quiet); }
.ov-links .chip:hover { text-decoration: none; border-color: var(--lm-cane-deep); }
.ov-links .chip.warn { background: #fde7b0; color: #5a3d00; border-color: #f0cf7a; } .ov-links .chip.warn wa-icon { color: inherit; }
.wa-dark .ov-links .chip.warn { background: rgb(224 169 42 / .2); color: #f3d27f; border-color: transparent; }

/* The latest video of each edition, its carousel underneath. */
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wa-space-l); align-items: stretch; }
.latest { --ed: var(--lm-river); display: flex; flex-direction: column; gap: var(--wa-space-xs); min-width: 0; padding: var(--wa-space-s) var(--wa-space-s) var(--wa-space-m);
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-top: 4px solid var(--ed); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-s); }
.latest.ed-news { --ed: #17707a; } .latest.ed-news2 { --ed: var(--lm-soil); } .latest.ed-whatson { --ed: var(--lm-cane-deep); } .latest.ed-weekahead { --ed: #6b4fa0; }
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-xs); padding: 0 var(--wa-space-2xs); min-height: 26px; }
.latest-head .eyebrow { color: var(--ed); font-size: var(--wa-font-size-s); }
.latest-player { position: relative; aspect-ratio: 9 / 16; border-radius: var(--wa-border-radius-m); overflow: hidden; background: var(--lm-night); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .6); }
.latest-player video, .latest-player img { display: block; width: 100%; height: 100%; object-fit: cover; }
.latest-player .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgb(244 234 213 / .4); }
/* Two lines kept for every title, so the meta, carousel and card bottoms line up across the row (Liam, 12 Nov). */
.latest-title { font-weight: 700; color: var(--wa-color-text-normal); line-height: 1.3; min-height: 2.6em; padding: 0 var(--wa-space-2xs); margin-top: var(--wa-space-2xs);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-title:hover { color: var(--wa-color-brand-on-quiet); }
.latest-meta { margin: 0; padding: 0 var(--wa-space-2xs); }
.latest-sub { display: flex; align-items: baseline; justify-content: space-between; margin: var(--wa-space-s) 0 0; padding: var(--wa-space-s) var(--wa-space-2xs) 0; font-size: var(--wa-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.latest-sub .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.latest .carousel figure { flex-basis: 78%; }
.latest .empty { padding: var(--wa-space-m); margin: 0; }
.latest.none { border-top-style: dashed; }
.latest-empty { aspect-ratio: 9 / 16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wa-space-xs); color: var(--wa-color-text-quiet);
  border: 2px dashed var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); font-size: var(--wa-font-size-s); text-align: center; padding: var(--wa-space-m); }
.latest-empty wa-icon { font-size: 1.8rem; opacity: .5; }

@media (max-width: 1100px) {
  .ov-stat b.name { font-size: 1.1rem; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ov-hero { padding: var(--wa-space-l); }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-stat { padding: var(--wa-space-s) var(--wa-space-m); } .ov-stat:last-child { grid-column: 1 / -1; } .ov-stat b { font-size: 1.6rem; }
  .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .latest-player, .latest-empty { width: min(100%, 300px); margin-inline: auto; }
}

/* Analytics (src/pages/analytics.tsx): the Today page's language (banner, icon cards, platform splits). */
.analytics { gap: var(--wa-space-xl); }
.dash.analytics > .tabs { margin-top: calc(var(--wa-space-l) - var(--wa-space-xl) - var(--wa-space-s)); margin-bottom: calc(var(--wa-space-l) - var(--wa-space-xl)); } /* its wider gap aside, the tabs and hero sit where every other page has them */
.analytics td.r, .analytics th.r, .analytics .r { text-align: right; }
.an-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--wa-space-m); }
.an-top h1 { margin: 0 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4em; }
.an-top p { margin: 0; }
.an-town { font-family: var(--wa-font-family-body); font-size: var(--wa-font-size-m); font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--lm-cane); color: var(--lm-deep); letter-spacing: 0; }
.an-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs); }
.an-tools, .an-recheck { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs); }
/* Recheck views: a pill like the range and platform switches beside it. */
.pill-btn { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 38px; margin: 0; padding: 0 14px; border-radius: 99px; cursor: pointer;
  background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); box-shadow: var(--wa-shadow-s);
  font: inherit; font-weight: 700; font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); white-space: nowrap; }
.pill-btn:hover { color: var(--wa-color-text-normal); background: var(--wa-color-neutral-fill-quiet); }
.an-filters select { width: auto; margin: 0; border-radius: 99px; min-height: 38px; }
/* Analytics' range and platform pills: always one line, the same 38px as the town select beside them. */
.seg { display: inline-flex; flex: none; flex-wrap: nowrap; align-items: center; box-sizing: border-box; height: 38px; padding: 3px; gap: 2px; white-space: nowrap; border-radius: 99px; background: var(--wa-color-surface-default); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); box-shadow: var(--wa-shadow-s); }
.seg a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 99px; font-weight: 700; font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.seg a:hover { text-decoration: none; color: var(--wa-color-text-normal); background: var(--wa-color-neutral-fill-quiet); }
.seg a.on { background: var(--lm-deep); color: var(--lm-cane); }
.wa-dark .seg a.on { background: var(--lm-cane); color: var(--lm-deep); }
.seg.plats a { padding: 0 9px; font-size: 1rem; }
.seg.plats a:first-child { font-size: var(--wa-font-size-s); }

.dash > .tabs { margin: calc(-1 * var(--wa-space-s)) -4px 0; } /* Analytics, Sponsors, Advertorials: the hero sits the same distance under the tabs */

.analytics .card { border-radius: calc(var(--wa-border-radius-l) * 1.25); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--wa-space-s); flex-wrap: wrap; margin-bottom: var(--wa-space-m); }
.card-head h3 { margin: 0; }
.card-head a wa-icon { font-size: .8em; vertical-align: -1px; }
.foot-note { margin: var(--wa-space-m) 0 0; } .foot-note wa-icon { vertical-align: -2px; margin-right: 2px; }
.an-note { margin: 0; } .an-note wa-icon { vertical-align: -2px; margin-right: 4px; }
.an-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; color: var(--wa-color-text-quiet); text-align: center; }
.an-empty wa-icon { font-size: 1.6rem; opacity: .45; } .an-empty p { margin: 0; font-size: var(--wa-font-size-s); max-width: 28ch; }

/* The banner: views, a column a day, and how many posts have numbers. */
.an-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) auto; }
.an-hero .big { font-size: clamp(3rem, 7vw, 5rem); }
.an-bars { gap: clamp(1px, .35vw, 5px); height: 150px; }
.an-bars .hb i { max-width: 26px; border-radius: 4px 4px 1px 1px; }
.an-bars .hb span { height: 12px; }
.an-hero .eyebrow { white-space: nowrap; } /* one line, whatever the day (Liam, 17 Nov 2026) */
.an-hero .hb { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.an-hero .hb > i { position: relative; }
.an-hero .hb.on > i { background: var(--lm-cane); }
.an-hero.picked .hb:not(.on) > i { opacity: .55; }
.an-hero .hb:focus-visible > i { outline: 2px solid var(--lm-cane); outline-offset: 2px; }
/* Today's estimate (Liam, 17 Nov 2026): a soft ghost of the bar it's heading for, no outline or label. */
.hb-est { position: absolute; bottom: var(--axis-b); left: 50%; transform: translateX(-50%); width: 100%; max-width: 26px;
  border-radius: 4px 4px 1px 1px; background: rgb(201 226 101 / .16); pointer-events: none; }
.delta-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.delta-chip.up { background: rgb(76 138 30 / .13); color: var(--k-good); }
.delta-chip.down { background: rgb(201 71 42 / .12); color: var(--k-bad); }
.delta-chip.new { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.delta-chip.dark { font-size: var(--wa-font-size-s); padding: 3px 10px; }
.delta-chip.dark.up { background: rgb(201 226 101 / .16); color: var(--lm-cane); }
.delta-chip.dark.down { background: rgb(240 164 143 / .16); color: #f0a48f; }
.delta-chip.dark.new { background: rgb(244 234 213 / .1); color: rgb(244 234 213 / .75); }

.analytics .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.analytics .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analytics .kpi { border-radius: calc(var(--wa-border-radius-l) * 1.25); }
.analytics .kpi .split { margin-top: auto; }
.trend { width: 100%; height: 36px; margin-top: auto; display: block; }
.trend .line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend .area { opacity: .16; stroke: none; }
.trend.v-tiktok, .trend.v-facebook, .trend.v-instagram, .trend.v-youtube { background: none; }
.trend.v-tiktok .line { stroke: var(--viz-1); } .trend.v-tiktok .area { fill: var(--viz-1); }
.trend.v-youtube .line { stroke: var(--viz-2); } .trend.v-youtube .area { fill: var(--viz-2); }
.trend.v-facebook .line { stroke: var(--viz-3); } .trend.v-facebook .area { fill: var(--viz-3); }
.trend.v-instagram .line { stroke: var(--viz-4); } .trend.v-instagram .area { fill: var(--viz-4); }

/* A platform's logo on its colour. */
.plat-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: 12px; vertical-align: middle; }
.plat-ic:not([class*="v-"]) { background: var(--k-mute); }

.plat-rows { display: grid; gap: 6px; }
.plat-row { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: var(--wa-space-m); padding: 10px 12px; border-radius: 12px; color: inherit; transition: background .15s; }
.plat-row:hover { text-decoration: none; background: var(--wa-color-neutral-fill-quiet); }
.plat-row .plat-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.pr-name, .pr-num { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pr-name b { font-size: var(--wa-font-size-m); }
.pr-num { align-items: flex-end; } .pr-num b { font-family: var(--wa-font-family-heading); font-size: 1.35rem; font-weight: 900; }
.track { display: block; position: relative; height: 10px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; float: left; }
.track i + i { border-radius: 0 99px 99px 0; margin-left: 2px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(3rem, auto); align-items: center; gap: var(--wa-space-s); font-size: var(--wa-font-size-s); }
.bar-row .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bar-row .lbl .mono { font-weight: 500; font-size: .92em; }
.bar-row > b { text-align: right; font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); white-space: nowrap; }
.bar-row .fmt, .fmt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* Best posts: covers in a row, ranked. */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--wa-space-m); }
.poster { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--wa-color-neutral-fill-quiet); color: #fff; box-shadow: var(--wa-shadow-s); transition: transform .18s, box-shadow .18s; }
.poster:hover { text-decoration: none; transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--wa-shadow-l); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--wa-color-text-quiet); }
.poster .rank { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--lm-cane); color: var(--lm-deep); font-weight: 900; font-size: 12px; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.poster .plat-ic { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.poster .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 10px 9px; display: flex; flex-direction: column; background: linear-gradient(transparent, rgb(0 0 0 / .78)); line-height: 1.15; }
.poster .foot b { font-family: var(--wa-font-family-heading); font-size: 1.45rem; font-weight: 900; }
.poster .foot span { font-size: 11px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.leader { display: grid; gap: 4px; }
.lead-row { display: grid; grid-template-columns: 24px minmax(0, 9rem) minmax(0, 1fr) 3.2rem 4.2rem; align-items: center; gap: var(--wa-space-s); padding: 7px 8px; border-radius: 10px; color: inherit; font-size: var(--wa-font-size-s); }
.lead-row:hover { text-decoration: none; background: var(--wa-color-neutral-fill-quiet); }
.lead-row > b { text-align: right; font-family: var(--lm-mono); }
.lead-row .delta-chip { justify-self: end; }
.lead-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--wa-color-neutral-fill-quiet); font-weight: 800; font-size: 12px; color: var(--wa-color-text-quiet); }
.lead-row:first-child .pos, .town-card:first-child .pos { background: var(--lm-cane); color: var(--lm-deep); }

/* Towns. */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--wa-space-l); }
.town-card { display: flex; flex-direction: column; gap: var(--wa-space-s); color: inherit; transition: transform .15s, box-shadow .15s; }
.town-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--wa-shadow-m); }
.town-card.quiet { opacity: .7; }
.tc-head { display: flex; align-items: center; gap: var(--wa-space-s); min-width: 0; }
.tc-name { font-family: var(--wa-font-family-heading); font-size: var(--wa-font-size-l); font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.tc-head .chip { max-width: 45%; }
.tc-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--wa-space-m); }
.tc-main .num { display: inline; margin-right: 4px; }
.tc-main .trend { height: 40px; }
.tc-stats, .pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 8px; padding-top: var(--wa-space-s); border-top: var(--wa-border-width-s) dashed var(--wa-color-surface-border); }
.tc-stats span, .pc-stats span { display: flex; flex-direction: column; font-size: 11px; color: var(--wa-color-text-quiet); font-weight: 600; line-height: 1.3; }
.tc-stats b, .pc-stats b { font-size: var(--wa-font-size-m); color: var(--wa-color-text-normal); font-family: var(--lm-mono); font-weight: 600; }
.tc-stats em { font-style: normal; font-weight: 800; }
.an-table td, .an-table th { white-space: nowrap; }
.analytics .card:has(.an-table) { overflow-x: auto; }
.analytics .card .dt-search { position: sticky; left: 0; }
.charts.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.an-table td.lead-cell { display: flex; align-items: center; gap: 8px; min-width: 9rem; }
.an-table td.lead-cell .track { flex: 1; height: 8px; }

/* Platforms. */
.plat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wa-space-l); }
.plat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.plat-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; }
.v-instagram-bar::before { background: var(--viz-4); } .v-facebook-bar::before { background: var(--viz-3); }
.v-tiktok-bar::before { background: var(--viz-1); } .v-youtube-bar::before { background: var(--viz-2); }
.pc-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--wa-space-s); }
.pc-head b { font-size: var(--wa-font-size-m); } .pc-head .muted { margin-left: auto; }
.pc-head .plat-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.plat-card .pc-stats { margin-top: var(--wa-space-m); }
.pc-note { margin: var(--wa-space-s) 0 0; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); } .pc-note wa-icon { vertical-align: -1px; }
.fmt-table { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) repeat(4, minmax(0, .6fr)); }
.ft-row { display: contents; }
.ft-row > span { padding: 10px 8px; border-bottom: var(--wa-border-width-s) solid var(--wa-color-surface-border); display: flex; align-items: center; min-width: 0; font-size: var(--wa-font-size-s); }
.ft-row > span.r { justify-content: flex-end; }
.ft-top > span { font-size: var(--wa-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); padding-top: 0; }
.ft-row:last-child > span { border-bottom: 0; }
.ft-bar { gap: 10px; } .ft-bar .track { flex: 1; } .ft-bar b { font-family: var(--lm-mono); font-size: var(--wa-font-size-s); min-width: 2.5rem; text-align: right; }

/* Editions. */
.ed-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--wa-space-l); }
.ed-card { display: flex; flex-direction: column; gap: 4px; }
.ed-card.top { background: linear-gradient(160deg, rgb(201 226 101 / .2), transparent 55%), var(--wa-color-surface-default); }
.ed-card .eyebrow .chip { margin-left: 4px; }
.meter { height: 8px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; margin: 8px 0 2px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--lm-river); }
.wa-dark .meter i { background: var(--lm-cane); }
.meter.hot i { background: var(--k-warn); } .meter.full i { background: var(--k-bad); }
.heat { display: grid; grid-template-columns: minmax(70px, 8rem) repeat(var(--cols), minmax(0, 1fr)); gap: 5px; }
.heat .h-top { text-align: center; font-size: var(--wa-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.heat .h-lbl { align-self: center; font-weight: 700; font-size: var(--wa-font-size-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat .h-cell { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; font-family: var(--lm-mono); font-size: var(--wa-font-size-s); font-weight: 600;
  background: rgb(15 76 82 / var(--a, 0)); color: var(--wa-color-text-normal); }
.heat .h-cell[style*="--a:0.9"], .heat .h-cell[style*="--a:1"], .heat .h-cell[style*="--a:0.8"], .heat .h-cell[style*="--a:0.7"], .heat .h-cell[style*="--a:0.6"] { color: var(--lm-cream); }
.heat .h-cell[data-empty] { background: none; border: 1.5px dashed var(--wa-color-surface-border); }
.wa-dark .heat .h-cell { background: rgb(201 226 101 / var(--a, 0)); }
.wa-dark .heat .h-cell[style*="--a:0.9"], .wa-dark .heat .h-cell[style*="--a:1"], .wa-dark .heat .h-cell[style*="--a:0.8"], .wa-dark .heat .h-cell[style*="--a:0.7"], .wa-dark .heat .h-cell[style*="--a:0.6"] { color: var(--lm-deep); }
.wa-dark .heat .h-cell[data-empty] { background: none; }

/* Posts. */
.post-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--wa-space-xl); align-items: start; }
.ph-cover { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--wa-color-neutral-fill-quiet); box-shadow: var(--wa-shadow-m); }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--wa-color-text-quiet); }
.ph-cover .plat-ic { position: absolute; top: 8px; right: 8px; }
.ph-body h2 { margin: 6px 0 4px; font-size: var(--wa-font-size-xl); }
.ph-body > p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: var(--wa-space-m) 0; }
.stat { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--wa-color-neutral-fill-quiet); }
.stat wa-icon { font-size: .8rem; color: var(--wa-color-text-quiet); }
.stat b { font-family: var(--wa-font-family-heading); font-size: 1.35rem; font-weight: 900; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--wa-color-text-quiet); font-weight: 600; }
.stat.none { opacity: .5; } .stat.none b { font-family: var(--lm-mono); font-weight: 500; }
.ph-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-chart h3 { margin: 0 0 var(--wa-space-s); }
.viz.curve .curve-area { fill: var(--viz-1); opacity: .12; }
.posts-table .pt-title a { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; max-width: 21rem; }
.posts-table .pt-title a > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.posts-table .pt-title b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--wa-color-text-link); }
.pt-thumb { width: 30px; height: 53px; border-radius: 6px; object-fit: cover; flex: none; background: var(--wa-color-neutral-fill-quiet); display: block; }
.posts-table tr.on td { background: var(--wa-color-brand-fill-quiet); }
.posts-table .strong { font-weight: 700; }
.posts-table td .plat-ic { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; margin-right: 4px; }

/* Sponsors. */
.sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--wa-space-l); }
.sp-card { display: flex; flex-direction: column; gap: var(--wa-space-m); color: inherit; transition: transform .15s, box-shadow .15s; }
.sp-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--wa-shadow-m); }
.sp-head { display: flex; align-items: center; gap: var(--wa-space-s); }
.sp-head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; } .sp-head b { font-size: var(--wa-font-size-l); }
.sp-logo { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--lm-deep); color: var(--lm-cane); font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.4rem; flex: none; }
.sp-big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wa-space-m); }
.sp-big > div { display: flex; flex-direction: column; }

/* Outreach. */
.funnel { display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem minmax(0, 11rem); align-items: center; gap: var(--wa-space-m); font-size: var(--wa-font-size-s); }
.fn-lbl { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fn-lbl wa-icon { width: 1.2em; color: var(--wa-color-text-quiet); }
.fn-track { display: flex; justify-content: center; height: 26px; }
.fn-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lm-river), #17707a); }
.wa-dark .fn-track i { background: linear-gradient(90deg, var(--lm-cane-deep), var(--lm-cane)); }
.fn-row > b { text-align: right; font-family: var(--wa-font-family-heading); font-weight: 900; font-size: 1.15rem; }

/* Health. */
.budget { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wa-space-l); }
.bg-card { display: flex; flex-direction: column; gap: 4px; }
.bg-card .num small { font-family: var(--wa-font-family-body); }
.analytics .hg-cell { cursor: default; }
.analytics .hg-cell:hover { filter: none; }
.errs { display: grid; gap: 8px; }
.err { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgb(201 71 42 / .08); }
.err > div { display: flex; flex-direction: column; min-width: 0; } .err b { font-weight: 600; font-size: var(--wa-font-size-s); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .analytics .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat-cards, .budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-hero { grid-template-columns: minmax(0, 1fr) auto; } .an-hero .an-bars { grid-column: 1 / -1; grid-row: 2; }
  .post-hero { grid-template-columns: 130px minmax(0, 1fr); } .ph-chart { grid-column: 1 / -1; }
  .charts.wide-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .analytics { gap: var(--wa-space-l); }
  .an-tools, .an-filters { width: 100%; } .an-filters select { flex: 1 1 100%; }
  .an-filters select { order: -1; }
  .an-filters .seg { flex: 3 1 0; min-width: 0; } .an-filters .seg.plats { flex-grow: 5; } .an-filters .seg a { flex: 1 1 0; min-width: 0; padding: 0 4px; }
  .an-hero .big { font-size: 3rem; } .an-hero .ring { width: 92px; height: 92px; }
  .an-bars { height: 110px; }
  .analytics .kpis, .analytics .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wa-space-s); }
  .analytics .kpis > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .analytics .kpi { padding: var(--wa-space-m); } .analytics .kpi .num { font-size: 1.7rem; }
  .plat-cards, .budget { grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-s); }
  .plat-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--wa-space-s); } .plat-row .track { grid-column: 1 / -1; grid-row: 2; }
  .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-s); }
  .poster .foot b { font-size: 1.1rem; }
  .lead-row { grid-template-columns: 24px minmax(0, 1fr) 3rem 3.8rem; } .lead-row .track { display: none; }
  .bar-row { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) minmax(2.5rem, auto); }
  .fmt-table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-row > span:nth-child(n+3) { display: none; }
  .heat { grid-template-columns: minmax(56px, 5rem) repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
  .heat .h-cell { height: 38px; font-size: 10px; border-radius: 7px; }
  .post-hero { grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-m); } .ph-cover { width: 120px; } .ph-body h2 { font-size: var(--wa-font-size-l); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat { padding: 8px; } .stat b { font-size: 1.1rem; }
  .fn-row { grid-template-columns: minmax(0, 1fr) 4rem; } .fn-track { grid-column: 1 / -1; grid-row: 2; height: 18px; } .fn-conv { display: none; }
  .sp-big { grid-template-columns: 1fr; }
}
.viz .curve-post { fill: none; stroke: var(--viz-1); stroke-width: 2.5; }
.viz .curve-typical { fill: none; stroke: var(--k-mute); stroke-width: 1.5; stroke-dasharray: 4 4; }
.viz .curve-dot { fill: var(--viz-1); stroke: var(--wa-color-surface-default); stroke-width: 1.5; }
.k-curve-post { background: var(--viz-1); } .k-curve-typical { background: var(--k-mute); }

/* ---------- Banners (Liam, 12 Nov: "all hero cards on all pages the same height... about what Advertorials is"). ----------
   Today, Regions, a town's Overview, Sponsors, Advertorials, Analytics and Processing share one height, padding, corner,
   big-number size and chart height. A chart in a banner has subtle lines with their values behind it (HeroAxis). */
:root { --hero-h: 248px; --hero-chart-h: 132px; }
.dash-hero, .ov-hero, .enc-hero { box-sizing: border-box; padding: var(--wa-space-xl); border-radius: calc(var(--wa-border-radius-l) * 1.6); gap: var(--wa-space-xl); }
.dash-hero .big, .an-hero .big { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.dash-hero .ring { width: 124px; height: 124px; }

/* Bars in a banner: each column's label sits under the bar area, so the bars and the lines share one scale. */
.hero-bars, .enc-hours { position: relative; height: var(--hero-chart-h); padding-left: 40px; --axis-b: 16px; }
.hero-bars .hb { position: relative; padding-bottom: var(--axis-b); gap: 0; box-sizing: border-box; }
.hero-bars .hb > span, .hero-bars .hb > img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.hero-bars .hb > span { line-height: 12px; height: 12px; }
.enc-hours { --axis-b: 14px; }
.eh { padding-bottom: var(--axis-b); box-sizing: border-box; }
.hero-axis { position: absolute; left: 40px; right: 0; top: 0; bottom: var(--axis-b); pointer-events: none; }
.hero-axis i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgb(244 234 213 / .13); }
.hero-axis i:first-child { border-top-style: solid; border-color: rgb(244 234 213 / .2); }
.hero-axis span { position: absolute; right: calc(100% + 6px); top: 0; transform: translateY(-50%); font: 500 10px/1 var(--lm-mono); color: rgb(244 234 213 / .5); white-space: nowrap; }
.hero-bars .hb, .eh { z-index: 1; }

@media (min-width: 1001px) {
  .dash-hero, .ov-hero, .enc-hero { height: var(--hero-h); align-items: center; }
  .hero-sub { flex-wrap: nowrap; white-space: nowrap; }
  /* Sponsors: the same columns as Advertorials, and end cards small enough to fit. */
  .sp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; }
  /* room for the hover outline (3px + 2px offset) and glow inside the clip, without moving the cards */
  .sp-hero-strip { flex-wrap: nowrap; overflow: hidden; gap: var(--wa-space-s); padding: 6px; margin: -6px; }
  .sp-hero-strip a { width: 78px; }
  /* A town's Overview: the name on the left, its three figures beside it. */
  .ov-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
  .ov-id .big { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
  /* Processing: the figures and the last 24 hours fill the banner like the others. */
  .enc-hero { grid-template-columns: max-content minmax(0, 2fr) minmax(0, 1.2fr); } /* the Mac's name never cut off */
  .an-hero .an-bars .hb i { max-width: 22px; }
}
@media (max-width: 1000px) {
  .hero-bars { height: 112px; }
}

/* Page headers (views/ui.tsx PageHead): the title and a short line on the left, the page's controls on the right. */
.page-head { margin-bottom: var(--wa-space-s); }
.dash > .page-head, .analytics > .page-head { margin-bottom: 0; }
.page-head .crumb { margin: 0 0 4px; }
.page-head h1 .info { font-size: var(--wa-font-size-m); }
.head-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px; box-sizing: border-box; white-space: nowrap;
  font-weight: 700; font-size: var(--wa-font-size-s); color: var(--wa-color-text-normal); background: var(--wa-color-surface-default);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); box-shadow: var(--wa-shadow-s); }
a.head-pill:hover { text-decoration: none; background: var(--wa-color-neutral-fill-quiet); }
.head-pill wa-icon { font-size: .95em; color: var(--wa-color-text-quiet); }
.head-pill.brand { background: var(--lm-deep); color: var(--lm-cane); border-color: transparent; }
.head-pill.brand wa-icon { color: var(--lm-cane); }
a.head-pill.brand:hover { background: var(--lm-river); }
.wa-dark .head-pill.brand { background: var(--lm-cane); color: var(--lm-deep); } .wa-dark .head-pill.brand wa-icon { color: var(--lm-deep); }
.wa-dark a.head-pill.brand:hover { background: var(--lm-cane-deep); }
.head-pill.chip-good wa-icon { color: var(--lm-cane-deep); }
.head-pill.chip-warn wa-icon { color: #e0a92a; }
.head-pill.chip-mute { color: var(--wa-color-text-quiet); box-shadow: none; }
.page-head .an-filters select { width: auto; margin: 0; border-radius: 99px; min-height: 38px; }
@media (max-width: 640px) { .page-head { align-items: flex-start; } .page-head .an-filters { width: 100%; } }

/* Costs (pages/costs.tsx; Liam, 12 Nov 2026: "a visual mess. Redesign it"): the Today banner, a card a kind of cost with
   its share of the spend, the towns as one wide table with a cost bar each, then a night's steps beside the fixed bills. */
.costs .cs-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr) auto; }
.costs .cs-hero .hero-bars { gap: 3px; }
.costs .cs-hero .hb i { max-width: 18px; border-radius: 4px 4px 1px 1px; }
.costs .delta.down { color: #f4a48c; }
.cs-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* Provider bills (src/pages/bills.tsx): the bills KPI links through; each service's connect form folds away */
.cs-kpi-link { display: block; color: inherit; text-decoration: none; }
.cs-kpi-link > .kpi { height: 100%; }
.bill-connect { border-top: 1px solid var(--wa-color-neutral-border-quiet); padding: var(--wa-space-s) 0; }
.bill-connect:first-of-type { border-top: 0; }
.bill-connect summary { cursor: pointer; }
.bill-connect > form, .bill-connect > .stack { margin-top: var(--wa-space-s); }
.bills .err { color: var(--wa-color-danger-on-quiet); }
.bills .badge.good { color: var(--wa-color-success-on-quiet); background: var(--wa-color-success-fill-quiet); border-radius: 99px; padding: 0 .5em; font-size: var(--wa-font-size-xs); }
.cs-kpi .eyebrow wa-icon { color: var(--lm-cane-deep); margin-right: 2px; }
.cs-share { display: block; height: 6px; margin-top: var(--wa-space-s); border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; }
.cs-share i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lm-river), var(--lm-cane-deep)); }
.costs .card { border-radius: calc(var(--wa-border-radius-l) * 1.25); }
.cs-scroll { overflow-x: auto; }
.cs-towns { width: 100%; }
.cs-towns td, .cs-towns th { white-space: nowrap; }
.cs-towns td.r, .cs-towns th.r { text-align: right; font-variant-numeric: tabular-nums; }
.cs-towns th.cs-bar-col { width: 20%; }
.cs-towns td:last-child, .cs-towns th:last-child { padding-right: var(--wa-space-m); }
.cs-cost { display: flex; align-items: center; gap: var(--wa-space-s); min-width: 130px; }
.cs-towns td.cs-bar-col b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.cs-bar { flex: 1; display: flex; height: 10px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; }
.cs-bar i { display: block; height: 100%; }
.costs i.run { background: var(--lm-river); } .costs i.rnd { background: #e0a92a; opacity: .75; }
.wa-dark .costs i.run { background: var(--lm-cane-deep); }
.cs-margin { display: inline-block; padding: 2px 9px; border-radius: 99px; font-weight: 700; font-size: var(--wa-font-size-xs); font-variant-numeric: tabular-nums; }
.cs-margin.up { background: rgb(169 196 69 / .2); color: var(--k-good); }
.cs-margin.down { background: rgb(229 105 75 / .12); color: var(--k-bad); }
.costs .legend { margin-top: var(--wa-space-s); }
.cs-steps .hrow { grid-template-columns: 11rem 1fr 3.6rem; }
.cs-portal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-s); margin: var(--wa-space-m) 0 0; padding-top: var(--wa-space-m); border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.cs-portal dt { font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); } .cs-portal dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-bills { display: grid; gap: var(--wa-space-xs); }
.cs-bill { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name week' 'amt btns'; align-items: center; gap: 6px var(--wa-space-s); padding: var(--wa-space-s); border-radius: var(--wa-border-radius-m); }
.cs-bill > input[name="name"] { grid-area: name; } .cs-bill .cs-amt { grid-area: amt; } .cs-bill .cs-week { grid-area: week; } .cs-bill .cs-btns { grid-area: btns; }
.cs-bill + .cs-bill:not(.cs-new) { border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); border-radius: 0; }
.cs-bill:not(.cs-new):hover { background: var(--wa-color-neutral-fill-quiet); }
.cs-bill input, .cs-bill select { margin: 0; min-width: 0; }
.cs-amt { display: flex; gap: 4px; min-width: 0; } .cs-amt input { flex: 1; min-width: 5rem; } .cs-amt select { width: auto; flex: none; }
.cs-week { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .cs-week small { font-weight: 500; color: var(--wa-color-text-quiet); margin-left: 1px; }
.cs-btns { display: flex; gap: 4px; justify-content: flex-end; }
.cs-new { margin-top: var(--wa-space-xs); border: var(--wa-border-width-s) dashed var(--wa-color-surface-border); }
@media (max-width: 1000px) { .costs .cs-hero { grid-template-columns: minmax(0, 1fr) auto; } .costs .cs-hero .hero-bars { grid-column: 1 / -1; grid-row: 2; } .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cs-bill { grid-template-areas: 'name name' 'amt amt' 'week btns'; }
  .cs-steps .hrow { grid-template-columns: 7.5rem 1fr 3.4rem; }
  /* a town a line: its name and margin, then its cost bar; the rest is on the wider screens */
  .cs-towns tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--wa-space-s); padding: var(--wa-space-xs) var(--wa-space-s); }
  .cs-towns td.r { display: none; }
  .cs-towns td:first-child { grid-row: 1; grid-column: 1; } .cs-towns td:last-child { display: block; grid-row: 1; grid-column: 2; }
  .cs-towns td.cs-bar-col { grid-row: 2; grid-column: 1 / -1; }
  .cs-towns td::before { content: none !important; }
  .cs-kpis > * { grid-column: auto !important; }
  .cs-portal { grid-template-columns: 1fr; }
}

/* Towns › Publishing › New town setup and Zernio (Liam, 13 Nov). Shared: a platform's logo and name, and a status mark. */
.pname { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--wa-color-text-normal); }
.pname wa-icon { color: var(--brand); font-size: 1.05em; }
.mark { flex: none; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .68rem; background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.mark.inline { width: 1.15rem; height: 1.15rem; font-size: .6rem; vertical-align: -3px; }
.mark.good { background: rgb(76 138 30 / .14); color: var(--k-good); }
.mark.warn { background: rgb(217 154 18 / .16); color: #a26f00; }
.mark.bad { background: rgb(201 71 42 / .13); color: var(--k-bad); }
.mark.busy { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); }
.wa-dark .mark.warn { color: var(--k-warn); }
.setup-card .card-head, .zernio-card .card-head { align-items: flex-start; }
.setup-card .card-head h2, .zernio-card .card-head h2 { margin: 0; }
.card-head .sub { margin: var(--wa-space-2xs) 0 0; }
.small.bad, .zn-now.bad { color: var(--k-bad); }

/* New town setup: numbered steps down a line, each ticked once done. */
.setup-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.setup-step { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--wa-space-m); padding-bottom: var(--wa-space-l); margin: 0; }
.setup-step:last-child { padding-bottom: 0; }
.setup-step:not(:last-child)::before { content: ''; position: absolute; left: calc(1rem - 1px); top: 2.3rem; bottom: .3rem; width: 2px; border-radius: 2px; background: var(--wa-color-surface-border); }
.setup-step.done:not(:last-child)::before { background: var(--lm-cane-deep); opacity: .55; }
.step-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font: 800 .95rem/1 var(--wa-font-family-body); background: var(--wa-color-surface-lowered); color: var(--wa-color-text-quiet); border: 2px solid var(--wa-color-surface-border); }
.setup-step.done .step-n { background: var(--lm-cane); border-color: var(--lm-cane); color: var(--lm-deep); font-size: .8rem; }
.step-body { min-width: 0; padding-top: .2rem; }
.step-body > p { margin: var(--wa-space-2xs) 0 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-s); flex-wrap: wrap; }
.step-head h3 { margin: 0; font-size: var(--wa-font-size-m); }
.step-head form { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs); margin-top: var(--wa-space-s); }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .3em .4em .3em .75em; border-radius: 99px; border: var(--wa-border-width-s) solid var(--wa-color-surface-border); background: var(--wa-color-surface-raised); font-size: var(--wa-font-size-s); }
.pill-state { font-size: var(--wa-font-size-2xs); font-weight: 700; padding: .2em .65em; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.pill.good .pill-state { background: rgb(76 138 30 / .14); color: var(--k-good); }
.push-form { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-s); flex-wrap: wrap; margin-top: var(--wa-space-s); }
.toggles { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs); }
label.toggle { position: relative; display: inline-flex; align-items: center; gap: .5em; margin: 0; padding: .45em .95em; border-radius: 99px; cursor: pointer; font-size: var(--wa-font-size-s); font-weight: 600;
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border); background: var(--wa-color-surface-raised); color: var(--wa-color-text-quiet); transition: background .15s, border-color .15s, color .15s; }
label.toggle input { position: absolute; opacity: 0; pointer-events: none; }
label.toggle wa-icon { font-size: .9em; }
label.toggle:has(input:checked) { background: var(--wa-color-brand-fill-quiet); border-color: var(--wa-color-brand-border-normal, rgb(15 76 82 / .3)); color: var(--wa-color-brand-on-quiet); }
label.toggle:has(input:focus-visible) { outline: var(--wa-focus-ring); outline-offset: 2px; }
.report-when { margin: var(--wa-space-m) 0 var(--wa-space-xs) !important; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: var(--wa-space-s); }
.result { position: relative; overflow: hidden; padding: var(--wa-space-s) var(--wa-space-m) var(--wa-space-m); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-lowered); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.result::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-bar, var(--brand)); }
.result > .pname { margin: .2em 0 var(--wa-space-xs); }
.result ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wa-space-xs); }
.result li { display: flex; gap: .55em; align-items: flex-start; margin: 0; font-size: var(--wa-font-size-s); line-height: 1.35; }
.result li .muted { display: block; font-size: var(--wa-font-size-xs); }
.result > p { margin: var(--wa-space-xs) 0 0; }
.covers { display: flex; flex-wrap: wrap; gap: 6px; }
.pin-cover { display: inline-flex; align-items: center; gap: .45em; padding: .25em .7em .25em .3em; border-radius: 99px; font-size: var(--wa-font-size-xs); font-weight: 600; color: var(--wa-color-text-normal); background: var(--wa-color-surface-raised); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.pin-cover .mark { width: 1.15rem; height: 1.15rem; font-size: .58rem; }
.pin-cover .ext { font-size: .7em; color: var(--wa-color-text-quiet); }
a.pin-cover:hover { text-decoration: none; border-color: var(--lm-cane-deep); }
.by-hand { display: flex; gap: .55em; align-items: flex-start; padding: .55em .75em; border-radius: var(--wa-border-radius-s); background: rgb(217 154 18 / .1); color: var(--wa-color-text-normal); line-height: 1.4; }
.by-hand wa-icon { flex: none; margin-top: .2em; color: #a26f00; }
.wa-dark .by-hand wa-icon { color: var(--k-warn); }

/* Zernio: a card a platform, with a Direct | Zernio switch. */
.zn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: var(--wa-space-s); }
.zn-acct { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--wa-space-s); padding: var(--wa-space-m); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-raised); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.zn-acct::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-bar, var(--brand)); opacity: .9; }
.zn-acct.via-zernio { border-color: var(--wa-color-brand-border-normal, rgb(15 76 82 / .35)); box-shadow: 0 0 0 1px var(--wa-color-brand-border-normal, rgb(15 76 82 / .35)); }
.zn-acct header { display: flex; align-items: center; gap: var(--wa-space-s); }
.zn-logo { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; font-size: 1.2rem; color: var(--brand); background: var(--wa-color-surface-lowered); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.zn-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.zn-who strong { font-size: var(--wa-font-size-m); }
.zn-status { display: inline-flex; align-items: center; gap: .45em; padding: 3px 0 3px 3px; margin: -3px 0 -3px -3px; min-width: 0; font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); white-space: nowrap; }
.zn-status b { overflow: hidden; text-overflow: ellipsis; }
.zn-status b { color: var(--wa-color-text-normal); font-weight: 700; }
.zn-status .dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--k-mute); }
.zn-status.good .dot { background: var(--k-good); box-shadow: 0 0 0 3px rgb(76 138 30 / .15); }
.zn-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin: 0; border-radius: 99px; background: var(--wa-color-surface-lowered); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.zn-seg button { all: unset; box-sizing: border-box; text-align: center; padding: .45em .5em; border-radius: 99px; cursor: pointer; font-size: var(--wa-font-size-s); font-weight: 700; color: var(--wa-color-text-quiet); transition: background .15s, color .15s; }
.zn-seg button:hover:not(:disabled) { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }
.zn-seg button:focus-visible { outline: var(--wa-focus-ring); outline-offset: 1px; }
.zn-seg button[aria-pressed=true] { cursor: default; background: var(--wa-color-brand-fill-loud); color: var(--wa-color-brand-on-loud); box-shadow: var(--wa-shadow-s); }
.zn-seg button:disabled:not([aria-pressed=true]) { cursor: not-allowed; opacity: .45; }
.zn-now { margin: 0; color: var(--wa-color-text-quiet); display: flex; align-items: center; gap: .4em; min-height: 1.4em; }
.zn-connect { margin: auto 0 0; }
.zn-connect button { width: 100%; justify-content: center; }

/* Towns › Publishing › Publishing check: a tile a platform (Liam, 13 Nov). */
.ck-sum { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.ck-sum.good { color: var(--k-good); } .ck-sum.bad { color: var(--k-bad); }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: var(--wa-space-xs) var(--wa-space-s); }
.ck-grid > .ck { margin-bottom: var(--wa-space-xs); }
.ck > * { margin: 0; min-width: 0; }
.ck-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ck-foot { display: flex; flex-direction: column; gap: var(--wa-space-xs); justify-content: flex-end; }
.ck-foot:empty { display: none; }
.ck { position: relative; overflow: hidden; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: var(--wa-space-xs); align-content: start; padding: var(--wa-space-m); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-raised); border: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.ck::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-bar, var(--brand)); }
.ck.off { background: var(--wa-color-surface-lowered); }
.ck.off::before { opacity: .3; }
.ck.off .pname { opacity: .6; }
.ck.bad { border-color: rgb(201 71 42 / .45); box-shadow: 0 0 0 1px rgb(201 71 42 / .25); }
.ck header { display: flex; align-items: center; }
.ck-who a.ck-profile { font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); text-decoration: none; }
.ck-who a.ck-profile:hover { color: var(--wa-color-text-link); text-decoration: underline; }
.ck-who a.ck-profile wa-icon { font-size: 0.8em; margin-left: 0.35em; vertical-align: -0.05em; opacity: 0.7; }
.ck-badge { display: inline-flex; align-items: center; gap: .35em; padding: .15em .6em; border-radius: 99px; font-size: var(--wa-font-size-2xs); font-weight: 700; white-space: nowrap; background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.ck-badge wa-icon { font-size: .85em; }
.ck-badge.good { background: rgb(76 138 30 / .14); color: var(--k-good); }
.ck-badge.bad { background: rgb(201 71 42 / .13); color: var(--k-bad); }
.ck-who { display: flex; flex-direction: column; font-size: var(--wa-font-size-s); line-height: 1.3; }
.ck-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-who .muted { font-size: var(--wa-font-size-xs); }
.ck-via { font-size: var(--wa-font-size-2xs); font-weight: 700; padding: .1em .5em; border-radius: 99px; background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-on-quiet); }
.ck-followers { font-size: var(--wa-font-size-s); align-self: center; }
.ck-followers b { font-size: var(--wa-font-size-l); font-weight: 800; }
.ck-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.ck-facts li { display: flex; align-items: flex-start; gap: .45em; margin: 0; font-size: var(--wa-font-size-xs); line-height: 1.35; overflow-wrap: anywhere; }
.ck-facts wa-icon { flex: none; margin-top: .15em; }
.ck-facts li.yes wa-icon { color: var(--k-good); }
.ck-facts li.no { color: var(--wa-color-text-normal); } .ck-facts li.no wa-icon { color: var(--k-warn); }
.ck-note { display: flex; gap: .45em; align-items: flex-start; margin: 0; padding: .5em .65em; border-radius: var(--wa-border-radius-s); background: var(--wa-color-neutral-fill-quiet); line-height: 1.4; }
.ck-note wa-icon { flex: none; margin-top: .2em; }
.ck-note.bad { background: rgb(201 71 42 / .1); color: var(--wa-color-text-normal); } .ck-note.bad wa-icon { color: var(--k-bad); }
.ck-exp { margin: 0; font-size: var(--wa-font-size-2xs) !important; }

/* Regions › On air as sortable rows (Liam, 13 Nov): a town's mark, name and channel, views with a bar against the most
   watched, the week's change, followers, the sponsor and the platforms. The whole row opens the town. */
.rg-table { width: 100%; }
.rg-table th { white-space: nowrap; }
.rg-table td { vertical-align: middle; padding-block: var(--wa-space-s); }
.rg-table tbody tr { position: relative; transition: background .15s; }
.rg-table tbody tr:hover { background: var(--wa-color-surface-lowered); }
.rg-table tbody tr.on td:first-child { box-shadow: inset 4px 0 0 var(--lm-cane); }
.rg-table td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-name { display: flex; align-items: center; gap: var(--wa-space-s); min-width: 0; }
.rg-name .sp-mark { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.rg-name > span { min-width: 0; line-height: 1.25; }
.rg-table .rg-link { font: 800 var(--wa-font-size-m)/1.2 var(--wa-font-family-body); color: var(--wa-color-text-normal); }
.rg-table tr:hover .rg-link { color: var(--wa-color-text-link); }
.rg-st { margin-left: .45em; font: 700 var(--wa-font-size-2xs)/1 var(--lm-mono); letter-spacing: .06em; color: var(--wa-color-text-quiet); }
.rg-ch { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-views { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 5.5rem; }
.rg-views b { font: 800 var(--wa-font-size-l)/1 var(--wa-font-family-heading); }
.rg-wk { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.rg-wk b { font: 700 var(--wa-font-size-m)/1 var(--wa-font-family-heading); font-variant-numeric: tabular-nums; }
.rg-bar { display: block; width: 100%; height: 5px; border-radius: 99px; background: var(--wa-color-neutral-fill-quiet); overflow: hidden; direction: rtl; }
.rg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, var(--lm-river), var(--lm-cane-deep)); }
.wa-dark .rg-bar i { background: linear-gradient(270deg, var(--lm-cane), var(--lm-cane-deep)); }
.rg-table .mv-chg { display: inline-block; }
.rg-table .mv-chg.up, .rg-table .mv-chg.new { background: rgb(76 138 30 / .13); color: var(--k-good); }
.rg-table .mv-chg.down { background: rgb(201 71 42 / .12); color: var(--k-bad); }
.rg-table .mv-chg.flat { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-quiet); }
.rg-fol span { font-weight: 700; font-size: var(--wa-font-size-m); }
.rg-fol span.muted { font-weight: 500; }
.rg-sp { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 13rem; }
.rg-sp .small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-table .chip { max-width: none; font-size: 11.5px; }
.rg-table .rg-pl .platform-icons { position: relative; z-index: 1; font-size: 1.05rem; }
.rg-go-cell { width: 1.5rem; padding-left: 0 !important; }
.rg-table tr:hover .rg-go { color: var(--wa-color-text-link); transform: translateX(3px); }
.rg-table + .dt-container, .dt-container:has(.rg-table) { margin-bottom: var(--wa-space-l); }
/* phones: a row is a small card, the name across the top, then views, week, followers and sponsor in a row */
@media (max-width: 760px) {
  .rg-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wa-space-xs) var(--wa-space-s); padding: var(--wa-space-m); }
  .rg-table tbody td { text-align: left !important; padding: 0 !important; }
  .rg-table tbody td:first-child { grid-column: 1 / -1; box-shadow: none !important; }
  .rg-table tbody tr.on { box-shadow: inset 4px 0 0 var(--lm-cane); }
  .rg-table td[data-label]::before { content: attr(data-label); display: block; font: 500 var(--wa-font-size-2xs)/1.6 var(--lm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
  .rg-views { align-items: flex-start; min-width: 0; width: 100%; }
  .rg-bar { direction: ltr; } .rg-bar i { background: linear-gradient(90deg, var(--lm-river), var(--lm-cane-deep)); }
  .rg-table td.rg-sp-cell { grid-column: 1 / 3; }
  .rg-table td.rg-pl { grid-column: 3; align-self: end; justify-self: end; }
  .rg-go-cell { display: none !important; }
}

/* Analytics › World (Liam, 16 Nov 2026): where viewers are. One hue (--viz-1) on a log scale, the map beside the list. */
.world-card .card-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.world-home { display: flex; align-items: baseline; gap: 8px; padding: 0 0 var(--wa-space-s); margin-bottom: var(--wa-space-s); border-bottom: var(--wa-border-width-s) solid var(--wa-color-surface-border); }
.world-home b.num { margin-left: auto; font-size: var(--wa-font-size-l); }
.world-body { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--wa-space-l); align-items: start; }
.world { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.world-map { width: 100%; height: auto; display: block; }
.world-map path { stroke: var(--wa-color-surface-default); stroke-width: .6; stroke-linejoin: round; transition: opacity .15s; }
.world-map path:hover { stroke: var(--wa-color-text-normal); stroke-width: 1.2; }
.world-map path.wm-home { stroke: var(--wa-color-text-normal); stroke-width: 1; }
.wm-0 { fill: color-mix(in srgb, var(--k-mute) 28%, transparent); background: color-mix(in srgb, var(--k-mute) 28%, transparent); }
.wm-1 { fill: color-mix(in srgb, var(--viz-1) 18%, var(--wa-color-surface-default)); background: color-mix(in srgb, var(--viz-1) 18%, var(--wa-color-surface-default)); }
.wm-2 { fill: color-mix(in srgb, var(--viz-1) 32%, var(--wa-color-surface-default)); background: color-mix(in srgb, var(--viz-1) 32%, var(--wa-color-surface-default)); }
.wm-3 { fill: color-mix(in srgb, var(--viz-1) 48%, var(--wa-color-surface-default)); background: color-mix(in srgb, var(--viz-1) 48%, var(--wa-color-surface-default)); }
.wm-4 { fill: color-mix(in srgb, var(--viz-1) 64%, var(--wa-color-surface-default)); background: color-mix(in srgb, var(--viz-1) 64%, var(--wa-color-surface-default)); }
.wm-5 { fill: color-mix(in srgb, var(--viz-1) 82%, var(--wa-color-surface-default)); background: color-mix(in srgb, var(--viz-1) 82%, var(--wa-color-surface-default)); }
.wm-6 { fill: var(--viz-1); background: var(--viz-1); }
.wm-legend { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.wm-legend i { display: inline-block; width: 22px; height: 9px; border-radius: 2px; }
.wm-legend > span:first-child { margin-right: 4px; } .wm-legend > span:nth-last-child(2) { margin-left: 4px; }
.wm-legend .wm-none { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.world-list .bars { gap: 8px; }
.geo-plats { display: grid; gap: var(--wa-space-m); }
.geo-plat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.geo-plat .gp-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.geo-plat .gp-split { margin-top: 2px; }
.geo-posts { display: grid; gap: 10px; }
.geo-post { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: inherit; }
.geo-post:hover { text-decoration: none; } .geo-post:hover b { text-decoration: underline; }
.geo-post img, .geo-post .ph { width: 36px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--wa-color-neutral-fill-quiet); display: flex; align-items: center; justify-content: center; }
.geo-post .gp-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.geo-post .gp-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-post .gp-txt .plat-ic { transform: scale(.8); vertical-align: middle; }
.geo-post .gp-num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (max-width: 900px) { .world-body { grid-template-columns: minmax(0, 1fr); } }
.world-card .geo-refresh { margin-left: auto; } .world-card .card-head { align-items: center; }

/* Source licences grid (Liam, 17 Nov 2026): one line a site where it fits, the note inline */
.licences td { vertical-align: middle; }
.licences .note { display: flex; gap: var(--wa-space-2xs); align-items: center; margin: 0; }
.licences .note input { min-width: 9rem; flex: 1; padding-block: .25em; }
.licences .note form { margin: 0; }
@media (min-width: 641px) { .licences td { white-space: nowrap; } }
.licences td strong { cursor: help; }

/* Social (src/pages/social.tsx, 17 Nov 2026): the posts as cards with their picture, and the events read out of them. */
.sp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.sp-cap { display: flex; flex-direction: column; gap: var(--wa-space-m); }
.sp-cap .cs-share { display: block; height: 10px; border-radius: 99px; background: rgb(244 234 213 / .14); overflow: hidden; }
.sp-cap .cs-share i { display: block; height: 100%; background: var(--lm-cane, #f4ead5); }
.sp-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: rgb(244 234 213 / .85); font-size: var(--wa-font-size-s); }
.sp-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--wa-space-l); }
.sp-post { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; margin: 0; }
.sp-img { display: block; aspect-ratio: 4 / 5; background: var(--wa-color-neutral-fill-quiet); }
.sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2rem; color: var(--wa-color-text-quiet); }
.sp-body { padding: var(--wa-space-m); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-who { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sp-who .tag { margin-left: 0; }
.sp-cap-text { margin: 4px 0 0; font-size: var(--wa-font-size-s); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sp-events { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: var(--wa-border-width-s) solid var(--wa-color-surface-border); display: grid; gap: 3px; font-size: var(--wa-font-size-s); }
.sp-run-row { display: flex; flex-wrap: wrap; gap: var(--wa-space-s); }
.sp-actions { display: flex; gap: var(--wa-space-s); align-items: center; }
.sp-spacer { flex: 1; }
@media (max-width: 760px) { .sp-hero, .sp-cols { grid-template-columns: minmax(0, 1fr); } }

/* admin-dev's preview badge in the top bar (src/lib/read-token.ts previewGuard). */
.preview-chip { font: 600 11px/1 var(--wa-font-family-code, monospace); letter-spacing: .08em; text-transform: uppercase; color: #0A3438; background: #F4B942; border-radius: 999px; padding: 5px 9px; }

/* ---------- Side menu: Find (⌘K) and the foot (17 Nov 2026 redesign) ---------- */
.sidenav { min-height: calc(100dvh - 64px); box-sizing: border-box; }
.nav-find { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--wa-space-s); margin-top: var(--wa-space-s);
  padding: var(--wa-space-xs) var(--wa-space-s); border-radius: var(--wa-border-radius-m); border: 1px dashed var(--wa-color-surface-border);
  color: var(--wa-color-text-quiet); font-weight: var(--wa-font-weight-semibold); cursor: pointer; }
.nav-find wa-icon { width: 1.25em; }
.nav-find:hover { color: var(--wa-color-text-normal); background: var(--wa-color-neutral-fill-quiet); }
.nav-find:focus-visible { outline: var(--wa-focus-ring); }
.nav-find kbd, .palette kbd { margin-left: auto; font: 500 var(--wa-font-size-2xs)/1 var(--lm-mono); padding: 3px 5px; border-radius: 4px;
  border: 1px solid var(--wa-color-surface-border); background: var(--wa-color-surface-default); color: var(--wa-color-text-quiet); }
.nav-foot { margin-top: auto; padding-top: var(--wa-space-l); display: flex; flex-direction: column; gap: var(--wa-space-3xs); }
.nav-foot a { font-weight: var(--wa-font-weight-normal); }

/* ⌘K palette (web/palette.js) */
dialog.palette { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 32px)); margin: 12vh auto auto; overflow: visible; }
dialog.palette::backdrop { background: rgb(6 24 26 / .45); backdrop-filter: blur(2px); }
.palette-box { background: var(--wa-color-surface-raised); border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-l); overflow: hidden; }
.palette-in { display: flex; align-items: center; gap: var(--wa-space-s); padding: 0 var(--wa-space-m); border-bottom: 1px solid var(--wa-color-surface-border); color: var(--wa-color-text-quiet); margin: 0; }
.palette-in input { all: unset; flex: 1; height: 56px; font-size: var(--wa-font-size-m); color: var(--wa-color-text-normal); }
.palette ul { list-style: none; margin: 0; padding: var(--wa-space-xs); max-height: min(420px, 55vh); overflow: auto; }
.palette li { display: flex; align-items: center; gap: var(--wa-space-s); padding: var(--wa-space-xs) var(--wa-space-s); border-radius: var(--wa-border-radius-m); cursor: pointer; min-height: 36px; }
.palette li wa-icon { width: 1.1em; color: var(--wa-color-text-quiet); flex: none; }
.palette li.on { background: var(--wa-color-brand-fill-quiet); }
.palette li.on wa-icon { color: var(--wa-color-brand-on-quiet); }
.palette-label { font-weight: var(--wa-font-weight-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-hint { margin-left: auto; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.palette-none { color: var(--wa-color-text-quiet); justify-content: center; cursor: default; }
.palette-foot { display: flex; gap: var(--wa-space-m); margin: 0; padding: var(--wa-space-xs) var(--wa-space-m); border-top: 1px solid var(--wa-color-surface-border); font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.palette-foot kbd { margin: 0 2px 0 0; }
@media (pointer: coarse) { .nav-find kbd, .palette-foot { display: none; } }

/* ---------- Foundations (17 Nov 2026 redesign) ----------
   One look for every list, card, menu and dialog. Type comes from --wa-font-size-*, spacing from --wa-space-* (an
   8px grid, 4px for tight), corners from --wa-border-radius-s/m/l, depth from --wa-shadow-s/l. */
body { font-variant-numeric: tabular-nums; }
.tabs .tabs-info { align-self: center; display: inline-flex; margin-left: var(--wa-space-2xs); }
.section-tabs + .tabs.sub { margin-top: calc(-1 * var(--wa-space-s)); }

/* Lists: rows centred, a hover tint, numbers right-aligned, one line where it fits. */
.list td { vertical-align: middle; }
.list tbody tr:hover > td { background: color-mix(in srgb, var(--wa-color-neutral-fill-quiet) 55%, transparent); }
.list td.r, .list td.num, .list td.dt-right { text-align: right; }
.list td.when, .list td.date, .list .nowrap { white-space: nowrap; }
.list td .sub, .list td .clip-sub { display: block; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-xs); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.list td.actions-cell, .list th.actions-cell { width: 1%; white-space: nowrap; text-align: right; }
/* The toolbar DataTables draws above a list: the search a sensible width, the page size and count to the right. */
.dt-layout-start:has(.dt-search) { flex: 0 1 380px; }
.dt-search input.dt-input { height: 38px; padding-left: 34px; background: var(--wa-color-surface-default) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14'%3E%3Cpath fill='%2386918d' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") 12px center no-repeat; }
.dt-length select.dt-input { height: 38px; }

/* Filters above a list: selects that apply as soon as they change, in one row with the search. */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wa-space-xs); margin: 0 0 var(--wa-space-m); }
.toolbar select, .toolbar input:not([type=checkbox]) { width: auto; margin: 0; height: 38px; min-height: 0; }
.toolbar .grow { flex: 1; }
.toolbar .count-note { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }

/* A row's ⋯ menu (views/ui.tsx RowMenu). */
details.row-menu { position: relative; display: inline-block; }
details.row-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--wa-border-radius-m); color: var(--wa-color-text-quiet); cursor: pointer; }
details.row-menu > summary::-webkit-details-marker { display: none; }
details.row-menu > summary:hover, details.row-menu[open] > summary { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }
details.row-menu > summary:focus-visible { outline: var(--wa-focus-ring); }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 180px; padding: var(--wa-space-2xs); text-align: left;
  background: var(--wa-color-surface-raised); border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); box-shadow: var(--wa-shadow-l); }
.row-menu-pop form { margin: 0; }
.row-menu-pop a, .row-menu-pop button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--wa-space-xs); width: 100%; padding: 7px 10px;
  border-radius: var(--wa-border-radius-s); font-size: var(--wa-font-size-s); font-weight: var(--wa-font-weight-semibold); color: var(--wa-color-text-normal); cursor: pointer; white-space: nowrap; }
.row-menu-pop a:hover, .row-menu-pop button:hover { background: var(--wa-color-neutral-fill-quiet); text-decoration: none; }
.row-menu-pop .danger, .row-menu-pop .danger wa-icon { color: var(--wa-color-danger-on-quiet); }
.row-menu-pop .danger:hover { background: var(--wa-color-danger-fill-quiet); }
.row-menu-pop hr { margin: var(--wa-space-2xs) 0; border: 0; border-top: 1px solid var(--wa-color-surface-border); }

/* A dialog opened by a button (data-dialog): a sheet for an edit form, so lists stay one line a row. */
dialog.sheet { border: 0; padding: 0; width: min(640px, calc(100vw - 32px)); border-radius: var(--wa-border-radius-l); background: var(--wa-color-surface-raised); color: inherit; box-shadow: var(--wa-shadow-l); }
dialog.sheet::backdrop { background: rgb(6 24 26 / .45); }
dialog.sheet header { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-m); padding: var(--wa-space-m) var(--wa-space-l); border-bottom: 1px solid var(--wa-color-surface-border); }
dialog.sheet header h2 { margin: 0; font-size: var(--wa-font-size-l); }
dialog.sheet .sheet-body { padding: var(--wa-space-l); max-height: 70vh; overflow: auto; }
dialog.sheet footer, dialog.sheet .sheet-foot { display: flex; justify-content: flex-end; gap: var(--wa-space-xs); padding: var(--wa-space-m) var(--wa-space-l); border-top: 1px solid var(--wa-color-surface-border); }
dialog.sheet .sheet-foot .danger-left { margin-right: auto; }
.icon-btn { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--wa-border-radius-m); color: var(--wa-color-text-quiet); cursor: pointer; }
.icon-btn:hover { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }

/* File pickers: a quiet button and the file's name, not the browser's grey "Choose File". */
input[type=file] { font: inherit; font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: var(--wa-font-weight-semibold); margin-right: var(--wa-space-s); padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--wa-color-neutral-border-normal, var(--wa-color-surface-border)); border-radius: var(--wa-border-radius-pill); background: var(--wa-color-surface-default); color: var(--wa-color-text-normal); }
input[type=file]::file-selector-button:hover { background: var(--wa-color-neutral-fill-quiet); }

/* Danger zone: what can't be undone, kept apart at the end of a settings page. */
.danger-zone { border-color: var(--wa-color-danger-border-quiet, rgb(168 67 42 / .3)); }
.danger-zone .dz-row { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-m); flex-wrap: wrap; }
.danger-zone .dz-row + .dz-row { border-top: 1px solid var(--wa-color-surface-border); padding-top: var(--wa-space-m); margin-top: var(--wa-space-m); }
.danger-zone .dz-row p { margin: 2px 0 0; }

/* A strip of equal stat tiles: the slim header a tab gets instead of a banner. */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--wa-space-s); margin-bottom: var(--wa-space-l); }
.stat-strip > div { display: flex; flex-direction: column; gap: 2px; padding: var(--wa-space-s) var(--wa-space-m); background: var(--wa-color-surface-default); border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); }
.stat-strip span { font: 500 var(--wa-font-size-2xs)/1.4 var(--lm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wa-color-text-quiet); }
.stat-strip b { font: 900 var(--wa-font-size-xl)/1.1 var(--wa-font-family-heading); }
.stat-strip small { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-xs); }

/* Segmented Block / Allow (Content rules): quiet unless set to Block. */
.toggle-seg { display: inline-flex; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); overflow: hidden; margin: 0; }
.toggle-seg button { all: unset; cursor: pointer; padding: 5px 12px; font-size: var(--wa-font-size-s); font-weight: var(--wa-font-weight-semibold); color: var(--wa-color-text-quiet); }
.toggle-seg button + button { border-left: 1px solid var(--wa-color-surface-border); }
.toggle-seg button:hover { background: var(--wa-color-neutral-fill-quiet); color: var(--wa-color-text-normal); }
.toggle-seg button.on.block { background: #7a1f1f; color: #fff; }
.toggle-seg button.on.allow { background: var(--wa-color-success-fill-quiet); color: var(--wa-color-success-on-quiet); }
.toggle-seg button:focus-visible { outline: var(--wa-focus-ring); outline-offset: -2px; }

/* A card that holds just a list: the table runs edge to edge, rows ruled, no inner padding. */
.card.flush { padding: 0; overflow: visible; }
.card.flush > table.list, .card.flush .dt-container { margin: 0; }
.card.flush > table.list th:first-child, .card.flush > table.list td:first-child { padding-left: var(--wa-space-l); }
.card.flush > table.list th:last-child, .card.flush > table.list td:last-child { padding-right: var(--wa-space-m); }
.card.flush .dt-layout-row { padding: var(--wa-space-s) var(--wa-space-l); }
.card.flush > .empty { padding: var(--wa-space-l); margin: 0; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: var(--wa-space-m); flex-wrap: wrap; margin-top: var(--wa-space-2xl); }
.section-row h2 { margin: 0; }
.toggle-seg button.on.block { background: #7a1f1f; color: #fff; }
.tabs .tabs-action { margin-left: auto; align-self: center; }
.licences form.note { margin: 0; }
.licences form.note input { height: 32px; min-height: 0; margin: 0; border-color: transparent; background: transparent; }
.licences form.note input:hover, .licences form.note input:focus { border-color: var(--wa-color-surface-border); background: var(--wa-color-surface-default); }
input.saving { opacity: .6; }
.toolbar .search-box { min-width: min(380px, 100%); padding-left: 34px; background: var(--wa-color-surface-default) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14'%3E%3Cpath fill='%2386918d' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") 12px center no-repeat; }
.list td.mono-ref { font-family: var(--lm-mono); font-size: var(--wa-font-size-xs); color: var(--wa-color-text-quiet); }
.inbox-list td.from { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list td .sub { max-width: 70ch; }
details.row-menu { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
details.row-menu > summary { padding: 0; margin: 0; border: 0; background: none; font-size: var(--wa-font-size-m); }
details.row-menu > summary::before, details.row-menu > summary::after { display: none !important; content: none !important; }
.list td.actions-cell { padding-top: 4px; padding-bottom: 4px; }
.sp-cols > .card { min-width: 0; overflow-x: auto; }
button.head-pill { font: inherit; font-weight: 700; font-size: var(--wa-font-size-s); cursor: pointer; border: 1px solid var(--wa-color-surface-border); }
button.head-pill.brand:hover { filter: brightness(1.15); }
