/* Watchpost
   ---------
   A small instrument panel for the web. Monitors are modules on a panel; each
   one has a status lamp and a dot-matrix display for its value (amber LEDs in
   the dark theme, a grey-green LCD in the light one), and a display lights up
   when its condition comes true. Sections carry label-maker name plates,
   buttons are keys that press down. Type is Bahnschrift, the DIN-style face
   every Windows install has.

   The Content-Security-Policy forbids style="" attributes, so anything a
   template needs to vary is a class here (utilities near the end). Every
   colour is a token; the dark theme is the same tokens redefined. */

/* ===================================================================== */
/* Tokens                                                                 */
/* ===================================================================== */
:root {
  --page: #e4e2db;
  --panel: #f7f6f2;
  --panel-2: #efede7;        /* hover, insets */
  --field: #ffffff;
  --edge: #cbc8bd;
  --edge-2: #a9a69b;
  --ink: #151513;
  --ink-2: #3b3a35;
  --muted: #6a6860;

  --key: #ffd100;            /* primary buttons, and anything that came true */
  --key-edge: #b99700;
  --on-key: #151513;
  --brand-ring: #8c3a2b;     /* the ring in the logo, as in favicon.svg */

  --lamp-ok: #1e9e4a;   --lamp-hit: #f5c800;  --lamp-warn: #de7c00;
  --lamp-bad: #d62b1c;  --lamp-off: #cfccc2;

  --ok: #17773a;    --warn: #a45800;    --bad: #c42619;
  --ok-soft: #dfeee2; --warn-soft: #f6e8d0; --bad-soft: #f8dfdb; --key-soft: #fff3b8;

  /* displays: reflective LCD */
  --screen: #c2c7ac;
  --screen-edge: #9da287;
  --screen-shade: inset 0 1px 3px rgba(40, 45, 25, .35);
  --dot: #1c2017;
  --dot-dim: rgba(28, 32, 23, .065);
  --dot-ok: #185a29;  --dot-bad: #8e1b12;  --dot-warn: #6d4800;  --dot-hit: #1c2017;
  --screen-hit: #f1d545;     /* the backlight comes on */
  --screen-hit-edge: #b89b17;
  --screen-hit-ring: 0 0 0 0 transparent;
  --dot-glow: none;

  --font: "Bahnschrift", "DIN Alternate", "DIN Next LT Pro", "Barlow", "Roboto",
          "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111110;
    --panel: #1a1a18;
    --panel-2: #222220;
    --field: #0e0e0d;
    --edge: #2f2e2b;
    --edge-2: #4a4944;
    --ink: #eeede7;
    --ink-2: #c4c2b9;
    --muted: #8c8a80;

    --key: #ffd100;
    --key-edge: #9c8000;
    --on-key: #151513;
    --brand-ring: #d9694f;

    --lamp-ok: #3fe07b;   --lamp-hit: #ffd84a;  --lamp-warn: #ffa53d;
    --lamp-bad: #ff5647;  --lamp-off: #3a3935;

    --ok: #5fd98a;    --warn: #ffab4a;    --bad: #ff6f60;
    --ok-soft: #14271a; --warn-soft: #2d2110; --bad-soft: #321613; --key-soft: #332c0c;

    /* displays: LED matrix */
    --screen: #090908;
    --screen-edge: #000;
    --screen-shade: inset 0 1px 4px rgba(0, 0, 0, .9);
    --dot: #ffb41f;
    --dot-dim: rgba(255, 180, 31, .075);
    --dot-ok: #3fe07b;  --dot-bad: #ff5647;  --dot-warn: #ffa53d;  --dot-hit: #ffe25a;
    --screen-hit: #090908;
    --screen-hit-edge: #ffd100;
    --screen-hit-ring: 0 0 22px -5px rgba(255, 209, 0, .75);
    --dot-glow: drop-shadow(0 0 1.3px currentColor);
  }
}

/* ===================================================================== */
/* Base                                                                   */
/* ===================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Any class that sets display (flex, grid) would otherwise beat the browser's
   own [hidden] rule, and "hidden" elements would stay on screen. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; padding: 44px 0 90px; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 3px; text-decoration-color: var(--edge-2); }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--font); font-stretch: condensed; font-weight: 700;
             line-height: 1.06; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: 50px; letter-spacing: -0.01em; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 4px; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 36px 0; }
strong, b { font-weight: 700; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--key); color: var(--on-key); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 540px; }
.wrap.mid { max-width: 920px; }

/* The shared dot grid for every display lives in one hidden SVG. It must not
   be display:none, or browsers drop the pattern it defines. */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===================================================================== */
/* Masthead and footer                                                    */
/* ===================================================================== */
header.mast {
  background: var(--panel);
  border-bottom: 1px solid var(--edge);
  position: sticky;
  top: 0;
  z-index: 30;
}
.mast-row { display: flex; align-items: stretch; gap: 28px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink);
         text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .frame { fill: none; stroke: var(--ink); stroke-width: 2; }
.brand-mark .ring { fill: none; stroke: var(--brand-ring); stroke-width: 2.5; }
.brand-mark .tick { fill: var(--ink); }
.brand-word { font-stretch: condensed; font-weight: 700; font-size: 23px;
              letter-spacing: .07em; text-transform: uppercase; }

nav.main { display: flex; align-items: stretch; flex-wrap: wrap; margin-left: auto; gap: 2px; }
nav.main > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
nav.main > a:hover { color: var(--ink); background: var(--panel-2); }
nav.main > a.active { color: var(--ink); }
/* The active item gets a yellow bar sitting on the masthead's bottom edge. */
nav.main > a.active::after { content: ""; position: absolute; left: 13px; right: 13px;
                             bottom: -1px; height: 4px; background: var(--key); }
nav.main > a.locked { color: var(--muted); }
nav.main .sep { width: 1px; background: var(--edge); margin: 17px 8px; }
nav.main .navbtn { display: inline-flex; align-items: center; padding-left: 6px; }
nav.main .badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--key);
  color: var(--on-key);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

footer.foot {
  border-top: 1px solid var(--edge);
  padding: 22px 0 42px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
footer.foot .wrap { display: flex; gap: 8px 24px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
footer.foot .who { margin-right: auto; }

/* ===================================================================== */
/* Page head                                                              */
/* ===================================================================== */
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 30px;
  margin-bottom: 34px;
}
.head h1 { margin: 0; }
.head-text { min-width: 0; max-width: 100%; }
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker a { color: var(--muted); }
.kicker a:hover { color: var(--ink); }
.head-sub { color: var(--ink-2); font-size: 18px; margin: 10px 0 0; max-width: 62ch; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===================================================================== */
/* Panels and name plates                                                 */
/* ===================================================================== */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 30px 26px 24px;
  margin: 14px 0 34px;
  box-shadow: 0 1px 0 var(--edge);
}
.panel.flush { padding: 34px 0 0; }
.panel.flush > .plate-aside { right: 22px; }
/* The section's name on a strip of label-maker tape across the top edge. */
.plate {
  position: absolute;
  top: -12px;
  left: 20px;
  margin: 0;
  padding: 5px 10px 4px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--panel);
  font-stretch: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plate label { cursor: pointer; }
.plate-aside {
  position: absolute;
  top: 10px;
  right: 20px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plate-aside a { color: var(--muted); }

/* Settings layout inside a panel: what it is on the left, the form on the right. */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px 40px;
         padding: 24px 0; border-bottom: 1px solid var(--edge); }
.split:first-of-type { padding-top: 6px; }
.split:last-child { border-bottom: 0; padding-bottom: 4px; }
.split-side h2, .split-side h3 { font-size: 21px; margin-bottom: 6px; }
.split-side p { color: var(--muted); font-size: 15px; margin: 0; }

/* Figures in a row, divided by thin rules. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fig { padding: 4px 20px 4px 0; }
.fig + .fig { border-left: 1px solid var(--edge); padding-left: 20px; }
.fig-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
             text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fig-value { display: block; font-size: 30px; font-weight: 600; line-height: 1.15; }
.fig-value.down { color: var(--ok); }
.fig-value.up { color: var(--bad); }
.fig-note { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* ===================================================================== */
/* Type helpers                                                           */
/* ===================================================================== */
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.mono { font-family: var(--mono); font-size: .86em; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.hint { display: block; color: var(--muted); font-size: 14.5px; margin-top: 7px; }
.lead-line { font-size: 19px; margin: 0 0 4px; }
.big-num { font-size: 32px; font-weight: 600; line-height: 1.1; margin: 0 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
           white-space: nowrap; }

/* ===================================================================== */
/* Forms                                                                  */
/* ===================================================================== */
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.bottom { align-items: flex-end; }
.grow { flex: 1 1 200px; }

label.field { display: block; margin-bottom: 20px; }
label.check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; cursor: pointer; }
label.check input { margin-top: 3px; }

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--edge-2);
  border-radius: 3px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.3;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--key); outline-offset: 0;
                                            border-color: var(--ink); }
input.mono, textarea.mono, input[type=url] { font-family: var(--mono); font-size: 15px; }
select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  /* two hard-edged triangles make the chevron; no image to load */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
textarea { min-height: 80px; }

input[type=checkbox], input[type=radio] {
  appearance: none;
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1.5px solid var(--ink-2);
  border-radius: 3px;
  background: var(--field);
  vertical-align: -3px;
  cursor: pointer;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked, input[type=radio]:checked {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 3.5px var(--field);
}
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--key);
                                                                      outline-offset: 2px; }

/* ===================================================================== */
/* Keys (buttons)                                                         */
/* ===================================================================== */
/* A key sits on a darker edge and sinks onto it when pressed. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px 10px;
  border: 1px solid var(--key-edge);
  border-radius: 4px;
  background: var(--key);
  color: var(--on-key);
  box-shadow: 0 3px 0 var(--key-edge);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  top: 0;
  margin-bottom: 3px;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { top: 3px; box-shadow: 0 0 0 var(--key-edge); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--edge-2);
             box-shadow: 0 3px 0 var(--edge-2); }
.btn.ghost:hover { background: var(--panel-2); filter: none; }
.btn.ghost:active { box-shadow: 0 0 0 var(--edge-2); }
.btn.danger { background: var(--panel); color: var(--bad); border-color: var(--bad);
              box-shadow: 0 3px 0 var(--bad); }
.btn.danger:hover { background: var(--bad-soft); filter: none; }
.btn.danger:active { box-shadow: 0 0 0 var(--bad); }
.btn.small { padding: 6px 12px 5px; font-size: 14px; box-shadow: 0 2px 0 var(--key-edge); margin-bottom: 2px; }
.btn.small.ghost { box-shadow: 0 2px 0 var(--edge-2); }
.btn.small.danger { box-shadow: 0 2px 0 var(--bad); }
.btn.small:active { top: 2px; box-shadow: none; }
.btn.big { padding: 14px 28px 13px; font-size: 18px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
form.inline { display: inline; }
/* A short select beside its key, as in "1 week [Snooze]". */
form.pair { display: inline-flex; align-items: center; gap: 8px; }
select.small { width: auto; padding: 5px 32px 5px 10px; font-size: 14px; }
.textbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
           text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ===================================================================== */
/* Messages                                                               */
/* ===================================================================== */
.notice {
  position: relative;
  padding: 14px 18px 14px 22px;
  margin-bottom: 28px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-left: 6px solid var(--ink-2);
  border-radius: 4px;
  font-size: 16px;
}
.notice.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.notice.info, .notice.signal { border-left-color: var(--key-edge); background: var(--key-soft); }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.notice ul:first-child { margin-top: 0; }
.notice-title { display: block; font-weight: 700; margin-bottom: 2px; }
.notice form.inline { margin-left: 6px; }

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 7px 7px 7px 13px;
  background: var(--field);
  border: 1px solid var(--edge-2);
  border-radius: 3px;
}
.cmd code { flex: 1; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* ===================================================================== */
/* Tables                                                                 */
/* ===================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--edge);
         vertical-align: top; }
th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink-2);
  padding-top: 0;
}
tbody tr:hover { background: var(--panel-2); }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }

/* ===================================================================== */
/* Lamps, state words, tags                                               */
/* ===================================================================== */
.lamp {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lamp-off);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .35);
  vertical-align: 0;
}
.lamp.ok { background: var(--lamp-ok); }
.lamp.hit { background: var(--lamp-hit); }
.lamp.warn { background: var(--lamp-warn); }
.lamp.bad { background: var(--lamp-bad); }
.lamp.paused { background: transparent; box-shadow: inset 0 0 0 2px var(--lamp-off); }
@media (prefers-color-scheme: dark) {
  .lamp.ok { box-shadow: 0 0 8px 1px color-mix(in srgb, var(--lamp-ok) 55%, transparent); }
  .lamp.hit { box-shadow: 0 0 10px 2px color-mix(in srgb, var(--lamp-hit) 60%, transparent); }
  .lamp.warn { box-shadow: 0 0 8px 1px color-mix(in srgb, var(--lamp-warn) 55%, transparent); }
  .lamp.bad { box-shadow: 0 0 8px 1px color-mix(in srgb, var(--lamp-bad) 55%, transparent); }
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.state.ok { color: var(--ok); }
.state.hit { color: var(--ink); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.state.paused, .state.pending { color: var(--muted); }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--edge-2);
  border-radius: 3px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.5;
}
.tag.hit { background: var(--key); border-color: var(--key-edge); color: var(--on-key); }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.bad { border-color: var(--bad); color: var(--bad); }

/* ===================================================================== */
/* Displays                                                               */
/* ===================================================================== */
.screen {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--screen-edge);
  border-radius: 4px;
  background: var(--screen);
  box-shadow: var(--screen-shade);
  color: var(--dot);
}
.screen svg { display: block; width: 100%; height: auto; overflow: visible; }
.screen .grid { fill: url(#lcd-dots); }
.dim { fill: none; stroke: var(--dot-dim); stroke-width: .8; stroke-linecap: round; }
.screen .lit { fill: none; stroke: currentColor; stroke-width: .82; stroke-linecap: round;
               filter: var(--dot-glow); }
.screen.ok { color: var(--dot-ok); }
.screen.bad { color: var(--dot-bad); }
.screen.warn { color: var(--dot-warn); }
.screen.hit { color: var(--dot-hit); background: var(--screen-hit); border-color: var(--screen-hit-edge);
              box-shadow: var(--screen-shade), var(--screen-hit-ring); }
.screen.empty { color: var(--dot-dim); }
/* Too long for the dots: the same window, ordinary text. */
.screen.is-text { display: flex; align-items: center; min-height: 48px; }
.screen-text { font-family: var(--mono); font-size: 13px; line-height: 1.35; overflow: hidden;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
               overflow-wrap: anywhere; text-align: left; }

/* ===================================================================== */
/* Dashboard                                                              */
/* ===================================================================== */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 30px; align-items: start; }
.deck > .panel { margin-top: 14px; }

.slots { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted);
         letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.slots b { color: var(--ink); font-size: 16px; letter-spacing: 0; }
.meter { display: flex; gap: 3px; }
.meter i { width: 7px; height: 18px; border-radius: 1px; background: var(--edge); }
.meter i.on { background: var(--ink); }
.bar-track { fill: var(--edge); }
.bar-fill { fill: var(--ink); }

/* Narrowing a long panel: a search field and a row of state keys. A pressed
   key is inked like a name plate; yellow stays for things that came true. */
.board-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
                padding: 0 22px 18px; border-bottom: 1px solid var(--edge); }
.board-filter input[type=search] { flex: 1 1 260px; width: auto; min-width: 0; }
.filter-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-keys .btn[aria-pressed="true"] { background: var(--ink); color: var(--panel);
                                         border-color: var(--ink); }
.board-empty { margin: 0; padding: 22px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: -14px 0 30px; }
.modules { display: grid; }
.module {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 108px 248px;
  gap: 0 22px;
  align-items: center;
  padding: 20px 22px;
  border-top: 1px solid var(--edge);
}
.module:first-child { border-top: 0; }
.module:hover { background: var(--panel-2); }
.module:last-child { border-radius: 0 0 5px 5px; }
.module .lamp { align-self: start; margin-top: 7px; }
.module-main { min-width: 0; }
.module-name { margin: 0 0 5px; font-size: 22px; font-weight: 700; font-stretch: condensed; line-height: 1.15; }
.module-name a { display: block; color: var(--ink); text-decoration: none; overflow: hidden;
                 text-overflow: ellipsis; white-space: nowrap; }
/* The whole module is the link target, not just the name. */
.module-name a::after { content: ""; position: absolute; inset: 0; }
.module:has(.module-name a:focus-visible) { outline: 2px solid var(--key); outline-offset: -2px; }
/* Every item starts with its "/" separator, and the row is pulled left by one
   separator's width inside a clipping box: whichever item starts a line has
   its separator cut off, so a wrapped line never begins with a stray "/". */
.module-meta { overflow: hidden; margin: 0; color: var(--muted); font-size: 15px; }
.meta-in { display: flex; flex-wrap: wrap; row-gap: 2px; margin-left: -26px; }
.meta-in > span::before { content: "/"; display: inline-block; width: 26px; text-align: center;
                          color: var(--edge-2); }
.meta-in .site { color: var(--ink-2); font-weight: 600; }
.module-read { text-align: right; }
.module-when { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px;
               color: var(--muted); font-size: 13.5px; margin-top: 7px; white-space: nowrap; }
.module-when .state { font-size: 12.5px; }
.module-error {
  grid-column: 2 / -1;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 15px;
}
.module-error::before { content: "!"; flex: none; width: 19px; height: 19px; display: grid;
                        place-items: center; border-radius: 50%; background: var(--warn);
                        color: var(--panel); font-weight: 700; font-size: 13px; margin-top: 1px; }
.module.is-bad .module-error { background: var(--bad-soft); }
.module.is-bad .module-error::before { background: var(--bad); }

.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round;
                  stroke-linecap: round; }
.spark circle { fill: var(--ink); }
/* For a watched price, falling is the good news. */
.spark.trend-down polyline { stroke: var(--ok); }
.spark.trend-down circle { fill: var(--ok); }
.spark.trend-up polyline { stroke: var(--bad); }
.spark.trend-up circle { fill: var(--bad); }

/* The right-hand column. */
.side .panel { padding: 26px 20px 18px; }
.lamps { list-style: none; margin: 0; padding: 0; }
.lamps li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0;
            border-bottom: 1px solid var(--edge); font-size: 16px; }
.lamps li:last-child { border-bottom: 0; }
.lamps b { margin-left: auto; font-size: 22px; font-weight: 600; }
.lamps li.is-hit b { background: var(--key); color: var(--on-key); padding: 0 7px; border-radius: 3px; }
.live { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; color: var(--muted);
        font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp-ok);
                animation: live-blink 2.4s steps(1) infinite; }
.live.is-stale::before { background: var(--lamp-warn); animation: none; }
@keyframes live-blink { 0%, 85% { opacity: 1; } 86%, 100% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; margin: 0;
           padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.feed a, .feed span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a { text-decoration: none; }
.feed a:hover { text-decoration: underline; }
.feed li.unread .t, .feed li.unread a { font-weight: 700; }
.feed-empty { color: var(--muted); font-size: 15px; margin: 0; }
.feed.alerts li { grid-template-columns: minmax(0, 1fr); gap: 0; }
.feed.alerts .when { display: block; }

.empty { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; }
.empty h2 { font-size: 34px; }
.empty p { color: var(--ink-2); margin-bottom: 22px; }

@keyframes value-changed { from { filter: brightness(1.8); } to { filter: none; } }
.just-changed { animation: value-changed 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .just-changed { animation: none; } }

/* ===================================================================== */
/* Front page                                                             */
/* ===================================================================== */
/* Centred in the window on a tall screen instead of hugging the masthead. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px;
        align-items: center; padding: 20px 0 10px; min-height: max(520px, calc(100vh - 330px)); }
.hero h1 { font-size: 84px; line-height: .95; letter-spacing: -0.015em; margin-bottom: 22px; }
/* A highlighter stroke under the last word, drawn with a shadow, not an image. */
.hl { box-shadow: inset 0 -0.24em 0 var(--key); }
.hero-lede { font-size: 21px; color: var(--ink-2); margin-bottom: 30px; max-width: 34ch; }

.urlbar { display: flex; gap: 10px; align-items: stretch; }
.urlbar input[type=url] { font-size: 17px; padding: 15px 16px; min-width: 0; flex: 1;
                          border: 2px solid var(--ink-2); }
.urlbar .btn { margin-bottom: 3px; padding: 0 24px; font-size: 17px; }
.wish { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.wish .label { margin: 0; white-space: nowrap; }
.wish input { background: transparent; border: 0; border-bottom: 1px solid var(--edge-2);
              border-radius: 0; box-shadow: none; padding: 7px 2px; }
.wish input:focus { outline: none; border-bottom: 2px solid var(--ink); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 24px 0 0; color: var(--muted);
              font-size: 15px; }
.hero-facts span + span::before { content: "/"; margin: 0 12px; color: var(--edge-2); }

.device { margin: 0; }
.device .module { grid-template-columns: 14px minmax(0, 1fr) 208px; padding: 18px 20px; }
.device .module-spark { display: none; }
.device .module-name { font-size: 20px; }
.device .module-meta { font-size: 14px; }

/* ===================================================================== */
/* Picking what to watch                                                  */
/* ===================================================================== */
.opts { margin: 0 -26px; border-top: 1px solid var(--edge); }
.opt {
  display: grid;
  grid-template-columns: 19px 92px minmax(0, 1fr);
  gap: 0 18px;
  align-items: baseline;
  padding: 14px 26px;
  border-bottom: 1px solid var(--edge);
  cursor: pointer;
}
.opt input { align-self: center; }
.opt:hover { background: var(--panel-2); }
.opt.is-picked { background: var(--key-soft); box-shadow: inset 5px 0 0 var(--key); }
.opt-kind { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
            color: var(--muted); }
.opt-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.opt-value { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.opt-value.v-text { font-size: 16.5px; font-weight: 400; }
.opt-value .state { font-size: 15px; }
.opt-label { color: var(--muted); font-size: 15px; }

.opt-group { border: 0; margin: 24px 0 6px; padding: 0; min-width: 0; }
.opt-group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700;
                    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.opt-group legend .muted { font-weight: 500; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cell {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 4px 11px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--field);
  cursor: pointer;
}
.cell:hover { border-color: var(--edge-2); }
.cell.is-picked { background: var(--key-soft); border-color: var(--key-edge);
                  box-shadow: inset 0 0 0 1px var(--key-edge); }
.cell-name { font-weight: 600; overflow-wrap: anywhere; }
.cell .state { grid-column: 2; font-size: 12.5px; }
.cell .cell-price { grid-column: 2; font-size: 17px; font-weight: 600; }

details > summary { cursor: pointer; }
details.more { margin: 18px 0 0; }
details.more > summary { padding: 7px 0; font-size: 16px; font-weight: 600; color: var(--ink-2);
                         list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px;
                                 height: 20px; margin-right: 10px; border: 1px solid var(--edge-2);
                                 border-radius: 3px; font-weight: 700; line-height: 1; }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { color: var(--ink); }
details.more > summary .muted { font-weight: 400; }
details.more[open] > summary { margin-bottom: 10px; }
.details-body { padding: 4px 0 4px 30px; }

.outline-filter { margin-bottom: 8px; }
.outline-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--edge); border-radius: 4px;
                background: var(--field); }
.outline-row {
  display: grid;
  grid-template-columns: 19px 80px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 12px;
  border-bottom: 1px solid var(--edge);
  cursor: pointer;
  font-size: 15.5px;
}
.outline-row:last-of-type { border-bottom: 0; }
.outline-row input { align-self: center; }
.outline-row:hover { background: var(--panel-2); }
.outline-row.is-picked { background: var(--key-soft); box-shadow: inset 5px 0 0 var(--key); }
.outline-row .k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
                  color: var(--muted); }
.outline-row .t { overflow-wrap: anywhere; }
.outline-row.is-heading .t { font-weight: 700; font-stretch: condensed; font-size: 18px; }
.outline-row.kind-price .t, .outline-row.kind-number .t { font-weight: 700; }
.outline-row.kind-availability .t { color: var(--ok); font-weight: 600; }
.outline-empty { padding: 12px; margin: 0; }

.need { margin-top: 4px; }
.submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 4px 0 0; }

/* ===================================================================== */
/* Monitor detail                                                         */
/* ===================================================================== */
.readout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 1fr);
           gap: 0 28px; align-items: center; }
.readout > div + div { border-left: 1px solid var(--edge); padding-left: 28px; }
.readout .screen { padding: 16px 18px; }
.readout .screen.is-text { min-height: 90px; }
.readout .screen-text { font-size: 15px; -webkit-line-clamp: 3; }
.readout .line { font-size: 22px; font-weight: 600; margin: 2px 0 6px; line-height: 1.25; }
.readout .sub { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* The history chart is drawn on a display too. */
.scope { padding: 12px 10px 8px; border: 1px solid var(--screen-edge); border-radius: 4px;
         background: var(--screen); box-shadow: var(--screen-shade); color: var(--dot); }
.chart { width: 100%; height: auto; display: block; }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round;
               stroke-linecap: round; filter: var(--dot-glow); }
.chart .area { display: none; }
.chart .grid { stroke: var(--dot-dim); stroke-width: 1.4; stroke-dasharray: 1 5; stroke-linecap: round; }
.chart text { fill: currentColor; opacity: .75; font-family: var(--font); font-size: 11px; }
.chart .gap { fill: none; stroke: currentColor; opacity: .5; stroke-width: 1.4; stroke-dasharray: 3 5; }
.chart .dots circle { fill: currentColor; opacity: 0; }
.chart .mark { stroke: var(--screen); stroke-width: 2; }
.chart .mark.low { fill: var(--dot-ok); }
.chart .mark.high { fill: var(--dot-bad); }
.chart .mark-label { font-size: 10.5px; font-weight: 700; opacity: 1; }
.chart .target { stroke: var(--key); stroke-width: 1.4; stroke-dasharray: 6 4; }
.chart .target-band { fill: var(--key); }
.chart .target-label { font-size: 10.5px; font-weight: 700; fill: var(--on-key); opacity: 1; }
.chart .tip-guide { stroke: currentColor; opacity: .6; stroke-width: 1; stroke-dasharray: 2 2; }
.chart .tip-dot { fill: var(--key); stroke: var(--screen); stroke-width: 2; }
.chart .tip-box { fill: var(--ink); stroke: none; }
.chart .tip-value { fill: var(--panel); font-size: 12px; font-weight: 700; opacity: 1; }
.chart .tip-when { fill: var(--panel); opacity: .75; font-size: 10px; }
#history-chart { cursor: crosshair; touch-action: pan-y; }

.diff { font-size: 17px; line-height: 1.9; margin: 0 0 8px; overflow-wrap: anywhere; }
.diff del { background: var(--bad-soft); color: var(--ink); text-decoration: line-through;
            text-decoration-color: var(--bad); padding: 1px 3px; border-radius: 2px; }
.diff ins { background: var(--key-soft); color: var(--ink); text-decoration: none; padding: 1px 3px;
            border-radius: 2px; box-shadow: inset 0 -2px 0 var(--key); }
.diff .gap { color: var(--muted); }

.checks td.when { width: 200px; }
.checks .run { display: block; font-size: 13.5px; color: var(--muted); }

/* ===================================================================== */
/* Alerts                                                                 */
/* ===================================================================== */
.log { margin: 0 -26px -24px; }
.log-row {
  display: grid;
  grid-template-columns: 26px 150px minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 20px 26px;
  border-top: 1px solid var(--edge);
}
.log-row:first-child { border-top: 0; }
.log-row .lamp { margin-top: 6px; }
.log-when { color: var(--muted); font-size: 14px; line-height: 1.4; }
.log-when b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.log-title { margin: 0 0 6px; font-size: 21px; }
.log-title a { color: var(--ink); text-decoration: none; }
.log-title a:hover { text-decoration: underline; }
.log-body { color: var(--ink-2); font-size: 15.5px; white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.log-foot { color: var(--muted); font-size: 14px; margin-top: 8px; }
.log-change { text-align: right; font-size: 21px; font-weight: 600; white-space: nowrap; }
.log-change s { color: var(--muted); font-weight: 400; text-decoration-thickness: 1px; }
.log-change .to { background: var(--key); color: var(--on-key); padding: 0 7px; border-radius: 3px; }
.log-change .arrow { color: var(--muted); margin: 0 7px; font-weight: 400; }

/* ===================================================================== */
/* Sign-in pages                                                          */
/* ===================================================================== */
.auth h1 { font-size: 46px; }
.auth .panel { padding-top: 32px; }
.auth .or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px;
            font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 26px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--edge); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gmark { width: 18px; height: 18px; }

/* ===================================================================== */
/* Prose pages (how it works, legal)                                      */
/* ===================================================================== */
/* Text lines stay a readable length; tables in the same page may go wider. */
.prose > p, .prose > ul, .prose > ol, .prose > h2 { max-width: 68ch; }
.prose h2 { margin-top: 38px; }
.prose p, .prose li { color: var(--ink-2); }
.prose table { margin: 8px 0 20px; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 30px; }

/* Plan cards on /billing: one panel per plan, the account's own one outlined. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 22px; }
.plan { display: flex; flex-direction: column; margin-bottom: 20px; }
.plan.current { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-price { font-size: 38px; font-weight: 700; line-height: 1; margin: 6px 0 2px; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul.plain { margin: 14px 0 20px; }
.plan form, .plan .plan-foot { margin-top: auto; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--edge); margin: 0; }
ul.plain li:last-child { border-bottom: 0; }

/* ===================================================================== */
/* Cookie strip                                                           */
/* ===================================================================== */
/* Room at the bottom so the strip never covers the footer. */
body:has(.cookiebar) { padding-bottom: 76px; }
.cookiebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--panel);
  padding: 14px 0;
  z-index: 40;
  font-size: 16px;
}
.cookiebar .wrap { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; }
.cookiebar p { margin: 0; flex: 1 1 380px; }
.cookiebar a { color: var(--panel); text-decoration-color: var(--panel); }
.cookiebar a:hover { color: var(--key); }
.cookiebar form { gap: 10px; }

/* ===================================================================== */
/* Misc                                                                   */
/* ===================================================================== */
code.mono { font-size: 14px; background: var(--panel-2); padding: 1px 6px; border-radius: 3px;
            overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--key); color: var(--on-key); padding: 8px 12px;
              z-index: 50; }

/* A short definition list: the operator's details, the admin page's figures. */
.facts-list { margin: 0; display: grid; gap: 0; }
.facts-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px;
                    padding: 9px 0; border-bottom: 1px solid var(--edge); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em;
                 text-transform: uppercase; padding-top: 2px; }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { .facts-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Utilities -- the CSP forbids style="" attributes, so these stand in. */
.m0 { margin: 0 !important; }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 28px; }
.mb-xs { margin-bottom: 4px; }
.mb-s { margin-bottom: 8px; }
.mb-l { margin-bottom: 28px; }
.tight-list { margin-bottom: 8px !important; }
.note { margin: 6px 0 0; }
.secret { font-size: 22px; letter-spacing: .06em; }
.pre-wrap { white-space: pre-wrap; }
.bad-text { color: var(--bad); }
.ok-text { color: var(--ok); }
input.w-narrow { width: 100px; }

/* ===================================================================== */
/* Narrower screens                                                       */
/* ===================================================================== */
@media (max-width: 1100px) {
  .deck { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .hero h1 { font-size: 66px; }
  .readout { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .readout > div:first-child { grid-column: 1 / -1; max-width: 460px; }
  .readout > div:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .module { grid-template-columns: 14px minmax(0, 1fr) 208px; }
  .module-spark { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  main { padding-top: 28px; }
  .wrap { padding: 0 16px; }
  h1, .auth h1 { font-size: 36px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 18px; }

  .mast-row { flex-wrap: wrap; gap: 0; min-height: 0; }
  .brand { padding: 13px 0 6px; }
  /* One row that scrolls sideways, so the active tab still sits on the edge. */
  nav.main { margin: 0 -16px; padding: 0 5px; width: calc(100% + 32px); min-height: 46px;
             flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
                        mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  nav.main.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
                       mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
  nav.main.more-left.more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  nav.main > a { flex: none; }
  nav.main .navbtn { flex: none; padding-right: 13px; }
  nav.main .sep { display: none; }

  .urlbar { flex-direction: column; }
  .urlbar .btn { padding: 13px; }
  .wish { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero-facts { flex-direction: column; }
  .hero-facts span + span::before { content: none; }

  .panel { padding: 28px 16px 18px; }
  .opts { margin: 0 -16px; }
  .opt { grid-template-columns: 19px minmax(0, 1fr); padding: 13px 16px; }
  .opt-kind, .opt-body { grid-column: 2; }
  .log { margin: 0 -16px -18px; }
  .log-row { grid-template-columns: 20px minmax(0, 1fr); padding: 16px; }
  .log-row > :not(.lamp) { grid-column: 2; }
  .log-change { text-align: left; }

  .module, .device .module { grid-template-columns: 12px minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .module-read { grid-column: 2; text-align: left; }
  .module-when { justify-content: flex-start; }
  .module-read .screen { max-width: 260px; }
  .module-error { grid-column: 1 / -1; }
  .side { display: block; }
  .head-actions { width: 100%; }
  .empty { grid-template-columns: 1fr; }

  .readout { grid-template-columns: 1fr; }
  .readout > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--edge); padding-top: 16px; }
  .fig + .fig { border-left: 0; padding-left: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .split { grid-template-columns: 1fr; gap: 10px; }
  .outline-row { grid-template-columns: 19px minmax(0, 1fr); }
  .outline-row .k { display: none; }
  th, td { padding-right: 10px; }
  .checks td.when { width: auto; }
  /* The chart is drawn 760 wide; squeezed to a phone its labels shrink to
     5px. Keep it readable and let it scroll sideways in its frame instead. */
  .scope { overflow-x: auto; }
  .scope .chart { min-width: 680px; }
  /* A long label beside a plate (a date range) would run into it here:
     put it in the flow under the plate instead. */
  .plate-aside { position: static; display: block; text-align: right; margin: -8px 0 12px; }
  .panel.flush > .plate-aside { padding: 0 16px; }
  /* A check per block: when and what it read, then whether it met the
     condition and any note. Without the header a bare dash says nothing. */
  .checks thead { display: none; }
  .checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
               padding: 12px 0; border-bottom: 1px solid var(--edge); }
  .checks td { border: 0; padding: 0; }
  .checks td:nth-child(2), .checks td:nth-child(4) { text-align: right; }
  .checks td:nth-child(3) > .muted { display: none; }
  /* A channel per block: what it is and its state on top, the keys under it. */
  .channel-table thead { display: none; }
  .channel-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px;
                      padding: 14px 0; border-bottom: 1px solid var(--edge); }
  .channel-table td { border: 0; padding: 0; }
  .channel-table td:nth-child(2) { grid-row: 2; }
  .channel-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .channel-table td:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px;
                                 white-space: normal; text-align: left; }
  .cookiebar { font-size: 14.5px; }
  body:has(.cookiebar) { padding-bottom: 132px; }
}
