/* /example/market-insights: TieOut Market Insights. Stylesheet for this page only.

   The AI Trust Market Insights grammar (title block, sticky filters with a
   scope line, a KPI strip, the ladder, stage mix, compare, what was seen at
   each stage, a size panel, how to read this) re-set in this site's system:
   Paper ground, white panels on hairlines, Plex for reading, Plex Mono for
   figures, Outfit for headings.

   Colour carries exactly four meanings here and nothing else:
     the stage ramp   one hue, four steps, light to dark up the ladder
     teal             worth engaging, and a trait the research confirmed
     blue             a timing signal: something new or changed
     slate, hatched   could not be placed, an exclusion, or a thin sample

   Every class is prefixed mi- because base.css already owns .bar, .seg
   and friends. The only shadow is on the filter menus, which float. */

.mi {
  --mi-s0: #B4C3D3;
  --mi-s1: #7F97B0;
  --mi-s2: #4B6583;
  --mi-s3: #1F3656;
  --mi-na: #8E98A1;
  --mi-neutral: #9AA4AD;
  --mi-hatch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E");
  --mi-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23646D77' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mi-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.mi ::selection { background: var(--pill-new-bg); color: var(--ink); }
.mi:not(.is-live) .mi-live-only { display: none; }

/* ── Title block ─────────────────────────────────────────────────── */

.mi-head { padding: 40px 0 22px; }
.mi-title {
  font-size: clamp(33px, 4.5vw, 57px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.mi-lede {
  margin-top: 14px;
  max-width: 64em;
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--body);
}
.mi-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.mi-chip {
  font-family: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  margin-right: 4px;
}
.mi-dot { color: var(--slate); }
.mi-back {
  margin-left: auto;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms ease, border-color 160ms ease;
}
.mi-back:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }

/* ── Sticky filter bar ──────────────────────────────────────────── */

.mi-filters {
  position: sticky;
  top: 60px;
  z-index: 30;
  /* Opaque: at 0.95 the KPI figures showed through as the page scrolled
     under the bar. */
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mi-filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
  padding-top: 11px;
  padding-bottom: 12px;
}
.mi-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.mi-fset { display: flex; flex-wrap: wrap; gap: 10px; }
.mi-f { position: relative; display: grid; gap: 5px; min-width: 0; }
.mi-flabel,
.mi-pick label,
.mi-subh,
.mi-menu-head > span:first-child {
  font-family: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
}
.mi-fbtn,
.mi-pick select {
  height: 40px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface) var(--mi-chev) no-repeat right 13px center;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0 34px 0 12px;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.mi-fbtn {
  min-width: 156px;
  max-width: 236px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-fbtn[aria-expanded="true"] { border-color: var(--ink); }
.mi-fbtn:hover,
.mi-pick select:hover { border-color: var(--muted); }
.mi-fbtn.is-on { border-color: var(--ink); font-weight: 600; background-color: var(--tint); }
.mi-pick select { appearance: none; -webkit-appearance: none; }

.mi-cohort {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px dashed var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.mi-cohort-mark {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--teal);
  border-radius: 2px;
  flex: none;
  transition: background 160ms ease;
}
.mi-cohort:hover { border-color: var(--ink); }
.mi-cohort[aria-pressed="true"] {
  border: 1px solid var(--teal-deep);
  background: var(--pill-yes-bg);
  color: var(--teal-deep);
  font-weight: 600;
}
.mi-cohort[aria-pressed="true"] .mi-cohort-mark { background: var(--teal); }

.mi-reset {
  height: 40px;
  padding: 0 6px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
  cursor: pointer;
}
.mi-reset:hover { text-decoration-color: var(--ink); }
.mi-reset[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

.mi-scope {
  margin-left: auto;
  max-width: 560px;
  padding-bottom: 9px;
  text-align: right;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--body);
}
.mi-scope b { color: var(--ink); font-weight: 600; }
.mi-scope b:first-child { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.mi-restored { display: block; margin-top: 2px; color: var(--muted); }
.mi-restored .mi-link { font-size: inherit; padding: 0; color: var(--ink); }

.mi-ftoggle { display: none; }

.mi-excl {
  margin: 0 0 12px;
  padding: 9px 13px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.mi-excl.is-warn { border-style: dashed; border-color: var(--mi-na); }

/* Menus float, so they are the one place a shadow is earned. */
.mi-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 35;
  width: max-content;
  min-width: 262px;
  max-width: min(340px, calc(100vw - 32px));
  max-height: min(60vh, 460px);
  overflow: auto;
  padding: 8px 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 22, 27, 0.14), 0 2px 6px rgba(17, 22, 27, 0.06);
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}
.mi-menu.is-right { left: auto; right: 0; }
.mi-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 8px 9px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--track);
}
.mi-menu-acts { display: flex; gap: 14px; }
.mi-link {
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.mi-link:hover { text-decoration-color: var(--ink); }
.mi-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
}
.mi-opt:hover { background: var(--tint); }
.mi-opt input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.mi-opt.is-zero .mi-opt-l { color: var(--muted); }
.mi-oc {
  margin-left: auto;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ── Body, KPIs, panels ─────────────────────────────────────────── */

.mi-body { padding-top: 20px; padding-bottom: 76px; }

.mi-kpis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.mi-kpi {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px 18px 17px;
  background: var(--surface);
}
.mi-kpi:focus-visible { outline-offset: -4px; }
.mi-kn {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mi-knil { color: var(--slate); }
.mi-kl { font-size: 14.5px; line-height: 1.35; color: var(--body); }
.mi-kmark,
.mi-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: 0;
  background: var(--teal);
}
.mi-sw-line { width: 18px; height: 4px; border-radius: 2px; }
.mi-noscript {
  margin-top: 20px;
  padding: 16px 18px;
  font-size: 15.5px;
  color: var(--body);
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 12px;
}

.mi-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.mi-grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mi-panel {
  min-width: 0;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.mi-full { margin-top: 20px; }
.mi-ph {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.mi-ph h2 {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.26;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.mi-pop {
  margin-left: auto;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.mi-note {
  margin: 14px 0 0;
  max-width: 68em;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.mi-note-top { margin: 0 0 14px; }
.mi-read {
  margin: 0 0 14px;
  max-width: 62em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.mi-read b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.mi-hint { margin: -4px 0 10px; font-size: 13.5px; color: var(--muted); }
.mi-wait,
.mi-empty {
  margin: 0;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--body);
  background: var(--surface-2);
  border: 1px dashed var(--rule);
  border-radius: 8px;
}
.mi-subh { margin: 20px 0 8px; }
.mi-subh:first-child { margin-top: 0; }

.mi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--body);
}
.mi-legend span { display: inline-flex; align-items: center; }

/* The four meanings, as fills. */
.mi-s0 { background: var(--mi-s0); }
.mi-s1 { background: var(--mi-s1); }
.mi-s2 { background: var(--mi-s2); }
.mi-s3 { background: var(--mi-s3); }
.mi-eng { background: var(--teal); }
.mi-sig { background: var(--blue); }
.mi-ink { background: var(--mi-neutral); }
.mi-na {
  background: var(--mi-na);
  -webkit-mask: var(--mi-hatch) repeat;
  mask: var(--mi-hatch) repeat;
}
/* A thin sample is hatched whatever its colour. */
.is-thin .mi-segm,
.mi-crow.is-thin .mi-fill {
  -webkit-mask: var(--mi-hatch) repeat;
  mask: var(--mi-hatch) repeat;
}

.mi-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--f, 0));
  transition: transform 420ms var(--mi-ease);
}

/* Segmented control and the numbers toggle in a panel header. */
.mi-seg {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.mi-segbtn {
  padding: 6px 12px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--body);
  background: var(--surface);
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.mi-segbtn + .mi-segbtn { border-left: 1px solid var(--rule); }
.mi-segbtn:hover { color: var(--ink); background: var(--tint); }
.mi-segbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.mi-segbtn:focus-visible { outline-offset: -3px; }
.mi-toggle {
  padding: 6px 11px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
}
.mi-toggle:hover { border-color: var(--ink); }

/* ── The ladder ─────────────────────────────────────────────────── */

.mi-ladder { display: grid; gap: 14px; }
.mi-ladder-foot { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.mi-rung {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  border-radius: 6px;
}
.mi-rn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--body);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.mi-rung.is-nil .mi-rn { border-style: dashed; background: transparent; color: var(--muted); }
.mi-rmain { display: block; min-width: 0; }
.mi-rlab { display: block; margin-bottom: 7px; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.mi-track,
.mi-ctrack,
.mi-ct {
  display: block;
  height: 14px;
  background: var(--track);
  border-radius: 0 5px 5px 0;
  overflow: hidden;
}
.mi-etrack { display: block; height: 4px; margin-top: 3px; }
.mi-rval {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mi-rval small,
.mi-mval small {
  display: block;
  margin-top: 5px;
  font-family: var(--text);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--teal-deep);
}
.mi-fig { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Stage mix rows (buttons: each one is a filter) ─────────────── */

.mi-mix { display: grid; gap: 2px; }
.mi-mrow {
  display: grid;
  grid-template-columns: minmax(130px, 230px) minmax(0, 1fr) 100px;
  gap: 14px;
  align-items: center;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 7px 8px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms ease;
}
.mi-mrow:hover { background: var(--tint); }
.mi-mrow.is-sel { background: var(--band); }
.mi-mrow.is-total { cursor: default; border-bottom: 1px solid var(--rule); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.mi-mrow.is-total:hover { background: none; }
.mi-mrow.is-total .mi-mlab { font-weight: 600; }
.mi-mlab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}
.mi-chk {
  width: 12px;
  height: 12px;
  flex: none;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  transition: background 160ms ease, border-color 160ms ease;
}
.mi-mrow.is-sel .mi-chk { background: var(--ink); border-color: var(--ink); }
.mi-mrow.is-out .mi-mlab,
.mi-mrow.is-out .mi-mval,
.mi-mrow.is-out .mi-mval small { color: var(--muted); }
.mi-mrow.is-out .mi-chk { border-style: dashed; border-color: var(--slate); }
.mi-mrow.is-out .mi-stack,
.mi-mrow.is-out .mi-mnums { opacity: 0.34; filter: grayscale(1); transition: opacity 160ms ease; }
.mi-mrow.is-out:hover .mi-stack,
.mi-mrow.is-out:hover .mi-mnums { opacity: 0.6; }
.mi-add {
  font-family: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 3px 6px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.mi-mrow.is-out:hover .mi-add { border-color: var(--ink); }
.mi-mnote {
  margin: -2px 0 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.mi-stack {
  display: flex;
  height: 16px;
  background: var(--track);
  border-radius: 5px;
  overflow: hidden;
}
.mi-segm {
  display: block;
  height: 100%;
  flex: none;
  border-right: 2px solid var(--surface);
}
.mi-segm:last-child { border-right: 0; }
.mi-mval {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mi-mnums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.mi-mnums b { font-weight: 500; color: var(--ink); }
.mi-too { font-size: 13.5px; font-style: italic; color: var(--muted); }
.mi-flag {
  font-family: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 3px 5px;
  color: var(--muted);
  border: 1px dashed var(--mi-na);
  border-radius: 5px;
  white-space: nowrap;
}

/* ── Compare ────────────────────────────────────────────────────── */

.mi-cmp-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 16px; }
.mi-pick { display: grid; gap: 5px; }
.mi-pick-wide select { min-width: 320px; max-width: 100%; }
.mi-cmp-head .mi-note { flex: 1 1 320px; margin: 0; }
.mi-crow,
.mi-scale {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: center;
}
.mi-crow { padding: 6px 0; border-radius: 6px; }
.mi-clab { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.mi-cval {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.mi-cval b { margin-right: 10px; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.mi-crow.is-thin .mi-clab,
.mi-crow.is-thin .mi-cval b { color: var(--muted); }
.mi-scale {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.mi-ticks { display: flex; justify-content: space-between; }
.mi-cdiv {
  margin: 12px 0 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}
.mi-ctrack { position: relative; }
.mi-break {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  width: 7px;
  background: var(--surface);
  border-left: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: skewX(-22deg);
}
.mi-flag-over { border-style: solid; border-color: var(--rule); }

/* ── What the research found at each stage ──────────────────────── */

.mi-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}
.mi-scroll.is-scroll:not(.is-end) {
  -webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, var(--ink) calc(100% - 56px), transparent);
}
.mi-scrollcue { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.mi-sawpick { display: none; }
.mi-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14.5px; }
.mi-table thead th {
  padding: 0 0 10px 14px;
  text-align: right;
  vertical-align: bottom;
  white-space: nowrap;
  font-family: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.mi-table thead th small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.mi-table .mi-tl { text-align: left; padding-left: 0; }
.mi-th-sw { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.mi-table tbody th[scope="row"] {
  min-width: 250px;
  padding: 8px 0;
  text-align: left;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--track);
  background: var(--surface);
}
.mi-grp th {
  padding: 18px 0 7px;
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.mi-cell { padding: 8px 0 8px 14px; border-bottom: 1px solid var(--track); }
.mi-cb { display: grid; grid-template-columns: 40px minmax(44px, 1fr); gap: 8px; align-items: center; }
.mi-cv { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.mi-cv.is-zero { color: var(--slate); }
.mi-ct { height: 8px; border-radius: 0 3px 3px 0; }
.mi-dotted {
  text-decoration: underline dotted var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: help;
}

/* ── Timing signals ─────────────────────────────────────────────── */

.mi-prow {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  border-radius: 6px;
}
.mi-plab { font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.mi-pbars { display: block; min-width: 0; }
.mi-pbars .mi-track { height: 12px; }
.mi-pval {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.mi-callout {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
}
.mi-callout b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Fit and timing bands ───────────────────────────────────────── */

.mi-bands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 48px; }
.mi-legend-bands { grid-column: 1 / -1; margin: 0; }
.mi-hcols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 10px;
  height: 210px;
  padding-bottom: 2px;
}
.mi-hcol {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  height: 100%;
  text-align: center;
  border-radius: 6px;
}
.mi-hv { font-family: var(--mono); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.mi-hbar {
  position: relative;
  display: block;
  background: var(--track);
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}
.mi-hfill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: var(--mi-neutral);
  transform-origin: center bottom;
  transform: scaleY(var(--f, 0));
  transition: transform 420ms var(--mi-ease);
}
.mi-hfill.mi-eng { background: var(--teal); }
.mi-hl { font-size: 13.5px; line-height: 1.25; color: var(--muted); }

/* ── How to read this ───────────────────────────────────────────── */

.mi-mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px 34px;
}
.mi-mgrid h3 {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.25;
  letter-spacing: -0.016em;
  color: var(--ink);
}
.mi-mgrid p { font-size: 15.5px; line-height: 1.55; color: var(--body); }
.mi-mgrid .mi-prov { margin-top: 7px; font-size: 14.5px; color: var(--muted); }
.mi-prov:empty { display: none; }
.mi-footline {
  margin-top: 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Close ──────────────────────────────────────────────────────── */

.mi-close { padding: 82px 0; background: var(--tint); border-top: 1px solid var(--rule); }
.mi-close-title { font-size: clamp(28px, 3.9vw, 52px); color: var(--ink); }
.mi-close-lede { max-width: 34em; margin-top: 20px; font-size: 18.5px; line-height: 1.62; color: var(--body); }

/* ── Tooltip ────────────────────────────────────────────────────── */

.mi-tip {
  position: fixed;
  z-index: 50;
  max-width: 320px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bg);
  background: var(--ink);
  border-radius: 6px;
  pointer-events: none;
}
.mi [data-tip] { cursor: help; }
.mi .mi-mrow[data-tip] { cursor: pointer; }
.mi-opt[data-tip] { cursor: pointer; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .mi-scope { margin-left: 0; max-width: none; text-align: left; padding-bottom: 0; width: 100%; }
}

@media (max-width: 900px) {
  .mi-grid,
  .mi-grid-even { grid-template-columns: minmax(0, 1fr); }
  .mi-kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mi-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .mi-head { padding: 26px 0 18px; }
  .mi-lede { font-size: 17px; line-height: 1.55; margin-top: 12px; }
  .mi-meta { font-size: 13.5px; gap: 6px 8px; margin-top: 14px; }
  .mi-back { margin-left: 0; }

  .mi-filters-inner { gap: 8px; padding-top: 9px; padding-bottom: 10px; }
  .mi-controls { width: 100%; gap: 8px; }
  .mi-ftoggle {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 34px 0 14px;
    font-family: var(--text);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface) var(--mi-chev) no-repeat right 13px center;
    border: 1px solid var(--rule);
    border-radius: 6px;
    cursor: pointer;
  }
  .mi-ftoggle[aria-expanded="true"] { border-color: var(--ink); }
  .mi-fcount:not(:empty) {
    min-width: 20px;
    padding: 3px 6px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1;
    text-align: center;
    color: var(--bg);
    background: var(--ink);
    border-radius: 5px;
  }
  .mi-cohort { order: 2; height: 44px; padding: 0 12px; font-size: 14.5px; }
  .mi-reset { order: 3; height: 44px; margin-left: auto; }
  .mi-fset {
    order: 4;
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding-top: 2px;
  }
  .mi-fset.is-open { display: grid; }
  .mi-fbtn { width: 100%; min-width: 0; max-width: none; height: 44px; }
  .mi-menu { min-width: 0; width: min(300px, calc(100vw - 40px)); }
  .mi-scope { font-size: 13.5px; }

  .mi-body { padding-bottom: 56px; }
  .mi-kn { font-size: 26px; }
  .mi-kpi { padding: 14px 14px 15px; }
  .mi-kl { font-size: 14px; }
  .mi-panel { padding: 18px 16px 20px; border-radius: 12px; }
  .mi-grid, .mi-full { margin-top: 16px; }
  .mi-ph h2 { font-size: 19px; }
  .mi-seg { margin-left: 0; }
  .mi-segbtn, .mi-toggle { min-height: 40px; }

  .mi-mrow {
    grid-template-columns: minmax(0, 1fr) 100px;
    grid-template-areas: "l v" "b b";
    row-gap: 7px;
  }
  .mi-mrow .mi-mlab { grid-area: l; }
  .mi-mrow .mi-stack,
  .mi-mrow .mi-mnums,
  .mi-mrow .mi-too { grid-area: b; }
  .mi-mrow .mi-mval { grid-area: v; }
  .mi-mval small { margin-top: 3px; }

  .mi-crow,
  .mi-scale { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "l v" "b b"; row-gap: 6px; }
  .mi-crow .mi-clab { grid-area: l; }
  .mi-crow .mi-ctrack { grid-area: b; }
  .mi-crow .mi-cval { grid-area: v; }
  .mi-scale > span:first-child,
  .mi-scale > span:last-child { display: none; }
  .mi-scale .mi-ticks { grid-column: 1 / -1; }
  .mi-pick, .mi-pick-wide { width: 100%; }
  .mi-pick select, .mi-pick-wide select { width: 100%; min-width: 0; height: 44px; }

  .mi-prow { grid-template-columns: minmax(0, 1fr) 52px; grid-template-areas: "l v" "b b"; row-gap: 6px; }
  .mi-prow .mi-plab { grid-area: l; }
  .mi-prow .mi-pbars { grid-area: b; }
  .mi-prow .mi-pval { grid-area: v; }

  .mi-table { min-width: 720px; }
  .mi-table tbody th[scope="row"],
  .mi-table thead .mi-tl { position: sticky; left: 0; z-index: 1; min-width: 168px; max-width: 168px; background: var(--surface); padding-right: 10px; }

  .mi-bands { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mi-hcols { height: 170px; gap: 6px; }
  .mi-hl { font-size: 12.5px; }

  .mi-mgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mi-close { padding: 60px 0; }
  .mi-close-lede { font-size: 17px; }
}

@media (max-width: 600px) {
  .mi-sawpick:not(:empty) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
  }
  .mi-sawbtn {
    display: grid;
    gap: 3px;
    min-height: 48px;
    padding: 7px 8px;
    text-align: left;
    font-family: var(--text);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 6px;
    cursor: pointer;
  }
  .mi-sawbtn .mi-fig { font-size: 12.5px; color: var(--muted); }
  .mi-sawbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .mi-sawbtn[aria-pressed="true"] .mi-fig { color: var(--bg); }
  .mi-sawbtn:focus-visible { outline-offset: 2px; }

  .mi-table { min-width: 0; }
  .mi-table .mi-cell { width: 48%; }
  .mi-table .mi-cell,
  .mi-table thead th:not(.mi-tl) { display: none; }
  .mi-table[data-show="0"] .mi-k0,
  .mi-table[data-show="1"] .mi-k1,
  .mi-table[data-show="2"] .mi-k2,
  .mi-table[data-show="3"] .mi-k3,
  .mi-table[data-show="4"] .mi-k4,
  .mi-table[data-show="5"] .mi-k5 { display: table-cell; }
  .mi-table tbody th[scope="row"],
  .mi-table thead .mi-tl { position: static; width: 52%; min-width: 0; max-width: none; }
  .mi-cb { grid-template-columns: 40px minmax(0, 1fr); }
  .mi-scrollcue { display: none; }
  .mi-scroll.is-scroll:not(.is-end) { -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mi *,
  .mi *::before,
  .mi *::after { transition: none !important; }
}
