/* ==========================================================================
   GTM Workshop Companion — styles
   ========================================================================== */

:root {
  --bg:        #0d1117;
  --bg-2:      #121821;
  --surface:   #161d28;
  --surface-2: #1c2531;
  --line:      #232d3b;
  --line-2:    #2f3c4d;
  --text:      #e6edf5;
  --text-2:    #9fb0c4;
  --text-3:    #6b7d93;

  /* Hivekind brand purple, sampled from the logo */
  --brand:     #7010F0;
  --brand-2:   #9B4DFF;
  --accent:    #AC84FF;   /* text/borders on dark — 6.0:1 on surface */
  --accent-2:  #C4A5FF;
  --accent-dim: rgba(172,132,255,.13);

  --core:  #4ade80;
  --build: #4aa8ff;
  --test:  #fbbf24;
  --hold:  #6b7d93;

  --crit:  #f87171;
  --warn:  #fbbf24;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1240px;
}

[data-theme="light"] {
  --bg:        #f6f8fb;
  --bg-2:      #eef2f7;
  --surface:   #ffffff;
  --surface-2: #f3f6fa;
  --line:      #dde5ee;
  --line-2:    #c6d2e0;
  --text:      #121a25;
  --text-2:    #4d5f74;
  --text-3:    #75879c;

  --brand:     #7010F0;
  --brand-2:   #9B4DFF;
  --accent:    #6510D6;   /* text on white — 8.1:1 */
  --accent-2:  #7010F0;
  --accent-dim: rgba(112,16,240,.09);

  --core:  #16a34a;
  --build: #0a6ed1;
  --test:  #b45309;
  --hold:  #75879c;

  --crit:  #dc2626;
  --warn:  #b45309;
  --shadow: 0 8px 30px rgba(20,40,70,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -.015em; }
p { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-top { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
/* The Hivekind logo is used unmodified. It is an opaque JPEG, so it sits on a
   white plate to stay legible in dark mode rather than the file being altered. */
.logo-plate {
  background: #fff; border-radius: 9px; padding: 5px 7px; flex: none;
  display: grid; place-items: center; border: 1px solid rgba(0,0,0,.10);
}
.logo-plate img { display: block; height: 44px; width: auto; }
.brand-divider { width: 1px; align-self: stretch; background: var(--line); flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand-sub { color: var(--text-3); font-size: 12px; white-space: nowrap; }

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand .logo-plate img { height: 58px; }
.footer-brand p { font-size: 13px; color: var(--text-2); margin: 0; }

.icon-btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Stage switcher ---------- */
.stage-bar.hide { display: none; }
.stage-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; flex-wrap: wrap; min-width: 0; }
.stage-bar-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); font-weight: 600; margin-right: 2px;
}
.stage-track {
  display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line);
  padding: 4px; border-radius: 10px; scrollbar-width: none;
  /* Both axes must be non-visible or Safari lets the contents widen the page. */
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; min-width: 0;
  scroll-snap-type: x proximity;
}
/* Fade the right edge, but only when there is actually more to scroll to —
   applied unconditionally it just dims the last chip on a wide screen. */
.stage-track.is-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.tabs.is-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.stage-track > * { scroll-snap-align: start; }
.stage-track::-webkit-scrollbar { display: none; }
.stage-btn {
  background: none; border: 0; color: var(--text-2); padding: 6px 13px;
  border-radius: 7px; font-size: 13px; font-weight: 600; white-space: nowrap;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; transition: .15s;
}
.stage-btn small { font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .01em; }
.stage-btn:hover { color: var(--text); background: var(--surface-2); }
.stage-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.stage-btn[aria-pressed="true"] small { color: rgba(255,255,255,.78); }

/* ---------- Segment switcher: the second axis, deliberately quieter ---------- */
.seg-bar { padding-bottom: 14px; margin-top: -4px; }
.seg-bar .stage-btn { padding: 5px 12px; font-size: 12.5px; }
.seg-bar .stage-btn small { font-size: 10px; }
.seg-bar .stage-btn[aria-pressed="true"] {
  background: none; color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.seg-bar .stage-btn[aria-pressed="true"] small { color: var(--accent); opacity: .8; }
.seg-effect {
  font-size: 11.5px; color: var(--text-3); line-height: 1.5; flex: 1; min-width: 220px;
}
.seg-effect b { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .seg-effect { flex-basis: 100%; min-width: 0; } }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 2px; scrollbar-width: none; border-top: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  max-width: 100%; min-width: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-3); padding: 11px 14px; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; transition: .15s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- "Deep dives" menu ---------- */
.more-wrap { position: relative; }
.more-btn .caret { font-size: 10px; opacity: .7; margin-left: 2px; }
.more-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 80;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; min-width: 290px;
  display: flex; flex-direction: column; gap: 2px;
}
.more-menu[hidden] { display: none; }
.more-item {
  background: none; border: 0; color: var(--text-2); text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  display: flex; flex-direction: column; gap: 1px; transition: .14s;
}
.more-item span { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.more-item:hover { background: var(--surface-2); color: var(--text); }
.more-item.on { background: var(--accent-dim); color: var(--accent); }
.more-item.on span { color: var(--accent); opacity: .8; }

/* ---------- The Lab ---------- */
.lab-mode-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.lab-crumb {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--accent);
}
.lab-mode-row .link-btn { margin-left: auto; }

.lab-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
@media (max-width: 760px) { .lab-progress { grid-template-columns: repeat(2, 1fr); } }
.lab-pip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; text-align: left; color: var(--text-3);
  display: flex; align-items: center; gap: 9px; transition: .15s; font-size: 12.5px;
}
.lab-pip:hover { border-color: var(--line-2); }
.lab-pip .lp-n {
  font-family: var(--mono); font-size: 11px; font-weight: 700; flex: none;
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  border: 1px solid var(--line-2);
}
.lab-pip .lp-t { font-weight: 600; }
.lab-pip.done { color: var(--text-2); }
.lab-pip.done .lp-n { background: var(--core); border-color: var(--core); color: #06210f; }
.lab-pip.on { border-color: var(--brand); background: var(--accent-dim); color: var(--text); }
.lab-pip.on .lp-n { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }

.lab-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px;
}
@media (max-width: 620px) { .lab-step { padding: 20px 18px; } }
.ls-kicker {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .04em; margin-bottom: 8px;
}
.ls-head h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.ls-ask { font-size: 16px; color: var(--text-2); margin: 0; }
.ls-why { font-size: 13.5px; color: var(--text-3); margin: 16px 0 0; max-width: 78ch; }
.ls-stage {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 16px;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13.5px; color: var(--text-2);
}

.ls-field { margin-top: 20px; }
.ls-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.ls-field input, .ls-field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 9px; font-size: 15px; font-family: inherit; line-height: 1.55;
  resize: vertical;
}
.ls-field input:focus, .ls-field textarea:focus { border-color: var(--accent); outline: none; }
.ls-field ::placeholder { color: var(--text-3); }

.ls-picker { display: grid; gap: 8px; margin-top: 20px; }
.ch-opt {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; text-align: left; color: inherit; transition: .15s;
  display: flex; flex-direction: column; gap: 3px;
}
.ch-opt:hover { border-color: var(--line-2); }
.ch-opt.on { border-color: var(--brand); background: var(--accent-dim); }
.ch-name { font-weight: 650; font-size: 14.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ch-note { font-size: 13px; color: var(--text-2); }
.ls-hint { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }

.ls-tests {
  margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px;
}
.ls-tests h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin: 0 0 8px; font-weight: 700;
}
.ls-tests ul { list-style: none; padding: 0; margin: 0; }
.ls-tests li {
  padding: 6px 0 6px 22px; position: relative; font-size: 13px; color: var(--text-2);
}
.ls-tests li::before { content: '?'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.ls-nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.ls-count { font-size: 12.5px; color: var(--text-3); margin-left: auto; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Blueprint ---------- */
.bp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; }
@media (max-width: 620px) { .bp { padding: 20px 18px; } }
.bp-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 6px; }
.bp-kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.bp-head h1 { font-size: 26px; letter-spacing: -.025em; }
.bp-missing { font-size: 13px; color: var(--warn); margin: 10px 0 0; }
.bp-row {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.bp-row:last-of-type { border-bottom: 0; }
.bp-n {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.bp-row h3 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin-bottom: 7px; font-weight: 700;
}
.bp-a { font-size: 17px; line-height: 1.5; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-blank { color: var(--text-3); font-size: 15px; }
.bp-sub { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; }
.bp-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.bp-refuse {
  margin-top: 20px; background: var(--bg-2); border-radius: var(--radius); padding: 16px 18px;
}
.bp-refuse h4 { font-size: 13px; margin-bottom: 6px; }

/* ---------- Intake form ---------- */
.intake {
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; margin-bottom: 26px;
}
.intake-head h1 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 8px; }
.intake-head p { color: var(--text-2); font-size: 15px; max-width: 60ch; }
/* Four fields in three columns left the fourth orphaned on a second row and the
   third stranded beside dead space. Two columns keeps the reading order intact. */
.intake-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px; margin-top: 24px; align-items: start;
}
@media (max-width: 860px) { .intake-grid { grid-template-columns: 1fr; gap: 14px; } }
.intake .field { margin: 0; }
.intake input[type=text], .intake select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; border-radius: 9px; font-size: 14.5px; font-family: inherit;
}
.intake input[type=text]::placeholder { color: var(--text-3); }
.intake input:focus, .intake select:focus { border-color: var(--accent); outline: none; }
.micro { font-size: 11.5px; color: var(--text-3); margin: 6px 0 0; }
.intake-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.intake.compact { padding: 20px 24px; }
.intake.compact .intake-head h1 { font-size: 19px; }
.intake.compact .intake-head p { display: none; }
.intake.compact .intake-grid { margin-top: 16px; }

/* ---------- Generated plan ---------- */
.plan-hero {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 16px; padding: 26px 30px; margin-bottom: 20px;
}
.ph-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ph-site {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  background: var(--accent-dim); padding: 4px 10px; border-radius: 20px; font-weight: 600;
}
.ph-pill {
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 20px;
}
.plan-hero h1 { font-size: 25px; letter-spacing: -.02em; margin-bottom: 10px; }
.plan-hero > p { color: var(--text-2); font-size: 15px; max-width: 76ch; }

.plan-sec {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 12px;
}
@media (max-width: 700px) { .plan-sec { grid-template-columns: 1fr; gap: 10px; padding: 18px 18px; } }
.ps-num {
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.ps-body h2 { font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ps-sub { color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.ps-auto { color: var(--text-3); font-size: 13px; font-style: italic; margin-bottom: 12px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 760px) { .ps-grid { grid-template-columns: 1fr; gap: 12px; } }
.ps-grid h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin: 0 0 5px; font-weight: 700;
}
.ps-grid p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.ps-2026 {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13px; color: var(--text-2);
}
.plan-warn {
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0 4px;
}
.pw-title { font-weight: 700; color: var(--warn); font-size: 14px; margin-bottom: 7px; }
.plan-warn p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.link-btn.inline { margin: 0; font-weight: 700; }

.plan-steps { list-style: none; padding: 0; margin: 0; counter-reset: ps; }
.plan-steps li {
  display: grid; grid-template-columns: 100px 1fr; gap: 4px 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.plan-steps li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .plan-steps li { grid-template-columns: 1fr; } }
.pstep-when { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 2px; }
.pstep-name { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pstep-move { grid-column: 2; font-size: 13px; color: var(--text-2); }
@media (max-width: 640px) { .pstep-move { grid-column: 1; } }

.math-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 4px;
}
@media (max-width: 860px) { .math-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .math-strip { grid-template-columns: 1fr; } }
.ms-cell {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; display: flex; flex-direction: column; gap: 2px;
}
.ms-cell.risk { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ms-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); font-weight: 700;
}
.ms-val { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.ms-cell.risk .ms-val { color: var(--warn); }
.ms-note { font-size: 11.5px; color: var(--text-3); }
.ms-ok { font-size: 13px; color: var(--text-2); margin: 14px 0 0; }
.ms-lead {
  font-size: 13px; color: var(--text-2); margin: 14px 0 0;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
#planToMath { margin-top: 16px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 9px 0 9px 28px; position: relative; font-size: 13.5px;
  color: var(--text-2); border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 13px; height: 13px; border: 1.5px solid var(--line-2); border-radius: 3px;
}
.plan-foot {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 18px 0 0; margin-top: 6px;
}
.pf-note { font-size: 12.5px; color: var(--text-3); margin-left: auto; }

/* ---------- Layout primitives ---------- */
main { padding: 32px 0 96px; }
.panel[hidden] { display: none; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 22px; margin-bottom: 6px; }
.section-head p { color: var(--text-2); max-width: 68ch; font-size: 14.5px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); font-weight: 700; margin-bottom: 10px;
}
.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* ---------- Stage brief ---------- */
.hero {
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0 0 auto auto; width: 340px; height: 340px;
  background: radial-gradient(circle at 70% 20%, var(--accent-dim), transparent 65%);
  pointer-events: none;
}
.hero-stage { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-stage h1 { font-size: 30px; letter-spacing: -.025em; }
.hero-band {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--accent-dim); padding: 3px 9px; border-radius: 20px;
}
.hero-tagline { font-size: 15px; color: var(--text-2); font-style: italic; }
.hero-mandate { font-size: 16px; max-width: 76ch; margin-top: 14px; position: relative; }

.onething {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  position: relative;
}
.onething .eyebrow { color: var(--accent); margin-bottom: 6px; }
.onething p { font-size: 15.5px; font-weight: 500; }

.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv-k { font-weight: 600; min-width: 0; flex: 1; }
.kv-v { color: var(--text-2); flex: 1.4; min-width: 0; }

.stoplist { list-style: none; padding: 0; margin: 0; }
.stoplist li {
  padding: 8px 0 8px 26px; position: relative; font-size: 13.5px;
  border-bottom: 1px solid var(--line); color: var(--text-2);
}
.stoplist li:last-child { border-bottom: 0; }
.stoplist li::before {
  content: '✕'; position: absolute; left: 4px; top: 8px; color: var(--crit);
  font-size: 11px; font-weight: 700;
}
.traplist { list-style: none; padding: 0; margin: 0; }
.traplist li {
  padding: 10px 0 10px 26px; position: relative; font-size: 13.5px;
  color: var(--text-2); border-bottom: 1px solid var(--line);
}
.traplist li:last-child { border-bottom: 0; }
.traplist li::before { content: '⚠'; position: absolute; left: 2px; top: 9px; color: var(--warn); font-size: 12px; }

.arc { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .arc { grid-template-columns: 1fr; } }
.arc-step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.arc-step .w { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 6px; letter-spacing: .04em; }
.arc-step p { font-size: 13.5px; color: var(--text-2); }

/* ---------- Playbook ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; min-width: 220px; flex: 1;
}
.search::placeholder { color: var(--text-3); }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; transition: .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.tier-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.tier-legend span { display: inline-flex; align-items: center; gap: 6px; }

.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: left; color: inherit; position: relative; overflow: hidden;
  transition: .16s; display: flex; flex-direction: column; gap: 8px;
}
.tcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tier-c); }
.tcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tcard-top { display: flex; align-items: flex-start; gap: 10px; }
.tcard-letter {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; flex: none; margin-top: 2px;
}
.tcard h3 { font-size: 14.5px; flex: 1; }
.tier-pill {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 8px; border-radius: 20px; flex: none;
  color: var(--tier-c); background: color-mix(in srgb, var(--tier-c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier-c) 32%, transparent);
}
.tcard-note { font-size: 13px; color: var(--text-2); }
.tcard-cat { font-size: 11px; color: var(--text-3); font-weight: 600; letter-spacing: .03em; margin-top: auto; }
.tcard-score { font-family: var(--mono); font-size: 11px; color: var(--accent); }

.empty { padding: 40px; text-align: center; color: var(--text-3); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line); z-index: 100;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-hd {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px;
}
.drawer-hd h2 { font-size: 19px; flex: 1; }
.drawer-body { padding: 22px 24px 40px; overflow-y: auto; flex: 1; }
.drawer-sec { margin-bottom: 24px; }
.drawer-sec:last-child { margin-bottom: 0; }
.drawer-sec h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); margin-bottom: 10px;
}
.callout {
  border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--tier-c);
}
.callout .lead { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.playlist { list-style: none; padding: 0; margin: 0; }
.playlist li {
  padding: 9px 0 9px 22px; position: relative; font-size: 13.5px;
  color: var(--text-2); border-bottom: 1px solid var(--line);
}
.playlist li:last-child { border-bottom: 0; }
.playlist li::before { content: '→'; position: absolute; left: 0; top: 9px; color: var(--accent); }

/* 2025 / 2026 verdict matrix */
.vmatrix {
  display: grid; grid-template-columns: 62px repeat(5, minmax(0,1fr)); gap: 4px;
  align-items: stretch;
}
.vm-head, .vm-cell {
  text-align: center; font-size: 10px; padding: 7px 3px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.vm-head { font-weight: 700; color: var(--text-3); font-size: 9.5px; letter-spacing: .02em; }
.vm-head.on { color: var(--text); }
.vm-lab {
  font-family: var(--mono); font-size: 9.5px; color: var(--text-3);
  display: flex; align-items: center; letter-spacing: .04em;
}
.vm-lab.proj { color: var(--accent-2); font-style: italic; }
.vm-lab.now  { color: var(--accent); font-weight: 700; }
.vm-lab.was  { opacity: .6; }
.vm-cell.was { opacity: .5; border-style: dashed; }
.vm-cell.now { border-color: var(--line-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.vm-cell {
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px;
}
.vm-cell.on { border-color: var(--accent); background: var(--accent-dim); }
.vm-cell.moved { border-style: dashed; border-color: currentColor; }
.vm-mark { font-style: normal; font-size: 11px; line-height: 1; opacity: .85; }

.y26-verdict {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 12px;
}
.tcard-2026 {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding-top: 6px; border-top: 1px dashed var(--line);
}

.ev-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev-item:last-child { border-bottom: 0; }
.ev-stat {
  font-family: var(--mono); font-weight: 700; color: var(--accent);
  min-width: 62px; font-size: 14px; flex: none;
}
.ev-claim { font-size: 13px; color: var(--text-2); }

.pitfall { border-left-color: var(--crit) !important; }
.pitfall .lead { color: var(--crit); }

/* ---------- Diagnostic ---------- */
.q { border-bottom: 1px solid var(--line); padding: 18px 0; }
.q:last-of-type { border-bottom: 0; }
.q-text { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.q-help { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  padding: 9px 14px; border-radius: 9px; font-size: 13.5px; text-align: left; transition: .15s;
}
.opt:hover { border-color: var(--line-2); color: var(--text); }
.opt[aria-pressed="true"] {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600;
}

.flag { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; border: 1px solid; }
.flag.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.flag.crit { border-color: color-mix(in srgb, var(--crit) 40%, transparent); background: color-mix(in srgb, var(--crit) 8%, transparent); }
.flag .ft { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.flag.warn .ft { color: var(--warn); }
.flag.crit .ft { color: var(--crit); }
.flag p { font-size: 13.5px; color: var(--text-2); }

.rank-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: 0; }
.rank-n {
  font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text-3);
  width: 28px; flex: none; text-align: right;
}
.rank-main { flex: 1; min-width: 0; }
.rank-main .rn { font-weight: 650; font-size: 14.5px; }
.rank-main .rm { font-size: 13px; color: var(--text-2); }
.bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 7px; max-width: 260px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- Mix ---------- */
.mix-row { display: grid; grid-template-columns: 190px 1fr 130px; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mix-row:last-child { border-bottom: 0; }
@media (max-width: 720px) { .mix-row { grid-template-columns: 1fr; gap: 6px; } }
.mix-label { font-size: 13.5px; font-weight: 600; }
.mix-label small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.mix-nums { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-family: var(--mono); font-size: 13px; }
.mix-you { font-weight: 700; min-width: 42px; text-align: right; }
.mix-delta { font-size: 11.5px; padding: 2px 7px; border-radius: 20px; min-width: 52px; text-align: center; }
.mix-delta.over  { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.mix-delta.under { color: var(--accent); background: var(--accent-dim); }
.mix-delta.ok    { color: var(--core); background: color-mix(in srgb, var(--core) 13%, transparent); }

.stackbar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 6px; }
.stackbar > i { display: block; transition: flex-basis .2s; }
.stack-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.stack-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.total-pill { font-family: var(--mono); font-size: 13px; padding: 4px 11px; border-radius: 20px; font-weight: 700; }
.total-pill.ok { color: var(--core); background: color-mix(in srgb, var(--core) 13%, transparent); }
.total-pill.bad { color: var(--crit); background: color-mix(in srgb, var(--crit) 13%, transparent); }

/* ---------- Calculator ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.field input[type=number], .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 9px 11px; border-radius: 8px; font-family: var(--mono); font-size: 14px;
}
.out-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .out-grid { grid-template-columns: 1fr; } }
.out {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.out .ol { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 700; }
.out .ov { font-family: var(--mono); font-size: 22px; font-weight: 700; margin-top: 5px; letter-spacing: -.02em; }
.out .oh { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.out.hl { border-color: var(--accent); background: var(--accent-dim); }
.out.hl .ov { color: var(--accent); }
.out.risk .ov { color: var(--warn); }

/* ---------- Plan ---------- */
.plan-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.plan-col .pc-sub { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.plan-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; margin-bottom: 8px; position: relative;
}
.plan-item .pi-name { font-weight: 650; font-size: 13.5px; padding-right: 22px; }
.plan-item .pi-move { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.plan-item .pi-metric { font-size: 11.5px; color: var(--text-3); margin-top: 6px; font-family: var(--mono); }
.plan-item .rm {
  position: absolute; top: 8px; right: 8px; background: none; border: 0;
  color: var(--text-3); font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
}
.plan-item .rm:hover { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }

.btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600; transition: .15s;
}
.btn:hover { border-color: var(--line-2); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: none; }

/* ---------- Evidence ---------- */
.ev-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.ev-card .n { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; }
.ev-card .c { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.ev-card .t { margin-top: 9px; display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); padding: 1px 7px; border-radius: 20px; }

.note-box {
  border: 1px solid var(--line); border-left: 3px solid var(--text-3);
  border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13px;
  color: var(--text-3); background: var(--surface); margin-bottom: 20px;
}

.footer { border-top: 1px solid var(--line); padding: 24px 0 60px; color: var(--text-3); font-size: 12.5px; }



/* ---------- The arc: era timeline ---------- */
.arc-controls {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.thesis-hero.compact { padding: 16px 20px; margin-bottom: 18px; }
.thesis-hero.compact p { font-size: 14.5px; }
.arc-caveat {
  font-size: 12px; color: var(--text-3); margin: 10px 0 0;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.arc-select {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 7px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; max-width: 260px;
}
.era-scrub {
  display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  padding: 6px; border-radius: 12px; overflow-x: auto; scrollbar-width: none;
}
.era-scrub::-webkit-scrollbar { display: none; }
.era-btn {
  background: none; border: 1px solid transparent; color: var(--text-2);
  padding: 9px 18px; border-radius: 9px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px; flex: 1; min-width: 120px;
  position: relative; transition: .16s; white-space: nowrap;
}
.era-label { font-weight: 700; font-size: 14px; }
.era-sub { font-size: 11px; color: var(--text-3); font-weight: 500; }
.era-btn:hover { background: var(--surface-2); color: var(--text); }
.era-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.era-btn[aria-pressed="true"] .era-sub { color: rgba(255,255,255,.8); }
.era-btn.forecast .era-label { font-style: italic; }
.era-btn.now .era-label { font-weight: 700; }
.era-tag {
  position: absolute; top: 6px; right: 8px; font-size: 8.5px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  border-radius: 20px; padding: 1px 6px;
}
.era-btn[aria-pressed="true"] .era-tag { color: #fff; background: rgba(255,255,255,.22); }

.arc-filter { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.era-scrub { flex: 1; min-width: 300px; }

.arc-head, .arc-line {
  display: grid;
  grid-template-columns: 118px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);
  gap: 8px; align-items: stretch;
}
.arc-head { margin-bottom: 8px; padding: 0 14px; }
.arc-head-theme { grid-column: 1; }
.arc-head-cell {
  padding: 6px 2px; display: flex; flex-direction: column; gap: 1px; transition: .2s;
}
.arc-head-cell:nth-of-type(2) { grid-column: 2; }
.arc-head-cell:nth-of-type(3) { grid-column: 4; }
.arc-head-cell:nth-of-type(4) { grid-column: 6; }
.arc-head-cell:nth-of-type(5) { grid-column: 8; }
.ahc-label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--text-2);
  letter-spacing: .03em;
}
.ahc-sub { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.arc-head-cell.now .ahc-label { color: var(--text-1); }
.arc-head-cell.now .ahc-sub { color: var(--accent); }
.arc-head-cell.forecast .ahc-label { color: var(--accent-2); font-style: italic; }
.arc-head-cell.focused .ahc-label { color: var(--accent); }
.arc-head-cell.dimmed { opacity: .38; }

.arc-track { display: flex; flex-direction: column; gap: 8px; }
.arc-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .16s;
}
.arc-row:hover { border-color: var(--line-2); }
.arc-row.open { border-color: var(--accent); }
.arc-line {
  width: 100%; background: none; border: 0; text-align: left; color: inherit;
  padding: 14px; align-items: stretch;
}
.arc-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-right: 8px; border-right: 1px solid var(--line);
}
.at-name { font-weight: 700; font-size: 13.5px; }
.at-caret {
  font-family: var(--mono); font-size: 15px; color: var(--text-3);
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 5px; flex: none;
}
.arc-row.open .at-caret { color: var(--accent); border-color: var(--accent); }

.arc-cell {
  padding: 2px 4px; border-radius: 7px; transition: .2s;
  display: flex; flex-direction: column; gap: 4px;
}
.ac-label { font-weight: 600; font-size: 13px; line-height: 1.35; }
.ac-detail {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.arc-cell.now { background: var(--accent-dim); }
.arc-cell.now .ac-label { color: var(--text-1); }
.arc-cell.now .ac-detail { color: var(--text-2); }
.arc-cell.forecast .ac-label { color: var(--accent-2); font-style: italic; }
.arc-cell.observed .ac-label { color: var(--text-2); font-weight: 500; }
.arc-cell.dimmed { opacity: .32; }
.arc-cell.focused { background: var(--accent-dim); }
.arc-cell.focused .ac-detail { -webkit-line-clamp: 8; color: var(--text-2); }
.arc-row.open .ac-detail { -webkit-line-clamp: 12; color: var(--text-2); }
.arc-arrow {
  color: var(--text-3); font-size: 13px; display: grid; place-items: center;
  align-self: center;
}
.arc-track[class*="focus-y"] .arc-arrow { opacity: .35; }
.arc-track.focus-all .arc-arrow { opacity: 1; }

.arc-detail { border-top: 1px solid var(--line); background: var(--bg-2); padding: 18px 20px; }
.arc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .arc-detail-grid { grid-template-columns: 1fr; gap: 18px; } }
.arc-detail h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin: 0 0 8px; font-weight: 700;
}
.ad-sowhat { font-size: 14px; margin: 0; }
.ad-tactics { display: flex; flex-direction: column; gap: 5px; }
.ad-tac {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: 13px; font-weight: 600; color: inherit; transition: .15s;
}
.ad-tac:hover { border-color: var(--accent); color: var(--accent); }
.ad-tac .tier-pill { margin-left: auto; }

@media (max-width: 860px) {
  .arc-head { display: none; }
  .arc-line { grid-template-columns: 1fr; gap: 0; }
  .arc-theme {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 0 0 10px; margin-bottom: 10px;
  }
  .arc-cell { padding: 10px 0; border-top: 1px solid var(--line); }
  .arc-cell:first-of-type { border-top: 0; }
  .arc-cell::before {
    content: attr(data-era); font-family: var(--mono); font-size: 10px;
    color: var(--text-3); letter-spacing: .06em;
  }
  .arc-arrow { display: none; }
  .arc-cell.dimmed { display: none; }
}

/* ---------- Fundamentals ---------- */
.seg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .seg-cards { grid-template-columns: 1fr; } }
.seg-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-align: left; color: inherit; transition: .16s;
  display: flex; flex-direction: column; gap: 3px;
}
.seg-card:hover { border-color: var(--line-2); }
.seg-card.on { border-color: var(--brand); background: var(--accent-dim); }
.seg-name { font-weight: 700; font-size: 15px; }
.seg-motion { font-size: 12.5px; color: var(--text-3); }
.seg-card.on .seg-motion { color: var(--accent); }

.fund-meter { display: flex; align-items: center; gap: 12px; }
.fm-track { flex: 1; height: 9px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fm-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .25s; }
.fm-pct { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--accent); min-width: 48px; text-align: right; }

.fq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; transition: .16s;
}
.fq:hover { border-color: var(--line-2); }
.fq.open { border-color: var(--accent); }
.fq-head {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  width: 100%; background: none; border: 0; color: inherit; text-align: left; padding: 14px 16px;
}
.fq-n { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.fq-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fq-label { font-weight: 700; font-size: 14px; }
.fq-q { font-size: 13px; color: var(--text-2); }
.fq-state {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--line); color: var(--text-3);
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.fq-body { border-top: 1px solid var(--line); background: var(--bg-2); padding: 16px 18px; }
.fq-why { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.fq-good {
  display: flex; gap: 11px; align-items: flex-start; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.fq-fail {
  font-size: 13px; color: var(--text-2); margin-top: 12px;
  border-left: 3px solid var(--crit); padding-left: 12px;
}
.fq-fail strong { color: var(--crit); }
.fq-mark { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fq-opt { padding: 6px 12px; font-size: 12.5px; }

.disc {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 18px 20px;
}
.disc h4 { font-size: 15px; margin-bottom: 8px; }
.disc p { font-size: 13.5px; color: var(--text-2); }
.disc .thesis-stage { margin-top: 12px; }

.bar-sep { color: var(--text-3); margin: 0 4px; }

/* ---------- Category mode banner ---------- */
.cat-banner {
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 38%, transparent);
  border-radius: var(--radius-sm); padding: 8px 14px; margin: 0 0 12px;
  font-size: 12.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cat-banner[hidden] { display: none; }
.cat-banner strong { color: var(--accent-2); }
.link-btn {
  background: none; border: 0; color: var(--accent); font-size: 12.5px;
  font-weight: 600; text-decoration: underline; padding: 0; margin-left: auto;
}

/* ---------- Opinion / override tags ---------- */
.op-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 34%, transparent);
  padding: 2px 7px; border-radius: 20px; vertical-align: 2px; margin-left: 8px;
}
.ov-badge {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 34%, transparent);
  padding: 2px 7px; border-radius: 20px; align-self: flex-start; margin-left: 8px;
}

/* ---------- Gate ---------- */
.sticky-col { position: sticky; top: 150px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

.q-note {
  margin: 10px 0 0; font-size: 12.5px; color: var(--text-3);
  border-left: 2px solid var(--accent); padding-left: 10px;
}
.warn-box {
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 22px;
  font-size: 13.5px; color: var(--text-2);
}
.verdict-title { font-size: 17px; margin-top: 4px; }
.card.verdict-positioning { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.card.verdict-positioning .verdict-title { color: var(--warn); }
.card.verdict-adjacent { border-color: color-mix(in srgb, var(--build) 45%, transparent); }
.card.verdict-adjacent .verdict-title { color: var(--build); }
.card.verdict-creating { border-color: color-mix(in srgb, var(--core) 45%, transparent); }
.card.verdict-creating .verdict-title { color: var(--core); }

/* ---------- Override rows ---------- */
.ov-row {
  display: grid; grid-template-columns: 200px 150px 1fr; gap: 14px; align-items: start;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.ov-row:last-child { border-bottom: 0; }
@media (max-width: 820px) { .ov-row { grid-template-columns: 1fr; gap: 6px; } }
.ov-name { font-weight: 650; font-size: 13.5px; }
.ov-move { display: flex; align-items: center; gap: 7px; }
.ov-note { font-size: 13px; color: var(--text-2); }

/* ---------- Risks ---------- */
.risk {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--crit); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 10px;
}
.risk-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.risk-n {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--crit);
  border: 1px solid color-mix(in srgb, var(--crit) 35%, transparent);
  border-radius: 5px; padding: 1px 6px; flex: none;
}
.risk-hd strong { font-size: 14.5px; }
.risk-detail { font-size: 13.5px; color: var(--text-2); margin: 0 0 12px; }
.risk-mit {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 11px 13px;
}
.risk-mit p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.mit-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--core); background: color-mix(in srgb, var(--core) 14%, transparent);
  border-radius: 20px; padding: 3px 8px; flex: none; margin-top: 1px;
}

/* ---------- 2026 outlook ---------- */
.thesis-hero {
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px;
}
.thesis-hero p { font-size: 16px; max-width: 82ch; margin: 0; }

.o26-counts { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.o26-row {
  display: grid; grid-template-columns: 24px 262px 1fr; gap: 12px; align-items: start;
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 12px 4px; color: inherit; transition: .15s;
}
.o26-row:last-child { border-bottom: 0; }
.o26-row:hover { background: var(--surface-2); }
@media (max-width: 820px) { .o26-row { grid-template-columns: 24px 1fr; } .o26-note { grid-column: 2; } }
.o26-dir { font-size: 13px; line-height: 1.5; }
.o26-name { font-weight: 650; font-size: 13.5px; }
.o26-note { font-size: 13px; color: var(--text-2); }

.thesis {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px;
}
.thesis-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.thesis-n { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; }
.thesis-hd h3 { font-size: 16px; }
.thesis-claim { font-size: 14.5px; color: var(--text); margin-bottom: 14px; max-width: 84ch; }
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
@media (max-width: 800px) { .thesis-grid { grid-template-columns: 1fr; gap: 12px; } }
.thesis-grid h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin: 0 0 5px; font-weight: 700;
}
.thesis-grid p { font-size: 13px; color: var(--text-2); margin: 0; }
.thesis-stage {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 13px; color: var(--text-2);
}
.ts-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  color: var(--accent); background: var(--accent-dim); border-radius: 20px;
  padding: 3px 9px; flex: none; white-space: nowrap; margin-top: 1px;
}

.y26 {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--d); border-radius: var(--radius-sm); padding: 14px 16px;
}
.y26-mark { color: var(--d); font-size: 14px; line-height: 1.4; }
.y26-label { font-weight: 700; font-size: 13px; color: var(--d); }
.y26-chip { font-size: 11px; flex: none; margin-top: 3px; }

/* Section intros ran to eight or eleven lines before any content. The lead
   sentence stays visible at every width; the rest is folded behind More. */
.section-head p.clampable .p-rest, .arc-caveat .p-rest { display: none; }
.section-head p.clampable.expanded .p-rest, .arc-caveat.expanded .p-rest { display: inline; }
.clamp-more {
  display: inline-block; background: none; border: 0; padding: 2px 0;
  color: var(--accent); font-size: 12.5px; font-weight: 600; margin-top: 2px;
}
.clamp-more[hidden] { display: none; }

/* ---------- Narrow screens ---------- */

/* A safety net, not a substitute for fixing causes: `clip` contains a stray
   overflow without creating a scroll container, so it cannot break the sticky
   header the way `hidden` would. Every known cause is fixed above it. */
html, body { overflow-x: clip; }

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-divider { display: none; }
  .brand-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: normal; line-height: 1.25; }
  .logo-plate img { height: 34px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stage-bar-label { display: none; }
  .hero { padding: 22px 20px; }
  .hero-stage h1 { font-size: 24px; }
  .section-head h2 { font-size: 19px; }
  .tgrid { grid-template-columns: 1fr; }
  .vmatrix { grid-template-columns: 34px repeat(5, minmax(0,1fr)); gap: 3px; }
  .vm-head, .vm-cell { padding: 6px 1px; font-size: 8.5px; }
  .vm-lab { font-size: 8.5px; }
  .drawer-hd, .drawer-body { padding-left: 18px; padding-right: 18px; }
  .rank-n { font-size: 15px; width: 22px; }

  /* The header was eating half the screen. Trim it rather than making the page
     scroll past it: the segment names carry the meaning, the motions do not. */
  .hdr-top { padding: 10px 0; }
  .stage-bar { padding-bottom: 9px; gap: 8px; }
  .seg-bar .stage-btn small { display: none; }
  .seg-bar .stage-btn { padding: 8px 12px; }
  .seg-effect { font-size: 11.5px; line-height: 1.45; }
  .se-detail { display: none; }

  /* A 280px sticky header on an 844px phone leaves a third of the screen for
     content. The header scrolls away; only the tab bar stays pinned. */
  .hdr { position: static; }
  .tabs {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    margin: 0 -16px; padding: 0 16px;
  }

  /* 44px minimum touch target — the tracks were 30px tall and hard to hit. */
  .stage-btn { min-height: 44px; justify-content: center; padding: 6px 14px; }
  .tab { min-height: 44px; }
  .chip, .opt { min-height: 34px; }

  /* iOS zooms the page when a focused input is under 16px. */
  input, select, textarea { font-size: 16px !important; }

  .bm-nav { gap: 6px; }
  .bm-jump { padding: 9px 11px; }
  .bm-jump b { font-size: 12.5px; overflow-wrap: anywhere; }
  .bm-jump span { font-size: 9.5px; }

  .ev-grid { grid-template-columns: 1fr; }
  .seg-row { grid-template-columns: 1fr; }
  .plan-foot, .bp-next-row, .bm-actions { gap: 8px; }
  .plan-foot .btn, .bp-next-row .btn { flex: 1 1 auto; }

  /* Long unbroken strings — URLs, mono figures — must not push the page wide. */
  .ev-card .c, .fq-q, .ac-detail, .sc-body p, .src-note, .src-pop { overflow-wrap: anywhere; }

}

@media (max-width: 400px) {
  .bm-nav { grid-template-columns: 1fr; }
  .math-strip { grid-template-columns: 1fr; }
  .vmatrix { grid-template-columns: 30px repeat(5, minmax(0,1fr)); }
}

@media print {
  .hdr, .tabs, .toolbar, .btn, .icon-btn, .intake, .plan-foot { display: none !important; }
  .plan-sec, .plan-hero { break-inside: avoid; border-color: #ccc; }
  body { background: #fff; color: #000; }
  .panel[hidden] { display: block !important; }
}

/* ============================================================== SOURCES == */
.src-list { display: grid; gap: 12px; margin-bottom: 18px; }
.src-card {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--radius); padding: 15px 17px;
}
.src-card.newest { border-left-color: var(--accent); }
.src-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.src-title { font-weight: 650; font-size: 14.5px; color: var(--text-1); }
.src-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.src-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.src-new {
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--brand); padding: 2px 8px; border-radius: 20px;
}
.src-n { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.src-card p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.src-pop { color: var(--text-3) !important; }
.src-pop strong { color: var(--text-2); }
.src-caveat {
  font-size: 12.5px !important; color: var(--text-3) !important;
  border-top: 1px dashed var(--line); padding-top: 8px;
}

.ev-srcfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.src-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.ev-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin: 2px 0 10px; }
.ev-src {
  font-size: 10.5px; color: var(--text-3); margin-left: auto;
  border: 1px dashed var(--line-2); padding: 1px 7px; border-radius: 20px; white-space: nowrap;
}
.ev-card[data-src="iconiq2026"] .n { color: var(--accent-2); }

/* ============================================================ SCORECARD == */
.scorecard { display: grid; gap: 8px; }
.sc-row {
  display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px;
}
.sc-verdict {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding-top: 2px;
}
.sc-row.sc-ok   { border-left-color: var(--core); }
.sc-row.sc-ok   .sc-verdict { color: var(--core); }
.sc-row.sc-bad  { border-left-color: var(--crit); }
.sc-row.sc-bad  .sc-verdict { color: var(--crit); }
.sc-row.sc-warn { border-left-color: var(--warn); }
.sc-row.sc-warn .sc-verdict { color: var(--warn); }
.sc-body h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.sc-body p  { margin: 5px 0 0; font-size: 13.5px; color: var(--text-2); }

@media (max-width: 620px) {
  .sc-row { grid-template-columns: 1fr; gap: 6px; }
  .src-top { flex-direction: column; gap: 6px; }
  .ev-src { margin-left: 0; }
}

/* ====================================================== TIME PERSPECTIVE == */
/* The drawer reads present → future → past. History is collapsed, because it
   is history: useful for the argument, not for the decision. */
.drawer-sec.era-now  { border-left: 3px solid var(--accent); padding-left: 14px; }
.drawer-sec.era-next { border-left: 3px solid var(--accent-2); padding-left: 14px; }
.era-flag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700;
  color: var(--accent); margin-bottom: 10px; display: flex; align-items: center;
  gap: 9px; flex-wrap: wrap;
}
.era-next .era-flag { color: var(--accent-2); }
details.era-past { border-left: 3px solid var(--line-2); padding-left: 14px; }
details.era-past > summary {
  cursor: pointer; list-style: none; color: var(--text-3);
}
details.era-past > summary::-webkit-details-marker { display: none; }
details.era-past > summary .era-flag { color: var(--text-3); margin: 0; }
details.era-past > summary::after { content: ' ▾'; color: var(--text-3); font-size: 10px; }
details.era-past[open] > summary::after { content: ' ▴'; }
details.era-past > summary:hover .era-flag { color: var(--text-2); }

/* Confidence is stated everywhere a forecast appears — a low-confidence call
   that looks identical to a high-confidence one is worse than no call. */
.conf-pill {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap;
}
.conf-high   { color: var(--core);  border-color: color-mix(in srgb, var(--core) 45%, transparent);
               background: color-mix(in srgb, var(--core) 12%, transparent); }
.conf-medium { color: var(--test);  border-color: color-mix(in srgb, var(--test) 45%, transparent);
               background: color-mix(in srgb, var(--test) 12%, transparent); }
.conf-low    { color: var(--hold);  border-color: color-mix(in srgb, var(--hold) 50%, transparent);
               background: color-mix(in srgb, var(--hold) 14%, transparent); }
.conf-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-left: 5px; vertical-align: middle;
}
.conf-dot.conf-high   { background: var(--core); }
.conf-dot.conf-medium { background: var(--test); }
.conf-dot.conf-low    { background: var(--hold); }

.callout.watch { border-left-color: var(--accent-2); }
.callout.watch .lead { color: var(--accent-2); }

.o26-name .conf-pill { margin-left: 6px; }
.ps-2026 .conf-pill { margin-left: 6px; }
.ac-label + .conf-pill { align-self: flex-start; }

@media (max-width: 1100px) {
  .arc-head, .arc-line { grid-template-columns: 96px repeat(4, minmax(0,1fr)); gap: 7px; }
  .arc-head .arc-arrow, .arc-line .arc-arrow { display: none; }
  .arc-head-cell:nth-of-type(2) { grid-column: 2; }
  .arc-head-cell:nth-of-type(3) { grid-column: 3; }
  .arc-head-cell:nth-of-type(4) { grid-column: 4; }
  .arc-head-cell:nth-of-type(5) { grid-column: 5; }
}
@media (max-width: 720px) {
  .arc-head { display: none; }
  .arc-line { grid-template-columns: 1fr; gap: 10px; }
  .arc-theme { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .arc-cell::before {
    content: attr(data-era); display: block; font-family: var(--mono);
    font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  }
  .arc-cell { padding: 8px 10px; background: var(--bg-2); }
  .arc-cell.now { background: var(--accent-dim); }
}

/* ================================================== WHO YOU SELL TO ======= */
/* Segment sits inside the Lab's first decision, because "who are you for" and
   "how big are they" are the same question and separating them lost the answer. */
.ls-seg { margin: 16px 0 4px; }
.ls-seglabel {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--text-3); margin-bottom: 8px;
}
.seg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .seg-row { grid-template-columns: 1fr; } }
.ls-seg .ls-hint { margin-top: 10px; }

/* The playbook's segment alert band was removed — the header selector is the
   state now, and two stacked coloured bands read as errors rather than context. */

/* Segment and category overrides are different things and should not look alike. */
.ov-badge.ov-segment {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

/* ================================================ BUSINESS MODEL ANALYSIS = */
.bm-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
@media (max-width: 760px) { .bm-nav { grid-template-columns: repeat(2, 1fr); } }
.bm-jump {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 13px; text-align: left; color: inherit; transition: .15s;
  display: flex; flex-direction: column; gap: 3px;
}
.bm-jump:hover { border-color: var(--accent); }
.bm-jump span {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); font-weight: 700;
}
.bm-jump b { font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 700; }

.bm-thin {
  font-size: 12.5px; color: var(--text-3); margin: 0 0 14px;
  border-left: 2px solid var(--line-2); padding-left: 12px;
}
.bm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.bm-bench { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* The blueprint hands off rather than dead-ending — the analysis was invisible
   because nothing in the workshop flow ever pointed at it. */
.bp-next {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 24px; background: var(--surface);
}
.bp-next-head {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 700; color: var(--accent); margin-bottom: 8px;
}
.bp-next p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.bp-next-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Answers carried in from the plan, so nobody retypes what they wrote 20 minutes ago. */
.carried-note {
  font-size: 12.5px; color: var(--text-2); margin-top: 10px;
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.fq-carried {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  color: var(--accent); background: var(--accent-dim);
  border-radius: 20px; padding: 2px 8px; margin-left: 8px; white-space: nowrap;
}
.fq-preview {
  display: block; font-size: 12px; color: var(--text-3); margin-top: 4px;
  font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fq-answer { margin-top: 14px; }
.fq-answer label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--text-3); margin-bottom: 6px;
}
.fq-src { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.fq-answer textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 13.5px; padding: 10px 12px; resize: vertical;
}
.fq-answer textarea:focus { outline: none; border-color: var(--accent); }
.fq-answer .link-btn { margin-top: 6px; }

/* One of the tactics is ours rather than the research's, and says so. */
.ov-badge.ov-origin {
  color: var(--text-3);
  background: none;
  border-style: dashed;
  border-color: var(--line-2);
}

/* An unanswered segment should look like a gap, not like a finished plan. */
.ph-pill.ph-add {
  border-style: dashed; color: var(--accent);
  background: none; cursor: pointer;
}
.ph-pill.ph-add:hover { border-color: var(--accent); background: var(--accent-dim); }
