:root {
  --ink: #132238;
  --muted: #647184;
  --paper: #f4f6f8;
  --card: #ffffff;
  --line: #dce2e8;
  --teal: #087f7a;
  --teal-soft: #e5f5f3;
  --amber: #b96a1b;
  --amber-soft: #fff3e5;
  --red: #b63838;
  --red-soft: #fff0f0;
  --navy-soft: #eaf0f7;
  --shadow: 0 16px 40px rgba(19, 34, 56, 0.07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell-header { min-height: 72px; padding: 12px clamp(18px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 86px; height: 36px; object-fit: contain; }
.brand span { display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 12px; }
.brand small, .ps, .note, .filter-note { color: var(--muted); }
.header-status { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.deep-toggle-wrap { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; }
.deep-switch { position: relative; width: 42px; height: 23px; padding: 0; border-radius: 999px; background: #cbd3dc; transition: background .2s ease; }
.deep-switch::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(19,34,56,.25); transition: transform .2s ease; }
.deep-switch[aria-pressed="true"] { background: var(--teal); }
.deep-switch[aria-pressed="true"]::after { transform: translateX(19px); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b5; box-shadow: 0 0 0 4px #edf0f3; }
.status-dot.ok { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.lens-nav { display: flex; gap: 2px; padding: 0 clamp(18px, 4vw, 60px); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 25; overflow-x: auto; }
.lens-nav a { padding: 14px 20px 12px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.lens-nav a.active { color: var(--ink); border-bottom-color: var(--teal); }

.filter-drawer { padding: 14px clamp(18px, 4vw, 60px); background: #eef2f5; border-bottom: 1px solid var(--line); }
.filter-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
input, select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #cbd3dc; border-radius: 8px; background: var(--card); color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(8, 127, 122, .22); outline-offset: 2px; }
.checkbox { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
.checkbox input { width: 17px; min-height: 17px; }
.filter-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { background: var(--navy-soft); border: 1px solid #d5dfea; border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.filter-note { margin: 8px 0 0; font-size: 11px; }
.table-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.table-pagination { display: flex; gap: 6px; }
.table-filter-toggle { display: inline-flex; grid: none; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border: 1px solid #d5dfea; border-radius: 999px; background: #f7f9fb; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 750; letter-spacing: 0; }
.table-filter-switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #c5cfda; transition: background .18s ease; }
.table-filter-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(19,34,56,.25); transition: transform .18s ease; }
.table-filter-toggle input:checked + .table-filter-switch { background: var(--teal); }
.table-filter-toggle input:checked + .table-filter-switch::after { transform: translateX(14px); }
.table-filter-toggle:focus-within { outline: 3px solid rgba(8, 127, 122, .22); outline-offset: 2px; }

button { border: 0; border-radius: 8px; cursor: pointer; }
.primary { background: var(--teal); color: white; padding: 10px 16px; font-weight: 750; }
.quiet { background: white; color: var(--ink); border: 1px solid #cbd3dc; padding: 8px 12px; }
.quiet:hover, .quiet.active { border-color: var(--teal); color: var(--teal); }

main { max-width: 1720px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 60px) 60px; min-height: 70vh; }
main:focus, main:focus-visible { outline: none !important; }
.lens-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 20px; }
.eyebrow { margin: 0 0 7px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 42px); line-height: 1.05; margin-bottom: 8px; letter-spacing: -.035em; }
h2 { font-size: 18px; letter-spacing: -.015em; }
h3 { font-size: 14px; }
.lens-head p { margin-bottom: 0; max-width: 760px; color: var(--muted); }
.freshness { text-align: right; min-width: 220px; color: var(--muted); font-size: 12px; }

.grid { display: grid; gap: 14px; }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sharing-kpis { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
/* Sharing runs full width: the breakdown chart carries the detail, so it takes
   the larger share and the destinations table sits beside it rather than under
   it. `single` is the no-destinations case, where the chart takes the row. */
.sharing-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
.sharing-body.single { grid-template-columns: minmax(0, 1fr); }
.sharing-body > section { min-width: 0; }
.sharing-destinations .panel-subhead { margin-top: 0; }
.panel, .kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel { padding: 18px; margin-bottom: 14px; min-width: 0; }
.kpi { padding: 15px; min-height: 104px; }
.kpi .label { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.kpi-label-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-icon { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }
.kpi-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi .value { margin-top: 10px; font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.kpi .detail { margin-top: 6px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.kpi .d { margin-top: 6px; color: var(--teal); font-size: 11px; font-weight: 750; }
.kpi .d.down { color: var(--red); }
.kpi .d.neutral { color: var(--muted); font-weight: 600; }
.kpi.partial { border-color: #e2bd83; background: #fffaf3; }
.kpi.unavailable, .dark { border-color: #c9d1da; background: repeating-linear-gradient(135deg, #f7f8fa, #f7f8fa 8px, #f0f2f4 8px, #f0f2f4 16px); box-shadow: none; }
.kpi.unavailable .value { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.kpi.gap-card { border-style: dashed; border-color: #b96a1b; background: #fffaf3; }
.kpi.gap-card .value { color: #8b4e13; }

.panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { margin-bottom: 4px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; background: #eef2f5; border-radius: 9px; }
.seg button { padding: 6px 10px; background: transparent; color: var(--muted); font-size: 12px; }
.seg button.active { color: white; background: var(--teal); }
.series-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.series-toggles label { display: flex; align-items: center; gap: 5px; background: #f4f6f8; border-radius: 999px; padding: 5px 9px; color: var(--ink); font-size: 11px; }
.series-toggles input { width: 13px; min-height: 13px; }
.chart-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.chart-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 750; }
.chart-chip.off { opacity: .4; }
.chart-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chart-chip.merge { color: var(--teal); border-color: var(--teal); }
.chart-chip.merge.active { background: var(--teal); color: #fff; }
.chart { width: 100%; height: 320px; }
.chart.small { height: 190px; }
.chart.tall { height: 410px; }
.mix-head { margin: 14px 0 2px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.mix-head:first-child { margin-top: 2px; }
.conversion-ladder { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.conversion-stage { display: grid; grid-template-columns: 28px minmax(150px, 1fr) auto; gap: 4px 11px; align-items: center; padding: 10px 11px; border: 1px solid #e0e6eb; border-radius: 10px; background: #fff; }
.conversion-index { display: grid; grid-row: 1 / span 2; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy-soft); color: #506178; font-size: 10px; font-weight: 850; }
.conversion-copy { display: grid; gap: 2px; min-width: 0; }
.conversion-copy b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversion-copy span, .conversion-values span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.conversion-values { display: grid; gap: 1px; text-align: right; font-variant-numeric: tabular-nums; }
.conversion-values strong { font-size: 15px; }
.conversion-track { grid-column: 2 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: #e8edf1; }
.conversion-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087f7a, #29aaa3); }
.conversion-stage.coverage-anomaly { border-style: dashed; border-color: #dab27a; background: #fffaf3; }
.conversion-ladder.compact { gap: 6px; }
.conversion-ladder.compact .conversion-stage { grid-template-columns: 24px minmax(110px, 1fr) auto; padding: 8px 9px; }
.conversion-ladder.compact .conversion-index { width: 22px; height: 22px; border-radius: 7px; }
.conversion-ladder.compact .conversion-copy b { font-size: 11px; }
.conversion-ladder.compact .conversion-values strong { font-size: 13px; }
.format-performance .table-wrap { height: 290px; overflow: auto; }
.live-panel { border-top: 4px solid var(--teal); }
.live-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.live-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.stale-banner { border: 1px solid #e4b56d; background: var(--amber-soft); color: #74420f; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.definition-note { margin: 10px 0 0; padding: 9px 11px; background: var(--teal-soft); border-radius: 8px; color: #245a57; font-size: 11px; }
.doctrine-box { margin: 0 0 14px; padding: 11px 13px; border: 1.5px dashed var(--amber); border-radius: 10px; background: #fffdf8; color: #5d4a35; font-size: 11px; line-height: 1.5; }
.doctrine-box b { display: block; margin-bottom: 3px; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.deep-panel { display: none; }
body.deepmode .deep-panel { display: block; }
.deep-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.percent-funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: minmax(105px, 1fr) 3fr auto; gap: 9px; align-items: center; font-size: 11px; }
.funnel-track { height: 11px; overflow: hidden; border-radius: 999px; background: #e5e9ee; }
.funnel-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.funnel-row strong { min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.investor-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.investor-cell { min-height: 72px; padding: 10px; border-radius: 9px; background: var(--teal-soft); }
.investor-cell b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.investor-cell span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.investor-cell.dark { background: #eef0f4; border: 1px dashed #bfc8d2; }
.investor-strip.strip-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reconciliation-table { margin-top: 12px; }
.reconciliation-table td { padding: 7px 10px; font-size: 11px; }
.reconciliation-table tr.warn td { background: var(--amber-soft); color: #74420f; font-weight: 700; }
.panel-subhead { margin: 16px 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cohort-key { margin: 2px 0 12px; padding: 9px 11px; border-left: 3px solid var(--teal); border-radius: 0 7px 7px 0; background: var(--teal-soft); color: #284449; font-size: 11px; line-height: 1.45; }
.cohort-table { min-width: 940px; }
.cohort-table th { text-align: center; white-space: nowrap; }
.cohort-table th > span, .cohort-table th > small { display: block; }
.cohort-table th > small { margin-top: 2px; color: #7a8796; font-size: 8px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.cohort-table td { text-align: center; vertical-align: middle; }
.cohort-table td:first-child, .cohort-table th:first-child { min-width: 178px; text-align: left; }
.heat-cell { display: inline-grid; min-width: 68px; min-height: 52px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; place-content: center; color: #123433; font-variant-numeric: tabular-nums; }
.heat-cell strong { font-size: 14px; line-height: 1.1; }
.heat-cell small { margin-top: 3px; font-size: 10px; font-weight: 800; }
.heat-low { border-color: #c6dfdd; background: #edf7f6; }
.heat-medium { border-color: #83c4bf; background: #c9e7e4; }
.heat-high { border-color: #2c8c87; background: #72bbb6; color: #082d2b; }
.heat-highest { border-color: #056d68; background: #087f7a; color: #fff; }
.heat-blank { display: inline-grid; min-width: 68px; min-height: 52px; padding: 7px 8px; border: 1px dashed #cbd3dc; border-radius: 7px; place-content: center; background: #f7f8fa; color: #697786; font-size: 9px; font-weight: 700; line-height: 1.2; }
.integrity-ok { color: var(--teal); font-weight: 800; }
.integrity-bad { color: var(--red); font-weight: 800; }
.journey-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.journey-summary > div { min-height: 82px; padding: 12px 14px; background: #f8fafb; }
.journey-summary span, .journey-summary small { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.journey-summary b { display: block; margin: 4px 0 1px; color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.journey-summary small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.journey-unit { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.journey-flow { display: grid; grid-template-columns: minmax(190px, .9fr) 34px minmax(280px, 1.25fr) 34px minmax(190px, .9fr); gap: 9px; align-items: start; padding: 14px; border: 1px solid #dce5e9; border-radius: 13px; background: linear-gradient(135deg, #f7fafb 0%, #f2f7f7 100%); }
.journey-column { min-width: 0; }
.journey-core { padding: 11px; border: 1px solid #d7e2e5; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(19,34,56,.05); }
.journey-kicker { margin: 0 0 9px; color: #456078; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.journey-arrow { align-self: center; position: relative; display: block; height: 1px; background: #8bb8b5; }
.journey-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 7px; height: 7px; border-top: 1.5px solid #438b86; border-right: 1.5px solid #438b86; transform: rotate(45deg); }
.journey-ranked { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.journey-ranked li { display: grid; gap: 4px; }
.journey-ranked li > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.journey-ranked b { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.journey-ranked span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.journey-ranked i { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: #dfe8ea; }
.journey-ranked i span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.journey-column:last-child .journey-ranked i span { background: #46647f; }
/* ── Journey drill-down ─────────────────────────────────────────────────────
   A destination row that has a second level becomes a bare button holding the
   same markup, so an expandable row and an inert one look identical until you
   hover. The nested list is indented and desaturated to read as a child of the
   row above rather than as a second ranking. */
.journey-ranked li.has-drill { gap: 0; }
.journey-drill-toggle { display: grid; gap: 4px; width: 100%; padding: 3px 4px 4px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.journey-drill-toggle:hover { background: rgba(8, 127, 122, .07); }
.journey-drill-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.journey-drill-toggle > div > b { position: relative; padding-right: 13px; }
.journey-drill-toggle > div > b::after { content: ""; position: absolute; right: 2px; top: 50%; width: 5px; height: 5px; border-right: 1.4px solid var(--teal); border-bottom: 1.4px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.journey-drill-toggle[aria-expanded="true"] > div > b::after { transform: translateY(-30%) rotate(225deg); }
.journey-drill-toggle[aria-expanded="true"] { background: rgba(8, 127, 122, .07); }
.journey-drill { margin: 2px 0 4px 9px; padding: 9px 10px; border-left: 2px solid #b7d8d5; border-radius: 0 8px 8px 0; background: #f5f9f9; }
.journey-drill-head { margin: 0 0 8px; color: #456078; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.journey-drill-empty { margin: 0; color: var(--muted); font-size: 10px; }
.journey-drill-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.journey-drill-list li { display: grid; gap: 3px; }
.journey-drill-list li > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.journey-drill-list b { min-width: 0; overflow: hidden; font-size: 9.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.journey-drill-list span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.journey-drill-list i { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: #e3ecec; }
.journey-drill-list i span { display: block; height: 100%; border-radius: inherit; background: #5aa39e; }

/* ── Feed reading bands ─────────────────────────────────────────────────────
   Each band is one row: how many people, how wide that is against the largest
   band, and the two numbers that make depth worth acting on. */
.feed-reading > section { min-width: 0; }
.feed-bands { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.feed-bands li { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid #dfe8ea; border-radius: 10px; background: #fbfdfd; }
.feed-band-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.feed-band-head b { min-width: 0; overflow: hidden; font-size: 10.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.feed-band-head > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.feed-bands i { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: #e3ecec; }
.feed-bands i span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.feed-band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.feed-band-stats > span { display: grid; color: var(--muted); font-size: 9px; line-height: 1.35; }
.feed-band-stats b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.feed-bands li:last-child { border-color: #b7d8d5; background: var(--teal-soft); }
.journey-ranked li:last-child b { color: #6b7785; }
.journey-outcomes { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(auto-fit, minmax(105px, 1fr)); gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.journey-outcomes > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f7f9fa; }
.journey-outcomes > div:first-child { padding-left: 0; background: transparent; }
.journey-outcomes > div:first-child span { color: var(--muted); font-size: 9px; }
.journey-outcome b { display: block; min-height: 25px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.journey-outcome strong { margin-right: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }
.journey-outcome span { color: var(--muted); font-size: 9px; }
.journey-paths { margin-top: 12px; }
.journey-paths > summary { cursor: pointer; color: var(--teal); font-size: 10px; font-weight: 750; }
.journey-method, .journey-warning { margin: 11px 0 0; padding: 9px 11px; border-radius: 8px; background: #f3f6f7; color: var(--muted); font-size: 10px; line-height: 1.5; }
.journey-method b { color: var(--ink); }
.journey-warning { border: 1px solid #e0b472; background: var(--amber-soft); color: #74420f; }
.signup-journey-panel { overflow: hidden; border-color: #cbdadd; box-shadow: 0 18px 46px rgba(19,34,56,.08); }
.signup-journey { display: grid; gap: 18px; }
.signup-journey-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.signup-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.signup-family-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #d6e1e4; border-radius: 12px; background: #d6e1e4; }
.signup-family-card > div { min-width: 0; padding: 13px 14px; background: #f8fbfb; }
.signup-family-card > div:last-child { background: #fff; }
.signup-family-card span, .signup-family-card small { display: block; color: var(--muted); font-size: 9px; }
.signup-family-card span { font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.signup-family-card b { display: block; margin: 5px 0 2px; color: var(--ink); font-size: 19px; }
.signup-trail-flow { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: center; gap: 18px; padding: 17px; border: 1px solid #d6e2e4; border-radius: 13px; background: linear-gradient(135deg, #f7fafb, #f0f6f5); }
.signup-specialty-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 3px; border-top: 1px solid var(--line); }
.signup-specialty-head h3 { margin: -4px 0 0; font-size: 15px; }
.signup-specialty-head > span { color: var(--muted); font-size: 9px; }
/* ── Inline definitions ─────────────────────────────────────────────────────
   The 19px affordance reads correctly beside a 15px KPI title and shouts
   beside a 9px uppercase micro-label, so dense contexts get a smaller one and
   a flex wrapper that keeps the label truncating rather than the button. */
.metric-tip-trigger.compact { width: 15px; height: 15px; min-width: 15px; margin-left: 4px; border-color: #b8c4d0; font-size: 9px; }
.term-label { display: inline-flex; align-items: center; min-width: 0; gap: 1px; }
.term-label > span { min-width: 0; }
.kicker-term { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.kicker-term .metric-tip-trigger.compact { margin-left: 3px; }
.journey-summary .term-label, .signup-family-card .term-label { display: flex; }

.context-stat { display: flex; align-items: baseline; gap: 9px; padding: 13px 14px; border-radius: 10px; background: #f2f7f7; }
.context-stat b { font-size: 23px; }
.context-stat span { color: var(--muted); font-size: 10px; }
.pivot-controls { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }

.table-wrap { overflow-x: auto; }
.table-wrap.friction-table.is-collapsed { max-height: 260px; overflow: auto; }
/* The interaction inventory is reference data, not a finding. Cap it at roughly
   half a screen; the expander and the CSV export still reach every row. */
.table-wrap.inventory-table.is-collapsed { max-height: 300px; overflow: auto; }
.table-expander { margin: 9px 0 2px; padding: 7px 10px; border: 1px solid #cbd3dc; background: #fff; color: var(--teal); font-size: 11px; font-weight: 750; }
.table-expander:hover { border-color: var(--teal); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .045em; background: #f7f8fa; }
th, td { padding: 10px; border-bottom: 1px solid #e7ebef; vertical-align: top; }
th > span { vertical-align: middle; }
.table-sort { padding: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.table-sort::after { content: " ↕"; color: #9aa6b5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr[data-open] { cursor: pointer; }
tr[data-open]:hover { background: var(--teal-soft); }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: var(--navy-soft); }
.badge.partial { background: var(--amber-soft); color: #7b430b; }
.badge.unavailable { background: var(--red-soft); color: var(--red); }
.coverage { display: flex; flex-wrap: wrap; gap: 6px; }
.coverage span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.progress-distribution { display: flex; width: 100%; min-height: 42px; margin: 8px 0 16px; overflow: hidden; border-radius: 9px; background: #e5e9ee; }
.progress-distribution span { min-width: 0; border-right: 2px solid #fff; }
.detail-main { min-width: 0; }
.kpi-grid.entity-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 260px)); justify-content: start; margin-top: 10px; }
/* Nine webinar cards: three rows of three, so the capture-coverage card sits
   in the grid rather than orphaned on a row of its own. */
.kpi-grid.entity-kpi-grid.webinar-kpi-grid { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.cohort-note { margin: -4px 0 18px; padding: 10px 13px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: #edf7f6; color: #3e5364; font-size: 12px; }
.cohort-note b { color: var(--ink); }
.creator-brief { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(540px, 1.4fr); gap: 24px; align-items: center; margin-bottom: 14px; padding: 22px 24px; border: 1px solid #cfe0df; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #eff8f7 100%); box-shadow: var(--shadow); }
.creator-brief strong { display: block; max-width: 520px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.creator-brief p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.creator-value-chain { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(140px, 1fr) auto minmax(150px, 1fr); gap: 10px; align-items: center; }
.creator-value-chain > div { min-height: 100px; padding: 13px 14px; border: 1px solid #d8e5e4; border-radius: 11px; background: rgba(255,255,255,.88); }
.creator-value-chain span, .creator-value-chain small { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.creator-value-chain b { display: block; margin: 8px 0 3px; font-size: 23px; letter-spacing: -.03em; }
.creator-value-chain small { font-weight: 600; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.creator-value-chain i { color: var(--teal); font-size: 19px; font-style: normal; }
.creator-coverage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.creator-coverage > div { min-height: 88px; padding: 13px; border-radius: 10px; background: var(--navy-soft); }
.creator-coverage b, .creator-coverage span { display: block; }
.creator-coverage b { font-size: 24px; }
.creator-coverage span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.not-captured { display: inline-flex; align-items: center; gap: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.empty { min-height: 130px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 28px; }
.error-panel { border-color: #e1aaaa; background: var(--red-soft); }
.ops-drawer { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: #edf1f4; }
.ops-drawer > summary { cursor: pointer; padding: 16px 18px; font-weight: 800; }
.ops-drawer-body { padding: 0 14px 2px; }
.load-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; background: #d7e3e5; }
.load-progress span { display: block; width: 2%; height: 100%; background: var(--teal); transition: width .2s ease; }
.skeleton-card, .skeleton-panel { position: relative; overflow: hidden; background: #e9edf1; box-shadow: none; }
.skeleton-panel { min-height: 320px; }
.skeleton-tall { min-height: 410px; }
.skeleton-line, .skeleton-chart { display: block; border-radius: 6px; background: #d8dee5; }
.skeleton-line { width: 58%; height: 12px; margin-bottom: 10px; }
.skeleton-line.wide { width: 36%; height: 18px; }
.skeleton-line.value-line { width: 42%; height: 30px; margin-top: 18px; }
.skeleton-chart { height: 230px; margin-top: 24px; }
.skeleton-card::after, .skeleton-panel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after, .skeleton-panel::after { display: none; }
  .skeleton-card, .skeleton-panel { background: #e2e7ec; }
}

/* Ask lens — the model routes and narrates; these components expose the
   deterministic PostHog work underneath it. */
.ask-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
body.ask-lens #filterDrawer, body.ask-lens #filterToggle { display: none !important; }
.ask-library { position: sticky; top: 136px; max-height: calc(100vh - 164px); display: flex; flex-direction: column; overflow: hidden; padding: 14px; }
.ask-search { margin-bottom: 10px; }
.ask-library__list { display: grid; gap: 5px; overflow-y: auto; padding-right: 3px; }
.ask-library__item { display: grid; grid-template-columns: 28px 1fr; gap: 8px; width: 100%; padding: 9px 8px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; font-size: 11px; line-height: 1.4; }
.ask-library__item:hover, .ask-library__item:focus-visible { border-color: #b9d7d4; background: var(--teal-soft); }
.ask-library__item span { color: var(--teal); font: 800 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ask-library-empty { padding: 16px 8px; color: var(--muted); font-size: 12px; }
.ask-workspace { min-width: 0; }
.ask-intro { min-height: 190px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 44px); background: linear-gradient(135deg, #fff 0%, #f2faf9 100%); border-top: 4px solid var(--teal); }
.ask-intro h2 { max-width: 720px; font-size: clamp(22px, 3vw, 34px); line-height: 1.1; }
.ask-intro p:not(.eyebrow) { max-width: 680px; color: var(--muted); line-height: 1.6; }
.ask-principles { display: grid; gap: 7px; }
.ask-principles span { padding: 8px 11px; border: 1px solid #b9d7d4; border-radius: 999px; background: #fff; color: #245a57; font-size: 10px; font-weight: 800; text-align: center; }
.ask-composer { position: relative; z-index: 12; margin-bottom: 0; border-color: #a9c9c6; box-shadow: 0 20px 50px rgba(19, 34, 56, .14); }
.ask-composer textarea { width: 100%; min-height: 86px; margin-top: 5px; padding: 13px 14px; resize: vertical; border: 1px solid #b9c4ce; border-radius: 10px; color: var(--ink); background: #fff; font: 500 14px/1.5 inherit; }
.ask-composer__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.ask-composer__footer > div { display: flex; gap: 7px; }
.ask-model-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 12px; border: 1px solid #d3dfe2; border-radius: 10px; background: #f7fafb; }
.ask-model-control > div b, .ask-model-control > div span { display: block; }
.ask-model-control > div b { color: var(--ink); font-size: 10px; }
.ask-model-control > div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ask-model-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #53677a; font-size: 9px; font-weight: 780; cursor: pointer; }
.ask-model-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ask-model-toggle i { position: relative; width: 38px; height: 21px; border: 1px solid #9fb6bc; border-radius: 999px; background: #dbe5e7; transition: .18s ease; }
.ask-model-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(19,34,56,.25); transition: .18s ease; }
.ask-model-toggle input:checked + i { border-color: var(--teal); background: var(--teal); }
.ask-model-toggle input:checked + i::after { transform: translateX(17px); }
.ask-model-toggle input:focus-visible + i { outline: 3px solid rgba(8,127,122,.2); outline-offset: 2px; }
.ask-model-toggle input:disabled + i { opacity: .55; cursor: wait; }
.danger-quiet { border: 1px solid #d8a1a8; border-radius: 8px; background: #fff6f7; color: #9b3341; font-weight: 750; }
.ask-mentions { position: absolute; left: 18px; right: 18px; bottom: calc(100% - 56px); z-index: 20; max-height: 280px; overflow-y: auto; padding: 7px; border: 1px solid #aeb9c5; border-radius: 10px; background: #fff; box-shadow: 0 18px 48px rgba(19, 34, 56, .2); }
.ask-mentions button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px; background: transparent; text-align: left; }
.ask-mentions button:hover { background: var(--teal-soft); }
.ask-mentions button b { font-size: 11px; }
.ask-mentions button span, .ask-mentions p { color: var(--muted); font-size: 10px; }
.ask-stream { margin-bottom: 14px; }
.ask-trace { padding: 0; box-shadow: none; background: #eef2f5; }
.ask-trace summary, .ask-evidence > summary { display: flex; justify-content: space-between; cursor: pointer; padding: 13px 16px; font-size: 12px; font-weight: 800; }
.ask-trace ol { margin: 0; padding: 0 22px 14px 38px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ask-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ask-chip, .ask-chip--inline { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #d4dde5; border-radius: 999px; background: #f7f9fa; color: #42536a; font: 750 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ask-chip--inline { padding: 1px 5px; color: #245a57; background: var(--teal-soft); }
.ask-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; margin-bottom: 10px; }
.ask-task { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.ask-task span { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); animation: askPulse .9s infinite alternate; }
.ask-task small { color: var(--muted); }
.ask-task.done span { border: 0; background: var(--teal); animation: none; }
.ask-task.failed span { border: 0; background: var(--red); animation: none; }
@keyframes askPulse { to { opacity: .25; transform: scale(.7); } }
.ask-answer-card { position: relative; min-height: 190px; }
.ask-loading { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.ask-loading span { width: 10px; height: 10px; border: 2px solid #b7d9d6; border-top-color: var(--teal); border-radius: 50%; animation: askSpin .7s linear infinite; }
.ask-loading small { margin-left: auto; }
@keyframes askSpin { to { transform: rotate(360deg); } }
.ask-answer { max-width: 68ch; color: #25364d; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ask-answer h3, .ask-answer h4 { margin: 22px 0 8px; color: var(--ink); }
.ask-answer p, .ask-answer ul, .ask-answer ol { margin-bottom: 12px; }
.ask-answer > pre#askAnswerTail { margin: 0; padding: 0 0 0 2px; border: 0; background: transparent; color: var(--muted); white-space: pre-wrap; font: inherit; }
.ask-answer > pre#askAnswerTail:not([hidden])::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--teal); animation: askCursor .75s steps(2) infinite; }
@keyframes askCursor { 50% { opacity: 0; } }
.ask-answer blockquote { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid var(--teal); border-radius: 0 9px 9px 0; background: var(--teal-soft); color: #245a57; }
.ask-answer blockquote p:last-child { margin-bottom: 0; }
.ask-table-scroll { max-width: 100%; overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 9px; }
.ask-table--records { min-width: 520px; }
.ask-table--records thead { position: sticky; top: 0; z-index: 1; }
.ask-table--records td:not(:first-child), .ask-table--records th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.ask-num { color: #075f5b; cursor: text; }
.ask-sql { position: relative; max-height: 360px; overflow: auto; margin: 12px 0; padding: 42px 14px 14px; border-radius: 9px; background: #132238; color: #eaf4f5; white-space: pre; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ask-copy { position: absolute; top: 8px; right: 8px; padding: 5px 8px; border: 1px solid #637287; background: #22344d; color: #fff; font-size: 9px; }
.ask-verdict { border-left: 4px solid var(--muted); box-shadow: none; }
.ask-verdict[data-confidence="high"] { border-left-color: var(--teal); }
.ask-verdict[data-confidence="provisional"] { border-left-color: var(--amber); background: #fffaf3; }
.ask-verdict[data-confidence="refused"] { border-left-color: #8793a2; background: #f3f5f7; }
.ask-verdict[data-confidence="descriptive"] { border-left-color: #4776a5; background: #f2f7fc; }
.ask-verdict__meter { display: flex; gap: 3px; width: 112px; }
.ask-verdict__meter i { flex: 1; height: 5px; border-radius: 4px; background: #dce2e8; }
.ask-verdict[data-confidence="high"] i:nth-child(-n+3) { background: var(--teal); }
.ask-verdict[data-confidence="provisional"] i:nth-child(-n+2) { background: var(--amber); }
.ask-verdict[data-confidence="refused"] i:nth-child(1) { background: #8793a2; }
.ask-verdict[data-confidence="descriptive"] i:nth-child(-n+3) { background: #4776a5; }
.ask-verdict__label { margin: 9px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.ask-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ask-selection span { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ask-selection button { padding: 5px 8px; border: 1px solid #c8d1da; background: #fff; color: var(--teal); font-size: 10px; }
.ask-evidence { padding: 0; box-shadow: none; }
.ask-evidence > div { padding: 0 16px 16px; }
.ask-query { padding: 10px 0; border-top: 1px solid var(--line); }
.ask-query > div { display: flex; flex-wrap: wrap; gap: 5px; }
.ask-query details { margin-top: 8px; color: var(--muted); font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  .ask-task span, .ask-loading span, .ask-answer > pre#askAnswerTail::after { animation: none !important; }
}

.login-gate { position: fixed; inset: 0; z-index: 100; background: rgba(19, 34, 56, .88); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(430px, 100%); background: white; border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .24); }
.login-card img { width: 112px; margin-bottom: 24px; }
.login-card h1 { font-size: 31px; }
.login-card p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.login-card label { margin-top: 14px; }
.login-card button { width: 100%; margin-top: 18px; }
.error { color: var(--red) !important; background: var(--red-soft); border-radius: 8px; padding: 9px; margin: 12px 0 0; }
.auth-required .shell-header, .auth-required .lens-nav, .auth-required .filter-drawer, .auth-required main, .auth-required .availability-shell, .auth-required footer { filter: blur(4px); pointer-events: none; }

footer { padding: 20px clamp(18px, 4vw, 60px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: 380px; background: var(--ink); color: white; padding: 11px 14px; border-radius: 9px; box-shadow: var(--shadow); }
.metric-tip-trigger { display: inline-grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; min-width: 19px; padding: 0; margin-left: 6px; border: 1px solid #9aa6b5; border-radius: 50%; background: #fff; color: #42536a; font: 800 11px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: help; vertical-align: middle; }
.metric-tip-trigger:hover, .metric-tip-trigger:focus-visible { border-color: var(--teal); color: var(--teal); outline: 3px solid rgba(8, 127, 122, .16); }
.metric-tip { position: fixed; z-index: 100; width: min(390px, calc(100vw - 20px)); max-height: min(520px, calc(100vh - 20px)); overflow: auto; padding: 15px 16px; border: 1px solid #aeb9c5; border-radius: 11px; background: #132238; color: #fff; box-shadow: 0 18px 48px rgba(19, 34, 56, .28); font-size: 12px; line-height: 1.45; }
.metric-tip strong { display: block; margin-bottom: 9px; font-size: 14px; }
.metric-tip dl { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; margin: 0; }
.metric-tip dt { color: #86d8d3; font-weight: 800; }
.metric-tip dd { margin: 0; color: #eef5f7; }
.metric-tip[hidden] { display: none; }

@media (max-width: 1250px) {
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .four { grid-template-columns: repeat(2, 1fr); }
  .investor-strip { grid-template-columns: repeat(4, 1fr); }
  .journey-flow { grid-template-columns: 1fr; }
  .sharing-body { grid-template-columns: 1fr; }
  .feed-band-stats { grid-template-columns: 1fr; }
  .journey-arrow { width: 1px; height: 24px; margin: 0 auto; }
  .journey-arrow::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .journey-column:not(.journey-core) { padding: 4px 8px; }
  .kpi-grid.entity-kpi-grid.webinar-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-brief { grid-template-columns: 1fr; }
  .signup-family-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell-header { position: static; align-items: flex-start; }
  .header-status { flex-wrap: wrap; justify-content: flex-end; }
  .brand span { display: none; }
  .lens-nav { top: 0; }
  .filter-grid, .kpi-grid, .two, .three, .four { grid-template-columns: 1fr; }
  .kpi-grid.entity-kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid.entity-kpi-grid.webinar-kpi-grid { grid-template-columns: 1fr; }
  .table-controls { align-items: stretch; flex-direction: column; }
  .table-pagination .quiet { flex: 1; }
  .creator-value-chain { grid-template-columns: 1fr; }
  .creator-value-chain i { justify-self: center; transform: rotate(90deg); }
  .creator-coverage { grid-template-columns: 1fr; }
  .lens-head { display: block; }
  .freshness { text-align: left; margin-top: 10px; }
  .panel { padding: 14px; }
  .chart { height: 260px; }
  footer { display: block; }
  .investor-strip { grid-template-columns: repeat(2, 1fr); }
  .journey-summary { grid-template-columns: 1fr; }
  .journey-summary > div { min-height: 68px; }
  .journey-flow { padding: 10px; }
  .journey-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-outcomes > div:first-child { grid-column: 1 / -1; }
  .signup-journey-summary { grid-template-columns: 1fr; }
  .signup-trail-flow { grid-template-columns: 1fr; }
  .signup-trail-flow .journey-arrow { width: 1px; height: 24px; margin: 0 auto; }
  .signup-family-card { grid-template-columns: 1fr 1fr; }
  .signup-specialty-head, .ask-model-control { align-items: flex-start; flex-direction: column; }
  .conversion-stage, .conversion-ladder.compact .conversion-stage { grid-template-columns: 24px minmax(0, 1fr); }
  .conversion-values { grid-column: 2; text-align: left; }
  .conversion-track { grid-column: 2; }
  .funnel-row { grid-template-columns: 100px 1fr; }
  .funnel-row strong { grid-column: 2; text-align: left; }
  .format-performance .table-wrap { height: auto; overflow: visible; }
  .ask-layout { grid-template-columns: 1fr; }
  .ask-library { position: static; max-height: 360px; }
  .ask-intro { grid-template-columns: 1fr; }
  .ask-principles { grid-template-columns: repeat(2, 1fr); }
  .ask-composer__footer { align-items: flex-start; flex-direction: column; }
}

/* Data-availability banner: a window that spans a capture outage or predates an
   event's instrumentation must say so, because "not measured" and "zero" render
   identically on every chart below it. */
.availability-banner {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--warn, #b7791f) 45%, transparent);
  background: color-mix(in srgb, var(--warn, #b7791f) 10%, transparent);
  color: var(--ink, inherit);
  font-size: 0.86rem;
  line-height: 1.5;
}
.availability-shell { max-width: 1720px; margin: -42px auto 18px; padding: 0 clamp(18px, 4vw, 60px); }
.availability-banner h2 { margin: 0 0 0.4rem; font-size: 0.92rem; font-weight: 600; }
.availability-banner ul { margin: 0; padding-left: 1.1rem; }
.availability-banner li + li { margin-top: 0.35rem; }
