/* Feature views: hero + globe, report sections, choice, map/globe explorer, runs pipeline, settings, methodology. */

/* ── Hero ─────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 24px; align-items: center; margin: 6px 0 28px; }
@media (max-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero > * { min-width: 0; }
.hero-actions .select { max-width: 100%; }
.hero-copy .view-title { font-size: clamp(34px, 4.6vw, 60px); }
.hero-verdict { font-family: var(--display); font-size: clamp(40px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: .98; margin-top: 14px; }
.hero-quote { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); margin-top: 18px; max-width: 640px; }
.hero-quote::before { content: "“"; color: #b3a8ff; font-family: var(--display); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; margin-right: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 640px; }
@media (max-width: 560px) {
  .hero-gauges { gap: 8px; }
  .hero-gauges .card { padding: 10px 2px 0; overflow: hidden; }
  .hero-gauges .gauge { transform: scale(.66); transform-origin: top center; margin-bottom: -62px; }
  .hero-gauges .gauge .g-reading { font-size: 14px; }
}
.hero-gauges .card { display: flex; justify-content: center; }
.hero-gauges .card { padding: 16px 10px 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.globe-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: center; }
.globe-stage::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(123,139,255,.35), rgba(92,225,255,.08) 55%, transparent 70%); filter: blur(30px); }
.globe-stage canvas { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.globe-stage canvas:active { cursor: grabbing; }
.globe-chip { position: absolute; padding: 8px 12px; border-radius: 14px; font-size: 12px; background: rgba(12, 15, 30, .72); border: 1px solid var(--glass-border-strong); backdrop-filter: var(--blur); box-shadow: var(--shadow-soft); }
.globe-chip b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; color: #fff; }
.globe-chip.tl { top: 8%; left: 0; } .globe-chip.br { bottom: 10%; right: 0; }
.globe-tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.45; background: rgba(12, 15, 30, .92); border: 1px solid var(--glass-border-strong); box-shadow: var(--shadow); z-index: 3; max-width: 240px; }
.globe-legend { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.globe-legend .grad { width: 160px; height: 6px; border-radius: 999px; }

/* ── Answers & bento ─────────────────────────────────── */
.answer .q { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #b3a8ff; margin-bottom: 10px; }
.answer .a { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.answer .a::first-letter { font-family: var(--display); }
.choice-teaser .name { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; margin: 4px 0 10px; }
.spectrum { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #2ee6b6, #6cb8ff 35%, #8f7cff 60%, #ffc15e 80%, #ff6b4a); opacity: .9; margin: 14px 0 6px; }
.spectrum .marker { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(10,13,26,.9), 0 0 18px rgba(255,255,255,.7); }
.spectrum-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.quadrant { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 5px; font-size: 11px; }
.quadrant .qh { font-family: var(--mono); color: var(--faint); text-align: center; padding: 2px; font-size: 10px; letter-spacing: .06em; }
.quadrant .qr { font-family: var(--mono); color: var(--faint); display: flex; align-items: center; padding-right: 8px; font-size: 10px; letter-spacing: .06em; }
.quadrant .qc { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px 6px; border-radius: 10px; line-height: 1.25; color: var(--faint); background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); }
.quadrant .qc.on { color: #fff; font-weight: 600; background: var(--brand-soft); border-color: rgba(160,150,255,.55); box-shadow: 0 0 24px -6px rgba(143,124,255,.7); }

.reason-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.reason-list li { position: relative; padding-left: 18px; color: var(--text-2); line-height: 1.6; }
.reason-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.reason-list.good li::before { background: var(--good); box-shadow: 0 0 8px rgba(46,230,182,.7); }
.reason-list.bad li::before { background: var(--bad); box-shadow: 0 0 8px rgba(255,107,74,.7); }
.stackbar { display: flex; height: 34px; border-radius: 12px; overflow: hidden; margin: 12px 0 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.stackbar > div { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #06060c; transition: flex-basis .8s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ── Evidence ─────────────────────────────────────────── */
.lens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lens-card { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.lens-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--mixed); }
.lens-card.positive::after { background: linear-gradient(90deg, var(--good), transparent); }
.lens-card.negative::after { background: linear-gradient(90deg, var(--bad), transparent); }
.lens-card h4 { font-family: var(--display); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lens-card p { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.filterbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

/* ── Debate / ethics / trajectory / red team ──────────── */
.case-thesis { font-family: var(--display); font-size: 18px; line-height: 1.45; color: #fff; margin: 10px 0 14px; }
.arg { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--text-2); line-height: 1.6; }
.ethic-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.06); }
.ethic-row:first-child { border-top: 0; }
.ethic-row h4 { font-family: var(--display); font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .ethic-row { grid-template-columns: 1fr; gap: 8px; } }
.prob-row { display: grid; grid-template-columns: 56px 1fr 46px; gap: 12px; align-items: center; margin: 10px 0; font-size: 12.5px; }
.prob-row .minibar { height: 10px; }
.trend { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.trend:first-child { border-top: 0; }
.critique { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); }
.critique + .critique { margin-top: 12px; }
.critique .ruling { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); font-size: 13px; color: var(--text-2); }
.movement { font-family: var(--mono); font-size: 13px; }

/* ── Futures ─────────────────────────────────────────── */
.scenario { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); overflow: hidden; }
.scenario + .scenario { margin-top: 12px; }
.scenario-head { display: grid; grid-template-columns: 4px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px 16px 0; cursor: pointer; }
.scenario-head .swatch { align-self: stretch; border-radius: 0 4px 4px 0; }
.scenario-head h4 { font-family: var(--display); font-size: 17px; font-weight: 600; }
.scenario-prob { font-family: var(--display); font-size: 28px; font-weight: 600; text-align: right; letter-spacing: -0.02em; }
.scenario-body { padding: 0 18px 18px 22px; }
.timeline-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
@media (max-width: 760px) { .timeline-cols { grid-template-columns: 1fr; } }
.timeline-cols h5, .scenario-body h5, .mini-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
ul.plain { padding-left: 18px; color: var(--text-2); line-height: 1.6; }
ul.plain li + li { margin-top: 5px; }

/* ── Horizon's choice ─────────────────────────────────── */
.choice-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; }
@media (max-width: 1000px) { .choice-hero { grid-template-columns: 1fr; } }
.choice-name { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 8px 0 12px; }
.premise { font-size: 14px; color: var(--text-2); border-left: 2px solid transparent; border-image: var(--brand) 1; padding-left: 14px; margin-bottom: 16px; }
.dials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dial { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); }
.dial .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } }
.rung { position: relative; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--glass-border); transition: transform .25s var(--ease), border-color .25s; }
.rung .step { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .1em; }
.rung h4 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
.rung p { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.rung .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.rung .chips span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--text-2); border: 1px solid rgba(255,255,255,.06); }
.rung.chosen { background: linear-gradient(160deg, rgba(143,124,255,.22), rgba(92,225,255,.08)); border-color: rgba(160,150,255,.55); box-shadow: 0 0 30px -10px rgba(143,124,255,.8); }
.rung.partially_adopted { border-color: rgba(108,184,255,.35); }
.rung.rejected:is(.in, :not(.reveal)) { opacity: .62; }
.rung.rejected:hover { opacity: 1; }
.plan-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .plan-cols { grid-template-columns: 1fr; } }
.plan-col h4 { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.plan-col h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px rgba(143,124,255,.8); }
.plan-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); }
.plan-item + .plan-item { margin-top: 10px; }
.plan-item .act { color: var(--text); font-weight: 500; line-height: 1.5; }
.plan-item dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 8px; font-size: 12px; }
.plan-item dt { color: var(--faint); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding-top: 1px; }
.plan-item dd { color: var(--text-2); }
.use-row { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.use-row:first-child { border-top: 0; }
.use-row .arrow { color: #b3a8ff; font-size: 18px; text-align: center; }
@media (max-width: 760px) { .use-row { grid-template-columns: 1fr; } .use-row .arrow { display: none; } }
.message-card { position: relative; padding: 34px 34px 30px; border-radius: 26px; background: radial-gradient(120% 140% at 0% 0%, rgba(143,124,255,.22), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(92,225,255,.14), transparent 55%), rgba(12, 15, 30, .8); border: 1px solid rgba(160,150,255,.35); box-shadow: var(--glow-violet); }
.message-card .prose { font-size: 17px; color: var(--text); line-height: 1.75; }
.message-card .sig { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b3a8ff; }

/* ── Sources ─────────────────────────────────────────── */
.brief { white-space: pre-wrap; color: var(--text-2); line-height: 1.65; font-size: 13px; }
.brief sup a { font-family: var(--mono); font-size: 10px; }
ol.refs { padding-left: 22px; font-size: 12.5px; color: var(--text-2); }
ol.refs li { margin: 4px 0; word-break: break-word; }

/* ── Explorer (globe + flat map) ─────────────────────── */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .map-layout { grid-template-columns: 1fr; } }
.explorer-globe { max-width: 720px; margin: 0 auto; }
#map { position: relative; width: 100%; max-height: 72vh; min-height: 240px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--glass-border); background: radial-gradient(120% 120% at 50% 0%, rgba(20, 26, 52, .7), rgba(6, 8, 18, .9)); }
.worldmap svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.worldmap svg:active { cursor: grabbing; }
.wm-ocean { fill: transparent; }
.worldmap path { stroke-width: .6px; vector-effect: non-scaling-stroke; transition: fill .35s; }
.worldmap path:hover { stroke: #d6ceff; stroke-width: 1.4px; }
.worldmap path.selected { stroke: #fff; stroke-width: 1.8px; }
.wm-controls { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.wm-controls .btn { width: 34px; height: 34px; padding: 0; font-size: 16px; }
.wm-tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.45; background: rgba(12, 15, 30, .92); border: 1px solid var(--glass-border-strong); box-shadow: var(--shadow); max-width: 240px; z-index: 2; }
.map-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.map-legend .grad { width: 200px; height: 6px; border-radius: 999px; }
.side-panel { position: sticky; top: calc(var(--nav-h) + 90px); }

/* ── Runs ─────────────────────────────────────────────── */
.job-card { position: relative; padding: 18px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); }
.job-card + .job-card { margin-top: 12px; }
.job-card.running { border-color: rgba(92,225,255,.3); box-shadow: 0 0 40px -18px rgba(92,225,255,.6); }
.job-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job-top h4 { font-family: var(--display); font-size: 17px; font-weight: 600; }
.pipeline { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); margin: 18px 0 6px; }
.pipeline .node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--faint); text-align: center; letter-spacing: .02em; }
.pipeline .node::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.08); z-index: 0; }
.pipeline .node:first-child::before { display: none; }
.pipeline .node i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #11152a; border: 2px solid rgba(255,255,255,.14); }
.pipeline .node.ok i { background: var(--good); border-color: var(--good); box-shadow: 0 0 12px rgba(46,230,182,.6); }
.pipeline .node.ok::before, .pipeline .node.running::before { background: linear-gradient(90deg, var(--good), rgba(46,230,182,.3)); }
.pipeline .node.running i { background: var(--cyan); border-color: var(--cyan); animation: pulse 1.6s infinite; }
.pipeline .node.running { color: #d9f7ff; }
.pipeline .node.partial i, .pipeline .node.skipped i { background: var(--warn); border-color: var(--warn); }
.pipeline .node.failed i, .pipeline .node.refused i { background: var(--bad); border-color: var(--bad); }
.pipeline .node.ok { color: var(--text-2); }
@media (max-width: 760px) { .pipeline .node span { display: none; } }
.events { list-style: none; margin-top: 12px; padding: 10px 12px; max-height: 230px; overflow: auto; border-radius: 12px; background: rgba(4, 6, 14, .7); border: 1px solid var(--glass-border); font-family: var(--mono); font-size: 11.5px; }
.events li { display: flex; gap: 10px; padding: 3px 0; color: var(--text-2); }
.events li .t { color: var(--faint); flex: none; }
.events li.error { color: #ffb09c; } .events li.warning { color: #ffd892; } .events li.success { color: #8ff5d8; }
.ring { position: relative; width: 58px; height: 58px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 13px; font-weight: 600; }
.launch-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 10px 0 6px; }
.launch-card p { color: var(--muted); font-size: 13px; margin-bottom: 16px; min-height: 42px; }
.launch-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid rgba(160,150,255,.3); }
.launch-card .ic svg { width: 22px; height: 22px; stroke: #d6ceff; fill: none; stroke-width: 1.7; }
.job-dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px; cursor: pointer; font-size: 12.5px; background: rgba(14, 18, 36, .9); border: 1px solid rgba(92,225,255,.35); backdrop-filter: var(--blur); box-shadow: 0 10px 40px -12px rgba(92,225,255,.5); }
.job-dock .progress { width: 90px; }
body.has-toasts .job-dock { bottom: 86px; }
@media (max-width: 920px) { .job-dock { bottom: 86px; right: 50%; transform: translateX(50%); } }

/* ── Settings ─────────────────────────────────────────── */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
@media (max-width: 920px) { .settings-layout { grid-template-columns: minmax(0, 1fr); } }
.settings-cats { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); align-self: start; }
@media (max-width: 920px) { .settings-cats { flex-direction: row; overflow-x: auto; } }
.settings-cat { text-align: left; padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; font-weight: 500; }
.settings-cat:hover { color: #fff; background: rgba(255,255,255,.05); }
.settings-cat.active { color: #fff; background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(160,150,255,.28); }
.effort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-word; }
@media (max-width: 760px) { .kv { grid-template-columns: 1fr; } }
.copy-block { position: relative; }
.copy-block .btn { position: absolute; top: 8px; right: 8px; }

/* ── Methodology flow ─────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: step; }
.flow-step { position: relative; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.flow-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; color: #0b0820; font-weight: 700; background: var(--brand); }
.flow-step h4 { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; color: var(--muted); }
.flow-step.accent { border-color: rgba(160,150,255,.5); box-shadow: var(--glow-violet); }
.band-table td:first-child { font-family: var(--mono); white-space: nowrap; }

/* ── v2 additions: hero globe, explorer, dossier ─────── */
.globe-wrap { position: relative; width: 100%; max-width: 640px; justify-self: center; }
.globe-chip { z-index: 2; }
.globe-stage > .callout { margin: 0 12%; }
.choice-strip { display: block; width: 100%; max-width: 640px; margin-top: 14px; padding: 16px 18px; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.choice-strip-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.choice-strip-row b { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.choice-strip-row span:not(.arrow) { color: var(--text-2); font-size: 14px; flex: 1; min-width: 160px; }
.choice-strip-row .arrow { color: #b3a8ff; font-size: 20px; transition: transform .25s var(--ease); }
.choice-strip:hover .arrow { transform: translateX(4px); }
.meter-label.split { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.meter-label.split span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat-row { margin-bottom: 18px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.stat .card-kicker { margin: 0; }
.stat-v { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat-v small { font-size: 14px; color: var(--faint); font-weight: 500; }
.explorer-card { padding: 14px; }
.explorer-bar { margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.explorer-globe { max-width: 640px; margin: 0 auto; }
.swatch-na { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: rgba(120,130,170,.22); border: 1px solid rgba(160,170,255,.2); vertical-align: -1px; margin-right: 4px; }
.panel-title { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 2px; }
.panel-verdict { font-family: var(--display); font-size: 17px; font-weight: 600; }
.panel-headline { color: var(--text-2); font-size: 13px; line-height: 1.6; margin-top: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.back-link:hover { color: #fff; }
.dossier-name { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; color: var(--text-2); }
.dossier-hero .globe-wrap { max-width: 520px; }
.search-field { position: relative; flex: 1 1 220px; max-width: 320px; }
.search-field svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.search-field .input { padding-left: 36px; }
table.data th[data-dir="asc"]::after { content: " ↑"; color: #b3a8ff; }
table.data th[data-dir="desc"]::after { content: " ↓"; color: #b3a8ff; }

/* ── v2 additions: runs ─────────────────────────────── */
.job-card.queued { padding: 12px 18px; }
.job-card.completed { border-color: rgba(46,230,182,.22); }
.job-card.failed, .job-card.interrupted { border-color: rgba(255,107,74,.3); }
.job-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.job-info { flex: 1 1 260px; min-width: 0; }
.job-top .badge .status-dot { margin-right: 6px; }
.job-msg { color: var(--muted); font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pipeline .node.is-choice span { color: #cfc6ff; }
.pipeline .node.is-choice i { box-shadow: 0 0 0 3px rgba(143,124,255,.25); }
.pipeline .node.is-choice.ok i { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px rgba(143,124,255,.8); }
.events-fold { margin-top: 14px; }
.events-fold .events { margin: 0 12px 12px; }
.mini-pipeline { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.mini-pipeline span { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); color: var(--text-2); }
.mini-pipeline span.hl { background: var(--brand-soft); border-color: rgba(160,150,255,.5); color: #fff; }
.estimate-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(160,150,255,.3); }
.estimate-card .card-kicker { margin: 0 0 2px; }
.est-v { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }

/* ── v2 additions: settings / agent ─────────────────── */
.settings-cat { display: flex; align-items: center; gap: 10px; }
.settings-cat svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; opacity: .85; }
.btn.primary.pulse { animation: pulse 1.8s infinite; }
.preset { display: block; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.preset.on { border-color: rgba(160,150,255,.55); box-shadow: var(--glow-violet); }
.preset input { accent-color: var(--violet); }
.preset-list { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.preset-list b { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.preset-list b.eff-xhigh { color: #b3a8ff; } .preset-list b.eff-max { color: var(--cyan); }
.spec-grid { display: flex; flex-direction: column; border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.05); }
.spec-row:first-child { border-top: 0; }
.spec-row > span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-row code { font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-word; }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr auto; } .spec-row > span:first-child { grid-column: 1 / -1; } }
.code-block { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(4, 6, 14, .75); border: 1px solid var(--glass-border); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #d7dcf5; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
.code-block.small { font-size: 11.5px; padding: 10px 12px; max-height: 260px; }
.copy-block .code-block { padding-right: 70px; }
.part-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); }
.part-row:first-of-type { border-top: 0; }
.part-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #0b0820; background: var(--brand); }
ol.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
ol.steps li::marker { color: #b3a8ff; font-family: var(--mono); }
ol.steps .copy-block { margin-top: 8px; }
.agent-result { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.1); }
.token-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: visible; }
.token-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .8s var(--ease); }
.token-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255,193,94,.8); border-radius: 2px; }

/* ── v2 additions: methodology ──────────────────────── */
.flow-who { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

@media (max-width: 760px) {
  .grid.four.stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat-v { font-size: 24px; }
  .hero { gap: 12px; }
  .globe-wrap { max-width: 420px; }
  .explorer-bar .faint { display: none; }
}

/* ── v2.1: two-phase runs and evidence ──────────────── */
.phase-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.phase-head h3 { font-family: var(--display); font-size: 17px; font-weight: 600; }
.phase-head p { font-size: 12.5px; margin-top: 2px; }
.phase-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: #0b0820; background: var(--brand); }
.research-strip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); }
.pipeline .node.reused i { background: rgba(160,150,255,.45); border-color: rgba(160,150,255,.75); }
.pipeline .node.reused::before { background: linear-gradient(90deg, rgba(160,150,255,.6), rgba(160,150,255,.25)); }
.pipeline .node.reused { color: #b9aeff; }
.evidence-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); font-size: 12.5px; }
.evidence-chip a { color: var(--text-2); }
.evidence-chip a:hover { color: #fff; }
.evidence-chip.good { border-color: rgba(46,230,182,.35); }
.evidence-chip.good a { color: #8ff5d8; }
.evidence-chip.warn { border-color: rgba(255,193,94,.4); }
.evidence-chip.warn a { color: #ffd892; }
.evidence-chip .btn { height: 26px; padding: 0 10px; font-size: 12px; }

/* ── Buckets ───────────────────────────────────────────── */
.bucket-card { display: flex; flex-direction: column; }
.cover-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.cover-bar i { display: block; height: 100%; border-radius: 99px;
  background: var(--brand); transition: width .5s var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); color: var(--text-2); }
.chip.faint { color: var(--faint); }
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--glass-border); border-radius: 10px;
  background: rgba(255,255,255,.02); padding: 4px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer; }
.pick:hover { background: rgba(255,255,255,.05); color: var(--text); }
.pick span:first-of-type { flex: 1; }
.pick input { accent-color: var(--violet); }
.hint.bad { color: var(--bad); }

/* Model choice cards (Settings → Analysis → Model) */
.model-choices { display: grid; gap: 10px; }
.model-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255,255,255,.02);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.model-choice:hover { border-color: var(--glass-border-strong); background: rgba(255,255,255,.04); }
.model-choice.on { border-color: var(--violet); background: var(--brand-soft); }
.model-choice input { accent-color: var(--violet); }
.model-choice .price { text-align: right; font-size: 13px; color: var(--text-2); white-space: nowrap; }

/* Failure reason in the run history, and the run-log modal */
.row-error { margin-top: 5px; font-size: 11.5px; line-height: 1.45; color: #ffb3a0; font-weight: 400;
  max-width: 340px; white-space: normal; }
.log-list { max-height: 320px; overflow: auto; border: 1px solid var(--glass-border); border-radius: 10px;
  background: rgba(0,0,0,.22); padding: 6px; }
.log-line { display: grid; grid-template-columns: 62px 78px minmax(0, 1fr); gap: 8px; padding: 5px 8px;
  font-size: 12px; line-height: 1.5; color: var(--text-2); border-radius: 6px; }
.log-line + .log-line { border-top: 1px solid rgba(255,255,255,.04); }
.log-line.error { color: #ffb3a0; }
.log-line.warning { color: #ffd892; }
.log-line.success { color: #8ff0d4; }
.log-line .mono { font-size: 10.5px; }

/* Outcome distribution for Horizon's chosen course */
.outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card.outcome { padding: 16px; border-left: 3px solid var(--mixed); }
.card.outcome.good { border-left-color: var(--good); }
.card.outcome.bad { border-left-color: var(--bad); }
.card.outcome h4 { font-family: var(--display); font-size: 15px; font-weight: 600; }

/* Verdict-response curve (AI Futures) */
.vr-figure { margin: 6px 0 0; }
.vr-figure svg { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.vr-tick { fill: var(--faint); font: 400 11px/1 var(--mono); }
.vr-axis { fill: var(--muted); font: 400 11.5px/1 var(--font); }
.vr-annot { fill: var(--violet); font: 500 10.5px/1 var(--mono); letter-spacing: .02em; }
.vr-label { fill: var(--text-2); font: 500 12px/1 var(--font); }
.vr-figure figcaption { color: var(--faint); font-size: 11.5px; line-height: 1.5; margin-top: 8px; max-width: 70ch; }
tr.is-actual { background: rgba(143, 124, 255, .09); }
tr.is-actual td:first-child { box-shadow: inset 2px 0 0 var(--violet); }

/* Forecast of what systems like Horizon would do: label · bar · value, reason underneath. */
.forecast-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 48px; gap: 4px 14px;
  align-items: center; padding: 7px 0; border-bottom: 1px solid var(--glass-border); }
.forecast-row .fl { font-size: 13px; color: var(--text); }
.forecast-row .fb { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.forecast-row .fb i { display: block; height: 100%; border-radius: 999px; }
.forecast-row .fv { font-size: 12.5px; text-align: right; color: var(--text-2); }
.forecast-row .fw { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; }
@media (max-width: 640px) {
  .forecast-row { grid-template-columns: 1fr 44px; }
  .forecast-row .fb { grid-column: 1 / -1; grid-row: 2; }
}

/* Two models side by side: A = the reasoning model, B = the independent second opinion. */
.pair-legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); }
.pair-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pair-legend i.a, .pair-row .pb i.a { background: var(--sen-teal); }
.pair-legend i.b, .pair-row .pb i.b { background: var(--sen-accent); }
.pair-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 96px; gap: 14px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--glass-border); }
.pair-row .pl { font-size: 13px; color: var(--text); }
.pair-row .pb { display: grid; gap: 3px; }
.pair-row .pb i { display: block; height: 7px; border-radius: 999px; min-width: 2px; }
.pair-row .pb.signed { position: relative; }
.pair-row .pb.signed::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px;
  background: var(--glass-border-strong); }
.pair-row .pv { display: grid; gap: 1px; font-size: 12px; text-align: right; }
.pair-row .pv .a { color: var(--sen-teal); }
.pair-row .pv .b { color: var(--sen-accent); }
@media (max-width: 640px) {
  .pair-row { grid-template-columns: 1fr 80px; }
  .pair-row .pb { grid-column: 1 / -1; grid-row: 2; }
}

/* Third model in comparisons, and the balance beam in the Astra tab. */
.pair-legend i.c, .pair-row .pb i.c { background: #a18fff; }
.pair-row .pv .c { color: #b9aaff; }
.balance-beam { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.balance-beam i { display: block; min-width: 4px; }
.balance-beam i.for { background: var(--sen-teal); }
.balance-beam i.against { background: var(--sen-accent); }
/* Group (bucket) verdict standing in for a country's own — striped, matching the globe and flat map. */
.swatch-group { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px;
  background: repeating-linear-gradient(45deg, rgba(92,225,255,.55) 0 2px, rgba(6,8,20,.6) 2px 4px); border: 1px solid rgba(160,170,255,.25); }
