/* All sites (/): this page's own rules, loaded after app.css.
 *
 * 14 Nov 2026, Elie, over four tries in a day: "too crowded", the site names "repeated 3 times", "the
 * revenue numbers seem low". So: three instruments for every site together, then one board, each site
 * named once, a column per question on one scale for every site, what needs a person under its own
 * line. The shared components (the title line, figures ov-figs / ov-f-*, lights ov-light and the tones
 * ov-s-*, the three tones of the chart hue ov-g1..3, the service chip ov-esp, the line ov-ln*, the
 * change ov-chg, the pips ov-pips) live in app.css with one name each: used here, never redefined.
 * Every colour is a token from the top of app.css, so each has its dark value. Every class of this
 * page starts with all-. Text is never in the chart's colour: a swatch beside it says which part. */

/* ─── The title line: whether anything needs a person ─── */

.all-state { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 0; margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.all-state b { display: inline-flex; align-items: center; gap: 5px; align-self: center; font-size: 13px; font-weight: 600; }
.all-state .all-bad { color: var(--bad); }
.all-state .all-ok { color: var(--ink-2); }

/* The period (16 Nov 2026): the site's page's control, at the end of the title line. */
.all-period { display: inline-flex; margin-left: 14px; }

/* ─── Three instruments for every site together ─── */

.ov-figs.all-figs { --n: 3; margin-top: 16px; }
.all-figs .ov-f-h { min-height: 0; }
.all-bstate { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.all-bstate.ov-s-ok { color: var(--ok); }
.all-bstate.ov-s-bad { color: var(--bad); }
.all-viz { position: relative; height: 56px; }
.all-viz .ov-ln { height: 56px; max-width: none; margin-top: 0; }

/* What the sites made a day: a column a day from zero, in three parts (these lists' emails at the
   bottom), 2px of surface between parts; the days not yet final lighter; a day not read empty, never $0. */
.all-days { display: flex; align-items: flex-end; gap: 2px; height: 100%; border-bottom: 1px solid var(--line-2); }
.all-day { display: flex; flex: 1 1 0; flex-direction: column; gap: 2px; min-height: 1px; }
.all-day > i { flex-basis: 0; min-height: 1px; }
.all-day > i:first-child { border-radius: 2px 2px 0 0; }
.all-day.is-new { opacity: 0.45; }
.all-day.all-none { height: 100%; }
/* The dates at both ends, and under the columns the days the figure covers. */
.all-axis { position: relative; display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }
.all-win { position: absolute; top: -3px; height: 2px; border-radius: 1px; background: var(--ink-3); }

/* An instrument's figure and change on the left, its key on the right: each part with its amount. */
.all-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.all-top > div { min-width: 0; }
.all-key { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; font-size: 12px; color: var(--ink-3); }
.all-key .ov-k { gap: 6px; }
.all-key .ov-k b { min-width: 40px; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.all-figs .all-viz { margin-top: 14px; }

/* Bringing back before it starts: everyone still subscribed, those on a daily list in the chart hue. */
.all-share { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; height: 12px; }
.all-share > i { min-width: 2px; }
.all-share > i:first-child { border-radius: 3px 0 0 3px; }
.all-share > i:last-child { border-radius: 0 3px 3px 0; }
/* Once it runs: who came back, mailed against kept back, on one scale. */
.all-came { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.all-came-h { font-size: 11.5px; color: var(--ink-3); }
.all-came-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; column-gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.all-came-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-came-b { height: 8px; }
.all-came-b > i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; }
.all-came-r b { justify-self: end; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.all-kept { background: var(--mark-2); }

/* A long period: the columns sit closer, never under a pixel. */
.all-days.all-dense { gap: 1px; }
.all-days.all-dense .all-day { gap: 1px; }

/* ─── Services: a row per email service (16 Nov 2026) ─── */

.all-svcs { margin-top: 28px; scroll-margin-top: 72px; }
.all-sh { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; }
.all-sh h2 { margin: 0; font-size: 15px; font-weight: 600; }
.all-sh .said { margin: 0; }
/* The costs a person sets: a quiet control at the head's end, a pop-over of the shared kind. */
.all-costs { position: relative; margin-left: auto; }
.all-costs > summary { list-style: none; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.all-costs > summary::-webkit-details-marker { display: none; }
.all-costs > summary:hover, .all-costs[open] > summary { color: var(--ink); background: var(--bg-2); }
.all-cost-form { width: 220px; }
.all-cost-form .field { display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; column-gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.all-cost-form input { width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; text-align: right; box-shadow: inset 0 0 0 1px var(--line-2); }
.all-cost-form .act { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

/* A row: the service, then a figure a column; dollars on one scale (the bar), rates as figures only. */
.all-svc {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 76px minmax(96px, 1.2fr) 84px 84px 84px 74px 84px 84px 90px;
  column-gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.all-svc-h { padding: 0 0 8px; border-top: 0; font-size: 12.5px; font-weight: 550; color: var(--ink-2); align-items: end; }
.all-svc-h + .all-svc { border-top-color: var(--line-2); }
.all-svcs .all-svc:last-child { border-bottom: 1px solid var(--line); }
.all-n { text-align: right; white-space: nowrap; min-width: 0; }
.all-sv-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.all-sv-name b { font-weight: 600; }
.all-sv-name small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.all-top-mark { align-self: center; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: var(--accent-wash, var(--bg-2)); }
.all-sv-mon { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.all-sv-mon b { font-weight: 600; }
.all-profit b { font-weight: 600; }
.all-profit.is-neg b { color: var(--bad); }

/* ─── The board: one line per list, each site named once ─── */

.all-board { margin-top: 28px; border-bottom: 1px solid var(--line); }

/* A line: the site's row, and under it anything that needs a person about it. The hairline keeps to
   the page's edges; the hover wash and the red edge reach 12px past them. */
.all-line { position: relative; margin: 0 -12px; padding: 0 12px; }
.all-line::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; border-top: 1px solid var(--line); }
.all-rh + .all-line::before { border-top-color: var(--line-2); }
.all-line.ov-s-bad { box-shadow: inset 2px 0 0 var(--bad); }
.all-line:hover { background: var(--bg-2); }
.all-line:hover .ov-ln-dot { box-shadow: 0 0 0 2px var(--bg-2); }
/* A site's second list joins its first: no hairline between them. */
.all-line.all-more { margin-top: -8px; }
.all-line.all-more::before { display: none; }

/* Health is wide enough for its longest word and a count of the others ("Unsubscribes +2"). */
.all-r {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 136px 96px 116px 124px 80px;
  column-gap: 22px;
  align-items: start;
  padding: 14px 0;
}
.all-rh { align-items: end; margin: 0 -12px; padding: 0 12px 8px; }
.all-h { display: block; font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }

/* The site: its light, icon and name; under it where Sender Pilot stands with it. */
.all-site { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.all-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 600; }
/* A name is never cut: a long one ("Things You Didn't Know") takes a second line (Elie's rule, round three). */
.all-nm { min-width: 0; overflow-wrap: anywhere; }
a.all-name:hover .all-nm { color: var(--accent); }
.all-gap { flex: none; width: 18px; }
.all-stage { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 46px; font-size: 12.5px; white-space: nowrap; }
/* Its pips go under the word when the column is narrow, never over the money beside it (seen at 1085, round three). */
.all-stage { flex-wrap: wrap; row-gap: 4px; }
.all-word { font-weight: 550; color: var(--ink-2); }
a.all-stage:hover .all-word { color: var(--accent); }
.all-of { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.all-stale .all-word { color: var(--bad); }

/* A column: its figure and change on the first line, its picture on one scale for every site under it. */
.all-c { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.all-fig { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.all-v { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.all-v small { margin-left: 1px; font-size: 0.72em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.all-v.all-dash { font-weight: 400; color: var(--ink-3); }
.all-v.all-q { font-weight: 500; color: var(--ink-2); }
a.all-c:hover .all-v { color: var(--accent); }
.all-new { font-size: 12px; color: var(--ink-3); }
.all-low .all-v, .all-low .all-new { color: var(--warn); }

/* A bar from zero on one scale for every site: dollars (the emails' part, then the rest), a click
   rate, who came back (the tick: the kept-back tenth's rate). 2px of surface between parts. */
.all-bar { position: relative; display: flex; gap: 2px; height: 6px; }
.all-bar > i { display: block; min-width: 2px; height: 100%; }
.all-bar > i:first-child { border-radius: 3px 0 0 3px; }
.all-bar > i:last-child { border-radius: 0 3px 3px 0; }
.all-bar > i:only-child { border-radius: 0 3px 3px 0; }
.all-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }

/* A list's health: a word (quiet when normal) over three small meters, complaints, bounces and
   unsubscribes, each grey to its watch line (the tick), amber above it, red at its alarm. */
/* Normal: no word, only the meters; the blank keeps them on the line of the other columns' bars. */
.all-blank::before { content: "\00a0"; }
.all-hl-warn .all-v { color: var(--warn); }
.all-hl-bad .all-v { color: var(--bad); }
.all-hm { display: flex; gap: 3px; height: 6px; }
.all-hm-m { position: relative; flex: 1; border-radius: 3px; background: var(--line); }
.all-hm-m > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--line-2); }
.all-hm-m.ov-s-warn > i { background: var(--warn); }
.all-hm-m.ov-s-bad > i { background: var(--bad); }
.all-hm-m::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); opacity: 0.55; }

/* The daily list's line, on its own scale, under its figure. */
.all-trend { display: block; }
.all-trend .ov-ln, .all-trend .ov-none { height: 22px; max-width: none; margin-top: 0; }

/* A list that is not reading: its figures are as of its last read, so they are quiet. */
.all-stale .all-v, .all-stale .all-v small, .all-stale .ov-chg { color: var(--ink-3); font-weight: 500; }
.all-stale .ov-ln, .all-stale .all-bar { opacity: 0.4; }
/* A list Sender Pilot only reads: nothing of it waits for a person, so its word is never red: grey when it is not
   connected, amber when its read stopped (Offline). */
.all-ro.all-stale .all-word { color: var(--ink-3); }
.all-ro.ov-s-warn .all-word { color: var(--warn); }

/* ─── What needs a person about a site, under its line: what, when, what to do there (a reason, if any, in its tip) ─── */

.all-items { margin: -6px 0 0; padding: 0 0 12px 46px; list-style: none; }
.all-need {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  grid-template-areas: "what when act";
  column-gap: 18px;
  align-items: center;
  min-height: 26px;
  font-size: 12.5px;
}
.all-need-what { grid-area: what; display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--bad); }
.all-need-what > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-need.all-warn .all-need-what { color: var(--warn); font-weight: 550; }
.all-need-when { grid-area: when; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.all-need-act { grid-area: act; display: inline-flex; align-items: center; gap: 2px; justify-self: end; font-weight: 600; color: var(--accent); white-space: nowrap; }
.all-need:hover .all-need-act { text-decoration: underline; }

/* ─── 960 and under: the title's state on its own line; each line's site above its six figures ─── */
@media (max-width: 960px) {
  .all-state { flex-basis: 100%; margin-left: 0; }
  .ov-figs.all-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .ov-figs.all-figs .ov-f:nth-child(3) { padding-left: 20px; border-left: 1px solid var(--line); }
  .all-top { flex-direction: column; }
  .all-key { margin-top: 6px; }
  .all-r { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; row-gap: 10px; }
  .all-site { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
  .all-rh .all-site { display: none; }
  .all-stage { padding-left: 0; }
  .all-mon .ov-chg { display: none; }
  .all-items { padding-left: 28px; }
  .all-need { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what act" "when when"; row-gap: 1px; padding: 3px 0; }
  .all-period { flex-basis: 100%; margin-left: 0; }
  /* Services: the name over its nine figures, in two rows. */
  .all-svc { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px; }
  .all-sv-name { grid-column: 1 / -1; }
  .all-svc-h > span:first-child { display: none; }
  .all-n { text-align: left; }
}

/* ─── 640 and under: the instruments stack; each line's figures go two rows of three under its name ─── */
@media (max-width: 640px) {
  .ov-figs.all-figs { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .ov-figs.all-figs .ov-f, .ov-figs.all-figs .ov-f:nth-child(3) { padding-left: 0; border-left: 0; }
  .all-top { flex-direction: row; }
  .all-rh { display: none; }
  .all-r { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .all-site { flex-direction: column; align-items: flex-start; gap: 5px; }
  .all-stage { padding-left: 28px; }
  .all-c::before { content: attr(data-h); font-size: 11.5px; color: var(--ink-3); }
  .all-c:empty { display: none; }
  .all-mon .ov-chg { display: inline-flex; }
  .all-fig { flex-wrap: wrap; row-gap: 2px; }
  .all-items { padding-left: 0; }
  /* Services: each figure under its own label, three a row. */
  .all-svc-h { display: none; }
  .all-svc { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .all-svc > [data-h]::before { content: attr(data-h); display: block; font-size: 11.5px; color: var(--ink-3); }
}
