/* Torque console: dark, one green accent (the mockup's look). The brand's typefaces (guideline
   v0.3) are served from this origin (static/fonts, font-src 'self'): nothing leaves the machine.
   Tones match the website's: green (ok) is growth and done, red (stop) needs action
   now, amber (warn) is caution that may need action later; blue (live) is in progress. */
@font-face { font-family: "Archivo"; src: url(/static/fonts/Archivo-latin.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/static/fonts/JetBrainsMono-latin.woff2) format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
  --bg: #000; --panel: #000; --card: #0b0d0c; --line: #232a26; --line2: #1a201d;
  --text: #e9f1ec; --muted: #9db0a5; --dim: #83968b;
  /* The dark green frame around the page (sidebar and top bar) around a black content panel.
     --frame-line is 3.3:1 on the frame, enough for a boundary. */
  --frame: #0e1812; --frame-line: #53705f;
  --accent: #3bd67f; --accent-soft: #7fe0b2; --on-accent: #04170c;
  --ok: #7fe0b2; --ok-bg: #10261c; --ok-line: #21a058;
  --live: #9ccbff; --live-bg: #0f1d2c; --live-line: #2b4e73;
  --warn: #ffc889; --warn-bg: #24180b; --warn-line: #d36e09;
  --stop: #ff9592; --stop-bg: #2a1214; --stop-line: #e23238;
  /* Growth accounting's four states, the same on every page and in the readout's charts
     (torque.readout.charts.STATE_COLORS): churned red, new green, retained blue, resurrected
     purple. */
  --st-retained: #3987e5; --st-new: #21a058; --st-resurrected: #9085e9; --st-churned: #e5484d;
  /* Revenue adds two: expansion is a lighter green beside new, contraction an amber beside churned. */
  --st-expansion: #6fd29b; --st-contraction: #f0a63a; --st-net: #e6e8ec;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--frame); color: var(--text);
  font: 14px/1.45 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-soft); }
a:hover { color: #b8f3d2; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
/* Headings and the big numbers are Archivo Expanded (width 112), as the guideline says. */
h1, h2, h3, .giant, .big, .medium { font-stretch: 112%; }
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 232px; max-width: 248px; padding: 14px 10px 20px; display: flex;
  flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: flex-start;
  height: 100vh; overflow-y: auto; }
/* The logo (the emblem and the wordmark, brand kit v0.3) is a background, so the page holds no
   <img>: the readout test treats an <img> in the page as raw HTML getting through. */
.brand { display: block; flex: none; width: 177px; height: 35px; margin: 2px 10px 14px 6px;
  background: url(/static/logo.svg) no-repeat left center / contain; }
.nav { display: flex; align-items: center; min-height: 36px; padding: 7px 10px; border-radius: 8px;
  color: #d9dce0; text-decoration: none; }
.nav:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
/* The grey fill alone is faint on the dark frame, so the active item also gets a green bar. */
.nav.on { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav.off { color: var(--dim); }
.nav.parent { justify-content: space-between; }
.arrow { width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent var(--dim); }
.navgroup[open] > summary .arrow { border-width: 7px 4.5px 0 4.5px; border-color: var(--dim) transparent transparent; }
.navgroup > summary { cursor: pointer; list-style: none; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary .grow { color: inherit; text-decoration: none; }
.sub { display: flex; flex-direction: column; gap: 2px; margin-left: 14px; padding-left: 6px;
  border-left: 1px solid var(--frame-line); }
.sub .nav { min-height: 32px; font-size: 14px; }
.grp { font-size: 12px; color: var(--dim); padding: 16px 10px 6px; }
.switch { margin-top: 10px; border: 1px solid var(--frame-line); border-radius: 8px; }
.switch summary { cursor: pointer; padding: 8px 10px; color: #fff; list-style: none;
  display: flex; justify-content: space-between; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary::after { content: "Switch"; font-size: 12px; color: var(--dim); }
.switch[open] summary::after { content: "Close"; }
.switch .nav { margin: 0 4px 4px; }
/* The links sit straight in the sidebar when it is wide; narrow, they fold behind the Menu button
   (templates/base.html: a checkbox and its label, no script). */
.links { display: contents; }
.menu-check, .menu-btn { display: none; }
.side .note { margin-top: auto; padding: 18px 10px 0; font-size: 12px; color: var(--dim); }
.side .note + .note { margin-top: 0; padding-top: 6px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 0 16px; flex-wrap: wrap; }
.main { flex: 1; background: var(--panel); border: 1px solid #1c2420; border-right: 0;
  border-bottom: 0; border-radius: 16px 0 0 0; }
.page { padding: 28px 32px 48px; max-width: 1180px; margin: 0 auto; display: flex;
  flex-direction: column; gap: 20px; }
.page.tight { padding-bottom: 0; }
/* The sign-in page's heading sits on the card's own grid, not the panel's edge */
.hero { padding: 28px 32px 0; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column;
  gap: 8px; }
.hero + .page.tight { padding-top: 16px; }
h1 { font-size: 26px; font-weight: 600; margin: 0; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.banners { gap: 12px; }
.banners[hidden], .banner[hidden], .banner-close[hidden] { display: none; }
/* Home's closable banners (banners.py): a card with an X at its top right. */
.banner { position: relative; }
.banner.welcome { text-align: center; padding: 28px 56px; }
.banner.welcome h1 { font-size: 30px; letter-spacing: -0.02em; }
.banner.welcome p { color: var(--muted); margin: 8px 0 0; }
.banner.synth { padding-right: 48px; }
.banner-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px;
  line-height: 1; cursor: pointer; }
.banner-close:hover, .banner-close:focus-visible { color: var(--text);
  background: rgba(255, 255, 255, 0.08); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.refreshed { gap: 8px; }
/* Events & Funnels' reload button: a plain link to the same page. */
.refresh { display: inline-flex; align-items: center; justify-content: center; width: 32px;
  height: 32px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.refresh:hover { color: var(--text); border-color: #333a36; }
.refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
/* Growth's overview: the active users, the one number the page is about, large with its shape
   over time; the quick ratio and the four states it is made of sit to its right, smaller. */
.grid.spot { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid.spot .lead { padding: 26px 30px; display: flex; flex-direction: column; }
.grid.spot .lead .kicker { font-size: 13px; }
.giant { font-size: 88px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 10px; }
.grid.spot .lead .muted { font-size: 15px; margin: 0 0 18px; }
.grid.spot .lead .spark { margin-top: auto; max-width: none; }
.delta.gain { color: var(--st-new); font-weight: 600; }
.delta.loss { color: var(--st-churned); font-weight: 600; }
.medium { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.part-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0; }
.part-top .spark { width: 45%; }
.made { list-style: none; margin: 8px 0 0; padding: 0; }
.made li { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; align-items: center;
  gap: 12px; padding: 6px 0; border-top: 1px solid var(--line2); }
.made li:first-child { border-top: 0; }
.made .part { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--dim); display: inline-block; }
.swatch.retained { background: var(--st-retained); }
.swatch.new { background: var(--st-new); }
.swatch.resurrected { background: var(--st-resurrected); }
.swatch.churned { background: var(--st-churned); }
.made .num { font-variant-numeric: tabular-nums; text-align: right; }
.made .spark { width: 84px; }
/* The same list for readings with no line of their own: a label, its value, and a note. */
.made.plain li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.made.plain .note { grid-column: 1 / -1; margin: 0 0 4px; }
.made a.part { color: var(--muted); text-decoration: none; }
.made a.part:hover { color: var(--text); }
/* A sparkline: a measure's shape only, no axes (charts.sparkline); the hero's also has a soft
   fill. It scales to its box, in the colour of its state. */
.spark { display: block; width: 100%; height: auto; max-width: 180px; margin-top: 8px; overflow: visible; }
.spark path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark path.warmup { opacity: .35; }
.spark.tile { max-width: none; }  /* a tile's line runs the card's whole width */
.spark.active { color: var(--accent); }
.spark.ratio { color: var(--text); }
.spark.retained { color: var(--st-retained); }
.spark.new { color: var(--st-new); }
.spark.resurrected { color: var(--st-resurrected); }
.spark.churned { color: var(--st-churned); }
.spark path.line { stroke: currentColor; }
.spark path.fill { fill: currentColor; stroke: none; opacity: .14; }
.spark circle.end { fill: currentColor; stroke: var(--card); stroke-width: 2; }
.made .spark, .part-top .spark { margin-top: 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .grid.spot, .grid.three, .grid.two, .grid.four { grid-template-columns: minmax(0, 1fr); }
  .giant { font-size: 56px; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; min-width: 0; }
.card.link { color: inherit; text-decoration: none; display: block; }
.card.link:hover { border-color: #333a36; }
.kicker { font-size: 12px; color: #96aca0; letter-spacing: 0.04em; text-transform: uppercase; }
.big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.reply .flag { margin: 10px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.small { font-size: 13px; }
.statuses { list-style: none; padding: 0; margin: 8px 0; }
.statuses li { margin: 8px 0; }
.statuses .tag { margin-right: 6px; }
nav.statuses { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 12px 0; }
nav.statuses .tag { margin-right: 0; }
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--muted); }
a.tag.on { outline: 2px solid currentColor; outline-offset: 1px; }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; border: 1px solid #333a36; color: #d4ddd8;
  white-space: nowrap; }
.tag.ok { border-color: var(--ok-line); color: var(--ok); background: var(--ok-bg); }
.tag.live { border-color: var(--live-line); color: var(--live); background: var(--live-bg); }
.tag.warn { border-color: var(--warn-line); color: var(--warn); background: var(--warn-bg); }
.tag.stop { border-color: var(--stop-line); color: var(--stop); background: var(--stop-bg); }
.tag.synth { border-color: var(--warn-line); color: var(--warn); background: var(--warn-bg);
  font-weight: 600; vertical-align: middle; }
.card.synth { border-color: var(--warn-line); background: var(--warn-bg); }
.composer { max-width: 860px; margin: 0 auto; width: 100%; background: #0b0d0c;
  border: 1px solid #2a312e; border-radius: 22px; padding: 14px 16px 12px; }
/* The chat as a footer (_ask.html): the last thing in the page's panel, stuck to the bottom of the
   window while the page scrolls, and at the bottom of the panel when the page is short. The answer
   card draws above the box (column-reverse; the box comes first in the source) and so opens
   upward, on top of the page; its summary folds it. */
.main:has(.askbar) { display: flex; flex-direction: column; }
.main:has(.askbar) > .page { width: 100%; }
.askbar { position: sticky; bottom: 0; z-index: 30; margin-top: auto; padding: 10px 32px 14px;
  background: var(--panel); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); }
/* As wide as the page above it: .page is 1180px with 32px of side padding, centred. */
.askbar-in { max-width: 1116px; margin: 0 auto; display: flex; flex-direction: column-reverse;
  gap: 10px; }
.askbar .composer { max-width: none; padding: 10px 14px 10px; }
.askbar .composer .kicker { margin: 0; }
.askbar .info::after { top: auto; bottom: calc(100% + 8px); }
.askbar .answer { margin: 0; padding: 12px 16px; }
.askbar .answer summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer;
  list-style: none; }
.askbar .answer summary::-webkit-details-marker { display: none; }
.askbar .answer summary .kicker { flex: none; margin: 0; }
.askbar .answer summary .q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--text); }
.askbar .answer summary::after { content: "Hide"; flex: none; font-size: 12px;
  color: var(--dim); }
.askbar .answer:not([open]) summary::after { content: "Show answer"; }
.askbar .answer summary:hover::after, .askbar .answer summary:focus-visible::after {
  color: var(--text); }
.askbar .answer summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px;
  border-radius: 6px; }
.askbar .answer .reply {
  max-height: max(22vh, 140px); overflow-y: auto; margin-top: 10px;
}
/* The footer's top edge is the handle that sets the answer's height (ask-footer.js adds it, and
   remembers the height). It only shows while there is an answer to resize. */
.askbar .grip { position: absolute; top: -6px; left: 0; right: 0; height: 14px; cursor: ns-resize;
  touch-action: none; display: none; }
.askbar:has(.answer .reply) .grip { display: block; }
.askbar .grip::after { content: ""; position: absolute; left: 50%; top: 5px; width: 44px; height: 4px;
  margin-left: -22px; border-radius: 2px; background: var(--line); }
.askbar .grip:hover::after, .askbar .grip.held::after, .askbar .grip:focus-visible::after {
  background: var(--muted); }
.askbar .grip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.askbar .answer .reply > .kicker { display: none; }  /* the summary already says it is an answer */
@media (max-width: 720px) {
  .askbar { padding: 8px 16px 10px; }
}
.composer input { width: 100%; min-height: 48px; margin: 6px 0 2px; padding: 10px 14px;
  border: 1px solid #3a423e; border-radius: 12px; background: #1a1d1c;
  color: var(--text); font: inherit; font-size: 16px; }
/* The Ask button sits inside the box, at its right; "Tab to use" shows while the box is focused
   and empty (static/ask-suggest.js adds .tabbable). */
.composer .field { position: relative; margin: 6px 0 2px; }
.composer .field input { margin: 0; padding-right: 92px; text-overflow: ellipsis; }
.composer .field .btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 6px 18px; }
.composer .tab-hint { display: none; position: absolute; right: 88px; top: 50%;
  transform: translateY(-50%); font-size: 12px; color: var(--dim); pointer-events: none; }
.composer.tabbable .field input:focus:placeholder-shown { padding-right: 170px; }
.composer.tabbable .field input:focus:placeholder-shown ~ .tab-hint { display: block; }
@media (max-width: 600px), (hover: none) {
  .composer.tabbable .field input:focus:placeholder-shown { padding-right: 92px; }
  .composer.tabbable .field input:focus:placeholder-shown ~ .tab-hint { display: none; }
}
.composer input:focus { outline: none; border-color: var(--accent); background: #222625; }
.composer input::placeholder { color: var(--dim); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit;
  font-weight: 600; border: 0; text-decoration: none; }
.btn:disabled { background: #1f2322; color: var(--muted); }
.btn.small { min-height: 32px; padding: 6px 14px; font-size: 13px; }
.pick { margin: 6px 0 12px; }
/* The state of an experiment's pull request, in the cell the Open PR button sat in (Insights,
   Experiments). A request that a run has not finished pulses; the row an Open PR click lands on
   on Experiments is marked. */
/* Open PR is one button with a small menu on its edge for how the test is read: two radios in a
   <details>, so it works without script and posts with the button. The row shows only the button. */
form.open-pr { display: inline-flex; align-items: center; white-space: nowrap; }
.pr-split { display: inline-flex; align-items: stretch; }
.pr-split > .btn { border-radius: 999px 0 0 999px; padding-right: 12px; white-space: nowrap; }
.read-menu { position: relative; display: inline-flex; }
.read-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 11px 0 8px; background: var(--accent); color: var(--on-accent);
  border-left: 1px solid rgba(0, 0, 0, .35); border-radius: 0 999px 999px 0; font-size: 11px;
  font-weight: 700; }
.read-menu summary::-webkit-details-marker { display: none; }
.read-menu summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.read-menu .menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; width: 262px;
  padding: 8px 0; background: var(--card); border: 1px solid #333a36; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); font-size: 13px; white-space: normal; }
.read-menu .menu > div { padding: 0 14px 4px; }
.read-menu .menu label { display: flex; gap: 8px; align-items: center; padding: 6px 14px; cursor: pointer; }
.read-menu .menu label:hover { background: #121614; }
.read-menu input { accent-color: var(--accent); }
.scroll:has(.read-menu[open]) { overflow: visible; }
.pr-state .tag.working { animation: pulse 1.6s ease-in-out infinite; }
.btn.working { animation: pulse 1.6s ease-in-out infinite; }
tr:target td { background: #121614; }
@media (prefers-reduced-motion: reduce) { .pr-state .tag.working, .btn.working { animation: none; } }
.signin { text-align: center; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column;
  gap: 8px; }
.steps li::before { content: "○"; display: inline-block; width: 22px; color: var(--dim); }
.steps li.done::before { content: "✓"; color: var(--ok); }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #0b0d0c; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 500; color: #96aca0; font-size: 12px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.on td { background: #121614; }
.card.wide { grid-column: 1 / -1; }
/* An (i) beside a term (render.info): its note shows on hover or keyboard focus, with no script.
   It opens to the left, for a right-hand column; .start opens it to the right, for an (i) at the
   left of its box. A table's .scroll box would clip the note, so it stops clipping while one shows. */
.info { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 5px; vertical-align: -2px; border: 1px solid var(--dim);
  border-radius: 50%; color: var(--dim); font: 600 10px/1 "Archivo", system-ui, sans-serif; cursor: help; }
.info:hover, .info:focus-visible { color: var(--text); border-color: var(--text); outline: 0; }
.info::after { content: attr(data-tip); display: none; position: absolute; top: calc(100% + 8px);
  right: -6px; z-index: 5; width: min(270px, 80vw); padding: 9px 11px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  color: var(--text); font: 400 12.5px/1.45 "Archivo", system-ui, sans-serif; letter-spacing: normal;
  text-align: left; text-transform: none; white-space: pre-line; }
.info.start::after { right: auto; left: -6px; }
.info:hover::after, .info:focus-visible::after { display: block; }
.scroll:has(.info:hover, .info:focus-visible) { overflow: visible; }
h1 .info, h2 .info { vertical-align: 2px; }
/* By event: a checkbox in each event's row opens the rows under it, one per property key (a
   tbody per event, so :has() finds the open ones); a browser without :has() shows them all. */
table.by-event tbody:not(:last-child) tr:last-child td { border-bottom: 1px solid var(--line2); }
td.evname { position: relative; padding-left: 32px; }
.twist { position: absolute; left: 10px; top: 11px; width: 18px; height: 18px; color: var(--dim);
  line-height: 18px; }
.twist input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: pointer; }
.twist .mark::before { content: "\25B8"; }
.twist input:checked + .mark::before { content: "\25BE"; }
.twist:hover { color: var(--text); }
.twist input:focus-visible + .mark { outline: 2px solid var(--st-retained); border-radius: 3px; }
tr.sub { display: none; }
tr.sub td { background: var(--panel); padding-top: 8px; padding-bottom: 8px; }
tr.sub td:first-child { padding-left: 32px; }
table.by-event tbody:has(.twist input:checked) tr.sub { display: table-row; }
@supports not selector(:has(*)) {
  tr.sub { display: table-row; }
  .twist { display: none; }
}
/* Setup's settings: a label column and a value with its note under it. */
th[scope="row"] { color: var(--muted); font-size: 13px; width: 30%; white-space: normal;
  border-bottom: 1px solid var(--line2); vertical-align: top; padding: 11px 12px; }
tr:last-child th[scope="row"] { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.num.gain { color: var(--st-new); }
.num.loss { color: var(--st-churned); }
.problem { border-color: var(--stop-line); background: var(--stop-bg); color: var(--stop); }
.readout { line-height: 1.6; }
.readout table { margin: 8px 0 16px; }
th[align="right"] { text-align: right; }
td.good { color: var(--ok); }
td.bad { color: var(--stop); }
.readout h1 { font-size: 24px; }
.readout h2 { margin-top: 24px; }
.readout img.chart { display: block; max-width: 100%; height: auto; margin: 8px 0 16px; }
details summary { cursor: pointer; color: var(--muted); }
.legend-guide { margin: 14px 0; }
.legend-guide summary h2 { display: inline; color: var(--text); }
.legend-guide td { vertical-align: top; }
.legend-guide summary h3 { display: inline; color: var(--text); font-size: 1em; }
.legend-rest { margin-top: 12px; }
.states { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; }
.states dt { color: var(--muted); }
.states dd { margin: 0; }
pre { white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.step { display: flex; flex-direction: column; gap: 4px; }
.step p { margin: 0; }
.kv { margin-top: 6px; font-size: 12.5px; }
.kv td:first-child { white-space: nowrap; }
.kv td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line2); word-break: break-word; }
@media (max-width: 720px) {
  .side { max-width: none; flex-basis: 100%; position: static; height: auto; overflow-y: visible;
    flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 12px; }
  .brand { margin: 2px 0; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto;
    padding: 6px 16px; border: 1px solid var(--frame-line); border-radius: 999px; color: #fff;
    cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn::after { content: ""; margin-left: 8px; border: solid transparent;
    border-width: 4.5px 4px 0; border-top-color: var(--dim); }
  .menu-check { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .menu-check:focus-visible + .menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-check:checked + .menu-btn { background: rgba(255, 255, 255, 0.14); }
  .menu-check:checked + .menu-btn::after { transform: rotate(180deg); }
  .links { display: none; }
  .menu-check:checked ~ .links { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%;
    padding-bottom: 12px; }
  .main { border-radius: 0; }
  .page { padding: 20px 16px 40px; }
}

/* The charts. Events: one series in the ok-line green (passes the dataviz validator on the card
   surface), 4px rounded tops, a recessive baseline and axis text in text tokens. */
.chart { overflow-x: auto; }
.bars { display: block; width: 100%; min-width: 600px; height: auto; margin: 10px 0 6px; }
.bars path { fill: var(--ok-line); }
.bars .today path { fill: var(--accent); }
.bars .hit { fill: transparent; }
.bars .day:hover path { fill: var(--accent-soft); }
.bars .base { stroke: var(--line); stroke-width: 1; }
.bars .axis { fill: var(--dim); font-size: 12px; }

/* The Growth chart: the four state colours (:root). */
.growth .retained { fill: var(--st-retained); }
.growth .new { fill: var(--st-new); }
.growth .resurrected { fill: var(--st-resurrected); }
.growth .churned { fill: var(--st-churned); }
.growth .period:hover path { opacity: .8; }
.growth .period:hover .hit { fill: rgba(255, 255, 255, .05); }
/* What a bar holds, in the band above the plot: shown while the pointer is on its column. */
.growth .tip { display: none; fill: var(--text); font-size: 12.5px; }
.growth .period:hover .tip { display: inline; }
/* Change markers (console.marks): a hairline across the plot, a glyph per kind under it, and what
   happened on hover (in the band above the bars, or a box over a line chart). */
.marks .hair { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 3; opacity: .35; pointer-events: none; }
.marks .hit { fill: transparent; }
.marks .mark:hover .hair { opacity: .9; }
.marks .glyph, .marks-key .glyph { fill: var(--text); stroke: none; }
.marks .glyph.test_start, .marks .glyph.test_end,
.marks-key .glyph.test_start, .marks-key .glyph.test_end { fill: var(--warn); }
.marks .glyph.holiday, .marks-key .glyph.holiday { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.marks .glyph.history, .marks-key .glyph.history { fill: var(--dim); }
.marks .glyph.business, .marks-key .glyph.business { fill: var(--accent-soft); }
.growth .note { display: none; fill: var(--text); font-size: 12.5px; }
.growth .mark:hover .note { display: inline; }
.lines .mark:hover .tipbox { display: inline; }
/* A chart with markers names them above it, flush right of its keys, at their height
   (_annotation_key.html): a title with its (i), then one key a line. Hovering a glyph reads its day's
   numbers into the state keys at the left. */
.legend-row { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px 24px; flex-wrap: wrap; }
.annotation-key { display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  color: var(--muted); margin: 8px 0 4px auto; }
.live-legend .annotation-key { margin-top: 0; }
.annotation-key .annotations-title { color: var(--text); font-weight: 600; }
.annotation-key .mkey { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.annotation-key .glyph { fill: var(--text); stroke: none; }
.annotation-key .glyph.test_start, .annotation-key .glyph.test_end { fill: var(--warn); }
.annotation-key .glyph.holiday { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.annotation-key .glyph.history { fill: var(--dim); }
.annotation-key .glyph.business { fill: var(--accent-soft); }
.marks-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; }
.marks-key .mkey { display: inline-flex; align-items: center; gap: 6px; }
.growth .tip tspan.retained { fill: var(--st-retained); }
.growth .tip tspan.new { fill: var(--st-new); }
.growth .tip tspan.resurrected { fill: var(--st-resurrected); }
.growth .tip tspan.churned { fill: var(--st-churned); }
.legend.across { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.legend { display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  color: var(--muted); margin: 8px 0 4px; }
/* A key in a legend is a swatch and its words; the bare `.key` below is Events' line sample. */
.legend .key, .legend .key.before { display: inline-block; width: auto; height: auto; border: 0; margin: 0;
  white-space: nowrap; }
/* Every chart's legend is one key a line, the words reading to the right of the swatch and never
   wrapped (white-space above). A line chart's keys are a line sample instead of a square. */
.legend.line .key::before { width: 18px; height: 0; border-radius: 0; background: none;
  border-top: 2px solid var(--st-retained); vertical-align: middle; margin-right: 8px; }
.legend.line .key.before::before { border-top: 2px dotted var(--dim); }
.legend .key::before { content: ""; display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .retained::before { background: var(--st-retained); }
.legend .new::before { background: var(--st-new); }
.legend .resurrected::before { background: var(--st-resurrected); }
.legend .churned::before { background: var(--st-churned); }
.legend .expansion::before { background: var(--st-expansion); }
.legend .contraction::before { background: var(--st-contraction); }
/* The Revenue page: its two extra states, the net new revenue line and the status bars. */
.legend .flat::before { background: var(--dim); }
.legend .net::before { height: 0; width: 14px; border-radius: 0; background: none;
  border-top: 2px solid var(--st-net); vertical-align: middle; }
.growth .expansion { fill: var(--st-expansion); }
.growth .contraction { fill: var(--st-contraction); }
.growth .flat { fill: var(--dim); }
.growth .tip tspan.expansion { fill: var(--st-expansion); }
.growth .tip tspan.contraction { fill: var(--st-contraction); }
.revenue .netline { fill: none; stroke: var(--st-net); stroke-width: 2; stroke-linejoin: round; }
.revenue .netdot { fill: var(--card); stroke: var(--st-net); stroke-width: 2; }
.revenue-status { max-width: 560px; margin-top: 8px; }
.revenue-status .axis { fill: var(--muted); font-size: 12.5px; }

/* A split chart's legend shows the hovered column's numbers beside each key (legend-hover.js),
   so the chart's own hover line is hidden once the script has run. The head keeps its height
   so the chart doesn't move as the pointer comes and goes. */
.live-legend .legend-head { min-height: 1.5em; margin-top: 8px; color: var(--text); }
.live-legend .legend { margin-top: 0; }
/* A key's number is flush right in one column, so a column of figures reads down. */
.live-legend .legend { align-items: stretch; }
.live-legend .legend .key { display: flex; align-items: baseline; }
.legend .key .val { margin-left: auto; padding-left: 16px; color: var(--text); font-weight: 600; text-align: right;
  font-variant-numeric: tabular-nums; }
.live-legend.live .growth .period:hover .tip, .live-legend.live .lines .point:hover .tipbox { display: none; }

/* An annotation's words in full (static/mark-note.js): beside its key in the list above the chart,
   wrapped, never cut at the chart's edge and never a box that follows the pointer. The row keeps the
   height of the longest day's, so the page doesn't move. The chart's own one-line text and boxes are
   for no script. */
.notes-live .marks .note, .notes-live .marks .tipbox { display: none !important; }
.legend-row { position: relative; }
.mark-note { position: absolute; top: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.mark-note-item { position: absolute; left: 0; right: 0; display: flex; align-items: baseline; gap: 8px;
  padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.mark-note-item svg.glyph { flex: none; align-self: flex-start; margin-top: 3px; }
.mark-note-item strong { flex: none; font-weight: 600; }
/* Too narrow to sit beside the keys (a phone): the note is a block of its own under the chart. */
.mark-note.under { position: static; width: auto; margin-top: 10px; }
.mark-note.under .mark-note-item { position: static; margin-bottom: 6px; }
.mark-note .glyph { fill: var(--text); stroke: none; }
.mark-note .glyph.test_start, .mark-note .glyph.test_end { fill: var(--warn); }
.mark-note .glyph.holiday { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.mark-note .glyph.history { fill: var(--dim); }
.mark-note .glyph.business { fill: var(--accent-soft); }
.annotation-key .mkey.on { color: var(--text); font-weight: 600; }

/* New users split by a trait: categorical hues in a fixed order, then Other and unknown in greys. */
:root { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #9085e9; --cother: #59616d; --cunknown: #3a3f47; }
.growth .c1 { fill: var(--c1); }
.growth .tip tspan.c1 { fill: var(--c1); }
.legend .c1::before { background: var(--c1); }
.growth .c2 { fill: var(--c2); }
.growth .tip tspan.c2 { fill: var(--c2); }
.legend .c2::before { background: var(--c2); }
.growth .c3 { fill: var(--c3); }
.growth .tip tspan.c3 { fill: var(--c3); }
.legend .c3::before { background: var(--c3); }
.growth .c4 { fill: var(--c4); }
.growth .tip tspan.c4 { fill: var(--c4); }
.legend .c4::before { background: var(--c4); }
.growth .c5 { fill: var(--c5); }
.growth .tip tspan.c5 { fill: var(--c5); }
.legend .c5::before { background: var(--c5); }
.growth .c6 { fill: var(--c6); }
.growth .tip tspan.c6 { fill: var(--c6); }
.legend .c6::before { background: var(--c6); }
.growth .cother { fill: var(--cother); }
.growth .tip tspan.cother { fill: var(--cother); }
.legend .cother::before { background: var(--cother); }
.growth .cunknown { fill: var(--cunknown); }
.growth .tip tspan.cunknown { fill: var(--cunknown); }
.legend .cunknown::before { background: var(--cunknown); }

/* The same hues as lines (the grey "Other" and "unknown" lighter, so a thin line shows on the dark card). */
.lines .c1 { stroke: var(--c1); } .lines .c2 { stroke: var(--c2); } .lines .c3 { stroke: var(--c3); }
.lines .c4 { stroke: var(--c4); } .lines .c5 { stroke: var(--c5); } .lines .c6 { stroke: var(--c6); }
.lines .cother { stroke: #8b93a0; } .lines .cunknown { stroke: #6b7078; }
/* The total beside the values when a trait splits a rate's chart: the page's text colour and a
   heavier line, so it reads apart from the (blue) first value. */
.legend .ctotal::before { background: var(--text); }
.lines .ctotal { stroke: var(--text); }
.lines path.ctotal { stroke-width: 3; }

/* Insights: one card per recommendation. */
.insight { margin-bottom: 16px; }
.insight h2 { margin: 6px 0 4px; }
.noticed { margin: 8px 0; }
.noticed ul { margin: 4px 0 0; padding-left: 18px; }
/* An Insights story (insights.html): a break, the cohort patterns of its week folded in. A pattern
   inside it has no card of its own. */
.story { margin-bottom: 12px; }
.status { margin: 6px 0 14px; }
.story p { margin: 6px 0; }
.story-more { margin-top: 10px; }
.story-note p { margin: 6px 0; }
/* A break's card (insights.html): how far it fell, where to look first, what to press, and the
   evidence folded away. */
.story .dim { color: var(--dim); }
.story-top { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-top: 4px; }
.story-big { font-size: 40px; line-height: 1; color: var(--stop); font-stretch: 112%; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.story-title { font-size: 17px; font-weight: 600; font-stretch: 108%; }
.story-top > div:last-child { flex: 1; min-width: 220px; }
.story-lead { display: flex; flex-direction: column; gap: 2px; margin: 12px 0; padding: 10px 14px;
  background: #101412; border: 1px solid var(--line); border-radius: 12px; }
.story-lead .kicker { color: var(--dim); }
.story-actions { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.story-actions .fix-break { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story-actions .fix-break input { min-height: 32px; width: 240px; max-width: 100%; padding: 4px 12px;
  background: #0b0d0c; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; }
.story-fold { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line2); }
.story-fold > summary { font-size: 13px; }
.story-evidence { padding-top: 6px; }
.effects { display: block; width: 100%; max-width: 640px; margin: 12px 0 4px; }
.effects .zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.effects .axis { fill: var(--dim); font-size: 12px; }
.effects line.ci { stroke-width: 3; stroke-linecap: round; }
.liftdays { display: block; width: 100%; max-width: 640px; margin: 8px 0 4px; }
.liftdays .zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.liftdays .axis { fill: var(--dim); font-size: 12px; }
.liftdays .band { fill: var(--accent); fill-opacity: 0.15; stroke: none; }
.liftdays .trace { fill: none; stroke: var(--accent); stroke-width: 2; }
.liftdays .dot { fill: var(--accent); }
.boundary { display: block; width: 100%; max-width: 640px; margin: 8px 0 4px; }
.boundary .zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.boundary .axis { fill: var(--dim); font-size: 12px; }
.boundary .planned { fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 5 4; }
.boundary .used { fill: none; stroke: var(--dim); stroke-width: 2; }
.boundary .stop { fill: var(--card); stroke: var(--dim); stroke-width: 2; }
.boundary .hit { fill: transparent; }
.boundary .trace { fill: none; stroke: var(--accent); stroke-width: 2; }
.boundary .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.effects .moved { stroke: var(--accent); fill: var(--accent); }
.effects .flat { stroke: var(--dim); fill: var(--dim); }
.grid.tight { gap: 8px 24px; margin-top: 10px; }

/* Home: one tile per part of the loop, green or amber by its own rule (torque.console.home). */
.next-test { border-left: 3px solid var(--live-line); margin-bottom: 16px; }
.next-test.stopped { border-left-color: var(--stop-line); }
.next-test .name { font-size: 17px; font-weight: 600; margin: 8px 0 4px; }
/* Pointing at something to ask about it (static/ask-selection.js): the quote in the Ask box, the
   button beside highlighted text, and the button in a card's bottom corner on a Growth tab (the
   top one holds the grain toggle). */
.composer .quote { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.composer .quote[hidden] { display: none; }
.composer .quote q { flex: 1; min-width: 0; color: var(--text); quotes: "“" "”"; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.ask-pop, .ask-card { font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  border: 0; }
.ask-pop { position: absolute; z-index: 5; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.ask-pop[hidden] { display: none; }
.card.askable, [data-ask-tile].askable { position: relative; }
.ask-card { position: absolute; bottom: 12px; right: 14px; opacity: 0; }
.card.askable:hover .ask-card, [data-ask-tile].askable:hover .ask-card, .ask-card:focus-visible { opacity: 1; }
@media (hover: none) { .ask-card { opacity: 1; position: static; margin-top: 8px; } }
/* While Claude thinks: a pulsing dot, gone once the answer (.reply) arrives after it. */
.answer .thinking { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.answer .thinking:has(~ .reply) { display: none; }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* Growth: the day / week / month toggle, plain links (no script). */
.picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
/* The date selector beside the toggle: a plain GET form (no script), a native date input. */
.datepick { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.datepick input[type="date"] { background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 8px; font: inherit; color-scheme: dark; }
.datepick button { background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; font: inherit; cursor: pointer; }
/* The sentence under the paths chart's Break down by choice: what the chart now splits. */
.break-note { margin: 2px 0 10px; text-align: right; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.toggle a { padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-size: 14px; }
.toggle a.on { background: var(--card); color: var(--text); }

/* Growth: a card whose number heads the chart under it (New users), and the "Split by" control
   (split_picker.py, _split_picker.html): chips for the usual traits, the rest under More. */
.card.headline .giant { font-size: 64px; margin: 6px 0 4px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 12px 24px; }
.split-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-left: auto;
  gap: 10px 16px; margin-top: 4px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.split-label { color: var(--muted); font-size: 13px; }
.split-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.split-chips a, .split-menu > summary { padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; }
.split-chips a:hover, .split-menu > summary:hover { color: var(--text); border-color: #333a36; }
.split-chips a.on, .split-menu > summary.on, .split-menu[open] > summary { background: var(--card);
  color: var(--text); border-color: var(--muted); }
.split-menu { position: relative; }
.split-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; }
.split-menu > summary::-webkit-details-marker { display: none; }
.split-menu > summary::after { content: ""; border-style: solid; border-width: 6px 4.5px 0 4.5px;
  border-color: var(--dim) transparent transparent; }
.split-pop { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); width: 560px;
  max-width: calc(100vw - 48px); padding: 14px 16px; background: #0b0d0c; border: 1px solid #333a36;
  border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .6); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
.split-pop h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--dim);
  letter-spacing: .04em; text-transform: uppercase; }
.split-pop a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: 14px; }
.split-pop a:hover { background: rgba(255, 255, 255, .08); }
.split-pop a.on { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 700px) { .split-pop { left: 0; right: auto; } .card.headline .giant { font-size: 48px; } }

/* Setup: what each step gets you, and how to finish it. */
.step .kicker { margin-top: 14px; }

/* Events: visitor paths as a Sankey. Events take categorical hues kept apart from the four
   growth states' colours, in a fixed order (c0 the most visited), "Other events" a neutral;
   bands are their source's hue, faint, and labels carry a halo in the card's colour so they read
   over the bands. */
.sankey { display: block; width: 100%; min-width: 1000px; height: auto; margin: 10px 0 6px; }
.sankey .axis { fill: var(--dim); font-size: 12px; }
.sankey .band { opacity: .3; }
.sankey .band:hover { opacity: .55; }
.sankey .label, .sankey .count { paint-order: stroke; stroke: var(--card); stroke-width: 4px;
  stroke-linejoin: round; }
.sankey .label { fill: var(--text); font-size: 12px; }
.sankey .count { fill: var(--muted); font-size: 11px; }
.sankey .c0 { fill: #22a8c4; }
.sankey .c1 { fill: #c98500; }
.sankey .c2 { fill: #d55181; }
.sankey .c3 { fill: #8a9a2e; }
.sankey .c4 { fill: #b4805a; }
.sankey .c5 { fill: #d2c14a; }
.sankey .other { fill: #6b7078; }
.sankey .node .label, .sankey .node .count { stroke: var(--card); }

/* Growth: activation lines and the cohort triangle (a ramp of the retained blue). */
.lines .base { stroke: var(--line); stroke-width: 1; }
.lines .axis { fill: var(--dim); font-size: 12px; }
.lines path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lines path.warmup { opacity: .35; }
.lines .flat { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; }
.lines .ratio { stroke: var(--text); }
.lines .above-one { stroke: var(--st-new); }
.lines .below-one { stroke: var(--st-churned); }
.lines path.above { fill: var(--st-new); fill-opacity: .3; stroke: none; }
.lines path.below { fill: var(--st-churned); fill-opacity: .3; stroke: none; }
.lines .a1 { stroke: #4cc2c6; }
.lines .a2 { stroke: #3987e5; }
.lines .a3 { stroke: #e0a03b; }
.lines text.label { font-size: 12px; }
.lines text.a1 { fill: #9fe3e5; stroke: none; }
.lines text.a2 { fill: #9ccbff; stroke: none; }
.lines text.a3 { fill: #f2c27a; stroke: none; }
.legend .a1::before { background: #4cc2c6; }
.legend .a2::before { background: #3987e5; }
.legend .a3::before { background: #e0a03b; }
/* One measure over time, in its state's colour, a dot per period with its numbers on hover. */
.lines .retained { stroke: var(--st-retained); }
.lines .new { stroke: var(--st-new); }
.lines .resurrected { stroke: var(--st-resurrected); }
.lines circle.dot { fill: var(--card); stroke-width: 2; }
.lines circle.dot:hover { fill: var(--text); }
/* Hover a point: a box with its date and numbers, drawn on top of the line. */
.lines circle.hit { fill: transparent; stroke: none; }
.lines .tipbox { display: none; pointer-events: none; }
.lines .point:hover .tipbox { display: inline; }
.lines .tipbox rect { fill: var(--card); stroke: var(--line); stroke-width: 1; }
.lines .tipbox text { fill: var(--text); stroke: none; font-size: 12px; }
/* Events per hour: this week solid, the week before dotted; the hit areas carry the numbers. */
.lines.hourly path.now { stroke: var(--st-retained); }
.lines.hourly path.broken { stroke: var(--stop-line); stroke-width: 2.5; }
.legend.line .key.broken::before { border-top: 2px solid var(--stop-line); }
.note-flow { border-left: 3px solid var(--warn-line); background: var(--warn-bg); border-radius: 6px;
  padding: 8px 14px; margin: 10px 0 4px; }
.note-flow.stop { border-left-color: var(--stop-line); background: var(--stop-bg); }
.note-flow p, .note-flow ul { margin: 6px 0; }
.lines.hourly path.before { stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 1 4; }
.lines.hourly rect.hit { fill: transparent; }
.lines.hourly rect.hit:hover { fill: var(--line); fill-opacity: .4; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--st-retained);
  vertical-align: middle; margin: 0 4px 0 12px; }
.key.before { border-top: 2px dotted var(--dim); }
/* Growth's tabs: one per user state, under the page title. */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  margin: 4px 0 16px; }
.tabs a { padding: 8px 12px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
/* Activation curves: one per weekly cohort, from the oldest (lightest) to the newest (darkest),
   which is drawn last and thicker so it reads on the dark card. */
.lines .jc0 { stroke: #d2e4fb; } .ramp .jc0 { background: #d2e4fb; }
.lines .jc1 { stroke: #c2d7f3; } .ramp .jc1 { background: #c2d7f3; }
.lines .jc2 { stroke: #b1cbec; } .ramp .jc2 { background: #b1cbec; }
.lines .jc3 { stroke: #a1bee4; } .ramp .jc3 { background: #a1bee4; }
.lines .jc4 { stroke: #91b2dd; } .ramp .jc4 { background: #91b2dd; }
.lines .jc5 { stroke: #81a5d5; } .ramp .jc5 { background: #81a5d5; }
.lines .jc6 { stroke: #7099ce; } .ramp .jc6 { background: #7099ce; }
.lines .jc7 { stroke: #608cc6; } .ramp .jc7 { background: #608cc6; }
.lines .jc8 { stroke: #5080bf; } .ramp .jc8 { background: #5080bf; }
.lines .jc9 { stroke: #4073b7; } .ramp .jc9 { background: #4073b7; }
.lines .jc10 { stroke: #2f67b0; } .ramp .jc10 { background: #2f67b0; }
.lines .jc11 { stroke: #1f5aa8; } .ramp .jc11 { background: #1f5aa8; }
.lines path.newest { stroke-width: 3; }
.ramp { display: inline-flex; vertical-align: middle; margin: 0 6px; }
.ramp i { display: inline-block; width: 10px; height: 10px; }
.triangle td.num { min-width: 52px; }
.triangle .heat0 { background: #0f1824; }
.triangle .heat1 { background: #12233a; }
.triangle .heat2 { background: #152f50; }
.triangle .heat3 { background: #193b66; }
.triangle .heat4 { background: #1d477c; }
.triangle .heat5 { background: #225592; }
.triangle .heat6 { background: #2763a8; }
.triangle .heat7 { background: #2d71be; }
.triangle .heat8 { background: #337dd2; }
.triangle .heat9 { background: #3987e5; color: #fff; }
.triangle .flagged { outline: 2px solid var(--stop-line); outline-offset: -2px; }

/* The error page: a broken torque wrench, in pieces. */
.oops { text-align: center; align-items: center; padding-top: 64px; }
.oops .wrench { width: 120px; height: 120px; color: var(--accent); }
.oops .wrench .nut { fill: currentColor; }
.oops .wrench .crack { stroke: var(--stop); }
.oops .code { margin: 0; font-size: 88px; line-height: 1; font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.04em; color: var(--dim); }
.oops .lead { color: var(--muted); max-width: 520px; margin: 0; font-size: 16px; }
.oops .card { text-align: left; max-width: 720px; width: 100%; }

/* Where to focus next and the best and worst segments. */
.focus caption { text-align: left; padding: 12px 12px 4px; }
.focus td.num { white-space: nowrap; }
tr.group td { color: var(--dim); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding-top: 12px; }
.grid.two td.num { white-space: nowrap; }

/* The change waterfall: the count before and now in grey, a green step up and a red step down. */
.waterfall .total { fill: #59616d; }
.waterfall .gain { fill: var(--st-new); }
.waterfall .loss { fill: var(--st-churned); }
/* The calendar's bars (the weekday, public holidays): hatched, since they are expected and nothing
   to act on; the solid bars are what to look into. */
tr.calm td { color: var(--muted); }
.calendar-headline { margin: 6px 0; }
.calendar-tag { display: inline-block; margin: 2px 6px 2px 0; }
/* The By segment table fits one screen: its headers and tags wrap (a date stays whole) instead of
   forcing a sideways scroll. */
table.segments th { white-space: normal; vertical-align: bottom; }
table.segments .nowrap { white-space: nowrap; }
table.segments td:last-child { min-width: 190px; }
table.segments .calendar-tag .tag { white-space: normal; }
.waterfall .calendar { fill: url(#calendar-hatch); stroke: var(--dim); stroke-width: 1; }
.waterfall .hatch line { stroke: var(--dim); stroke-width: 1.5; }
.waterfall .link { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 2 3; }
.waterfall .value { fill: var(--text); font-size: 12.5px; }
.waterfall .step { font-size: 11px; }
.waterfall .period:hover path { opacity: .8; }
tr.total td { border-top: 1px solid var(--line); font-weight: 600; }

.focus-filter { align-items: center; gap: 12px; margin: 8px 0 12px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0 12px; }
.filter { position: relative; }
.filter summary { cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid #232a26;
  border-radius: 8px; color: #fff; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: " \25BE"; color: var(--dim); }
.filter form { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; display: flex;
  flex-direction: column; gap: 8px; min-width: 300px; padding: 12px; background: #101312;
  border: 1px solid #2a312e; border-radius: 8px; }
.filter label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.filter button { align-self: flex-start; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font: inherit;
  cursor: pointer; }

/* Ranked drivers (the adjusted list on the Growth tabs) */
.factors { list-style: none; margin: 0 0 14px; padding: 0; }
.factors li { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 4px 20px;
  align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.factors li:last-child { border-bottom: 0; }
.factor-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.factor-name { font-weight: 600; }
.factor-effect { font-variant-numeric: tabular-nums; font-weight: 600; }
.factor-effect.gain { color: var(--st-new); }
.factor-effect.loss { color: var(--st-churned); }
.factor-effect.none { color: var(--muted); font-weight: 400; }
/* The bars: a bar from the zero line, the 95% range as a whisker over it. Both sides of zero. */
.factor-axis { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 4px 20px; }
.factor-axis svg { display: block; width: 100%; max-width: 360px; height: auto; grid-column: 2; }
.factor-axis text { fill: var(--dim); font-size: 11px; }
.factor-plot { display: block; width: 100%; max-width: 360px; height: auto; }
.factor-plot .grid { stroke: var(--line); stroke-width: 1; }
.factor-plot .zero { stroke: var(--muted); stroke-width: 1; }
.factor-plot .bar.gain { fill: var(--st-new); }
.factor-plot .bar.loss { fill: var(--st-churned); }
.factor-plot.faded .bar { fill: var(--dim); }
.factor-plot .whisker { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
.factor-plot .hit { fill: transparent; }
.factor-plot:hover .hit { fill: rgba(255, 255, 255, .04); }
.factor-picker { justify-content: flex-start; margin: 8px 0; }
.false-factors { margin: 0 0 14px; }
@media (max-width: 720px) {
  .factors li, .factor-axis { grid-template-columns: minmax(0, 1fr); }
  .factor-axis svg { grid-column: 1; }
}
.faint { opacity: .6; }
/* A Growth tab before its first complete day (_growth_example.html): its layout with made-up
   numbers, greyed. The legend's hover numbers and each card's Example tag stay readable. */
.example .chart, .example .spark, .example .giant, .example .big, .example .medium, .example .made {
  filter: grayscale(1); opacity: .6; }
/* The offline banner (offline.js) and the error page's buttons. */
.offline { position: sticky; top: 0; z-index: 10; padding: 10px 20px; text-align: center;
  font-size: 13px; background: var(--stop-bg); color: var(--stop); border-bottom: 1px solid var(--stop-line); }
.offline[hidden] { display: none; }
.oops .actions { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.btn.quiet { background: transparent; color: inherit; border: 1px solid var(--line); }

/* Funnels: the Custom Journey (steps one under the other, + for another, then its funnel), and one
   bar per step. */
.builder .picks { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; gap: 8px;
  max-width: 420px; }
.builder .picks select { width: 100%; }
.builder button.plus { width: 34px; height: 34px; padding: 0; margin: 0 0 14px; font-size: 20px;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.builder button:disabled { opacity: .4; cursor: default; }
.builder .result { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.builder .problem { margin: 12px 0 0; }
.builder label { display: flex; flex-direction: column; gap: 3px; }
.builder .opts label { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); }
.builder select { background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; font: inherit; color-scheme: dark; max-width: 100%; }
.builder button { background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px; font: inherit; cursor: pointer; }
.builder .opts { flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.funnel { display: block; width: 100%; min-width: 640px; height: auto; margin: 10px 0 6px; }
.funnel .hit { fill: transparent; }
.funnel .bar { fill: var(--st-retained); }
.funnel .fstep:hover .bar { fill: var(--live); }
.funnel .label { fill: var(--text); font-size: 13px; }
.funnel .count { fill: var(--muted); font-size: 12px; }
.by-segment tr.all td { font-weight: 600; border-bottom: 1px solid var(--line2); }
.suggested { list-style: none; margin: 8px 0 0; padding: 0; }
.suggested li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.suggested li:last-child { border-bottom: 0; }
.suggested .with-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.suggested form.inline { display: inline-flex; align-items: center; gap: 6px; flex: none; margin: 0; }

/* A chart's hover note (static/chart-tip.js): the numbers of the mark under the pointer. */
.chart-tip { position: fixed; z-index: 20; max-width: 280px; padding: 6px 9px; pointer-events: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--text);
  font-size: 12.5px; line-height: 1.4; white-space: pre-line; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.chart-tip[hidden] { display: none; }
.chart-tip .row { display: flex; justify-content: space-between; gap: 18px; }
.chart-tip .row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.spark circle.hit { fill: transparent; }
.spark circle.hit:hover { fill: var(--text); fill-opacity: .25; }
.scroll.short { max-height: 320px; overflow-y: auto; }

/* "Break down by" under an event's property rows: one property's values at a time. */
tr.breakdown select { margin-left: 6px; }
tr.breakdown .values { margin-top: 8px; max-width: 460px; }
tr.breakdown .values caption { text-align: left; padding: 0 0 4px; }

/* Home's readout: the week picker, the five counts and the weeks' chart beside the opening lines. */
.weeks { position: relative; }
.weeks summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center;
  gap: 10px; min-height: 36px; padding: 6px 12px; border: 1px solid #3a423e; border-radius: 10px;
  background: #1a1d1c; color: var(--text); }
.weeks summary::-webkit-details-marker { display: none; }
.weeks summary::after { content: ""; border-style: solid; border-width: 6px 4px 0 4px;
  border-color: var(--dim) transparent transparent; }
.weeks .menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: #131615; border: 1px solid #3a423e; border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.weeks .menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.weeks .menu a:hover, .weeks .menu a[aria-current] { background: #222625; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 14px 0 6px; }
.figure { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--panel); }
.figure .big { font-size: 26px; margin: 4px 0 0; }
.week-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px;
  margin-top: 10px; }
.week-body .opening { padding-left: 12px; border-left: 3px solid var(--live-line); }
@media (max-width: 800px) {
  .week-body { grid-template-columns: minmax(0, 1fr); }
}
.bars.small { min-width: 0; margin-top: 0; }
.bars.growth.small .period:hover .tip { display: none; }
/* Loop health: a line for each part of the loop, a dot in its tone, its page, and what it says;
   an amber part says why. */
.health-rows { list-style: none; margin: 10px 0 0; padding: 0; display: flex;
  flex-direction: column; gap: 8px; }
.health-rows li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.health-rows .dot { flex: none; align-self: center; }
.health-rows a { font-weight: 600; color: var(--text); text-decoration: none; }
.health-rows a:hover { text-decoration: underline; }
/* The bar that pulls the full readout down, at the foot of the card. */
.more { margin: 18px -20px -18px; border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; list-style: none; display: flex; justify-content: center;
  align-items: center; gap: 10px; min-height: 44px; color: var(--muted); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { color: var(--text); background: #121614; }
.more > summary::after { content: ""; border-style: solid; border-width: 6px 4px 0 4px;
  border-color: var(--dim) transparent transparent; }
.more[open] > summary::after { border-width: 0 4px 6px 4px;
  border-color: transparent transparent var(--dim); }
.more .open, .more[open] .closed { display: none; }
.more[open] .open { display: inline; }
.more > article, .more > p { margin: 0; padding: 4px 20px 16px; }
.more > .scroll { margin: 0 20px 18px; }
.more > h3 { margin: 0; padding: 4px 20px 0; }
.more > div.small { padding: 0 20px 16px; }
/* The Revenue example's folded tabs sit on the page, not in a card */
.page > details.more { margin: 18px 0 0; }
details.fold > summary { cursor: pointer; padding: 6px 0; }
.page > details.more > h2, .page > details.more > p, .page > details.more > .card { margin-left: 0; margin-right: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--ok-line); }
.dot.warn { background: var(--warn-line); }
.dot.stop { background: var(--stop-line); }
.dot.wait { background: var(--dim); }

/* Settings: the readout's recipients, one small form for each address. */
#readout-recipients input[type="email"] { background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit;
  min-width: 260px; flex: 1 1 260px; }
#readout-recipients input[type="email"]:focus { outline: none; border-color: var(--accent); }
#readout-recipients select { background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; }
#readout-recipients select:focus { outline: none; border-color: var(--accent); }

/* The operator's notes (templates/_notes_panel.html): "+ Add note" beside the Business note key opens a
   panel at the key's left, over the chart's heading row, with the list, Remove and the add form.
   Under 900px wide it opens below the key instead, the full width of the card. */
.annotation-key { position: relative; }
.notes-pop { margin-left: 8px; }
.mkey > svg + .notes-pop { margin-left: 0; }
.notes-pop > summary { display: inline; list-style: none; cursor: pointer; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; }
.notes-pop > summary::-webkit-details-marker { display: none; }
.notes-pop > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.notes-panel { position: absolute; z-index: 5; top: 0; right: calc(100% + 24px); width: min(580px, 90vw);
  box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); color: var(--text); white-space: normal; }
.notes-panel .notes-head { margin-bottom: 6px; }
.notes-panel .note-row { display: flex; gap: 12px; align-items: baseline; margin: 6px 0; }
.notes-panel .note-row form { margin: 0 0 0 auto; }
.notes-panel .note-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.notes-panel .note-add input[name="text"], .notes-panel .note-add input[type="date"] {
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font: inherit; color-scheme: dark; }
.notes-panel .note-add input[name="text"] { flex: 1 1 240px; }
.notes-panel .note-add input:focus { outline: none; border-color: var(--accent); }
.notes-panel .note-add label { color: var(--muted); }
@media (max-width: 900px) {
  .annotation-key .mkey:has(.notes-pop) { flex-wrap: wrap; }
  .notes-panel { position: static; width: auto; margin-top: 8px; }
}
/* A PR's saved summary (templates/_agent_summary.html): folded under the Description on the Pull
   requests page, open on an experiment's PR card. */
.agent-summary { margin-top: 6px; max-width: 60ch; }
.agent-summary summary { cursor: pointer; color: var(--muted); }
.agent-summary p { margin: 4px 0; overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.stack > label { display: flex; flex-direction: column; gap: 4px; }

/* The public demo's banner and the guide strip on a page opened from one of Acme's stories. */
.demo-banner, .story-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px 18px; border-bottom: 1px solid var(--line); }
.demo-banner { background: var(--warn-bg); border-bottom-color: var(--warn-line); }
.demo-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.demo-banner p, .story-strip p { margin: 0; flex: 1 1 280px; }
.demo-banner p { color: var(--warn); }
.story-strip { background: var(--ok-bg); border-bottom-color: var(--ok-line); }
.story-strip .step { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--ok); }
.stories-group { margin: 22px 0 8px; font-size: 15px; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.story { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story h3 { margin: 0; font-size: 15px; }
.story p { margin: 0; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 6px; }

/* Data, Health tab, "Waiting for your decision": one card per held issue. The event and its
   count lead, the value to load is the one green button, and the three other choices sit beside
   it as quiet ghost buttons that say what they do. */
.held-intro { max-width: 72ch; line-height: 1.5; }
.held-issue { padding: 20px 22px; margin: 14px 0; }
.held-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.held-event { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.held-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.held-prop { padding: 2px 9px; border-radius: 8px; background: #151a17; border: 1px solid var(--line2);
  font-size: 13px; }
.held-count { font-size: 22px; font-weight: 650; white-space: nowrap; }
.held-when { margin: 10px 0 0; }
.held-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0;
  margin-top: 18px; border: 1px solid var(--line2); border-radius: 12px; background: #080a09; }
.held-fix, .held-options { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px;
  min-width: 0; }
.held-options { border-left: 1px solid var(--line2); }
.held-label { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; }
.held-fix .row { flex-wrap: nowrap; gap: 10px; }
.held-fix select, .held-fix input[type="text"] { flex: 1 1 auto; min-width: 0; height: 36px;
  padding: 0 12px; border-radius: 10px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); font: inherit; font-size: 14px; }
.held-fix select:focus, .held-fix input[type="text"]:focus { outline: none;
  border-color: var(--accent); }
.held-fix .btn { white-space: nowrap; }
.held-leave { display: flex; align-items: center; gap: 8px; }
.held-opt { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center;
  gap: 10px; margin: 0; }
.held-opt .btn { justify-content: center; }
@media (max-width: 720px) {
  .held-body { grid-template-columns: 1fr; }
  .held-options { border-left: 0; border-top: 1px solid var(--line2); }
  .held-fix .row { flex-wrap: wrap; }
  .held-opt { grid-template-columns: 96px minmax(0, 1fr) auto; }
}
