/* Scheduler's look.
 *
 * Tidal Wave Media's brand: cyan "tide" on deep "abyss" darks, cool grey ink.
 * One accent and one chart hue. No boxes: space and hairlines do the
 * separating, so the numbers are the loudest thing on the page.
 *
 * Both themes are chosen, not flipped. The dark values are declared twice on
 * purpose: once for a system set to dark, once for an explicit data-theme. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f3f6f9;
  --raise: #ffffff;
  --bar: #ffffff;
  --ink: #0b1220;
  --ink-2: #465467;
  --ink-3: #5f6e84;
  --line: #e8ecf1;
  --line-2: #d2d9e2;
  --accent: #0e7490;
  --on-accent: #ffffff;
  --mark: #0891b2;
  --mark-2: #7b899c;
  --track: #d8f3f8;
  --wash: rgba(8, 145, 178, 0.09);
  --ok: #0a8f2a;
  --up: #006300;
  --warn: #b45309;
  --warn-bg: #fff4dc;
  --bad: #c62f2f;
  --heat-0: #bdeef7; --heat-1: #22d3ee; --heat-2: #06b6d4; --heat-3: #0891b2; --heat-4: #0e6781;
  --heat-ink-0: #0b1220; --heat-ink-1: #0b1220; --heat-ink-2: #0b1220; --heat-ink-3: #0b1220; --heat-ink-4: #ffffff;
  --g-1: #0891b2; --g-2: #5cc8dc; --g-3: #d8f3f8;
  --tip-bg: #0b1220;
  --tip-ink: #f1f5f9;
  --tip-line: transparent;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.16), 0 2px 6px rgba(11, 18, 32, 0.1);
  --seg-on: 0 0 0 1px var(--line-2), 0 1px 2px rgba(11, 18, 32, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #030712;
    --bg-2: #0b1220;
    --raise: #172236;
    --bar: #020617;
    --ink: #f1f5f9;
    --ink-2: #a9b6c8;
    --ink-3: #8292a8;
    --line: #141d2e;
    --line-2: #26334a;
    --accent: #67e8f9;
    --on-accent: #030712;
    --mark: #22d3ee;
    --mark-2: #5f7189;
    --track: #0c2a37;
    --wash: rgba(34, 211, 238, 0.1);
    --ok: #2bbd4e;
    --up: #2bbd4e;
    --warn: #fab219;
    --warn-bg: rgba(250, 178, 25, 0.12);
    --bad: #f06a6a;
    --heat-0: #0d3441; --heat-1: #145868; --heat-2: #1c889d; --heat-3: #1fa8bf; --heat-4: #22d3ee;
    --heat-ink-0: #e2f6fb; --heat-ink-1: #e2f6fb; --heat-ink-2: #030712; --heat-ink-3: #030712; --heat-ink-4: #030712;
    --g-1: #22d3ee; --g-2: #1c889d; --g-3: #0d3441;
    --tip-bg: #111b2e;
    --tip-ink: #f1f5f9;
    --tip-line: #2a3850;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    --seg-on: 0 0 0 1px #2c3a52;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030712;
  --bg-2: #0b1220;
  --raise: #172236;
  --bar: #020617;
  --ink: #f1f5f9;
  --ink-2: #a9b6c8;
  --ink-3: #8292a8;
  --line: #141d2e;
  --line-2: #26334a;
  --accent: #67e8f9;
  --on-accent: #030712;
  --mark: #22d3ee;
  --mark-2: #5f7189;
  --track: #0c2a37;
  --wash: rgba(34, 211, 238, 0.1);
  --ok: #2bbd4e;
  --up: #2bbd4e;
  --warn: #fab219;
  --warn-bg: rgba(250, 178, 25, 0.12);
  --bad: #f06a6a;
  --heat-0: #0d3441; --heat-1: #145868; --heat-2: #1c889d; --heat-3: #1fa8bf; --heat-4: #22d3ee;
  --heat-ink-0: #e2f6fb; --heat-ink-1: #e2f6fb; --heat-ink-2: #030712; --heat-ink-3: #030712; --heat-ink-4: #030712;
  --g-1: #22d3ee; --g-2: #1c889d; --g-3: #0d3441;
  --tip-bg: #111b2e;
  --tip-ink: #f1f5f9;
  --tip-line: #2a3850;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  --seg-on: 0 0 0 1px #2c3a52;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.quiet { color: var(--ink-3); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.push { margin-left: auto; }
.ico { flex: none; }
.ico.ok { color: var(--ok); }
.ico.warn { color: var(--warn); }
.ico.bad { color: var(--bad); }

/* ─── Top bar ─────────────────────────────────────────────── */

.demo { padding: 3px 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); }

.top { position: sticky; top: 0; z-index: 20; background: var(--bar); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1184px; margin: 0 auto; padding: 0 32px; height: 56px; display: flex; align-items: center; gap: 14px; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.logo { flex: none; color: var(--accent); }
.tabs { display: flex; align-self: stretch; margin-left: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; }
.brand, .fresh, .me { flex: none; }
.tabs a { position: relative; display: flex; align-items: center; padding: 0 12px; font-weight: 500; color: var(--ink-2); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); }
.tabs a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }

.fresh {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.fresh-txt { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--mark-2); }
.pulse.ok { background: var(--ok); }
.pulse.ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0.4; }
.pulse.bad { background: var(--bad); }
.fresh button { display: grid; place-items: center; width: 30px; height: 28px; border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; color: var(--ink-2); }
.fresh button:hover { background: var(--bg-2); color: var(--ink); }
.fresh button:disabled { opacity: 0.4; cursor: default; background: none; }

.me { position: relative; }
.me summary { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.me summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 12px 14px; border-radius: 10px; background: var(--raise); border: 1px solid var(--tip-line); box-shadow: var(--shadow); font-size: 13px; }
.menu p { margin-bottom: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.menu form { margin: 0; }
.menu button, .menu a { color: var(--accent); font-weight: 550; }
.menu a { display: block; margin-bottom: 6px; }
.menu a:hover, .menu button:hover { text-decoration: underline; }

/* ─── Page ────────────────────────────────────────────────── */

main { max-width: 1184px; margin: 0 auto; padding: 36px 32px 88px; }

.notice { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--warn); background: var(--warn-bg); }

.head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 28px; }
.head h1, .head h2 { font-size: 14px; font-weight: 600; }
.head .count { color: var(--ink-3); }

.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-2); }
.seg a { padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--raise); color: var(--ink); box-shadow: var(--seg-on); }

.none { margin-top: 24px; color: var(--ink-3); }

/* ─── The one big number ──────────────────────────────────── */

.lead { display: grid; grid-template-columns: minmax(250px, 4fr) 8fr; column-gap: 40px; align-items: end; margin-bottom: 28px; }
.fig { margin-top: 14px; font-size: 80px; line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; }
.fig small { margin-left: 0.06em; font-size: 0.44em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); }

.status { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.delta { display: inline-flex; align-items: center; gap: 6px; }
.delta b { font-weight: 600; color: var(--ink); }
.delta.up b, .delta.up svg { color: var(--up); }

/* Small figures set side by side, separated by a hairline, never boxed. */
.stat { display: block; padding-left: 20px; border-left: 1px solid var(--line); min-width: 0; }
.stat .lbl { display: block; font-size: 12.5px; color: var(--ink-3); }
.stat .val { display: block; margin-top: 4px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.stat .val small { margin-left: 1px; font-size: 0.62em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.stat .txt { display: block; margin-top: 4px; font-weight: 500; }
.stat .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.stat .status { margin-top: 0; }
.stat .val.status { display: flex; margin-top: 4px; color: var(--ink); }
a.stat:hover .txt, a.stat:hover .val { color: var(--accent); }

.ext { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding-bottom: 2px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 20px 24px; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .stat:first-child { padding-left: 0; border-left: 0; }

/* ─── Column chart: one column per send ───────────────────── */

.cols { container-type: inline-size; padding: 22px 0 26px 34px; }

.cols-plot { --plot-h: 216px; position: relative; height: var(--plot-h); }

.gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.gridline.base { border-top-color: var(--line-2); }
.tick { position: absolute; right: 100%; margin-right: 12px; transform: translateY(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }

.cols-days { position: absolute; inset: 0 2.5%; z-index: 2; display: flex; }
.cols-day { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cols.tight .cols-day { gap: 2px; }
.cols.dense .cols-day { gap: 1px; }

.col { position: relative; flex: 0 1 11px; min-width: 1px; min-height: 1px; border-radius: 4px 4px 0 0; background: var(--mark); }
.cols.tight .col { flex-basis: 8px; border-radius: 3px 3px 0 0; }
.cols.dense .col { flex-basis: 4px; border-radius: 1px 1px 0 0; }
/* A wider, invisible target around each column, washed on hover. */
.col::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 216px; border-radius: 6px 6px 0 0; }
a.col:hover::before, a.col:focus-visible::before { background: var(--wash); }
a.col:focus-visible { outline: none; }
.cols.dense .col::before { left: -1px; right: -1px; }

/* A figure lifted clear of taller neighbours keeps a hairline down to its own column. */

.day-label { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
@container (max-width: 560px) {
  .cols.roomy .cols-day:nth-child(even) .day-label { display: none; }
}

/* ─── Lists of sends: every bar on one shared scale ───────── */

.sends { margin-top: 44px; }
.list { --c-when: 92px; --c-slot: 44px; --c-subj: minmax(220px, 5fr); --c-rate: 56px; }
.grid { display: grid; grid-template-columns: var(--c-when) var(--c-slot) var(--c-subj) minmax(140px, 4fr) var(--c-rate); column-gap: 16px; align-items: center; padding: 0 12px; margin: 0 -12px; }

.list-head { min-height: 44px; }
.list-head .ttl { grid-column: 1 / 4; display: flex; align-items: center; gap: 10px; }
.list-head h2 { font-size: 14px; font-weight: 600; }
.th { font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }

.scale { position: relative; align-self: stretch; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.scale span { position: absolute; bottom: 8px; white-space: nowrap; }
.scale .s-min { left: 0; }

.rows li { border-top: 1px solid transparent; }
.rows li.d0 { border-top-color: var(--line); }
.row { min-height: 36px; border-radius: 8px; }
.row:hover { background: var(--bg-2); }
.row:hover .subj { color: var(--accent); }
.when { color: var(--ink-2); white-space: nowrap; }

.subj { padding: 7px 0; font-weight: 500; line-height: 1.35; }
.rate { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate small { font-size: 0.86em; font-weight: 500; color: var(--ink-3); }

.meter { position: relative; align-self: stretch; min-height: 36px; }

.run, .flag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
.run { padding: 0; border: 0; color: var(--ink-3); font-weight: 400; }
.flag { color: var(--ink); }
.flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.flag.alarm::before { background: var(--bad); }

.more { margin-top: 14px; }
.more a { font-weight: 550; color: var(--accent); }
.more a:hover { text-decoration: underline; }

/* ─── Headlines: subject lines ranked, with every run ─────── */

.hl { --c-rank: 28px; --c-title: minmax(240px, 5fr); --c-plot: minmax(180px, 4fr); --c-rate: 72px; --c-vs: 60px; margin-top: 16px; }

.plot { position: relative; align-self: stretch; min-height: 60px; }

.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--mark); }
.key i.latest { background: var(--mark); }

/* ─── Calendar: the period as weeks of send slots ─────────── */

.cal { --c-slot: 44px; --c-week: 84px; margin-top: 20px; }

.week { margin-top: 18px; }

.cell { display: block; min-height: 82px; padding: 9px 10px; border-radius: 8px; overflow: hidden; }
.cell b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cell span { display: -webkit-box; margin-top: 2px; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cell.h0 { background: var(--heat-0); color: var(--heat-ink-0); }
.cell.h1 { background: var(--heat-1); color: var(--heat-ink-1); }
.cell.h2 { background: var(--heat-2); color: var(--heat-ink-2); }
.cell.h3 { background: var(--heat-3); color: var(--heat-ink-3); }
.cell.h4 { background: var(--heat-4); color: var(--heat-ink-4); }
a.cell:hover, a.cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cell.blank { background: none; }
.cell.open { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* ─── One send ────────────────────────────────────────────── */

.crumbs { display: flex; align-items: center; justify-content: space-between; min-height: 30px; color: var(--ink-2); }
.crumbs > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.crumbs > a:hover { color: var(--ink); }
.pager { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pager a, .pager span { display: grid; place-items: center; width: 30px; height: 28px; color: var(--ink-2); }
.pager > * + * { border-left: 1px solid var(--line); }
.pager span { opacity: 0.35; }
.pager a:hover { background: var(--bg-2); color: var(--ink); }

.meta { margin-top: 10px; color: var(--ink-2); }
.meta .quiet { color: var(--ink-3); }

.lead.send { margin-top: 36px; align-items: center; }
.lead.start { align-items: start; }
.lead.start .fig { margin-top: 18px; }
.label { font-size: 14px; font-weight: 600; }

.rug { padding: 30px 0 26px; }

.rug-avg { position: absolute; top: -4px; bottom: 0; width: 1px; background: var(--ink); }

.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; row-gap: 36px; margin-top: 44px; align-items: start; }
.two h2 { font-size: 14px; font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 0 0 10px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); text-align: left; white-space: nowrap; }
.tbl th h2 { display: inline; color: var(--ink); }
.tbl td { height: 36px; padding: 0; border-top: 1px solid var(--line); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.tbl .strong { font-weight: 600; }
.tbl .bar { width: 32%; padding: 0 0 0 16px; }
.tbl .bar .meter { display: block; min-height: 0; height: 36px; }
.tbl .path { font-weight: 500; overflow-wrap: anywhere; padding: 6px 0; }
.tbl tr.minor td { color: var(--ink-3); }
.tbl tr.minor .path { font-weight: 400; }
.tbl tr.current td { font-weight: 600; }
.tbl tr.sum td { font-weight: 600; }
.tbl a:hover { color: var(--accent); }

/* ─── Readers: a column for every day ─────────────────────── */

.cols.days { padding: 8px 0 26px 40px; }
.cols.days .cols-days { inset: 0; gap: 4px; }
.cols.days .col { flex: 1 1 auto; max-width: 18px; }
.col.partial { opacity: 0.45; }

/* A send still collecting clicks (its first two days): the same mark, drawn
 * lighter, like a day that is not over. It is left out of every average. */
.col.counting { opacity: 0.45; }
.row.counting .rate { font-weight: 500; color: var(--ink-2); }
.rows li.fold { display: flex; align-items: center; gap: 12px; min-height: 26px; font-size: 11.5px; color: var(--ink-3); }
.rows li.fold span { display: inline-flex; align-items: center; gap: 6px; }
.rows li.fold::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.rows li.fold + li { border-top-color: transparent; }
.rows li.fold.end { min-height: 10px; border-top: 1px solid var(--line-2); }
.cell.counting { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cell.counting b { font-weight: 550; }

.ico.wait { color: var(--ink-3); flex: none; }
.cols-cap { margin-bottom: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ─── Readers: the three groups ───────────────────────────── */

/* One bar for everyone mailed, split three ways. One hue, strongest for the
 * readers who do the most. The lines under it carry the names and the
 * numbers, so the tints never have to be told apart by eye alone. */
.grp { padding: 8px 0 0; min-width: 0; }

/* Clickers and real openers each day: one thin column, two tints. */

/* ─── The hold ────────────────────────────────────────────── */

.said.hold a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.set .status { margin-top: 10px; }

/* ─── Settings: the three steps of labelling ──────────────── */

/* The autopilot's settings: its four switches read like the choices above them; the rest is two labelled rows. */

/* ─── A send: who gets it ─────────────────────────────────── */

.who { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.who .act { margin-top: 12px; }

/* ─── Articles: the pool ──────────────────────────────────── */

.art-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 34px 0 18px; }
.art-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* Topics: one quiet line under each headline that opens to a small form. */

/* A row reached by its link lands below the sticky header, not under it (scroll-margin does not reach a table row). */

.art-clear-up { color: var(--ok); font-weight: 600; }
/* A group send's parts, on its own page. */

.art-clear-down { color: var(--warn); font-weight: 600; }

.art-add form { margin-top: 14px; max-width: 760px; }

/* ─── Folded-away detail ──────────────────────────────────── */

.raw { margin-top: 44px; font-size: 13px; }
.raw summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; color: var(--ink-2); list-style: none; }
.raw summary::-webkit-details-marker { display: none; }
.raw summary svg { transition: transform 0.12s; }
.raw[open] summary svg { transform: rotate(90deg); }
.raw summary:hover { color: var(--ink); }
.raw dl { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); columns: 3 260px; column-gap: 40px; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.raw dl div { display: flex; justify-content: space-between; gap: 12px; break-inside: avoid; }
.raw dt { color: var(--ink-3); overflow-wrap: anywhere; }
.raw dd { font-variant-numeric: tabular-nums; }
.raw p { margin-top: 10px; color: var(--ink-2); }
.raw .days-table { max-width: 560px; margin-top: 14px; }

/* ─── Empty pages, sign-in ────────────────────────────────── */

.empty { max-width: 460px; margin: 14vh auto 0; text-align: center; }
.empty h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.empty p { margin-top: 8px; color: var(--ink-2); }
.empty a { color: var(--accent); font-weight: 550; }
.empty .notice { justify-content: center; margin: 16px 0 0; }
.button { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent) !important; font-weight: 600; }

/* ─── What an action said ─────────────────────────────────── */

.said { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 24px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; background: var(--bg-2); color: var(--ink); }
.said .ico { margin-top: 2px; }
.said.error { background: var(--warn-bg); color: var(--warn); }
.said.alarm { background: var(--bad); color: #ffffff; }
.said.alarm .ico { color: #ffffff; }

/* ─── Buttons and fields ──────────────────────────────────── */

.btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.btn:hover { background: var(--bg-2); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.quiet { box-shadow: none; color: var(--ink-2); padding: 0; min-height: 24px; font-weight: 550; }
.btn.quiet:hover { color: var(--ink); background: none; text-decoration: underline; }
.btn:disabled { opacity: 0.45; cursor: default; filter: none; background: none; }
.btn.primary:disabled { background: var(--line-2); color: var(--ink-2); }

.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.field small, .label small { font-weight: 400; color: var(--ink-3); }
.field small { margin-left: 4px; }
input:not([type]), textarea { width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line-2); resize: vertical; }
input:not([type]):focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input:disabled, textarea:disabled { background: var(--bg-2); color: var(--ink-2); }
::placeholder { color: var(--ink-3); opacity: 0.8; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.act form { margin: 0; }
.why { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.or { margin: 12px 0 -4px; font-size: 12px; color: var(--ink-3); }
.link { color: var(--accent); font-weight: 550; }
.link:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mark-2); }
.chip.test i { background: var(--warn); }
.chip.live i { background: var(--ok); }
.chip.stop i { background: var(--bad); }
.chip + .chip { margin-left: 8px; }
.chip:hover { color: var(--ink); }

/* ─── One send time: what has been done, and the email ─────── */

.trail { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.trail li { display: grid; grid-template-columns: 84px minmax(0, 180px) minmax(0, 1fr); gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.trail li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail li.failed span:last-child { color: var(--bad); }
.trail small { color: var(--ink-3); }

.email { display: block; width: 100%; height: 760px; border: 0; border-radius: 10px; background: #eeeeee; box-shadow: 0 0 0 1px var(--line-2); }
.preview-empty { display: grid; place-items: center; min-height: 320px; border-radius: 10px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }

/* ─── Settings ────────────────────────────────────────────── */

.set { max-width: 640px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.switch { margin-top: 10px; }
.choice { display: grid; grid-template-columns: 20px 92px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.choice input { margin: 0; accent-color: var(--accent); }

.choice.na { cursor: default; opacity: 0.55; }
.confirm { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.confirm input { accent-color: var(--accent); }

/* ─── Tooltip ─────────────────────────────────────────────── */

.tip { position: absolute; z-index: 50; display: flex; flex-direction: column; gap: 1px; max-width: 300px; padding: 9px 12px; border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink); border: 1px solid var(--tip-line); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.tip[hidden] { display: none; }
.tip strong { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tip span { opacity: 0.75; }

/* ─── Narrow screens ──────────────────────────────────────── */

@media (max-width: 960px) {
  .top-in { padding: 0 24px; gap: 10px; }
  main { padding: 28px 24px 72px; }
  .tabs { margin-left: 6px; }
  .fig { font-size: 68px; }
  .lead { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .list { --c-when: 86px; }
  .fresh-txt span:last-child { display: none; }
  .fresh-txt { padding: 0 9px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .cell span { -webkit-line-clamp: 2; }
  .hl { --c-plot: minmax(120px, 3fr); }
}

@media (max-width: 640px) {
  .top-in { padding: 0 14px; }
  main { padding: 20px 14px 56px; }
  .fresh-txt span:last-child { display: none; }
  .fig { font-size: 56px; }
  .ext { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .grid { grid-template-columns: var(--c-slot) minmax(0, 1fr) var(--c-rate); }
  .grid .when, .grid .meter, .grid .scale { display: none; }
  .list-head .ttl { grid-column: 1 / 3; }

  .cell span { display: none; }
  .cell { min-height: 44px; padding: 6px; }
  .cal { --c-week: 0px; }
}

/* Sending by interest, in Settings. */

/* The trial run on the test list, in Settings: each item ticked from what really happened. */

/* ─── The Overview: All sites and one site's overview, the header's switcher, and the marks they share ───
   Every class starts with ov-. A list's state is ov-s-ok|warn|bad|off; is-<kind> belongs to the marks
   only, and every is- rule is scoped to its component (.ov-sm.is-test, never .is-test). */

/* ─── The site switcher: where the quiet site label sat, on the right ─── */

.ov-sw { position: relative; flex: none; margin-left: auto; }
.ov-sw + .fresh { margin-left: 0; }
.ov-sw summary { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--ink-2); white-space: nowrap; cursor: pointer; list-style: none; }
.ov-sw summary::-webkit-details-marker { display: none; }
.ov-sw summary:hover, .ov-sw[open] summary { color: var(--ink); background: var(--bg-2); }
.ov-sw-chev { color: var(--ink-3); }
.ov-sw-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ov-sw-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; padding: 6px; border-radius: 12px; background: var(--raise); border: 1px solid var(--tip-line); box-shadow: var(--shadow); }
.ov-sw-menu a { display: grid; grid-template-columns: 8px 16px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 550; }
.ov-sw-menu .ov-sw-top { margin-bottom: 4px; box-shadow: 0 5px 0 -4px var(--line); }
.ov-sw-find { display: block; width: 100%; height: 32px; margin-bottom: 6px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; }
.ov-sw-find[hidden] { display: none; }
.ov-sw-menu a[hidden] { display: none; }
.ov-sw-menu .ov-sw-all { grid-column: 2 / 4; }
.ov-sw-menu a:hover, .ov-sw-menu a[aria-current] { background: var(--bg-2); }
.ov-sw-menu small { font-size: 12px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.ov-sw-menu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-sw-menu .ov-icon { width: 16px; height: 16px; }

/* ─── Marks shared by both pages ───────────────────────────── */

.ov-icon { display: block; width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.ov-letter { display: grid; place-items: center; background: var(--track); color: var(--accent); font-size: 11px; font-weight: 700; }
.ov-letter.ov-two { font-size: 8.5px; letter-spacing: -0.02em; }

/* A site's state, as a light. Its own prefix (ov-s-), never is-: that belongs to the marks. */
.ov-light { position: relative; display: block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mark-2); }
.ov-light.ov-s-ok { background: var(--ok); }
.ov-light.ov-s-bad { background: var(--bad); }
.ov-light.ov-s-warn { background: var(--warn); }
.ov-light.ov-s-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mark-2); }
.ov-light.ov-s-bad::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--bad); opacity: 0.5; }

/* One send time, small. Solid: went out. Grey: the old scheduler. Stripes: the test list. Red: missed. Outline: ahead. */
.ov-sm { position: relative; z-index: 1; display: block; height: 6px; border-radius: 1.5px; }
.ov-sm.is-pilot { background: var(--mark); }
.ov-sm.is-late { background: linear-gradient(90deg, var(--mark) 0 55%, var(--warn) 55%); }
.ov-sm.is-old { background: var(--line-2); }
.ov-sm.is-test { background: repeating-linear-gradient(135deg, var(--mark) 0 1.5px, transparent 1.5px 3.5px); box-shadow: inset 0 0 0 1px var(--mark); }
.ov-sm.is-missed { background: var(--bad); }
.ov-sm.is-none { box-shadow: inset 0 0 0 1px var(--line-2); }
.ov-sm.is-scheduled { box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-sm.is-ready { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-sm.is-draft { box-shadow: inset 0 0 0 1.5px var(--warn); }
.ov-sm.is-auto { box-shadow: inset 0 0 0 1px var(--mark); opacity: 0.55; }
.ov-sm.is-open { box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0.6; }
.ov-sm.is-wait { background: var(--track); }
.ov-sm.is-none.is-missed { background: var(--bad); box-shadow: none; }

.ov-g1 { background: var(--g-1); }
.ov-g2 { background: var(--g-2); }
.ov-g3 { background: var(--g-3); }

.ov-chg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.ov-chg.ov-up { color: var(--up); }

/* ─── The title line of All sites, and the parts a site's overview draws (All sites' own: css/allsites.css) ─── */

.ov-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.ov-title h1 { font-size: 15px; font-weight: 650; }
.ov-now { font-size: 12.5px; color: var(--ink-3); }
.ov-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; font-size: 12px; color: var(--ink-3); }
.ov-k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ov-k .ov-sm { width: 14px; }
.ov-k b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* The trial run on the test list, as eight pips. */
.ov-pips { display: inline-flex; gap: 2px; }
/* A list with no test place on its ESP has no test run: its words where the pips would be. */
.ov-pips-none { color: var(--ink-3); font-size: 12px; white-space: nowrap; text-decoration: none; }
.ov-pips i { width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--warn); }
.ov-pips i.on { background: var(--warn); }

/* Columns from zero, on one scale for every site, so a column of rows compares. Lighter: still coming in. */
.ov-cols { display: flex; align-items: flex-end; gap: 2px; height: 28px; max-width: 132px; margin-top: 8px; border-bottom: 1px solid var(--line-2); }
.ov-cols > i { flex: 1 1 0; min-height: 1px; border-radius: 1.5px 1.5px 0 0; background: var(--mark); }
.ov-cols > .is-new { opacity: 0.4; }
.ov-none { display: block; height: 28px; max-width: 132px; margin-top: 8px; border-bottom: 1px dashed var(--line-2); }

/* The daily list over 30 days, as a line on the site's own scale. Dashed: where it stood 30 days ago.
   Shaded under the line: those brought back and on the list that day. */
.ov-ln { position: relative; display: block; height: 28px; max-width: 132px; margin-top: 8px; }
.ov-ln-base { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-2); }
.ov-ln-back { position: absolute; inset: 0; background: var(--g-2); opacity: 0.45; }
.ov-ln-path { position: absolute; inset: 0; background: var(--mark); }
.ov-ln.ov-fall .ov-ln-path { background: var(--mark-2); }
.ov-ln-dot { position: absolute; z-index: 2; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 2px var(--bg); }
.ov-ln.ov-fall .ov-ln-dot { background: var(--mark-2); }
.ov-ln-tag { position: absolute; right: 0; bottom: calc(100% + 2px); font-size: 10.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* List health: the measure nearest its limit. The tick is where it starts to be watched. Quiet while normal. */
.ov-meter { position: relative; display: block; height: 6px; max-width: 96px; margin-top: 19px; border-radius: 3px; background: var(--line); }
.ov-meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--line-2); }
.ov-meter.ov-s-warn > i { background: var(--warn); }
.ov-meter.ov-s-bad > i { background: var(--bad); }
.ov-meter > b { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }

/* Brought back: everyone mailed, split into back on the list, came back then dropped, not back. One scale for every site. */
.ov-split { display: flex; gap: 2px; height: 6px; max-width: 132px; margin-top: 19px; }
.ov-split > i { min-width: 2px; }
.ov-split > i:first-child { border-radius: 3px 0 0 3px; }
.ov-split > i:last-child { border-radius: 0 3px 3px 0; }
.ov-split.ov-empty { height: 0; margin-top: 22px; border-top: 1px dashed var(--line-2); }

/* What needs a person, under its site, linked to where to act. */
.ov-probs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.ov-prob { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--ink); white-space: nowrap; }
.ov-prob:hover { text-decoration: underline; }

/* ─── One site ──────────────────────────────────────────────── */

.ov-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ov-head h1 { font-size: 15px; font-weight: 650; }
.ov-back-all { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.ov-back-all:hover { color: var(--accent); }
.ov-head + .ov-probs { margin-top: 12px; }

.ov-figs { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 24px; row-gap: 26px; margin-top: 18px; padding: 22px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ov-f { display: block; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.ov-f:first-child { padding-left: 0; border-left: 0; }
.ov-f-l { display: block; font-size: 12.5px; color: var(--ink-3); }
.ov-f-v { display: block; margin-top: 4px; font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ov-f-v small { margin-left: 1px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.ov-f-v.ov-dim { font-size: 24px; line-height: 39px; color: var(--ink-3); letter-spacing: -0.02em; }
a.ov-f:hover .ov-f-v { color: var(--accent); }
.ov-f-s { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.ov-sw8 { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.ov-f-s .ov-sw8 { margin-left: 4px; }
.ov-f-viz { display: block; height: 44px; margin-top: 16px; }
.ov-f-viz .ov-cols, .ov-f-viz .ov-ln { height: 44px; max-width: none; margin-top: 0; }
.ov-f-viz .ov-cols > i { border-radius: 2px 2px 0 0; }
.ov-f-viz .ov-split { height: 10px; max-width: none; margin-top: 17px; }
.ov-f-viz .ov-split > i:first-child { border-radius: 5px 0 0 5px; }
.ov-f-viz .ov-split > i:last-child { border-radius: 0 5px 5px 0; }
.ov-f-viz .ov-ln-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.ov-f-viz .ov-ln-tag { bottom: auto; top: 100%; margin-top: 3px; }
.ov-cols-stack { gap: 3px; }
.ov-st { display: flex; flex: 1 1 0; flex-direction: column; gap: 1px; min-height: 1px; }
.ov-st > i { flex-basis: 0; min-height: 1px; }
.ov-st > i:first-child { border-radius: 2px 2px 0 0; }
.ov-st.is-new { opacity: 0.4; }

.ov-sec { margin-top: 32px; }
.ov-cap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.ov-cap h2 { font-size: 14px; font-weight: 600; }
.ov-q { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.ov-cap .ov-q { margin-left: 8px; }
.ov-cap .ov-key { margin-left: 0; }

/* The week of send times, as today (ov-grid, ov-cell, ov-m), with today washed. */
.ov-grid { display: grid; grid-template-columns: 52px repeat(var(--ov-days, 10), minmax(0, 1fr)); align-items: center; gap: 4px 6px; }
.ov-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-bottom: 4px; font-size: 12px; color: var(--ink-3); }
.ov-day b { min-width: 24px; padding: 0 5px; border-radius: 999px; text-align: center; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ov-day.ov-today b { background: var(--accent); color: var(--on-accent); }
.ov-slot { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ov-cell { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 6px; }
.ov-cell.ov-today { background: var(--wash); }
.ov-cell:hover { background: var(--bg-2); }
.ov-m { position: relative; display: block; width: 100%; max-width: 64px; height: 16px; border-radius: 4px; }
.ov-m.is-pilot, .ov-m.is-late { background: var(--mark); }
.ov-m.is-late::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
.ov-m.is-old { background: var(--line-2); }
.ov-m.is-test { background: repeating-linear-gradient(135deg, var(--mark) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-m.is-missed { background: var(--bad); }
.ov-m.is-none { box-shadow: inset 0 0 0 1px var(--line-2); }
.ov-m.is-scheduled { box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-m.is-ready { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-m.is-draft { box-shadow: inset 0 0 0 1.5px var(--warn); }
.ov-m.is-auto { box-shadow: inset 0 0 0 1.5px var(--mark); opacity: 0.5; }
.ov-m.is-open { box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0.6; }
.ov-m.is-wait { background: var(--track); }
.ov-m.is-none.is-missed { background: var(--bad); box-shadow: none; }
.ov-k .ov-m { width: 14px; height: 8px; border-radius: 2px; }
.ov-k .ov-m.is-late::after { top: -2px; right: -2px; width: 5px; height: 5px; box-shadow: 0 0 0 1.5px var(--bg); }

.ov-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; margin-top: 8px; }
.ov-two > .ov-sec { padding-top: 22px; border-top: 1px solid var(--line); }

/* Bringing back: a column per batch, split by what became of them; today's batch outlined. */
.ov-bk { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 36px; align-items: start; }
.ov-bplot { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding: 0 6px; border-bottom: 1px solid var(--line-2); }
.ov-bcol { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; max-width: 40px; height: 100%; }
.ov-stack { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.ov-stack > i { flex-basis: 0; min-height: 2px; }
.ov-stack > i:first-child { border-radius: 4px 4px 0 0; }
.ov-stack.waiting { border-radius: 4px 4px 0 0; background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--mark); }
.ov-stack.skipped { border-radius: 4px 4px 0 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.ov-stack.again { background: var(--line-2); }
.ov-bx { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ov-bx.ov-today { padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.ov-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 30px; font-size: 12px; color: var(--ink-3); }
.ov-legend .ov-sw8:not(:first-child) { margin-left: 10px; }
.ov-bstats { display: flex; flex-direction: column; }
.ov-bstats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ov-bstats > div:first-child { border-top: 0; padding-top: 0; }
.ov-bstats .ov-f-l { font-size: 13px; color: var(--ink-2); }
.ov-bstats b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.ov-bstats .ov-q { grid-column: 1 / -1; font-size: 12px; }

/* List health on one site: each measure's worst send against its limits. */
.ov-hm, .ov-x { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 38px; border-top: 1px solid var(--line); }
.ov-cap + .ov-hm { border-top: 0; }
.ov-hl { font-size: 13px; color: var(--ink-2); }
.ov-hm .ov-meter { max-width: none; margin-top: 0; }
.ov-hv { min-width: 24px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-x { grid-template-columns: 150px auto minmax(0, 1fr); }
.ov-x .chip { justify-self: start; }
.ov-x .ov-q { justify-self: end; }

/* ─── Narrower: each site takes two lines, the columns still line up ─── */

@media (max-width: 1100px) {
  
  
  
  .ov-cols, .ov-ln, .ov-none { max-width: 150px; }
  
  
}

@media (max-width: 960px) {
  .top-in { padding: 0 24px; gap: 10px; }
  main { padding: 28px 24px 72px; }
  .tabs { margin-left: 6px; }
  .fresh-txt span:last-child { display: none; }
  .fresh-txt { padding: 0 9px; }
  .ov-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-f:nth-child(3) { padding-left: 0; border-left: 0; }
  .ov-two { grid-template-columns: minmax(0, 1fr); }
  .ov-sw summary .ov-sw-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .ov-key { margin-left: 0; }
}

@media (max-width: 640px) {
  .top-in { padding: 0 14px; }
  main { padding: 20px 14px 56px; }
  
  
  .ov-sw summary .ov-sw-name { display: none; }
  /* The site switcher's menu spans the header, inside its gutters: anchored to its button it ran off the left edge
     at 390 (16 Nov 2026), and with sixteen sites it scrolls inside the screen. */
  .ov-sw { position: static; }
  .ov-sw-menu { left: 14px; right: 14px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
  .ov-bk { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}

/* ─── Shared by every page (SPEC-PAGES 2.3): one name each. Page stylesheets use these, never redefine them. ─── */

/* The header at 960 or under: the logo stays, its words go, so a long site name in the switcher
   never pushes a tab out. */
@media (max-width: 960px) {
  .brand { font-size: 0; gap: 0; }
}

/* The email service of the list a page is about: a quiet square chip, never a state. */
.ov-esp { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* The list chooser: only when the site has more than one list. Light and service, no figures. */
.ov-lists { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-2); }
.ov-lists a { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ov-lists a:hover { color: var(--ink); }
.ov-lists a[aria-current] { background: var(--raise); color: var(--ink); box-shadow: var(--seg-on); }
.ov-lists .ov-light { width: 6px; height: 6px; }
.ov-lists .ov-light::after { display: none; }

/* The title line's right end: a page's one control or its chips. */
.ov-head-r { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ov-head-r > .chip + .chip { margin-left: 0; }

/* The state chip's fourth tone: amber, a person is wanted but nothing is stopped. */
.chip.warn i { background: var(--warn); }

/* Tones, always scoped to their component (.ov-light.ov-s-ok, .ov-prob.ov-s-wait): ok, warn, bad, off, and wait (in progress). */
.ov-light.ov-s-wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ico.tickmark, .ico.wait { color: var(--ink-3); }
/* A problem line item that is only progress (older history still loading): a clock, quiet. */
.ov-prob.ov-s-wait { color: var(--ink-2); font-weight: 500; }
.ov-prob.ov-s-wait .ico { color: var(--ink-3); }

/* The trial's pips take the colour of their row: amber while rehearsing, green when every item is done. */
/* Grey until a check is done (15 Nov 2026: amber is a warning colour, and at 0 of 8 nothing is wrong). */
.ov-pips { color: var(--ink-3); }
.ov-pips i { box-shadow: inset 0 0 0 1px currentColor; }
.ov-pips i.on { background: var(--mark); box-shadow: none; }
.ov-pips i.bad { background: var(--bad); box-shadow: none; }
.ov-s-ok .ov-pips { color: var(--ok); }
.ov-head .ov-pips { gap: 3px; }
.ov-head .ov-pips i { width: 6px; height: 6px; }

/* A figure row's label line, with a legend or an icon on its right. */
.ov-f-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; min-height: 18px; }
.ov-f-h .ov-f-l { white-space: nowrap; }

/* The row below a page's first figures: 22px figures, 32px charts. */
.ov-figs.ov-figs-sm { margin-top: 0; padding: 18px 0 20px; }
.ov-figs-sm .ov-f-v { margin-top: 2px; font-size: 22px; line-height: 30px; letter-spacing: -0.02em; }
.ov-figs-sm .ov-f-v small { font-size: 0.62em; }
.ov-figs-sm .ov-f-v.ov-dim { font-size: 18px; line-height: 30px; letter-spacing: -0.015em; }
.ov-figs-sm .ov-f-viz { height: 32px; margin-top: 12px; }
.ov-figs-sm .ov-f-viz .ov-cols, .ov-figs-sm .ov-f-viz .ov-ln, .ov-figs-sm .ov-f-viz .ov-none { height: 32px; }
.ov-figs-sm .ov-f-viz .ov-split { height: 8px; margin-top: 12px; }
.ov-figs-sm .ov-f-viz .ov-split.ov-empty { height: 0; margin-top: 16px; }

/* A figure beside its chart: Sends, one send, Subscribers. */
.ov-lead { display: grid; grid-template-columns: 268px minmax(0, 1fr); column-gap: 40px; align-items: start; margin-top: 16px; padding: 22px 0 18px; border-top: 1px solid var(--line); }
.ov-lead-l { min-width: 0; }
.ov-lead + .ov-figs { margin-top: 0; }

/* A plot with axes: gridlines (ov-gl, the zero line is-base) with their labels (ov-gt), the average
   line with its label (ov-avg), and labels under the plot (ov-xl), each placed by its left. */
.ov-plot { position: relative; height: 128px; }
.ov-gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.ov-gl.is-base { border-top-color: var(--line-2); }
.ov-gt { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 10.5px; line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-avg { position: absolute; left: 0; right: 0; z-index: 3; height: 0; border-top: 1px solid var(--ink-3); pointer-events: none; }
.ov-avg > span { position: absolute; right: 0; bottom: 2px; font-size: 10.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ov-plot > .ov-ln { position: absolute; inset: 0; z-index: 1; height: auto; max-width: none; margin: 0; }
.ov-plot .ov-ln-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.ov-xl { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font-size: 11px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-xl.is-start { transform: none; }
.ov-xl.is-end { transform: translateX(-100%); }
.ov-xl.is-today { padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; }

/* Swatches in a key, beside ov-sm, ov-m and ov-sw8: a line, and a dashed line. */
.ov-k .ov-k-line { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--mark); }
.ov-k .ov-k-dash { display: inline-block; width: 14px; height: 0; border-top: 1px dashed var(--ink-3); }

/* Health rows: a meter each, coloured from its watch level. Compact in a strip (ov-hms), and with a
   fourth cell for the limits in Settings (ov-hm-lim). */
.ov-hm.ov-s-warn .ov-hl, .ov-hm.ov-s-warn .ov-hv { color: var(--warn); }
.ov-hm.ov-s-bad .ov-hl, .ov-hm.ov-s-bad .ov-hv { color: var(--bad); }
a.ov-hm:hover .ov-hl, a.ov-x:hover .ov-hl { color: var(--accent); }
.ov-hms .ov-hm { grid-template-columns: 92px minmax(0, 1fr) 48px; column-gap: 10px; min-height: 25px; border-top: 0; }
.ov-hms .ov-hl { font-size: 12.5px; white-space: nowrap; }
.ov-hms .ov-hv { font-size: 13px; }
.ov-hm:has(> .ov-hm-lim) { grid-template-columns: 150px minmax(0, 1fr) 48px minmax(0, 300px); }
.ov-hm-lim { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* "vs the rest": one mark everywhere, on the ratio axis 0.4x .. 2.5x (charts.ratioAt), the average
   in the middle, a bar from the average to the item. */
.ov-vs { position: relative; display: inline-block; flex: none; width: 44px; height: 6px; border-radius: 3px; background: var(--line); }
.ov-vs > i { position: absolute; top: 0; bottom: 0; background: var(--mark); }
.ov-vs > i.is-up { border-radius: 0 3px 3px 0; }
.ov-vs > i.is-down { border-radius: 3px 0 0 3px; background: var(--mark-2); }
.ov-vs > i.is-weak { background: var(--warn); }
.ov-vs > b { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }

/* "vs the rest" as columns: one per item, up from the middle line when above the average, down when
   below, on the same ratio axis (charts.ratioColumn). */
.ov-div { position: relative; display: flex; align-items: stretch; gap: 3px; height: 44px; }
.ov-div::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line-2); }
.ov-div > i { position: relative; flex: 1 1 0; max-width: 12px; min-width: 0; }
.ov-div > i > b { position: absolute; left: 0; right: 0; border-radius: 1.5px; background: var(--mark); }
.ov-div > i.is-down > b { background: var(--mark-2); }
.ov-div > i.is-weak > b { background: var(--warn); }
.ov-div > i.is-wait > b { top: 50%; left: 50%; right: auto; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--g-2); }
.ov-div > i.is-settle > b { top: 50%; left: 50%; right: auto; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--g-2); }
.ov-div.ov-div-dense { gap: 1px; }
.ov-div.ov-div-dense > i.is-wait > b, .ov-div.ov-div-dense > i.is-settle > b { left: 0; right: 0; width: auto; height: 4px; margin: -2px 0 0; border-radius: 1px; background: var(--g-2); box-shadow: none; }

/* A site's overview: a reactivation stat in amber, the stats alone before it has started; a figure with
   no change keeps its sub-line's height, so the four charts stay on one baseline. */
.ov-bstats > .ov-s-warn .ov-f-l, .ov-bstats > .ov-s-warn b { color: var(--warn); }
.ov-figs-site .ov-f-s:empty::before { content: "\00a0"; }
.ov-bstats-one > div { padding-top: 0; }
.ov-x > .ov-chg { justify-self: start; }

/* The "Code" field of the riskiest forms (partials/code.ejs), only while a code is needed: beside the form's button,
   its word, a short box, and where the code comes from under it. */
.code-field { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; }
.code-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--ink); }
.code-field input { flex: 0 0 auto; width: 8.5em; min-height: 0; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line-2); }
.code-field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.code-field small { font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
