:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6e6c66;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --accent: #2a78d6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-unknown: #b4b2a9;
  --cat-1: #2a78d6;
  --cat-2: #eb6834;
  --cat-3: #1baf7a;
  --cat-4: #eda100;
  --cat-5: #e87ba4;
  --cat-6: #008300;
  --good: #006300;
  --critical: #d03b3b;
  --warning: #b86a00;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --text: #ffffff;
    --text-2: #c3c2b7;
    --muted: #9a988f;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #3987e5;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-unknown: #5d5c57;
    --cat-1: #3987e5;
    --cat-2: #d95926;
    --cat-3: #199e70;
    --cat-4: #c98500;
    --cat-5: #d55181;
    --cat-6: #008300;
    --good: #0ca30c;
      --critical: #e66767;
    --warning: #e09a3c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #9a988f;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #3987e5;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-unknown: #5d5c57;
  --cat-1: #3987e5;
  --cat-2: #d95926;
  --cat-3: #199e70;
  --cat-4: #c98500;
  --cat-5: #d55181;
  --cat-6: #008300;
  --good: #0ca30c;
  --critical: #e66767;
  --warning: #e09a3c;
  --shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 14px; line-height: 1.45; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
button, input, select { font: inherit; color: inherit; }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 24px 12px; max-width: 1440px; margin: 0 auto; flex-wrap: wrap; }
.subtitle { margin: 4px 0 0; color: var(--text-2); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account { display: inline-flex; align-items: center; gap: 8px; }
.account[hidden] { display: none; }
.banner .btn { margin-left: 8px; }

.btn { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { background: transparent; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 24px; max-width: 1440px; margin: 0 auto; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--page); border-bottom: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); min-width: 0; }
.field select, .field input, #f-search { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 14px; max-width: 240px; }

.banner { max-width: 1392px; margin: 12px auto 0; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.banner.error { color: var(--critical); }

main { max-width: 1440px; margin: 0 auto; padding: 16px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
main.loading { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { #esc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-label { font-size: 12px; color: var(--text-2); }
.kpi-value { font-size: 26px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.kpi-value.kpi-text { font-size: 18px; line-height: 1.3; padding: 4px 0; overflow-wrap: anywhere; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-meter { height: 4px; border-radius: 2px; background: var(--grid); margin-top: 10px; overflow: hidden; }
.kpi-meter > span { display: block; height: 100%; background: var(--series-1); border-radius: 2px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid.two.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid.two, .grid.two.wide-left { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; align-items: center; }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: var(--text); fill-opacity: 0.04; }

.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.bar-row:hover { background: var(--surface-2); }
.bar-row.active { background: var(--surface-2); outline: 1px solid var(--border); }
.bar-label { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-value { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--series-1); border-radius: 4px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--axis); white-space: nowrap; }
table.data th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th[data-sort] { cursor: pointer; }
table.data th[data-sort]:hover { color: var(--text); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
table.data .empty td { cursor: default; color: var(--muted); text-align: center; padding: 24px; }
.cell-strong { font-weight: 500; }
.cell-sub { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.intent-path { align-items: center; }
.path-arrow { font-size: 11px; color: var(--muted); }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--series-unknown); }
.badge.contained::before { background: var(--series-1); }
.badge.escalated::before { background: var(--series-2); }
.badge .est { color: var(--muted); }

.rate { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.rate-bar { width: 48px; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.rate-bar > span { display: block; height: 100%; background: var(--series-1); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 6px; align-items: center; }

.definitions dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; color: var(--text-2); }
.definitions dt { font-weight: 500; color: var(--text); }
.definitions dd { margin: 0; }
@media (max-width: 640px) { .definitions dl { grid-template-columns: 1fr; } .definitions dd { margin-bottom: 8px; } }

.tooltip { position: fixed; pointer-events: none; z-index: 30; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); min-width: 140px; }
.tooltip .tt-title { font-weight: 600; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }

.drawer { position: fixed; inset: 0; z-index: 20; display: none; }
.drawer.open { display: block; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--page); border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid var(--border); }
.drawer-head p { margin: 4px 0 0; }
.drawer-body { overflow-y: auto; padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.drawer-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin: 0 0 8px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.fact .k { font-size: 12px; color: var(--text-2); }
.fact .v { font-weight: 500; margin-top: 2px; word-break: break-word; }
.fact.wide { grid-column: span 2; }
.show-more { margin-top: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.journey li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 6px 0; position: relative; }
.journey li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--axis); background: var(--surface); margin-top: 4px; z-index: 1; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: -6px; width: 2px; background: var(--grid); }
.journey li.bot::before { border-color: var(--series-1); background: var(--series-1); }
.journey li.agent::before, .journey li.queue::before { border-color: var(--series-2); }
.journey .j-role { font-size: 12px; color: var(--text-2); }
.journey .j-name { font-weight: 500; }
.journey .j-meta { font-size: 12px; color: var(--muted); }
.journey .j-time { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.transcript { display: flex; flex-direction: column; gap: 10px; }
.turn { display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; }
.bubble.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.turn-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); }
.turn-meta.user { justify-content: flex-end; }
.turn-meta .chip.fail { color: var(--critical); }
.turn-meta .chip.ok { color: var(--good); }
.session-end { text-align: center; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--axis); padding-top: 8px; }
.empty-state { color: var(--muted); padding: 12px; background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; }

@media (max-width: 640px) {
  .page-header, .filters { padding-left: 16px; padding-right: 16px; }
  main { padding-left: 16px; padding-right: 16px; }
  .filters { position: static; }
  .field { flex: 1 1 140px; }
  .field select, .field input { max-width: none; width: 100%; }
}

.check-ok { color: var(--good); white-space: nowrap; }
.check-diff { color: var(--critical); white-space: nowrap; }
.verify-note { color: var(--text-2); margin: 0; max-width: 65ch; }

/* View tabs */
.tabs { display: flex; gap: 4px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
#view-overview, #view-journey, #view-escalation { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .tabs { padding: 0 16px; } }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--series-1); }
.why-cell { min-width: 280px; max-width: 520px; }
.why-text { margin-top: 4px; white-space: normal; line-height: 1.4; }
.esc-note p { margin: 0; }
.esc-note p + p { margin-top: 6px; }

/* Escalation reasons pie */
/* The reasons card stretches to its neighbour's height; the pie grows to fill it. */
.esc-reasons { display: flex; flex-direction: column; }
.esc-reasons #esc-categories { flex: 1; display: flex; }
.pie-wrap { flex: 1; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pie { flex: 1 1 260px; max-width: 460px; width: 100%; height: auto; aspect-ratio: 1; }
.esc-reasons #esc-categories { container-type: inline-size; }
/* In a narrow card, put the legend under a full-width pie instead of squeezing both side by side. */
@container (max-width: 560px) {
  .pie-wrap { flex-direction: column; align-items: stretch; justify-content: center; }
  .pie { flex: none; max-width: 100%; margin: 0 auto; }
  .pie-legend { flex: none; }
}
.pie path { stroke: var(--surface); stroke-width: 1.5; cursor: pointer; transition: opacity 0.15s; }
.pie path.dim, .pie-legend li.dim { opacity: 0.35; }
.pie path:focus-visible { outline: none; stroke: var(--text); stroke-width: 2; }
.pie-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; min-width: 0; font-size: 15px; }
.pie-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; }
.pie-legend li:hover, .pie-legend li.active { background: var(--surface-2); }
.pie-legend .swatch { width: 12px; height: 12px; border-radius: 3px; }
.pie-legend .val { font-variant-numeric: tabular-nums; color: var(--text-2); }
.pie-legend .val b { color: var(--text); font-weight: 600; }

/* Dashboard v2: AVA intent verdicts */
.badge.yes::before { background: var(--good); }
.badge.no::before { background: var(--critical); }
.chip.v-valid { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.chip.v-partial { color: var(--text); border-color: var(--cat-4); background: color-mix(in srgb, var(--cat-4) 14%, var(--surface)); }
.chip.v-not_valid { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 50%, transparent); }
.chip.v-no_chance { color: var(--muted); border-style: dashed; }
span.v-partial { color: var(--cat-4); font-weight: 600; }
span.v-not_valid { color: var(--critical); font-weight: 600; }
.bar-fill.v-bg-valid { background: var(--good); }
.bar-fill.v-bg-partial { background: var(--cat-4); }
.bar-fill.v-bg-not_valid { background: var(--critical); }
.bar-fill.v-bg-no_chance { background: var(--series-unknown); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 420px; }
.banner.progress { border-style: dashed; }
.intent-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.intent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.definitions dd ul { margin: 6px 0; padding-left: 18px; }

/* Journey Flows */
#view-journey { display: flex; flex-direction: column; gap: 16px; }
.field.inline { flex-direction: row; align-items: center; gap: 6px; }
.journey-hint { margin: 0 0 8px; }
.journey-wrap { overflow-x: auto; }
.journey-svg { display: block; font-size: 12px; }
.journey-svg .j-head { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.journey-svg .j-link { opacity: 0.28; cursor: pointer; transition: opacity 0.15s; }
.journey-svg .j-link:hover, .journey-svg .j-link:focus-visible { opacity: 0.5; outline: none; }
.journey-svg.tracing .j-link { opacity: 0.08; }
.journey-svg .j-link-hi { opacity: 0.7; pointer-events: none; }
.journey-svg .j-link-hi.exact { opacity: 0.85; }
.journey-svg .j-node { cursor: pointer; outline: none; }
.journey-svg .j-start { cursor: default; }
.journey-svg .j-node.dim { opacity: 0.3; }
.journey-svg .j-node:focus-visible .j-bar { stroke: var(--text); stroke-width: 2; }
.journey-svg .j-label { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.journey-svg .j-name { fill: var(--text); font-weight: 500; }
.journey-svg .j-val { fill: var(--muted); font-variant-numeric: tabular-nums; }
.journey-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.journey-focus .crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.journey-focus .crumb button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0 4px; }
.tt-foot { margin-top: 6px; font-size: 11px; color: var(--muted); }
.path-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.journey-intents { margin-bottom: 10px; }
.ji-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.ji-head select { font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.ji-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ji-chip { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.ji-chip:hover { background: var(--surface-2); }
.ji-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ji-chip[aria-pressed="true"] .muted { color: rgba(255, 255, 255, 0.8); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.three { grid-template-columns: 1fr; } }
.not-contained .nc-title { margin: 0 0 6px; }
.not-contained .nc-summary { margin: 0 0 6px; line-height: 1.45; }
.not-contained .nc-rules { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 13px; }

/* Collapsible Overview panels */
.collapse-toggle { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.collapse-toggle .chev { display: inline-block; width: 12px; color: var(--muted); font-size: 12px; transition: transform 0.15s; }
.collapse-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card.collapsed .collapse-toggle .chev { transform: rotate(-90deg); }
/* A collapsed card keeps only its heading row. */
.card.collapsed > :not(.card-head):not(h2) { display: none !important; }
.card.collapsed .card-head { margin-bottom: 0; }
.card.collapsed .card-head > :not(h2) { display: none; }
.card.collapsed > h2 { margin-bottom: 0; }
/* Side by side in a grid, a collapsed card stays short; on its own row it keeps the full width. */
.grid > .card.collapsed { align-self: start; }

/* Agent Escalation */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.seg button { font: inherit; font-size: 13px; padding: 6px 14px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Theme switch in the header: Auto follows the OS (and Genesys Cloud's frame inherits that). */
.seg.theme-switch { margin-bottom: 0; }
.seg.theme-switch button { padding: 5px 10px; font-size: 12px; }
.mix { display: inline-flex; width: 120px; height: 10px; border-radius: 3px; overflow: hidden; background: var(--grid); vertical-align: middle; gap: 1px; }
.mix span { display: block; height: 100%; }
.mix-not_valid { background: var(--critical); }
.mix-partial { background: var(--cat-4); }
.mix-valid { background: var(--good); }
.mix-no_chance { background: var(--series-unknown); }
.why-summary { margin: 0 0 12px; line-height: 1.7; }
.why-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.why-list .intent-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.why-list .intent-head .btn { margin-left: auto; }
#view-journey .card, #view-escalation .card, .journey-wrap { scroll-margin-top: 170px; }
