:root {
  --bg: #F5F0E6;
  --surface: #FBF8F2;
  --surface-2: #EFE7D8;
  --border: #E3D9C6;
  --border-strong: #CFC1A8;
  --text: #3B3226;
  --muted: #7A6E5D;
  --accent: #2F5D62;
  --accent-ink: #FBF8F2;
  --accent-soft: #DCE6E2;
  --ok: #4E7A4B;
  --ok-soft: #E1EBDA;
  --warn: #A9701F;
  --warn-soft: #F3E4C7;
  --bad: #A2412F;
  --bad-soft: #F2D9D1;
  --code-bg: #2E2A24;
  --code-text: #EDE5D6;
  --lane-1: #2a78d6;
  --lane-2: #eb6834;
  --lane-3: #1baf7a;
  --lane-4: #eda100;
  --lane-5: #e87ba4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(59, 50, 38, .06), 0 6px 20px rgba(59, 50, 38, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }

/* ------------------------------------------------------------------ top bar */
.demo-banner {
  padding: 7px 16px; text-align: center; font-size: 13px; letter-spacing: .01em;
  background: var(--accent); color: #FBF8F2;
}
.demo-banner strong { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(245, 240, 230, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: var(--border); }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 18px; }
.session { display: flex; align-items: center; gap: 10px; }
.session-status { font-size: 13px; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 14px/1 var(--sans); padding: 11px 16px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #244a4e; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; padding: 48px 0 24px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 17px; color: #4c4234; max-width: 60ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.problem-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.problem-card h2 { font-size: 18px; }
.problem-card ul { padding-left: 18px; margin: 0 0 16px; }
.problem-card li { margin-bottom: 8px; }

/* ------------------------------------------------------------------ sections */
.section { padding: 32px 0 8px; }
.section-title { font-size: 26px; }
.section-sub { color: var(--muted); max-width: 70ch; }

.journey { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.journey-step { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.journey-step p { font-size: 14px; color: #514636; margin: 6px 0 0; }
.journey-step h3 { margin-bottom: 4px; }
.journey-n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); min-width: 28px; }
.journey-step.fit-low { opacity: .62; background: transparent; border-style: dashed; }
.journey-step.fit-low .journey-n { color: var(--muted); }
.fit-badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.fit-medium .fit-badge { background: var(--warn-soft); color: var(--warn); }
.fit-low .fit-badge { background: var(--surface-2); color: var(--muted); }

.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }
.flow-node { flex: 1 1 150px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.flow-node span { display: block; font-weight: 600; }
.flow-node small { color: var(--muted); font-size: 12.5px; }
.flow-arrow { align-self: center; color: var(--muted); font-size: 18px; }

/* ------------------------------------------------------------------ prospects */
.prospects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.prospect-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.prospect-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.prospect-top { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prospect-card h3 { font-size: 19px; margin: 6px 0 0; }
.prospect-meta { font-size: 13px; color: var(--muted); margin: 0; }
.prospect-story { font-size: 13.5px; flex: 1; margin-top: 6px; }
.prospect-go { font-weight: 600; font-size: 13px; color: var(--accent); }

.search { display: flex; gap: 8px; margin-top: 8px; }
.search input, .modal input {
  flex: 1; font: 15px var(--sans); padding: 11px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.search input:focus, .modal input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.search-results a:hover { border-color: var(--accent); }
.search-results small { color: var(--muted); }

/* ------------------------------------------------------------------ API showcase */
.api-groups { display: grid; gap: 10px; margin-top: 14px; }
.api-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; }
.api-group summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.api-group .count { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); }
.step-chip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.api-call { border-top: 1px solid var(--border); padding: 12px 0; }
.api-purpose { font-size: 14px; margin-bottom: 4px; }
.api-line { margin-bottom: 8px; word-break: break-all; }
.api-line code { background: transparent; padding: 0; }
.method { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.method-get { background: var(--ok); }
.code {
  margin: 0; padding: 14px; border-radius: 10px; background: var(--code-bg); color: var(--code-text);
  font: 12.5px/1.55 var(--mono); overflow-x: auto; max-height: 420px; white-space: pre;
}

.key-note .key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.key-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.key-grid p { font-size: 14px; margin: 0; }

.footer { border-top: 1px solid var(--border); padding: 18px 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ modal */
.modal { border: none; padding: 0; background: transparent; max-width: 480px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(46, 42, 36, .45); }
.modal-card { background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-card label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.modal-card input { width: 100%; border-radius: 10px; font-family: var(--mono); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 16px 0 8px; }
.form-error { color: var(--bad); font-size: 14px; margin: 8px 0 0; }

/* ------------------------------------------------------------------ report */
.crumbs { padding: 20px 0 4px; font-size: 14px; }
.crumbs a { text-decoration: none; }
.report-head { padding: 8px 0 12px; }

.verdict {
  display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.verdict-badge { font: 650 15px var(--serif); padding: 8px 14px; border-radius: 10px; background: var(--surface-2); white-space: nowrap; }
.verdict-body { flex: 1; min-width: 0; }
.verdict-headline { font-size: 16px; font-weight: 500; }
.verdict.loading .verdict-badge { animation: pulse 1.4s ease-in-out infinite; }
.verdict.v-proceed { border-left-color: var(--ok); }
.verdict.v-proceed .verdict-badge { background: var(--ok-soft); color: var(--ok); }
.verdict.v-conditions { border-left-color: var(--warn); }
.verdict.v-conditions .verdict-badge { background: var(--warn-soft); color: var(--warn); }
.verdict.v-escalate { border-left-color: var(--bad); }
.verdict.v-escalate .verdict-badge { background: var(--bad-soft); color: var(--bad); }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.verdict-grid h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.verdict-grid ol { margin: 0; padding-left: 18px; }
.answer { margin-top: 12px; }
.answer summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.answer-text { font-size: 14px; background: var(--bg); border-radius: 10px; padding: 14px; margin-top: 8px; max-height: 480px; overflow: auto; }
@keyframes pulse { 50% { opacity: .5; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; font: 500 14px var(--sans); color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 6px;
}
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab.fit-low { opacity: .6; }
.tab-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: 12px; }
.tab[aria-selected="true"] .tab-n { background: var(--accent); color: var(--accent-ink); }
.tab-flag:empty { display: none; }
.tab-flag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); }
.tab-flag.high, .tab-flag.medium { background: var(--bad-soft); color: var(--bad); }
.tab-flag.low { background: var(--warn-soft); color: var(--warn); }
.tab-flag.clear { background: var(--ok-soft); color: var(--ok); }

.panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.skeleton { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; min-width: 0; }
.card h2 { font-size: 19px; }
.card-sub { color: var(--muted); font-size: 13.5px; margin-top: -4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 48px; gap: 8px; align-items: center; font-size: 13.5px; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.signal { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--bg); min-width: 0; }
.signal-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.signal-head h3 { font-size: 16px; margin: 0; }
.signal-product { font-size: 12.5px; color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.pill.clear { background: var(--ok-soft); color: var(--ok); }
.pill.low { background: var(--warn-soft); color: var(--warn); }
.pill.medium, .pill.high { background: var(--bad-soft); color: var(--bad); }
.pill.hot { background: var(--accent-soft); color: var(--accent); }

.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc { border-top: 1px solid var(--border); padding-top: 10px; }
.doc:first-child { border-top: none; padding-top: 0; }
.doc a { font-weight: 600; text-decoration: none; color: var(--text); }
.doc a:hover { color: var(--accent); text-decoration: underline; }
.doc-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.doc-snippet { font-size: 13.5px; color: #514636; margin: 0; }
.cat-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--bad); }

.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 4px; }
.heat-cell { border-radius: 10px; padding: 12px; background: var(--ok-soft); border: 1px solid transparent; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.heat-cell strong { display: block; font-size: 22px; font-family: var(--serif); }
.heat-cell span { font-size: 13px; }
.heat-cell.low { background: var(--warn-soft); }
.heat-cell.medium { background: #EFCFC3; }
.heat-cell.high { background: #E7B7A8; }
.heat-cell[aria-pressed="true"] { border-color: var(--text); }

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.people li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.people small { color: var(--muted); text-align: right; }
.former { opacity: .6; }
.tree { font-size: 13.5px; max-height: 340px; overflow: auto; margin: 0; padding-left: 18px; }
.tree li { margin-bottom: 3px; }

.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.metric { background: var(--bg); border-radius: 10px; padding: 12px; }
.metric span { display: block; font-size: 12.5px; color: var(--muted); }
.metric strong { font-family: var(--serif); font-size: 22px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--sans); fill: var(--muted); }

.calls { margin-top: 12px; }
.calls summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.calls .call { margin-top: 10px; }
.calls .call p { font-size: 13px; margin: 0 0 4px; }
.errors { background: var(--warn-soft); color: #6d4a13; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.empty { color: var(--muted); font-size: 14px; font-style: italic; }

.out-of-scope, .monitor-intro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.out-of-scope { border-style: dashed; }
#monitor-result { margin-top: 16px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .4s; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .prospects { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero, .grid-2, .verdict-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .prospects { grid-template-columns: 1fr 1fr; }
  .key-note .key-grid { grid-template-columns: 1fr; }
  .signals { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .hero { padding-top: 28px; }
  .journey, .prospects { grid-template-columns: 1fr; }
  .verdict { flex-direction: column; gap: 10px; }
  .bar-row { grid-template-columns: 100px 1fr 44px; }
  .brand-logo { height: 28px; }
  .brand-divider, .brand-name { display: none; }
  .search { flex-direction: column; }
}

.md h3, .md h4, .md h5 { font-family: var(--serif); margin: 14px 0 6px; font-size: 16px; }
.md h5 { font-size: 14.5px; }
.md p { margin: 0 0 8px; }
.md ul { margin: 0 0 10px; padding-left: 20px; }
.md li { margin-bottom: 4px; }

/* ------------------------------------------------------------------ season pulse */
.lanes { grid-template-columns: repeat(5, 1fr); }
.lane-card { flex-direction: column; gap: 6px; border-left: 4px solid var(--lane); }
.lane-weight { font: 650 26px/1 var(--serif); color: var(--text); }
.snapshot-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; padding: 14px 18px; border-radius: var(--radius);
                  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); text-decoration: none; }
.snapshot-strip:hover { background: #cfdcd7; }
.snapshot-strip > span:nth-child(2) { flex: 1; min-width: 220px; font-size: 14px; }
.snapshot-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px; }
.snapshot-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }
.snapshot-banner .btn { padding: 6px 12px; font-size: 13px; }
.save-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.save-row .btn { padding: 6px 12px; font-size: 13px; }
.seasons { grid-template-columns: repeat(4, 1fr); }
.custom-season { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 8px; }
.custom-season h3 { margin-bottom: 10px; }
.custom-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.custom-grid .wide { grid-column: 1 / -1; }
.custom-grid label, .filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.custom-grid input, .filters select { font: inherit; color: var(--text); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); min-width: 0; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.chips small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }

.headline-row { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin: 8px 0 18px; }
.headline-row .verdict { margin: 0; }
.pulse-tile { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--border-strong); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.tile-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.pulse-number { font: 650 64px/1 var(--serif); letter-spacing: -.02em; }
.tile-sub { font-size: 13px; color: var(--muted); }
.pulse-tile.b-strong, .verdict.b-strong { border-left-color: var(--ok); }
.pulse-tile.b-firm, .verdict.b-firm { border-left-color: #7FA37B; }
.pulse-tile.b-mixed, .verdict.b-mixed { border-left-color: var(--border-strong); }
.pulse-tile.b-soft, .verdict.b-soft { border-left-color: var(--warn); }
.pulse-tile.b-weak, .verdict.b-weak { border-left-color: var(--bad); }
.verdict.b-strong .verdict-badge { background: var(--ok-soft); color: var(--ok); }
.verdict.b-firm .verdict-badge { background: var(--ok-soft); color: var(--ok); }
.verdict.b-soft .verdict-badge { background: var(--warn-soft); color: var(--warn); }
.verdict.b-weak .verdict-badge { background: var(--bad-soft); color: var(--bad); }

.band-chip { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.band-chip.b-strong { background: var(--ok); color: var(--accent-ink); }
.band-chip.b-firm { background: var(--ok-soft); color: var(--ok); }
.band-chip.b-soft { background: var(--warn-soft); color: var(--warn); }
.band-chip.b-weak { background: var(--bad-soft); color: var(--bad); }
.tab-flag.b-strong, .tab-flag.b-firm { background: var(--ok-soft); color: var(--ok); }
.tab-flag.b-soft { background: var(--warn-soft); color: var(--warn); }
.tab-flag.b-weak { background: var(--bad-soft); color: var(--bad); }
.tab { display: inline-flex; gap: 6px; align-items: center; }

.sig { font: 600 12px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; }
.sig.up { background: var(--ok-soft); color: var(--ok); }
.sig.down { background: var(--bad-soft); color: var(--bad); }
.up-title { color: var(--ok); }
.down-title { color: var(--bad); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 8px; font-size: 13px; }
.legend-item, .legend-pulse { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 2px 0; font: inherit; color: var(--text); cursor: pointer; }
.legend-pulse { cursor: default; font-weight: 600; }
.legend-item[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.swatch { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.swatch.pulse { background: var(--text); height: 5px; }
.chart-wrap { position: relative; }
.pulse-chart .grid { stroke: var(--border); stroke-width: 1; }
.pulse-chart .axis { font: 11px var(--sans); fill: var(--muted); }
.pulse-chart .future { fill: var(--surface-2); opacity: .55; }
.pulse-chart .milestone { stroke: var(--border-strong); stroke-dasharray: 3 4; }
.pulse-chart .lane-line { fill: none; stroke-width: 1.5; opacity: .75; stroke-linejoin: round; }
.pulse-chart .lane-line.off { display: none; }
.pulse-chart .pulse-line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
.pulse-chart .pulse-dot { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.pulse-chart .pulse-label { font: 650 14px var(--serif); fill: var(--text); }
.pulse-chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.pulse-chart .hover-zone { fill: transparent; cursor: crosshair; }
.tooltip { position: absolute; top: 8px; width: 200px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); pointer-events: none; }
.tip-row { display: flex; align-items: center; gap: 2px; }
.tip-row b { margin-left: auto; font-family: var(--mono); font-weight: 500; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border-strong); }
.table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-table tr.excluded td { opacity: .6; }
.audit-table a { font-weight: 600; color: var(--text); text-decoration: none; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.reasons, .lane-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.reasons strong { display: inline-block; min-width: 34px; font-family: var(--mono); }
.method ol { padding-left: 20px; font-size: 14px; }
.method li { margin-bottom: 6px; }

.lean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lean-cell { text-align: left; font: inherit; color: var(--text); cursor: pointer; border-radius: 10px; padding: 12px; background: var(--surface-2); border: 1px solid transparent; display: grid; gap: 2px; }
.lean-cell strong { font: 650 26px var(--serif); }
.lean-label { font-weight: 600; font-size: 14px; }
.lean-meta { font-size: 12px; color: var(--muted); }
.lean-cell.b-strong { background: #CFE0C9; }
.lean-cell.b-firm { background: var(--ok-soft); }
.lean-cell.b-soft { background: var(--warn-soft); }
.lean-cell.b-weak { background: var(--bad-soft); }
.lean-cell.none { opacity: .5; cursor: default; }
.lean-cell[aria-pressed="true"] { border-color: var(--text); }

.div-bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; min-width: 80px; }
.div-bar.big { height: 16px; }
.div-bar .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--border-strong); }
.div-bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.div-bar .fill.pos { background: var(--ok); }
.div-bar .fill.neg { background: var(--bad); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.big-number { font: 650 40px var(--serif); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.big-number .band-chip { align-self: center; font-family: var(--sans); }

.retailers { display: grid; gap: 6px; }
.retailer { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.retailer summary { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 52px 80px 100px; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.retailer summary::-webkit-details-marker { display: none; }
.retailer[open] summary { border-bottom: 1px solid var(--border); }
.retailer-body { padding: 12px 14px; }
.retailer-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 6px; }
.r-score { font-family: var(--mono); font-weight: 600; text-align: right; }
.r-n { font-size: 12.5px; text-align: right; }

@media (max-width: 1080px) { .lanes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .headline-row { grid-template-columns: 1fr; }
  .seasons { grid-template-columns: 1fr 1fr; }
  .lanes { grid-template-columns: 1fr 1fr; }
  .retailer summary { grid-template-columns: 1fr 52px 70px; }
  .retailer summary .div-bar, .retailer summary .r-n { display: none; }
}
@media (max-width: 560px) {
  .seasons, .lanes, .custom-grid { grid-template-columns: 1fr; }
  .pulse-number { font-size: 52px; }
  .tooltip { display: none; }
}

.speaker { color: var(--muted); font-size: 12.5px; }
.why { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 2px 0 0; }
.cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 2px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font: 600 10.5px var(--mono); text-decoration: none; vertical-align: 2px; }
a.cite:hover { background: var(--accent); color: var(--accent-ink); }

.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: -6px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.store-bar.running { background: var(--accent-soft); color: var(--text); }
.store-actions { display: flex; gap: 8px; }
.store-actions .btn { padding: 6px 12px; font-size: 13px; }
.filters { align-items: flex-end; }
.filters .btn { padding: 8px 12px; font-size: 13px; }
@media (max-width: 560px) { .filters label, .filters select { width: 100%; } }

.key-chip { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }
.key-chip.ready { background: var(--ok-soft); color: var(--ok); }
.key-chip.needs { background: var(--warn-soft); color: var(--warn); }
.run-cta { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--accent); border-left: 6px solid var(--accent);
           border-radius: var(--radius); padding: 24px; margin: 8px 0 24px; box-shadow: var(--shadow); }
.run-cta-icon { font-size: 30px; line-height: 1; background: var(--accent-soft); border-radius: 12px; padding: 12px; }
.run-cta-body { flex: 1; min-width: 0; }
.run-cta h2 { font-size: 24px; margin-bottom: 6px; }
.run-steps { margin: 6px 0 12px; padding-left: 20px; }
.run-steps li { margin-bottom: 6px; }
.run-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.progress.indeterminate { position: relative; }
.progress.indeterminate span { position: absolute; width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { left: -35%; } to { left: 100%; } }
@media (max-width: 560px) { .run-cta { flex-direction: column; padding: 18px; } }
