/* ==========================================================================
   LEAK HUNTER · SITE A · css/fig-index.css — figure "index" (section #index)
   The Leak Index dashboard (synthetic). Scoped to #index / .fig--index.
   Loads after base.css: equal-specificity rules here win.
   Chart geometry comes from three custom properties set per row / tile:
     --pf (rate), --lf (CI low), --hf (CI high) — fractions of the shared axis.
   Status comes from the interval: is-clean · is-low · is-unclear · is-hot.
   Type: Inter for labels and copy, Space Mono only for data, Space Grotesk for titles.
   ========================================================================== */

#index {
  --ix-grid: rgba(255, 255, 255, .06);
  --ix-thr: rgb(var(--pink-rgb) / .62);
  --ix-wh: rgb(var(--text-rgb) / .8);
  --ix-lab: rgb(var(--text-rgb) / .76);  /* labels on the dark panels (≈ 9:1) */
  --ix-sub: var(--muted-2);            /* 12–13px secondary text (#A9A8A4: ≥ 7:1 on #1A1A1C) */
  /* bite tints for small type and the unclear family: the bite colour lifted toward white */
  --ix-pink-2: color-mix(in srgb, var(--pink) 60%, #FFFFFF);   /* small bite text on dark — clears AA */
  --ix-pink-3: color-mix(in srgb, var(--pink) 80%, #FFFFFF);
  --ix-unc: color-mix(in srgb, var(--pink) 50%, #FFFFFF);      /* unclear: the bite-outline family */
  --ix-unc-line: rgb(var(--pink-rgb) / .9);
  --ix-unc-w: color-mix(in srgb, var(--pink) 34%, #FFFFFF);    /* unclear whisker */
  --ix-banner: color-mix(in srgb, var(--pink) 24%, var(--text)); /* the Simulated banner's copy */
  --ix-sweep-hi: rgb(var(--text-rgb) / .16);
  --ix-sw: color-mix(in srgb, var(--pink) 42%, #FFFFFF);       /* front / back of a bite in the feed */
  --ix-hi-rgb: var(--text-rgb);        /* the text colour: bright figures and the rate needle */
  --ix-hi: rgb(var(--ix-hi-rgb));
  --ix-low-rgb: 180 179 174;           /* the "low" state: silver, a step under the accent (clean) so the two never read alike */
  --ix-low: rgb(var(--ix-low-rgb));
  --ix-low-t: color-mix(in srgb, var(--ix-low) 92%, var(--bg));
  --ix-led: var(--s3);                 /* route LED at rest */
  --ix-filter-bg: color-mix(in srgb, var(--bg) 55%, var(--s1));
  --ix-redact: color-mix(in srgb, var(--bg) 58%, #000);
}

/* ---------- 1 · head: title, stamped tag, banner ----------------------------- */
#index .index__head { margin-bottom: clamp(22px, 2.3vw, 34px); }
#index .index__titlerow { gap: 12px 18px; }
#index .index__stamp {
  position: relative; transform: rotate(-3deg); transform-origin: 24% 70%;
  box-shadow: 0 0 0 1px rgb(var(--pink-rgb) / .45), 0 10px 30px -10px rgb(var(--pink-rgb) / .95);
}
#index .index__stamp::after { /* ink ring that bursts once when the stamp lands */
  content: ""; position: absolute; inset: -7px; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--pink); opacity: 0;
}
#index .index__stamp.is-landed::after { animation: ix-ring .9s var(--ease-out) both; }
/* the ring rests at scale 1 once it has faded, and the head clips sideways (never vertically), so the burst
   can't widen a phone's layout viewport (it pushed 360 → 373 px and zoomed the page out) */
@keyframes ix-ring { 0% { opacity: .95; transform: scale(.8); } 99.9% { opacity: 0; transform: scale(1.45); } 100% { opacity: 0; transform: none; } }
#index .index__head { overflow-x: clip; }
#index .sim-banner {
  position: relative; display: block; max-width: 100%; margin-top: 16px; padding: 11px 16px 12px; overflow: hidden;
  font: 500 14px/1.55 var(--f-ui); color: var(--ix-banner); text-wrap: pretty;
}
#index .sim-banner::after { /* one pass of red light when the head arrives */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 32%, rgb(var(--pink-rgb) / .22) 46%, var(--ix-sweep-hi) 50%, rgb(var(--pink-rgb) / .22) 54%, transparent 68%);
  transform: translateX(-100%);
}
#index .sim-banner.is-lit::after { animation: ix-sweep 1.1s var(--ease-io) both; }
@keyframes ix-sweep { 0% { opacity: 1; transform: translateX(-100%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
#index .sim-banner b {
  display: inline-block; margin-right: 2px; padding: 0 6px; border-radius: 4px; vertical-align: 1px;
  font: 700 12px/19px var(--f-display); letter-spacing: .04em; color: var(--ink); background: var(--pink);
}

/* honesty tags — the canonical component (11px floor), scoped here so the dashboard never shrinks them */
#index .tag {
  height: 18px; padding: 0 6px; border-radius: 4px;
  font: 700 11px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
}
#index .tag--lg { height: 24px; padding: 0 9px; font-size: 13px; border-radius: 6px; }
#index .tag--muted { color: rgb(var(--ix-hi-rgb) / .86); }

/* ---------- 2 · status colour + shared chart parts ---------------------------- */
.fig--index .is-clean   { --c: var(--lime); --wc: rgb(var(--lime-rgb) / .85); }
.fig--index .is-low     { --c: var(--ix-low); }
.fig--index .is-unclear { --c: var(--ix-unc); --wc: var(--ix-unc-w); }
.fig--index .is-hot     { --c: var(--pink); }
/* idle comes last: before the count, the route letters wear it on top of the status they ship with */
.fig--index .is-idle    { --c: rgb(var(--ix-hi-rgb) / .48); }

.fig--index .ix-track { position: relative; display: block; height: 22px; }
.fig--index .ix-clip { /* clips at the axis end only, so glows still breathe above and below */
  position: absolute; inset: 0; clip-path: inset(-24px 0 -24px -24px); transition: opacity .3s ease;
}
.fig--index .ix-band, .fig--index .ix-bar, .fig--index .ix-whisk, .fig--index .ix-cap,
.fig--index .ix-pt, .fig--index .ix-ping, .fig--index .ix-over { position: absolute; display: block; }
.fig--index .ix-band {
  top: 3px; bottom: 3px; left: calc(var(--lf, 0) * 100%); width: calc((var(--hf, 0) - var(--lf, 0)) * 100%);
  border-radius: 3px; background: color-mix(in srgb, var(--c, var(--ix-hi)) 12%, transparent);
  transition: background-color .35s ease;
}
.fig--index .ix-bar {
  top: 50%; left: 0; height: 6px; margin-top: -3px; width: calc(var(--pf, 0) * 100%);
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--ix-hi)) 28%, transparent), var(--c, var(--ix-hi)));
  transition: box-shadow .35s ease;
}
/* unclear: a hollow red bar — hatched inside, outlined — never the solid red of a call */
.fig--index .is-unclear .ix-bar {
  height: 8px; margin-top: -4px; border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(-45deg, rgb(var(--pink-rgb) / .62) 0 1.5px, transparent 1.5px 4.5px);
  box-shadow: inset 0 0 0 1px var(--ix-unc-line);
}
.fig--index .is-hot .ix-bar {
  background: linear-gradient(90deg, rgb(var(--pink-rgb) / .32), var(--pink));
  box-shadow: 0 0 16px rgb(var(--pink-rgb) / .5), 0 0 3px rgb(var(--pink-rgb) / .85);
}
.fig--index .ix-whisk {
  top: 50%; height: 1px; margin-top: -.5px;
  left: calc(var(--lf, 0) * 100%); width: calc((var(--hf, 0) - var(--lf, 0)) * 100%);
  background: var(--wc, var(--ix-wh));
}
.fig--index .ix-cap { top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--wc, var(--ix-wh)); }
.fig--index .ix-cap--lo { left: calc(var(--lf, 0) * 100%); }
.fig--index .ix-cap--hi { left: calc(var(--hf, 0) * 100%); margin-left: -1px; }
.fig--index .ix-pt { /* the point estimate: a needle, or an accent pip when nothing bit */
  top: 50%; left: calc(var(--pf, 0) * 100%); width: 2px; height: 16px; margin: -8px 0 0 -1px; border-radius: 1px;
  background: var(--ix-hi); box-shadow: 0 0 8px rgb(var(--ix-hi-rgb) / .45);
}
.fig--index .is-clean .ix-pt {
  width: 9px; height: 9px; margin: -4.5px 0 0; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px rgb(var(--lime-rgb) / .16), 0 0 14px rgb(var(--lime-rgb) / .7);
}
.fig--index .is-idle .ix-clip { opacity: 0; }
.fig--index .ix-over { /* the interval runs past the axis (early in a replay) */
  right: -11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: solid var(--wc, var(--ix-wh)); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
  opacity: 0; transition: opacity .2s ease;
}
.fig--index .is-over .ix-over { opacity: .9; }
.fig--index .ix-ping {
  top: 50%; left: calc(var(--pf, 0) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--pink), 0 0 18px rgb(var(--pink-rgb) / .65); opacity: 0; pointer-events: none;
}
.fig--index .ix-tip { /* CI ends, shown on the inspected row */
  --la: clamp(0, (var(--lf, 0) - .05) * 1000, 1);
  --ha: clamp(0, (var(--hf, 0) - .86) * 1000, 1);
  position: absolute; top: calc(100% + 3px); font: 400 12px/1 var(--f-mono); color: var(--ix-sub); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(-3px); transition: opacity .25s ease, transform .4s var(--ease-out); pointer-events: none;
}
.fig--index .ix-tip--lo { left: calc(var(--lf, 0) * 100%); translate: calc(-100% * var(--la)) 0; margin-left: calc(-4px * var(--la)); }
.fig--index .ix-tip--hi { left: calc(var(--hf, 0) * 100%); translate: calc(-100% * var(--ha)) 0; margin-left: calc(4px - 8px * var(--ha)); }
.fig--index .ix-tip--hi::after { content: "%"; color: var(--ix-sub); }
.fig--index tr.is-focus .ix-tip, .fig--index tr.is-pinned .ix-tip,
.fig--index:not(.has-focus) tr.is-insp .ix-tip { opacity: 1; transform: none; }

/* gridlines (every 5%) + the dotted 5% line where the calls are made */
.fig--index .ix-grid-bg {
  background-image:
    repeating-linear-gradient(180deg, var(--ix-thr) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, var(--ix-grid) 1px, transparent 1px);
  background-size: 1px 100%, calc(100% / var(--ax-n, 6)) 100%;
  background-position: calc(var(--thr, .1667) * 100%) 0, 0 0;
  background-repeat: repeat-y, repeat;
  background-origin: content-box;
}

/* status letters (waffle keys, tally, redaction): the same four states as the bars */
.fig--index .ix-st {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px;
  font: 600 12px/1 var(--f-ui); font-style: normal; color: var(--ix-lab);
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.fig--index .ix-st.is-clean { color: var(--lime); box-shadow: inset 0 0 0 1px rgb(var(--lime-rgb) / .32); }
.fig--index .ix-st.is-low { color: var(--ix-low-t); background: rgba(255, 255, 255, .07); }
.fig--index .ix-st.is-unclear { color: var(--ix-unc); box-shadow: inset 0 0 0 1px var(--ix-unc-line); }
.fig--index .ix-st.is-hot { color: var(--ink); background: var(--pink); box-shadow: 0 0 12px -2px rgb(var(--pink-rgb) / .7); }
.fig--index .ix-st.is-idle { color: rgb(var(--ix-hi-rgb) / .43); } /* last, as above: idle type over the shipped status */

/* ---------- 3 · dashboard frame --------------------------------------------------- */
.fig--index .dash { gap: 16px; }
.fig--index .panel { position: relative; }
.fig--index .panel--table, .fig--index .panel--feed { align-self: stretch; display: flex; flex-direction: column; }
.fig--index .ix-head { flex-wrap: wrap; gap: 10px 14px; min-height: 62px; padding: 12px 14px 12px 18px; }
.fig--index .ix-head__title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.fig--index .panel__title { letter-spacing: -0.025em; }
.fig--index .ix-head__tag { flex: none; }

/* ---------- 4 · KPI tiles --------------------------------------------------------- */
.fig--index .kpis { gap: 16px; }
.fig--index .kpi {
  display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 16px 16px 15px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0) 42%), var(--s1);
}
.fig--index .kpi::after { /* hover hairline: an opacity change, never a box change */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fig--index .kpi:hover::after { opacity: 1; }
}
.fig--index .kpi--bite { background: linear-gradient(180deg, rgb(var(--pink-rgb) / .11), rgb(var(--pink-rgb) / 0) 62%), var(--s1); }
.fig--index .kpi__top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.fig--index .kpi__top .tag { margin-left: auto; }
.fig--index .kpi__label { font: 600 13px/1.2 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--ix-lab); }
.fig--index .kpi__value { margin-top: 16px; line-height: .86; }
.fig--index .kpi__foot {
  margin-top: 12px; font: 400 13px/1.4 var(--f-ui); letter-spacing: 0; color: var(--ix-sub); font-variant-numeric: tabular-nums;
}
.fig--index .kpi__foot [data-kpi] { color: var(--text); font-weight: 600; }
.fig--index .kpi--bite .kpi__foot [data-kpi="pooled"] { color: var(--ix-pink-2); }

/* 4a · waffle — one square per landed canary, grouped by route */
.fig--index .ix-waffle { margin-top: auto; padding-top: 18px; }
.fig--index .ix-waffle__field {
  position: relative; aspect-ratio: 4 / 1; cursor: crosshair;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0 30%, transparent 34%) 0 0 / calc(100% / 60) calc(100% / 15);
}
.fig--index .ix-waffle__field.is-live { background: none; }
.fig--index .ix-waffle__keys { position: relative; height: 18px; margin-top: 8px; }
.fig--index .ix-waffle__keys .ix-st { position: absolute; top: 0; left: var(--x, 0); transform: translateX(-50%); }

/* 4b · tally — one cell per bite */
.fig--index .ix-tally { display: flex; align-items: flex-end; gap: 9px; margin-top: auto; padding-top: 18px; }
.fig--index .ix-tally__g {
  flex: var(--k, 1) 1 calc((var(--k, 1) - 1) * 2px); min-width: 20px;
  display: grid; justify-items: center; gap: 7px; transition: opacity .3s ease;
}
.fig--index .ix-tally__g.is-zero { flex: 0 0 auto; }
.fig--index .ix-tally__cells { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 28px; }
.fig--index .ix-tally__cells i {
  flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 2px;
  background: rgb(var(--pink-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--pink-rgb) / .26);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.fig--index .ix-tally__cells i.is-on { background: var(--pink); box-shadow: 0 0 12px rgb(var(--pink-rgb) / .45); }
.fig--index .ix-tally__g.is-zero .ix-tally__cells { justify-content: center; }
.fig--index .ix-tally__g.is-zero i {
  flex: none; width: 12px; height: 12px; margin: 0 auto 1px; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 10px rgb(var(--lime-rgb) / .35);
}

/* 4c · redaction — route categories withheld until disclosure */
.fig--index .ix-redact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px;
  margin: auto 0 0; padding: 18px 0 0; list-style: none;
}
.fig--index .ix-redact li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; transition: opacity .3s ease; }
.fig--index .ix-redact__bar {
  display: block; height: 13px; width: calc(var(--w, .8) * 100%); border-radius: 2px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 1.5px, transparent 1.5px 5px), var(--ix-redact);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: box-shadow .3s ease;
}
.fig--index .ix-redact li.is-focus .ix-redact__bar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 14px -2px rgba(255, 255, 255, .25); }

/* 4d · Wilson inspector */
.fig--index .ix-insp__who {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; white-space: nowrap;
  font: 600 12px/1 var(--f-ui); background: rgba(255, 255, 255, .08); color: var(--text);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.fig--index .ix-insp.is-hot .ix-insp__who { background: var(--pink); color: var(--ink); }
.fig--index .ix-insp.is-unclear .ix-insp__who { background: transparent; color: var(--ix-unc); box-shadow: inset 0 0 0 1px var(--ix-unc-line); }
.fig--index .ix-insp.is-clean .ix-insp__who { background: var(--lime-12); color: var(--lime); }
.fig--index .ix-insp__ci { font-size: clamp(34px, 2.4vw + 4px, 52px); white-space: nowrap; }
.fig--index .ix-insp__ci small { margin-left: .04em; font-size: .52em; letter-spacing: -0.02em; color: var(--ix-sub); }
.fig--index .ix-insp__axis { margin-top: auto; padding-top: 18px; }
.fig--index .ix-insp__track { position: relative; display: block; height: 22px; }
.fig--index .ix-insp__track::after, .fig--index .ix-cmp__plot::after { /* the axis end (30%) */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--ix-grid);
}
.fig--index .ix-insp__axis.is-over .ix-over { opacity: .9; }
.fig--index .ix-insp__ticks {
  position: relative; display: block; height: 14px; margin-top: 6px;
  font: 500 12px/1 var(--f-ui); color: var(--ix-sub); font-variant-numeric: tabular-nums;
}
.fig--index .ix-insp__ticks i { position: absolute; top: 0; left: 0; font-style: normal; }
.fig--index .ix-insp__ticks i:nth-child(2) { left: calc(var(--thr, .1667) * 100%); transform: translateX(-50%); color: var(--ix-pink-2); }
.fig--index .ix-insp__ticks i:nth-child(3) { left: 50%; transform: translateX(-50%); }
.fig--index .ix-insp__ticks i:last-child { left: auto; right: 0; }
.fig--index .ix-insp__calc {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 12px;
  font: 400 12.5px/1.5 var(--f-mono); color: var(--ix-sub); font-variant-numeric: tabular-nums;
}
.fig--index .ix-insp__calc span[data-insp] { color: var(--ix-hi); }
.fig--index .ix-insp__calc [data-insp="p"] { color: var(--c, var(--ix-hi)); font-weight: 700; }
.fig--index .ix-insp.is-hot .ix-insp__calc [data-insp="p"] { color: var(--ix-pink-3); }
.fig--index .ix-insp__z { color: var(--ix-sub); }
.fig--index .ix-insp .kpi__foot { margin-top: 8px; }

/* linked highlight while a route is inspected */
.fig--index.has-focus .ix-waffle__keys .ix-st:not(.is-focus),
.fig--index.has-focus .ix-tally__g:not(.is-focus),
.fig--index.has-focus .ix-redact li:not(.is-focus) { opacity: .32; }

/* ---------- 5 · table panel ------------------------------------------------------- */
.fig--index .ix-tools { display: flex; align-items: center; gap: 8px; }
.fig--index .ix-filter {
  position: relative; display: inline-flex; padding: 3px; border-radius: 10px;
  background: var(--ix-filter-bg); box-shadow: inset 0 0 0 1px var(--line);
}
.fig--index .ix-filter__ink {
  position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 7px; pointer-events: none;
  background: var(--lime); box-shadow: 0 0 20px -4px rgb(var(--lime-rgb) / .55);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
.fig--index .ix-filter__btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: 7px;
  font: 600 13px/1 var(--f-ui); color: var(--ix-lab); transition: color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-filter__btn:hover { color: var(--ix-hi); }
  .fig--index .ix-filter__btn[aria-pressed="true"]:hover { color: var(--ink); }
}
.fig--index .ix-filter__btn[aria-pressed="true"] { color: var(--ink); }
.fig--index .ix-filter__btn:focus-visible { outline-offset: 1px; }
.fig--index .ix-filter__n { font: 600 12px/1 var(--f-ui); font-variant-numeric: tabular-nums; opacity: .72; }
.fig--index .ix-replay {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 10px; border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 13px/1 var(--f-ui); color: var(--ix-lab);
  transition: color .25s ease, background-color .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-replay:hover { color: var(--ix-hi); background-color: rgba(255, 255, 255, .09); }
}
.fig--index .ix-replay .i { width: 15px; height: 15px; }
.fig--index.is-replaying .ix-replay { color: var(--lime); }
.fig--index.is-replaying .ix-replay .i { animation: ix-spin .9s linear infinite; }
@keyframes ix-spin { to { transform: rotate(360deg); } }

.fig--index .ix-wrap { position: relative; flex: 1 1 auto; overflow-x: auto; }
.fig--index .ix-table {
  --ix-px: 12px;   /* cell padding */
  --ix-edge: 18px; /* outer padding of the first / last column */
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
}
.fig--index .ix-table th, .fig--index .ix-table td {
  height: 64px; padding: 0 var(--ix-px); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line);
}
.fig--index .ix-table th.ix-axis, .fig--index .ix-table td.ix-chart { padding-inline: calc(var(--ix-px) + 4px) calc(var(--ix-px) + 6px); }
.fig--index .ix-table th:first-child, .fig--index .ix-table td:first-child { padding-left: var(--ix-edge); }
.fig--index .ix-table th:last-child, .fig--index .ix-table td:last-child { padding-right: var(--ix-edge); }
/* rate + interval hold the widest text a replay can show (ch counts set in JS), so the chart
   column, which takes what is left, never slides while the numbers count up */
.fig--index .ix-table td.ix-p { min-width: calc(var(--ix-p-ch, 5) * 1ch + 2 * var(--ix-px)); }
.fig--index .ix-table td.ix-ci { min-width: calc(var(--ix-ci-ch, 10) * 1ch + 2 * var(--ix-px)); }
.fig--index .ix-table thead th {
  height: 56px; font: 600 12.5px/1.25 var(--f-ui); letter-spacing: 0; text-transform: none;
  color: var(--ix-lab); white-space: nowrap;
}
.fig--index .ix-table thead th.num { text-align: right; }
.fig--index .ix-table tbody .num, .fig--index .ix-table tfoot .num {
  text-align: right; font: 400 13.5px/1 var(--f-mono); color: var(--text-2); white-space: nowrap;
}
/* columns hug their content; the chart takes whatever is left */
.fig--index .ix-table th, .fig--index .ix-table td { width: 1%; }
.fig--index .ix-h { display: inline-grid; gap: 5px; text-align: inherit; }
.fig--index .num .ix-h { justify-items: end; }
.fig--index .ix-sym { display: block; font: 400 12px/1 var(--f-mono); letter-spacing: 0; text-transform: none; color: rgb(var(--ix-hi-rgb) / .64); }

/* sortable headers */
.fig--index .ix-sort {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0 -8px; padding: 4px 8px; border-radius: 7px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-sort:hover { color: var(--ix-hi); background: rgba(255, 255, 255, .05); }
  .fig--index .ix-sort:hover .ix-sym { color: var(--ix-hi); }
}
.fig--index .ix-sort:focus-visible { outline-offset: 0; }
.fig--index th[aria-sort] .ix-sort { color: var(--lime); }
.fig--index th[aria-sort] .ix-sym { color: rgb(var(--lime-rgb) / .72); }
.fig--index .ix-sort__g { width: 7px; height: 11px; flex: none; }
.fig--index .ix-sort__g path { fill: currentColor; opacity: .3; transition: opacity .2s ease; }
.fig--index th[aria-sort="ascending"] .ix-sort__up,
.fig--index th[aria-sort="descending"] .ix-sort__dn { opacity: 1; }

/* the axis header */
.fig--index .ix-table th.ix-axis, .fig--index .ix-table td.ix-chart { width: auto; min-width: 168px; }
.fig--index .ix-ticks { position: relative; display: block; height: 14px; font: 500 12px/1 var(--f-ui); }
.fig--index .ix-ticks i {
  position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%);
  font-style: normal; color: var(--ix-sub);
}
.fig--index .ix-ticks i:last-child { transform: translateX(-70%); }
.fig--index .ix-ticks i.is-thr { color: var(--ix-pink-2); font-weight: 600; }

/* body rows */
.fig--index .ix-table tbody tr { position: relative; transition: background-color .25s ease, opacity .45s ease; }
.fig--index .ix-table tbody tr.is-out { opacity: .2; cursor: pointer; }
.fig--index .ix-table tbody tr.is-out .ix-track { filter: grayscale(1); }
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-table tbody tr.is-out:hover { opacity: .42; }
}
.fig--index .ix-table tbody tr.is-focus, .fig--index .ix-table tbody tr.is-pinned { background: rgba(255, 255, 255, .035); }
.fig--index .ix-table tbody tr:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: 0; }
.fig--index .ix-table tbody tr:last-child > * { border-bottom-color: var(--line-2); }
.fig--index .ix-table tbody th, .fig--index .ix-table tfoot th { position: relative; font-weight: 400; white-space: nowrap; }
.fig--index .ix-table tbody th::before { /* inspected-route accent */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 0 2px 2px 0;
  background: var(--c, var(--ix-hi)); opacity: 0; transform: scaleY(.3);
  transition: opacity .25s ease, transform .45s var(--ease-out);
}
.fig--index .ix-table tbody tr.is-focus th::before, .fig--index .ix-table tbody tr.is-pinned th::before,
.fig--index:not(.has-focus) .ix-table tbody tr.is-insp th::before { opacity: 1; transform: none; }
.fig--index .ix-route {
  display: flex; align-items: center; gap: 8px;
  font: 700 15px/1.1 var(--f-display); letter-spacing: -0.025em; text-transform: uppercase; color: var(--ix-hi);
}
.fig--index .ix-cat { display: block; margin-top: 5px; padding-left: 15px; font: 400 12px/1.2 var(--f-ui); color: var(--ix-sub); }
.fig--index .ix-led {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--ix-led); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.fig--index .ix-led.is-blink-clean { animation: ix-led-lime 1.5s var(--ease-out); }
.fig--index .ix-led.is-blink-bite { animation: ix-led-pink 1.8s var(--ease-out); }
@keyframes ix-led-lime {
  0%, 14% { background: var(--lime); box-shadow: 0 0 10px var(--lime), 0 0 0 3px rgb(var(--lime-rgb) / .18); }
  100% { background: var(--ix-led); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
}
@keyframes ix-led-pink {
  0%, 18% { background: var(--pink); box-shadow: 0 0 12px var(--pink), 0 0 0 3px rgb(var(--pink-rgb) / .22); }
  100% { background: var(--ix-led); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
}
.fig--index .ix-table .ix-k .ix-v { display: inline-block; }
.fig--index .ix-table tbody .ix-p, .fig--index .ix-table tfoot .ix-p { font-weight: 700; font-size: 14px; color: var(--c, var(--ix-hi)); transition: color .3s ease; }
.fig--index .ix-table tbody .is-hot .ix-p { color: var(--ix-pink-3); }
/* unclear: not a call — white figure, a dotted red underline (the outline of the bar, in type) */
.fig--index .ix-table .is-unclear .ix-p {
  color: var(--text); text-decoration: underline dotted var(--ix-unc-line); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.fig--index .ix-table tbody .ix-ci, .fig--index .ix-table tfoot .ix-ci { font-size: 12.5px; color: var(--ix-sub); }
.fig--index .ix-unit { color: var(--ix-sub); }
.fig--index .ix-table td.ix-chart { padding-top: 0; padding-bottom: 0; }
.fig--index .ix-table td.ix-chart .ix-track { transition: opacity .3s ease; }
.fig--index.has-focus .ix-table tbody tr:not(.is-focus) .ix-track { opacity: .36; }
.fig--index.has-focus .ix-table tbody tr:not(.is-focus) .ix-p { opacity: .6; }

/* pooled totals — thinner, "for scale only" */
.fig--index .ix-table tfoot th, .fig--index .ix-table tfoot td { height: 62px; border-bottom: 0; }
.fig--index .ix-table tfoot .ix-route { font: 600 13.5px/1.1 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--text); }
.fig--index .ix-table tfoot .ix-cat { padding-left: 0; }
.fig--index .is-pool .ix-bar { height: 4px; margin-top: -2px; opacity: .78; box-shadow: none; }
.fig--index .is-pool .ix-band { top: 6px; bottom: 6px; }

/* ---------- 6 · feed preview ------------------------------------------------------ */
.fig--index .ix-feedbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  font: 500 13px/1.3 var(--f-ui); color: var(--ix-sub); font-variant-numeric: tabular-nums;
}
.fig--index .ix-slot { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fig--index .ix-slot b { font: 400 13px/1 var(--f-mono); color: var(--ix-hi); }
.fig--index .ix-slot__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgb(var(--pink-rgb) / .8);
  animation: dot-pulse 1.6s var(--ease-io) infinite;
}
.fig--index .ix-tallyline { white-space: nowrap; }
.fig--index .ix-tallyline b { font-weight: 600; color: var(--text); }

.fig--index .ix-feed {
  /* fills whatever height the table gives the row and never pushes back: a three-line bite
     arriving (or one fading out) must not resize the dashboard and nudge the page below */
  position: relative; flex: 1 1 0; height: 0; min-height: 360px; margin: 0; padding: 8px 8px 0; list-style: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 72px), transparent);
}
.fig--index .ix-ev {
  --flash: 0;
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0 12px; align-items: start;
  padding: 9px 10px; border-radius: var(--r-sm);
  transition: background-color .25s ease;
}
.fig--index .ix-ev + .ix-ev { margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-ev:hover { background-color: rgba(255, 255, 255, .03); }
  .fig--index .ix-ev--bite:hover { background-color: rgb(var(--pink-rgb) / .1); }
}
.fig--index .ix-ev::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--pink-rgb) / .26), rgb(var(--pink-rgb) / .04) 70%); opacity: var(--flash);
}
.fig--index .ix-ev__tag { position: relative; display: flex; padding-top: 3px; }
/* a leader window: four slots — accent where canaries landed clean, red where one was bitten */
.fig--index .ix-ev__win { display: flex; gap: 2px; }
.fig--index .ix-ev__win b { display: block; width: 5px; height: 14px; border-radius: 1.5px; background: rgb(var(--lime-rgb) / .78); }
.fig--index .ix-ev__win b.is-bite { background: var(--pink); box-shadow: 0 0 8px rgb(var(--pink-rgb) / .75); }
.fig--index .ix-ev--exp .ix-ev__win b { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
/* a bite: the sandwich — front, canary, back */
.fig--index .ix-ev__sw { display: grid; gap: 1.5px; width: 17px; padding-top: 2px; }
.fig--index .ix-ev__sw b { display: block; height: 2.5px; border-radius: 1px; background: var(--pink); box-shadow: 0 0 6px rgb(var(--pink-rgb) / .6); }
.fig--index .ix-ev__sw b:nth-child(2) { background: var(--lime); box-shadow: none; }

.fig--index .ix-ev__line {
  position: relative; font: 400 12.5px/1.6 var(--f-mono); color: rgb(var(--text-rgb) / .66);
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.fig--index .ix-ev__head, .fig--index .ix-ev__body { display: block; }
.fig--index .ix-ev__join { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fig--index .ix-ev__sim { font-weight: 700; color: var(--ix-pink-2); }
.fig--index .ix-ev__head b { font-weight: 400; color: var(--ix-hi); }
.fig--index .ix-ev__route { font-weight: 700; color: var(--ix-hi); }
.fig--index .ix-ev__ok { color: rgb(var(--lime-rgb) / .86); }
.fig--index .ix-ev__bt { font-weight: 700; color: var(--ix-pink-2); }
.fig--index .ix-ev__x { color: var(--ix-sub); }
.fig--index .ix-ev__fr, .fig--index .ix-ev__bk { color: var(--ix-sw); white-space: nowrap; }
.fig--index .ix-ev__cn { color: rgb(var(--lime-rgb) / .88); white-space: nowrap; }
.fig--index .ix-ev__ls { font-weight: 700; color: var(--ix-pink-3); white-space: nowrap; }
.fig--index .ix-ev__age {
  position: relative; min-width: 28px; text-align: right;
  font: 400 12px/1.67 var(--f-mono); color: var(--ix-sub);
}
/* the bite hangs off its window: indented, red rail, an elbow back up to the window's slots */
.fig--index .ix-ev--bite {
  margin-left: 22px; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 0 10px;
  background: rgb(var(--pink-rgb) / .06); box-shadow: inset 2px 0 0 var(--pink);
}
.fig--index .ix-ev--bite .ix-ev__tag::after {
  content: ""; position: absolute; left: -20px; top: -30px; width: 14px; height: 35px;
  border: solid rgb(var(--pink-rgb) / .55); border-width: 0 0 1px 1px; border-bottom-left-radius: 6px;
}
.fig--index .ix-ev--win.has-bite .ix-ev__win b:not(.is-bite) { background: rgb(var(--lime-rgb) / .55); }

/* slot strip — ~400 ms slots drift left; the first slot of each leader window is brighter;
   a judged window lights its four slots */
.fig--index .ix-slots {
  flex: none; display: flex; align-items: center; gap: 14px; padding: 9px 18px 10px; border-top: 1px solid var(--line);
  font: 600 12px/1 var(--f-ui); color: var(--ix-sub);
}
.fig--index .ix-slots[hidden] { display: none; }
.fig--index .ix-slots__view {
  position: relative; flex: 1 1 auto; min-width: 0; height: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 8px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 8px), transparent);
}
.fig--index .ix-slots__track { position: absolute; top: 0; bottom: 0; right: 0; display: flex; align-items: center; gap: 2px; will-change: transform; }
.fig--index .ix-slots__track i {
  flex: none; width: 6px; height: 12px; border-radius: 1.5px; background: rgba(255, 255, 255, .065);
}
.fig--index .ix-slots__track i.is-w { background: rgba(255, 255, 255, .17); }
.fig--index .ix-slots__track i.is-clean { background: rgb(var(--lime-rgb) / .8); box-shadow: 0 0 8px rgb(var(--lime-rgb) / .4); }
.fig--index .ix-slots__track i.is-bite { background: var(--pink); box-shadow: 0 0 10px rgb(var(--pink-rgb) / .8); }
.fig--index .ix-slots__track i.is-exp { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.fig--index .ix-slots__key { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; white-space: nowrap; }
.fig--index .ix-slots__key i { width: 4px; height: 9px; border-radius: 1px; background: rgba(255, 255, 255, .14); }
.fig--index .ix-slots__key i:first-child { background: rgba(255, 255, 255, .34); }
.fig--index .ix-slots__key i:nth-child(4) { margin-right: 7px; }

/* ---------- 7 · reading guide ----------------------------------------------------- */
.fig--index .ix-guide { grid-column: 1 / -1; }
.fig--index .ix-guide__sum { display: none; }
.fig--index .ix-guide__cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1.1fr); }
.fig--index .ix-guide__col { margin: 0; padding: 22px 24px 24px; min-width: 0; }
.fig--index .ix-guide__col + .ix-guide__col { box-shadow: inset 1px 0 0 var(--line); }
.fig--index .ix-guide__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 18px; margin-bottom: 14px; }
.fig--index .ix-guide__title { display: block; font: 600 14px/1.25 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--lime); }
.fig--index .ix-guide__col--read > .ix-guide__title { margin-bottom: 14px; }
.fig--index .ix-guide__lead { font-size: 15px; line-height: 1.55; color: var(--text); }
.fig--index .ix-guide__more {
  position: relative; margin-top: 14px; padding-left: 18px;
  font-size: 14px; line-height: 1.55; color: var(--ix-sub);
}
.fig--index .ix-guide__more::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 1px; background: rgb(var(--lime-rgb) / .7);
}
.fig--index .ix-guide__more + .ix-guide__more { margin-top: 8px; }

/* the four-state key: tiny copies of the table's bars */
.fig--index .ix-key { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; font: 500 13.5px/1.3 var(--f-ui); color: var(--text-2); }
.fig--index .ix-key li { display: flex; align-items: center; gap: 12px; }
.fig--index .ix-key__g { position: relative; flex: none; width: 30px; height: 12px; }
.fig--index .ix-key__g::before, .fig--index .ix-key__g::after { content: ""; position: absolute; top: 50%; }
.fig--index .ix-key__g::after { left: 0; right: 0; height: 1px; margin-top: -.5px; background: var(--ix-wh); opacity: .7; }
.fig--index .ix-key__g::before { z-index: 1; left: 0; width: 70%; height: 6px; margin-top: -3px; border-radius: 0 3px 3px 0; }
.fig--index .ix-key__g.is-clean::after { right: 45%; background: var(--lime); }
.fig--index .ix-key__g.is-clean::before { width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgb(var(--lime-rgb) / .6); }
.fig--index .ix-key__g.is-low::before { background: linear-gradient(90deg, rgb(var(--ix-low-rgb) / .28), var(--ix-low)); }
.fig--index .ix-key__g.is-unclear::before {
  height: 8px; margin-top: -4px; border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(-45deg, rgb(var(--pink-rgb) / .62) 0 1.5px, transparent 1.5px 4.5px), var(--s1);
  box-shadow: inset 0 0 0 1px var(--ix-unc-line);
}
.fig--index .ix-key__g.is-unclear::after { background: var(--ix-unc-w); }
.fig--index .ix-key__g.is-hot::before { background: linear-gradient(90deg, rgb(var(--pink-rgb) / .32), var(--pink)); box-shadow: 0 0 10px rgb(var(--pink-rgb) / .5); }
.fig--index .ix-key__thr { flex: none; width: 30px; height: 16px; background: repeating-linear-gradient(180deg, var(--ix-thr) 0 2px, transparent 2px 5px) 50% 0 / 1px 100% no-repeat; }
/* the same four states, one compact row over the table on phones (the guide is folded there) */
.fig--index .ix-key--mini { display: none; }
@media (max-width: 767px) {
  .fig--index .ix-key--mini {
    display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 10px 14px 11px;
    border-bottom: 1px solid var(--line); font: 500 12.5px/1.25 var(--f-ui); color: var(--text-2);
  }
  .fig--index .ix-key--mini li { gap: 8px; }
  .fig--index .ix-key--mini .ix-key__g { width: 22px; }
}

.fig--index .ix-cmp__row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 92px; align-items: center; gap: 12px; height: 44px; }
.fig--index .ix-cmp__n { font: 700 12.5px/1 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.fig--index .ix-cmp__n i { font-style: normal; font-weight: 400; color: var(--ix-sub); }
.fig--index .ix-cmp__ci { font: 400 12.5px/1 var(--f-mono); color: var(--ix-sub); text-align: right; white-space: nowrap; }
.fig--index .ix-cmp__row.is-unclear .ix-cmp__ci { color: var(--ix-unc); }
.fig--index .ix-cmp__row.is-hot .ix-cmp__ci { color: var(--ix-pink-2); }
.fig--index .ix-cmp .ix-track { height: 100%; }
.fig--index .ix-cmp__plot { position: relative; display: block; height: 44px; padding-block: 11px; }
.fig--index .ix-cmp__note { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text-2); }

.fig--index .ix-mx__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fig--index .ix-mx__item { margin: 0; display: grid; gap: 12px; align-content: start; }
.fig--index .ix-mx__grid { display: grid; grid-template-columns: repeat(6, 11px); gap: 3px; }
.fig--index .ix-mx__grid i { width: 11px; height: 11px; border-radius: 2px; background: rgba(255, 255, 255, .07); }
.fig--index .ix-mx__grid i:nth-child(6n + 1) { box-shadow: inset 0 0 0 1px rgb(var(--lime-rgb) / .5); }
.fig--index .ix-mx__grid i.is-on { background: var(--pink); box-shadow: 0 0 9px rgb(var(--pink-rgb) / .55); }
.fig--index .ix-mx__item figcaption { font-size: 13.5px; line-height: 1.5; color: var(--ix-sub); }
.fig--index .ix-mx__item figcaption b { font-weight: 600; color: var(--ix-hi); }
.fig--index .ix-guide .ix-mx__axes { display: grid; gap: 4px; margin-top: 14px; font: 400 12.5px/1.5 var(--f-ui); color: var(--ix-sub); }
.fig--index .ix-mx__axes i {
  display: inline-block; width: 9px; height: 9px; margin-left: 2px; vertical-align: -1px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(var(--lime-rgb) / .6);
}

/* 7b · what we record per canary — a format, not data */
.fig--index .ix-rec { border-top: 1px solid var(--line); }
.fig--index .ix-rec__sum, .fig--index .ix-guide__sum {
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fig--index .ix-rec__sum::-webkit-details-marker, .fig--index .ix-guide__sum::-webkit-details-marker { display: none; }
.fig--index .ix-rec__sum {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 18px 8px 24px; border-radius: 0 0 var(--r-md) var(--r-md);
  font: 600 14px/1.25 var(--f-ui); color: var(--text); transition: background-color .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fig--index .ix-rec__sum:hover { background: rgba(255, 255, 255, .025); }
  .fig--index .ix-rec__sum:hover .ix-chev { color: var(--lime); }
}
.fig--index .ix-rec[open] > .ix-rec__sum { border-radius: 0; }
.fig--index .ix-rec__sum:focus-visible, .fig--index .ix-guide__sum:focus-visible { outline-offset: -2px; }
.fig--index .ix-rec__meta { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.fig--index .ix-rec__note { font: 500 12.5px/1.2 var(--f-ui); color: var(--ix-sub); }
.fig--index .ix-chev { width: 12px; height: 12px; flex: none; color: var(--ix-sub); transition: transform .4s var(--ease-out), color .25s ease; }
.fig--index .ix-rec[open] > .ix-rec__sum .ix-chev { transform: rotate(180deg); color: var(--lime); }
.fig--index .ix-rec__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 2px 24px 20px; }
.fig--index .ix-rec__list > div {
  display: grid; grid-template-columns: 18ch minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.fig--index .ix-rec__list dt { font: 400 12.5px/1.45 var(--f-mono); color: var(--text); }
.fig--index .ix-rec__list dd { margin: 0; font: 400 13.5px/1.45 var(--f-ui); color: var(--ix-sub); }

/* ---------- 8 · responsive ------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1439px) {
  .fig--index .ix-table { --ix-px: 8px; --ix-edge: 16px; }
  .fig--index .ix-route { font-size: 14px; }
  .fig--index .ix-filter__btn { padding: 0 9px; }
  .fig--index .ix-replay span { display: none; }
  .fig--index .ix-replay { width: 38px; padding: 0; justify-content: center; }
  .fig--index .ix-rec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .fig--index .ix-feed { flex: none; height: 452px; min-height: 0; }
  .fig--index .ix-guide__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig--index .ix-guide .ix-mx { grid-column: 1 / -1; box-shadow: inset 0 1px 0 var(--line); }
  .fig--index .ix-guide .ix-mx .ix-mx__pair { max-width: 640px; }
  .fig--index .ix-rec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* the whole table fits the panel down to 768: no inner scroll, the chart keeps ~190px */
  .fig--index .ix-table { --ix-px: 7px; --ix-edge: 14px; }
  .fig--index .ix-table thead th { font-size: 12px; }
  .fig--index .ix-table tbody .num, .fig--index .ix-table tfoot .num { font-size: 13px; }
  /* a narrow axis keeps every gridline but labels only 0 · 5 · 15 · 30% (the inspector's scale) */
  .fig--index .ix-ticks i:nth-child(3), .fig--index .ix-ticks i:nth-child(5), .fig--index .ix-ticks i:nth-child(6) { visibility: hidden; }
}
@media (max-width: 767px) {
  .fig--index .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fig--index .kpi--landed, .fig--index .kpi--method { grid-column: 1 / -1; }
  .fig--index .kpi { padding: 14px 12px 13px 14px; }
  .fig--index .kpi__value { margin-top: 14px; }
  .fig--index .kpi--bite .kpi__value, .fig--index .kpi--routes .kpi__value { font-size: 44px; }
  .fig--index .ix-tally { gap: 4px; padding-top: 16px; }
  .fig--index .ix-tally__cells { gap: 1px; height: 24px; }
  .fig--index .ix-tally__cells i { min-width: 1.5px; border-radius: 1px; }
  .fig--index .ix-tally__g { flex-basis: calc((var(--k, 1) - 1) * 1px); min-width: 16px; gap: 6px; }
  .fig--index .ix-tally__g .ix-st { min-width: 16px; padding: 0 2px; }
  .fig--index .ix-tally__g.is-zero i { width: 10px; height: 10px; }
  .fig--index .ix-redact { gap: 8px 10px; padding-top: 16px; }
  .fig--index .ix-redact li { gap: 6px; }
  .fig--index .ix-insp__axis { padding-top: 14px; }

  .fig--index .ix-head { padding: 12px 14px; }
  .fig--index .ix-head .ix-tools { order: 3; flex: 1 0 100%; }
  .fig--index .ix-filter { flex: 1; }
  .fig--index .ix-filter__btn { flex: 1; }
  .fig--index .ix-feedbar { padding: 10px 14px; }

  /* rows become cards; explicit ARIA roles (set in JS) keep the table semantics */
  .fig--index .ix-table { --ix-px: 0px; }
  .fig--index .ix-table, .fig--index .ix-table > thead, .fig--index .ix-table > tbody, .fig--index .ix-table > tfoot { display: block; width: 100%; }
  .fig--index .ix-table > thead > tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .fig--index .ix-table > thead th, .fig--index .ix-table > thead th:first-child, .fig--index .ix-table > thead th:last-child { display: block; width: auto; height: auto; padding: 0; border: 0; }
  .fig--index .ix-table > thead th.ix-axis { order: 9; flex: 1 0 100%; width: auto; min-width: 0; padding: 10px 0 0; }
  .fig--index .ix-sort .ix-sym { display: none; }
  .fig--index .ix-sort {
    min-height: 40px; margin: 0; padding: 0 11px; border-radius: 8px;
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line);
  }
  .fig--index th[aria-sort] .ix-sort { background: var(--lime-12); box-shadow: inset 0 0 0 1px rgb(var(--lime-rgb) / .32); }
  .fig--index .ix-table tbody tr, .fig--index .ix-table tfoot tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    grid-template-areas: "route route p ci" "chart chart chart chart" "n k loss loss";
    align-items: center; gap: 4px 14px; padding: 11px 14px 10px; border-bottom: 1px solid var(--line);
  }
  .fig--index .ix-table tbody tr:last-child { border-bottom-color: var(--line-2); }
  .fig--index .ix-table th, .fig--index .ix-table td,
  .fig--index .ix-table th:first-child, .fig--index .ix-table td:first-child,
  .fig--index .ix-table th:last-child, .fig--index .ix-table td:last-child,
  .fig--index .ix-table tfoot th, .fig--index .ix-table tfoot td { display: block; width: auto; height: auto; padding: 0; border: 0; }
  .fig--index .ix-table tbody th::before { left: -14px; top: 0; bottom: 0; }
  .fig--index .ix-table [role="rowheader"], .fig--index .ix-table tbody th, .fig--index .ix-table tfoot th { grid-area: route; }
  .fig--index .ix-table .ix-p { grid-area: p; }
  .fig--index .ix-table .ix-ci { grid-area: ci; }
  .fig--index .ix-table td.ix-chart { grid-area: chart; width: auto; min-width: 0; padding: 2px 0 6px; }
  .fig--index .ix-table .ix-n { grid-area: n; }
  .fig--index .ix-table .ix-k { grid-area: k; }
  .fig--index .ix-table .ix-loss { grid-area: loss; }
  .fig--index .ix-table td.ix-p, .fig--index .ix-table td.ix-ci { min-width: 0; }
  .fig--index .ix-table tbody td.ix-n, .fig--index .ix-table tbody td.ix-k,
  .fig--index .ix-table tfoot td.ix-n, .fig--index .ix-table tfoot td.ix-k { text-align: left; }
  .fig--index .ix-table .ix-n, .fig--index .ix-table .ix-k, .fig--index .ix-table .ix-loss { font-size: 12.5px; }
  .fig--index .ix-table .ix-n::before, .fig--index .ix-table .ix-k::before, .fig--index .ix-table .ix-loss::before {
    content: attr(data-label) "\00a0"; font: 500 12px/1 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--ix-sub);
  }
  .fig--index .ix-table tfoot .ix-loss { display: none; }
  .fig--index .ix-cat { padding-left: 15px; }
  .fig--index .ix-tip { display: none; } /* the card's first row already prints the interval */

  .fig--index .ix-feed { height: 396px; padding: 6px 6px 0; }
  .fig--index .ix-slots { gap: 10px; padding: 8px 14px 9px; }
  /* the head line gets the full width; the age sits in the corner of the last line */
  .fig--index .ix-ev { grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; padding: 9px 8px; }
  .fig--index .ix-ev__age { position: absolute; right: 8px; bottom: 9px; min-width: 0; line-height: 20px; }
  .fig--index .ix-ev__body { padding-right: 32px; }
  .fig--index .ix-ev__win { gap: 1.5px; }
  .fig--index .ix-ev__win b { width: 4px; }
  .fig--index .ix-ev--bite { margin-left: 16px; grid-template-columns: 18px minmax(0, 1fr); }
  .fig--index .ix-ev--bite .ix-ev__tag::after { left: -14px; width: 10px; }

  /* the guide folds behind one "How to read it" (closed until asked) */
  .fig--index .ix-guide__sum {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t chev" "h chev";
    align-items: center; gap: 3px 12px; min-height: 64px; padding: 12px 16px;
  }
  .fig--index .ix-guide__sumt { grid-area: t; font: 600 15px/1.2 var(--f-ui); color: var(--lime); }
  .fig--index .ix-guide__sumh { grid-area: h; font: 400 13px/1.3 var(--f-ui); color: var(--ix-sub); }
  .fig--index .ix-guide__sum .ix-chev { grid-area: chev; width: 14px; height: 14px; }
  .fig--index .ix-guide[open] > .ix-guide__sum { border-bottom: 1px solid var(--line); }
  .fig--index .ix-guide[open] > .ix-guide__sum .ix-chev { transform: rotate(180deg); color: var(--lime); }
  .fig--index .ix-guide__col--read > .ix-guide__title { display: none; }
  .fig--index .ix-guide__cols { grid-template-columns: minmax(0, 1fr); }
  .fig--index .ix-guide__col { padding: 18px 16px 20px; }
  .fig--index .ix-guide__col + .ix-guide__col, .fig--index .ix-guide .ix-mx { box-shadow: inset 0 1px 0 var(--line); }
  .fig--index .ix-cmp__row { grid-template-columns: 50px minmax(0, 1fr) 86px; gap: 10px; }
  .fig--index .ix-rec__sum { flex-wrap: wrap; padding: 10px 16px; row-gap: 6px; }
  .fig--index .ix-rec__meta { margin-left: 24px; flex-basis: 100%; }
  .fig--index .ix-rec__list { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .fig--index .ix-rec__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; }
}
@media (max-width: 380px) {
  .fig--index .ix-filter__btn { padding: 0 7px; }
  .fig--index .ix-mx__pair { gap: 14px; }
  .fig--index .ix-feedbar { font-size: 12.5px; }
  .fig--index .ix-ev { grid-template-columns: 18px minmax(0, 1fr); gap: 0 8px; padding: 8px 6px; }
  .fig--index .ix-ev__line { font-size: 12px; }
  .fig--index .ix-ev__age { right: 6px; bottom: 8px; }
  .fig--index .ix-ev__win { gap: 1px; }
  .fig--index .ix-ev__win b { width: 3.5px; }
  .fig--index .ix-ev--bite { margin-left: 12px; grid-template-columns: 16px minmax(0, 1fr); }
  .fig--index .ix-ev--bite .ix-ev__tag::after { left: -11px; width: 8px; }
}

/* touch: every control is at least 44px tall */
@media (pointer: coarse) {
  .fig--index .ix-filter__btn { height: 44px; }
  .fig--index .ix-replay { height: 50px; }
  .fig--index .ix-sort { min-height: 44px; }
  .fig--index .ix-rec__sum { min-height: 56px; }
}
html.is-touch .fig--index .ix-filter__btn { height: 44px; }
html.is-touch .fig--index .ix-replay { height: 50px; }
html.is-touch .fig--index .ix-sort { min-height: 44px; }

/* reduced motion: the composed final state, nothing pulses */
html.is-reduced .fig--index .ix-slot__dot { animation: none; }
