/*
 * The helm: the dashboard, a product, a figure, distribution, propaganda and
 * sources (helm.js, product.js, channels.js, sources.js). Drawn in the
 * console's trim (tokens.css, console.css); colour is a verdict or a light,
 * always beside a word:
 *
 *   green   live, connected, on track, a change for the better
 *   amber   waiting on a store, needs a person, behind; a ring is planned, not broken
 *   red     down, off track, a change for the worse
 *   orange  a ring: a figure older than its source allows
 *   grey    not yet, not watched, not checked; a change within chance
 */

:root {
  --helm-good: var(--color-green);
  --helm-held: var(--color-yellow);
  --helm-down: var(--color-red);
  --helm-late: var(--color-orange);
  --helm-none: var(--trim-dim);
  --helm-label: 10px;
}

/* ── Words a helm page uses again and again ── */

.helm-label {
  font-family: var(--font-mono);
  font-size: var(--helm-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shell-fg-dim);
}
.helm-label a { color: inherit; text-decoration: none; }
.helm-label a:hover, .helm-label a:focus-visible { color: var(--shell-fg-bright); outline: none; }
.helm-out { color: var(--shell-fg-bright); text-decoration: underline; text-decoration-color: var(--shell-line-strong); text-underline-offset: 3px; }
.helm-out:hover, .helm-out:focus-visible { text-decoration-color: var(--trim-bright); outline: none; }
.helm-out::after { content: " ↗"; font-size: .9em; }
.helm-in { color: var(--shell-fg-bright); text-decoration: none; }
.helm-in:hover, .helm-in:focus-visible { text-decoration: underline; text-decoration-color: var(--shell-line-strong); text-underline-offset: 3px; outline: none; }
.helm-faint { color: var(--shell-fg-faint); }
.helm-dim { color: var(--shell-fg-dim); }
.helm-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* A change: green or red where it is a verdict, grey where it is not. */
.helm-change { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-1); color: var(--shell-fg-dim); white-space: nowrap; }
.helm-change.is-good { color: var(--helm-good); }
.helm-change.is-bad { color: var(--helm-down); }
.helm-change.is-new { color: var(--shell-fg); }
.helm-arrow { font-size: 8px; vertical-align: 1px; margin-right: 3px; }

/* A light: a dot with its tone. A ring is a light that is not on: planned, not watched, overdue. */
.helm-light { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--helm-none); box-sizing: border-box; }
.helm-light.is-good { background: var(--helm-good); }
.helm-light.is-held { background: var(--helm-held); }
.helm-light.is-down { background: var(--helm-down); }
.helm-light.is-soon { background: transparent; border: 1.5px solid var(--helm-held); }
.helm-light.is-none { background: transparent; border: 1.5px solid var(--helm-none); }
.helm-light.is-late { background: transparent; border: 1.5px solid var(--helm-late); }
.helm-light.is-big { width: 10px; height: 10px; }
.helm-word { font-family: var(--font-mono); font-size: var(--helm-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--shell-fg-dim); }
.helm-word.is-good { color: var(--helm-good); }
.helm-word.is-held { color: var(--helm-held); }
.helm-word.is-down { color: var(--helm-down); }
.helm-word.is-soon { color: var(--helm-held); }
.helm-lamp { display: inline-flex; align-items: center; gap: 6px; }

/* A meter: how far a figure is toward what was expected, a tick where this pace lands. */
.helm-meter { position: relative; height: 6px; border-radius: 3px; background: rgba(var(--trim-rgb), .14); }
.helm-meter > .helm-meter-fill { display: block; height: 100%; border-radius: 3px; background: var(--trim-bright); }
.helm-meter.is-good { background: rgba(var(--color-green-rgb), .2); }
.helm-meter.is-good > .helm-meter-fill { background: var(--helm-good); }
.helm-meter.is-held { background: rgba(var(--color-yellow-rgb), .2); }
.helm-meter.is-held > .helm-meter-fill { background: var(--helm-held); }
.helm-meter.is-down { background: rgba(var(--color-red-rgb), .24); }
.helm-meter.is-down > .helm-meter-fill { background: var(--helm-down); }
.helm-meter-tick { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--trim-bright); }
.helm-meter.is-big { height: 8px; border-radius: 4px; }
.helm-meter.is-big .helm-meter-tick { top: -4px; height: 16px; }

/* Columns: what each day added. A wash over the days a store is still counting. */
.helm-cols { display: block; width: 100%; height: 32px; overflow: visible; }
.helm-cols-bar { fill: var(--series-1); }
.helm-cols-none { fill: rgba(var(--trim-rgb), .3); }
.helm-cols-wash { fill: rgba(var(--color-orange-rgb), .16); }
.helm-cols-hit { fill: transparent; cursor: crosshair; outline: none; }
.helm-cols-hit:hover + .helm-cols-bar, .helm-cols-hit:focus-visible + .helm-cols-bar { fill: var(--ramp-8); }
.helm-trend { display: block; width: 64px; height: 20px; flex: none; overflow: visible; }
.helm-trend polyline { fill: none; stroke: var(--series-1); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ── The top of the dashboard: one row, and nothing above it. What is overdue and who last
      reported at the left, as pills; the range at the right, in the corner. Where the pills
      take a second line the range keeps the corner, and one line of them sits level with it. ── */

.helm-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; margin-bottom: 12px; }
.helm-top > .helm-chips { flex: 1 1 0; min-width: 0; min-height: 34px; align-content: center; }
.helm-top > .signal-filters { flex: none; max-width: 100%; margin: 0 0 0 auto; padding: 0; border: 0; align-items: center; gap: 6px 8px; }

/* ── The studio, in one row ── */

.helm-studio { margin-bottom: 12px; padding: 0; overflow: hidden; }
.helm-studio-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); column-gap: 4px; }
.helm-studio-figure { display: block; padding: 14px 12px 12px; color: inherit; text-decoration: none; border-radius: var(--r-2); }
a.helm-studio-figure:hover, a.helm-studio-figure:focus-visible { background: var(--shell-raised-2); outline: none; }
.helm-studio-value { margin-top: 4px; font-size: var(--fs-6); font-weight: 600; line-height: 1.15; color: var(--shell-fg-bright); }
.helm-studio-value small { font-size: var(--fs-2); font-weight: 400; color: var(--shell-fg-dim); }
.helm-studio-note { margin-top: 3px; font-size: var(--fs-0); line-height: 1.4; color: var(--shell-fg-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.helm-studio-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 10px 12px 11px; border-top: 1px solid var(--shell-line); font-size: var(--fs-1); }
.helm-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.helm-chip .helm-light { align-self: center; }
.helm-strip-more { margin-left: auto; }

/* The lights at a glance: every listing and every channel, a dot each. */
.helm-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.helm-dots .helm-light { width: 7px; height: 7px; }

/* ── The cards: a product each, their rows lined up across ── */

.helm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(166px, 100%), 1fr)); column-gap: 12px; align-items: stretch; }
.helm-card {
  grid-row: span 7;
  display: grid;
  grid-template-rows: subgrid;
  margin-bottom: 12px;
  min-width: 0;
  background: var(--shell-raised);
  border: 1px solid var(--shell-line);
  border-radius: var(--r-3);
}
.helm-card.is-behind { border-color: rgba(var(--color-yellow-rgb), .42); }
.helm-card.is-off { border-color: rgba(var(--color-red-rgb), .48); }
.helm-row { min-width: 0; padding: 10px 12px 11px; border-top: 1px solid var(--shell-line); }
.helm-row:first-child { border-top: none; padding-top: 12px; }
.helm-name { display: block; font-family: var(--font-mono); font-size: var(--fs-2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-fg-bright); text-decoration: none; }
.helm-name:hover, .helm-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.helm-line { margin: 6px 0 0; font-size: var(--fs-1); line-height: 1.4; color: var(--shell-fg-dim); }
.helm-headline { padding-top: 0; border-top: none; }
.helm-big { display: block; margin-top: 2px; font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--shell-fg-bright); text-decoration: none; }
a.helm-big:hover, a.helm-big:focus-visible { color: #fff; outline: none; }
.helm-big.is-none { color: var(--shell-fg-faint); }
.helm-under { margin-top: 2px; font-size: var(--fs-1); color: var(--shell-fg-dim); display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.helm-headline .helm-cols { margin-top: 10px; }
.helm-expect-head { display: flex; justify-content: space-between; gap: 8px; }
.helm-expect .helm-meter { margin-top: 7px; }
.helm-expect-line { margin: 7px 0 0; font-size: var(--fs-1); color: var(--shell-fg); }
.helm-needs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-1); line-height: 1.4; }
.helm-needs li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 7px; }
.helm-needs .helm-light { margin-top: 4px; }
.helm-needs a { color: var(--shell-fg-bright); text-decoration: none; }
.helm-needs a:hover, .helm-needs a:focus-visible { text-decoration: underline; outline: none; }
.helm-calm { font-size: var(--fs-1); color: var(--shell-fg-dim); }
.helm-gap { margin-top: 6px; }

/* A row of a card's list: a light, a name, its figure, its change. */
.helm-list { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 6px 6px; align-items: baseline; margin-top: 7px; font-size: var(--fs-1); }
.helm-card .helm-list .helm-out::after, .helm-card .helm-sites .helm-out::after { content: none; }
.helm-card .helm-list .helm-out:hover::after, .helm-card .helm-list .helm-out:focus-visible::after,
.helm-card .helm-sites .helm-out:hover::after, .helm-card .helm-sites .helm-out:focus-visible::after { content: " ↗"; }
.helm-card .helm-list-change .helm-change { font-size: var(--fs-0); }
.helm-list-figure.is-held, .helm-list-figure.is-soon { color: var(--helm-held); }
.helm-list-figure.is-down { color: var(--helm-down); }
.helm-sites { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 7px; font-size: var(--fs-1); }
.helm-site-entry { min-width: 0; }
.helm-site-entry .helm-state { display: flex; align-items: center; gap: 6px; min-width: 0; }
.helm-site-entry .helm-list-name { flex: 1; }
.helm-site-entry .helm-site { margin: 3px 0 0 14px; align-items: center; }
.helm-site-figures { white-space: nowrap; }
.helm-site-entry .helm-list-sub { margin: 3px 0 0 14px; }
.helm-list > .helm-light { align-self: center; }
.helm-list-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helm-list-name.is-wide { grid-column: 2 / -1; }
/* A place with more than one figure told of it: each on a line of its own, by the figure's word. */
.helm-list-word { color: var(--shell-fg-dim); white-space: normal; overflow: visible; }
.helm-list-figure { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--shell-fg-bright); text-decoration: none; white-space: nowrap; }
a.helm-list-figure:hover, a.helm-list-figure:focus-visible { text-decoration: underline; outline: none; }
.helm-list-figure.is-word { font-family: var(--font-sans); color: var(--shell-fg-dim); }
.helm-list-change { text-align: right; }
.helm-list-sub { grid-column: 2 / -1; margin-top: -3px; font-size: var(--fs-0); line-height: 1.4; color: var(--shell-fg-dim); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.helm-row-sum { margin-top: 8px; font-size: var(--fs-0); color: var(--shell-fg-dim); }
.helm-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.helm-use a, .helm-use div { display: block; color: inherit; text-decoration: none; }
.helm-use-label { font-size: var(--fs-0); color: var(--shell-fg-dim); }
.helm-use-value { font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--shell-fg-bright); }
.helm-use-value.is-none { color: var(--shell-fg-faint); }
.helm-step { display: block; margin-top: 7px; font-size: var(--fs-1); color: var(--shell-fg); text-decoration: none; }
.helm-site { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.helm-bf { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--shell-line); font-size: var(--fs-1); }
.helm-bf-line { margin-top: 3px; color: var(--shell-fg-dim); }

/* ── The rest of the studio ── */

.helm-rest { margin-top: 4px; }
.helm-rest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); column-gap: 12px; }
.helm-rest-grid > div { padding: 10px 12px 12px; font-size: var(--fs-1); }
.helm-foot { margin: 16px 0 0; max-width: 120ch; font-size: var(--fs-1); line-height: 1.6; color: var(--shell-fg-dim); }

/* ── A product's page and a figure's ── */

.helm-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.helm-links .console-button { height: 32px; }
.helm-head-lamp { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; vertical-align: 4px; }
.helm-crumbs { display: flex; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--shell-fg-dim); margin-bottom: 8px; }
.helm-crumbs a { color: inherit; text-decoration: none; }
.helm-crumbs a:hover, .helm-crumbs a:focus-visible { color: var(--shell-fg-bright); outline: none; }
.helm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.helm-grid > .console-card, .helm-grid > figure { margin: 0; }
.helm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px 14px; }
.helm-tile { display: block; color: inherit; text-decoration: none; min-width: 0; }
a.helm-tile:hover .helm-tile-value, a.helm-tile:focus-visible .helm-tile-value { text-decoration: underline; text-decoration-color: var(--shell-line-strong); text-underline-offset: 4px; }
a.helm-tile:focus-visible { outline: none; }
.helm-tile-label { font-size: var(--fs-1); color: var(--shell-fg-dim); }
.helm-tile-value { margin-top: 2px; font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--shell-fg-bright); }
.helm-tile-value.is-none { color: var(--shell-fg-faint); }
.helm-tile-note { margin-top: 3px; font-size: var(--fs-0); line-height: 1.4; color: var(--shell-fg-dim); }
.helm-tile-note .helm-light { margin-right: 5px; vertical-align: 0; }
.helm-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.helm-section-head h2 { margin: 0; font-size: var(--fs-4); font-weight: 600; color: var(--shell-fg-bright); }
.helm-section-sub { margin: 4px 0 12px; font-size: var(--fs-1); line-height: 1.5; color: var(--shell-fg-dim); }
.helm-more { font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--shell-fg-dim); text-decoration: none; white-space: nowrap; }
.helm-more:hover, .helm-more:focus-visible { color: var(--shell-fg-bright); outline: none; }
.helm-more::after { content: " →"; }
.helm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.helm-table th { padding: 7px 10px; text-align: left; font-family: var(--font-mono); font-size: var(--helm-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-fg-dim); border-bottom: 1px solid var(--shell-line-strong); white-space: nowrap; }
.helm-table td { padding: 9px 10px; border-bottom: 1px solid var(--shell-line); vertical-align: top; }
.helm-table th:first-child, .helm-table td:first-child { padding-left: 0; }
.helm-table th:last-child, .helm-table td:last-child { padding-right: 0; }
.helm-table .is-number { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.helm-table tr.is-group th { padding-top: 16px; font-size: var(--fs-1); color: var(--shell-fg-bright); letter-spacing: .1em; }
.helm-table tr.is-headline td { background: var(--shell-raised-2); }
.helm-table tr:last-child td { border-bottom: none; }
.helm-scroll { overflow-x: auto; }
.helm-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.helm-detail { display: block; margin-top: 3px; font-size: var(--fs-1); color: var(--shell-fg-dim); line-height: 1.45; }
.helm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.helm-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--shell-fg); background: var(--shell-raised-2); border: 1px solid var(--shell-line); text-decoration: none; white-space: nowrap; }
.helm-pill:hover, .helm-pill:focus-visible { color: var(--shell-fg-bright); border-color: var(--shell-line-strong); outline: none; }
.helm-pill.is-late { border-color: rgba(var(--color-orange-rgb), .42); }
.helm-chart { display: block; width: 100%; height: auto; overflow: visible; }
.helm-chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--trim-dim); }
.helm-chart .helm-chart-grid { stroke: rgba(var(--trim-rgb), .11); stroke-width: 1; }
.helm-chart .helm-chart-base { stroke: rgba(var(--trim-rgb), .3); stroke-width: 1; }
.helm-chart .helm-chart-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.helm-chart .helm-chart-pace { stroke: var(--series-1); stroke-width: 2; stroke-dasharray: .1 6; stroke-linecap: round; }
.helm-chart .helm-chart-need { stroke: var(--trim-dim); stroke-width: 1; }
.helm-chart .helm-chart-today { stroke: var(--shell-line-strong); stroke-width: 1; }
.helm-chart .helm-chart-dot { fill: var(--series-1); stroke: #161616; stroke-width: 2; }
.helm-chart .helm-chart-goal { fill: #161616; stroke: var(--trim-bright); stroke-width: 1.5; }
.helm-chart .helm-chart-post { fill: var(--trim-bright); }
.helm-chart .helm-chart-label { font-family: var(--font-sans); font-size: 11px; fill: var(--shell-fg-bright); }
.helm-chart .helm-chart-label.is-dim { fill: var(--trim-dim); }
.helm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 6px; padding: 0; list-style: none; font-size: var(--fs-1); color: var(--shell-fg); }
.helm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.helm-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--series-1); }
.helm-key.is-dots { height: 0; background: none; border-top: 2px dotted var(--series-1); }
.helm-key.is-need { height: 1px; background: var(--trim-dim); }
.helm-key.is-box { width: 10px; height: 10px; border-radius: 2px; }
.helm-key.is-post { width: 7px; height: 7px; border-radius: 50%; background: var(--trim-bright); }

/* Forms on a helm page: the console's own fields, in rows that wrap. */
.helm-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.helm-form .console-field .console-input { min-width: 0; }
.helm-form.is-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); align-items: end; }
.helm-form .is-wide { grid-column: 1 / -1; }
.helm-form-note { margin: 8px 0 0; font-size: var(--fs-1); color: var(--shell-fg-dim); line-height: 1.5; }
.helm-fieldset { margin: 0; padding: 12px; border: 1px solid var(--shell-line); border-radius: var(--r-2); }
.helm-fieldset legend { padding: 0 6px; font-size: var(--fs-1); color: var(--shell-fg-dim); }
.helm-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; margin: 0; font-size: var(--fs-2); }
.helm-kv dd { margin: 0; text-align: right; color: var(--shell-fg-bright); }
.helm-token { margin: 10px 0 0; padding: 10px 12px; font-family: var(--font-mono); font-size: var(--fs-1); color: var(--shell-fg-bright); background: var(--bg-dark); border: 1px solid rgba(var(--color-yellow-rgb), .45); border-radius: var(--r-2); overflow-wrap: anywhere; user-select: all; }

/* ── Distribution and propaganda: every product's, side by side ── */

.helm-matrix { display: grid; min-width: 1080px; font-size: var(--fs-2); }
.helm-matrix > * { padding: 11px 10px; border-bottom: 1px solid var(--shell-line); }
.helm-matrix > .is-head { font-family: var(--font-mono); font-size: var(--helm-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-fg-dim); border-bottom-color: var(--shell-line-strong); }
.helm-matrix .is-number { text-align: right; }
.helm-matrix .is-sum { background: var(--shell-raised-2); }
.helm-cell-open { display: block; font-size: var(--fs-0); }
.helm-cell-value { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 15px; color: var(--shell-fg-bright); text-decoration: none; }
a.helm-cell-value:hover, a.helm-cell-value:focus-visible { text-decoration: underline; outline: none; }
.helm-cell-light { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

/* ── Sources ── */

.helm-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.helm-ways > div { padding: 14px 16px; background: var(--shell-raised); border: 1px solid var(--shell-line); border-radius: var(--r-3); }
.helm-ways > div.is-held { border-color: rgba(var(--color-orange-rgb), .4); }
.helm-run { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.helm-run li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.helm-run .console-spinner { margin-top: 3px; }
.helm-tick { width: 16px; height: 16px; margin-top: 2px; color: var(--helm-good); }
.helm-cross { width: 16px; height: 16px; margin-top: 2px; color: var(--helm-down); }
.helm-reader { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--shell-line); }
.helm-reader:first-of-type { border-top: none; }
.helm-reader-name { font-weight: 600; color: var(--shell-fg-bright); }
.helm-reader-meta { margin-top: 3px; font-size: var(--fs-1); color: var(--shell-fg-dim); line-height: 1.5; }
.helm-reader-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.helm-reader-actions .console-button { height: 30px; font-size: var(--fs-1); }
.helm-reader-form { grid-column: 1 / -1; margin-top: 6px; padding: 12px; border: 1px solid var(--shell-line); border-radius: var(--r-2); background: var(--bg-dark); }
.helm-reader-form textarea.console-input { height: 96px; font-family: var(--font-mono); font-size: var(--fs-1); padding: 8px 10px; resize: vertical; }

/* ── Lines a form says, and banners that are not alarms ── */

.helm-said { font-size: var(--fs-1); color: var(--helm-good); }
.helm-said.is-bad { color: var(--helm-down); }
.console-banner.is-ok { background: rgba(var(--color-green-rgb), .08); border-color: rgba(var(--color-green-rgb), .4); }
.console-banner.is-held { background: rgba(var(--color-yellow-rgb), .08); border-color: rgba(var(--color-yellow-rgb), .45); }
.helm-section { margin-bottom: 16px; }
.helm-section.is-held { border-color: rgba(var(--color-yellow-rgb), .38); }
.helm-section h3, .helm-setup-head { margin: 18px 0 8px; font-size: var(--fs-2); font-weight: 600; color: var(--shell-fg-bright); }
.helm-section .helm-section-head h3 { margin: 0; }
.helm-part { margin: 28px 0 12px; font-size: var(--fs-4); font-weight: 600; color: var(--shell-fg-bright); }
.helm-tile-value small, .helm-studio-value small { font-size: var(--fs-2); font-weight: 400; color: var(--shell-fg-dim); }

/* ── A product's page ── */

.helm-link::after { content: " ↗"; color: var(--shell-fg-dim); }
.helm-needs.is-page { gap: 8px; font-size: var(--fs-2); }
.helm-list.is-page { font-size: var(--fs-2); }
.helm-bf.is-page { margin-top: 16px; padding-top: 14px; }
.helm-expects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 20px; margin-bottom: 14px; }
.helm-expect-item { padding: 12px 14px; border: 1px solid var(--shell-line); border-radius: var(--r-2); background: var(--shell-raised-2); }
.helm-expect-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.helm-expect-name { font-weight: 600; }
.helm-expect-item .helm-meter { margin-top: 7px; }
.helm-expect-actions { margin-top: 6px; gap: 4px 6px; }
.helm-expect-actions .console-button { height: 28px; font-size: var(--fs-1); }
.helm-more-form { margin-top: 12px; }
.helm-more-form > summary, .helm-setup > summary { cursor: pointer; color: var(--shell-fg); font-size: var(--fs-2); padding: 6px 0; }
.helm-more-form > summary:hover, .helm-setup > summary:hover { color: var(--shell-fg-bright); }
.helm-more-form[open] > summary { margin-bottom: 10px; }
.helm-setup { border-top: 1px solid var(--shell-line); }
.helm-setup > summary { display: flex; align-items: center; gap: 8px; padding: 9px 0; }
.helm-setup[open] { padding-bottom: 14px; }
.helm-check { flex-direction: row; align-items: center; }
.helm-check .console-row { gap: 8px; color: var(--shell-fg); }
.helm-check input { width: 15px; height: 15px; accent-color: var(--trim-bright); }
.helm-figure-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.helm-figure-cell { display: grid; gap: 1px; min-width: 0; }
.helm-figure-cell > a { display: flex; flex-direction: column; }
.helm-figure-name { font-size: var(--fs-1); color: var(--shell-fg-dim); }
.helm-figure-value { font-size: 18px; color: var(--shell-fg-bright); }
.helm-brand > div > .console-lede:first-child { margin-top: 0; }
.helm-chart-post { fill: var(--trim-bright); }
.viz-bar.is-down { fill: var(--diverging-minus); }

/* ── The boards: a product a row, a store or a network a column ── */

.helm-board { margin: 0 0 16px; }
.helm-board .helm-section-head { margin-bottom: 0; }
.helm-board-table th, .helm-board-table td { vertical-align: top; }
.helm-board-table tbody th { padding: 12px 10px 12px 0; font-size: var(--fs-2); font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--shell-line); }
.helm-board-table tfoot th, .helm-board-table tfoot td { padding-top: 12px; border-top: 1px solid var(--shell-line-strong); border-bottom: none; }
.helm-col-head { min-width: 120px; }
.helm-col-head .helm-lamp { gap: 7px; }
.helm-cell { min-width: 120px; font-size: var(--fs-1); }
.helm-cell.is-held { background: rgba(var(--color-yellow-rgb), .05); }
.helm-cell.is-down { background: rgba(var(--color-red-rgb), .07); }
.helm-cell.is-empty { text-align: center; }
.helm-cell .helm-state { gap: 7px; }
.helm-cell .helm-out { color: var(--shell-fg); }
.helm-cell-word { font-family: var(--font-sans); font-size: var(--fs-0); color: var(--shell-fg-dim); }
.helm-cell-entry + .helm-cell-entry { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--shell-line); }
.helm-how { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: var(--fs-2); }
.helm-how dt { color: var(--shell-fg-bright); font-weight: 500; }
.helm-how dd { margin: 0; color: var(--shell-fg-dim); line-height: 1.5; }

/* ── Sources ── */

.helm-form.is-inline { flex-wrap: nowrap; gap: 6px; align-items: center; }
.helm-type.console-input { width: 120px; min-width: 0; height: 30px; }
.helm-form.is-inline .console-button { height: 30px; }
.helm-browser { margin-bottom: 14px; }
.helm-browser:empty { display: none; }
.helm-reader-line { grid-column: 1 / -1; }
.helm-reader-line:has(> [hidden]) { display: none; }
.helm-reader-form-slot { grid-column: 1 / -1; }
.helm-reader-form-slot:empty { display: none; }


/* Second pass: the product page's tables, the links row, the boards' details. */
.helm-links-label { align-self: center; margin: 0 2px 0 10px; }
.helm-dist-table td:first-child { width: 24%; }
.helm-dist-table td:nth-child(2) { width: 30%; }
.helm-dist-table code, .helm-detail code { font-family: var(--font-mono); font-size: .95em; color: var(--shell-fg); }
.helm-figure-cells { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.helm-table .console-button { height: 26px; padding: 0 9px; font-size: var(--fs-1); }
.helm-table td:has(> .console-button) { vertical-align: middle; }
.helm-table tr.is-group th, .helm-table tr.is-group td { border-bottom: 1px solid var(--shell-line-strong); }
.helm-chart-card { margin: 0 0 16px; }
.helm-cell .helm-detail { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* The phone's own: the products as a line each, before the cards. */
.helm-phone-list, .helm-phone-only { display: none; }
.helm-phone-list { margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid var(--shell-line); border-radius: var(--r-3); background: var(--shell-raised); }
.helm-phone-list li + li { border-top: 1px solid var(--shell-line); }
.helm-phone-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.helm-phone-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--shell-fg-bright); }
.helm-phone-figure { font-size: 18px; font-weight: 600; color: var(--shell-fg-bright); }
.is-collapsed .signal-stream-select { display: none; }

@media (max-width: 720px) {
  /* The range first, on a line of its own, then the pills: a phone has no corner to put it in. */
  .helm-top > .signal-filters { order: -1; flex: 1 1 100%; margin-left: 0; }
  .helm-top > .helm-chips { flex-basis: 100%; min-height: 0; }
  .helm-top > .helm-chips:empty { display: none; }
  .helm-phone-list { display: block; }
  .helm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .helm-tile-value { font-size: 20px; }
  .helm-phone-only { display: inline; }
  .console .signal-stream-select, .console .signal-nav-label { display: none; }
  .helm-pill { display: block; white-space: normal; height: auto; min-height: 24px; padding: 5px 11px; line-height: 1.45; border-radius: var(--r-2); }
  .helm-pill .helm-light { margin-right: 7px; vertical-align: 0; }
  .helm-big { font-size: 44px; }
  .helm-card { grid-row: auto; display: block; }
  .helm-studio-value { font-size: 24px; }
  .helm-how { grid-template-columns: 1fr; gap: 2px 0; }
  .helm-how dd { margin-bottom: 8px; }
  .helm-reader { grid-template-columns: 1fr; }
  .helm-reader-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .helm-cols-hit, .helm-pill { transition: none; }
}
