/* The Run page (clean look). */

/* ---------- start a run: the centred hero ---------- */
/* Centred in the space under the nav; the Getting started checklist
   sits below it. */
.hero {
  min-height: calc(100svh - 150px); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center;
  gap: 18px; padding: 24px 0 32px; text-align: center;
}
/* The chamber: twelve seats in an arc with the title inside it. */
/* Seats and title scale with the chamber's own width (cqw), so the arc keeps
   its proportions from a small phone to a desktop. */
.chamber { position: relative; width: min(460px, 100%); aspect-ratio: 2 / 1.08; container-type: inline-size; }
.chamber-seats { position: absolute; inset: 0; }
.chamber-seat {
  --size: clamp(28px, 10cqw, 44px);
  position: absolute; width: var(--size); height: var(--size); transform: translate(-50%, -50%);
  display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--accent);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chamber-seat svg { width: 52%; height: 52%; }
.chamber-seat:hover, .chamber-seat[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chamber-seat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chamber-title { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; justify-items: center; }
.chamber-title h1 { font-size: clamp(21px, 7.6cqw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.chamber-title p { color: var(--muted); font-size: clamp(12px, 3.6cqw, 15px); }
.chamber-note { font-size: 13px; color: var(--faint); max-width: 30rem; min-height: 1.5em; }
.chamber-note b { color: var(--ink); font-weight: 600; }
.hero-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; width: min(560px, 100%); }
.hero-core { position: relative; width: 100%; }
.hero-box {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 20px rgba(20, 30, 60, .07);
  transition: box-shadow .2s ease;
}
.hero-box:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 8px 26px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 12px;
}
.hero-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 17px; color: var(--faint); }
.hero-run { padding: 13px 22px; font-size: 16px; border-radius: 12px; white-space: nowrap; }
.next-debate { display: grid; justify-items: center; gap: 10px; padding: 26px 0 8px; text-align: center; }
/* Under the ticker box (#110): the company's name, a note, or close matches. */
.ticker-hint { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); text-align: center; }
.ticker-hint .name { color: var(--ink); font-weight: 600; }
.ticker-hint .warn { color: var(--warn); width: 100%; }
.ticker-hint .coin-note { font-weight: 600; }
.ticker-hint .bad { color: var(--down); width: 100%; }
.ticker-hint.shake { animation: hint-shake .35s ease; }
/* A ticker that isn't recognized (Oct 22): the box itself shakes and goes red. */
.hero-box.shake { animation: hint-shake .4s ease; border-color: var(--down) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 18%, transparent) !important; }
@keyframes hint-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .ticker-hint.shake, .hero-box.shake { animation: none; } }
.suggest { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; }
.suggest:hover { border-color: var(--accent); }
.suggest b { font-family: var(--mono); font-weight: 600; }
.suggest span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.alert .suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alert .pause-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-options { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.shape-hint { font-size: 13px; width: 100%; max-width: 34rem; }
.opt-group { display: inline-flex; align-items: center; gap: 6px; }
.opt-group[hidden] { display: none; }
.opt-q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 600 13px var(--sans); cursor: pointer; padding: 0; flex: none; }
.opt-q:hover, .opt-q[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.opt-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-picks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; }
.hero-picks > span { color: var(--faint); }
.hero-pick {
  font: inherit; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .03em; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 0; border-radius: 99px; padding: 6px 12px;
  box-shadow: 0 0 0 1px var(--line);
}
.hero-pick:hover, .hero-pick:focus-visible { box-shadow: 0 0 0 1px var(--accent); color: var(--accent); outline: none; }
/* Pressing Run: the seats light up one by one, then the chamber lifts away
   and the run screen rises into its place (run.js launchHero). */
.chamber-seat.lit { background: var(--up); border-color: var(--up); color: #fff; transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 14px color-mix(in srgb, var(--up) 55%, transparent); }
.hero.leaving { animation: hero-leave .34s ease-in forwards; }
.run.entering { animation: run-enter .42s ease-out; }
@keyframes hero-leave { to { opacity: 0; transform: translateY(-28px) scale(.98); } }
@keyframes run-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .chamber-seat, .hero.leaving, .run.entering { transition: none; animation: none; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 120px); padding-top: 8px; }
  .hero-input { font-size: 19px; padding: 8px 8px; }
  .hero-run { padding: 12px 14px; font-size: 15px; }
  .hero-input::placeholder { font-size: 15px; }
}

/* ---------- "Council in session" / "Verdict reached" ---------- */
.session { display: inline-flex; align-items: center; gap: 8px; margin: 18px 20px -4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.session-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: session-pulse 1.2s ease-in-out infinite; }
.session.done { color: var(--up); }
.session.done .session-dot { animation: none; background: var(--up); }
@keyframes session-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .session-dot { animation: none; } }
@media (max-width: 640px) { .session { margin: 16px 16px -4px; } }

/* ---------- run header ---------- */
/* minmax(0, 1fr): nothing inside may widen the column past the screen (Safari
   sizes an auto column by its widest content, e.g. a chart's own width). */
.run { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.run-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.run-title { display: grid; gap: 6px; }
.run-ticker { font-family: var(--sans); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.run-company { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.run-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 13px; }
.pill-watch { font: inherit; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.pill-watch:hover, .pill-watch.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.watch-note { color: var(--down); font-size: 12px; }
.pill-watch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.headline { font-size: 19px; line-height: 1.45; font-weight: 500; max-width: 62ch; letter-spacing: -0.005em; text-wrap: pretty; }

/* ---------- progress ---------- */
.progress { padding: 14px 18px; display: grid; gap: 10px; }
.progress-top { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.progress-step { margin-left: auto; font-size: 13px; }
.progress-track { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 0.5s ease; }

/* ---------- positions ---------- */
.positions { padding-bottom: 6px; }
.pos {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 8px 28px; align-items: center;
  padding: 20px 20px; border-top: 1px solid var(--line);
}
.positions .card-head + div .pos:first-child { border-top: 0; }
.pos-term { display: grid; gap: 2px; }
.pos-term b { font-size: 15px; font-weight: 600; }
.pos-term span { font-size: 13px; color: var(--faint); }
.pos-value { text-align: right; display: grid; gap: 2px; justify-items: end; }
.pos-value .big { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.pos-value .big.num { font-family: var(--mono); font-weight: 500; }
.pos-value .small { font-size: 13px; font-weight: 500; }
.pos-value .tiny { font-size: 12px; color: var(--faint); }
/* The note, warnings and price target all sit in the bar's column, so their
   left and right edges line up with the bar above them. */
.pos-extra { grid-column: 2 / 3; display: grid; gap: 8px; min-width: 0; }
.pos-target { grid-column: 2 / 3; }
.pos-note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pos-objection { border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.pos-objection summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; border-radius: 12px; }
.pos-objection summary::-webkit-details-marker { display: none; }
.pos-objection summary::before { content: "!"; font-weight: 700; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; line-height: 1; }
.pos-objection summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.pos-objection[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.pos-objection summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pos-objection-title { font-weight: 600; }
.pos-objection-more { margin-left: auto; font-size: 13px; font-weight: 600; }
.pos-objection[open] .pos-objection-more { display: none; }
.pos-objection[open] summary::after { margin-left: auto; }
.pos-objection p { margin: 0; padding: 0 14px 12px 38px; line-height: 1.55; overflow-wrap: anywhere; }
.pos-warn { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 10px 14px; display: flex; gap: 8px; }
.pos-warn::before { content: "!"; font-weight: 700; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; line-height: 1; margin-top: 1px; }
.pos-waiting { color: var(--faint); font-size: 14px; }
@media (max-width: 760px) {
  .pos { grid-template-columns: 1fr auto; padding: 16px; gap: 10px 14px; }
  .pos-bar { grid-column: 1 / -1; order: 3; }
  .pos-extra { grid-column: 1 / -1; order: 4; }
  .pos-target { grid-column: 1 / -1; order: 5; }
}

/* ---------- seat grid ---------- */
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; padding: 14px 20px 20px; }
.seat {
  position: relative; display: grid; gap: 10px; align-content: start; text-align: left;
  font: inherit; color: inherit; background: var(--surface); cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px 14px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.seat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.seat:active { transform: scale(0.995); }
.seat-top { display: flex; align-items: center; gap: 8px; }
.seat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; transition: background-color 0.3s; }
.seat-dot.up { background: var(--up); }
.seat-dot.down { background: var(--down); }
.seat-dot.even { background: var(--even); }
.seat-name { font-weight: 600; font-size: 14px; }
.seat-status { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
.seat-status.wait { color: var(--warn); }
.seat .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.seat .chip { justify-content: center; padding: 4px 4px; font-size: 12px; gap: 4px; overflow: hidden; }
.seat .chip .t { font-size: 10.5px; }
.seat-reason { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.seat-reads { font-size: 13px; color: var(--faint); line-height: 1.45; min-height: 2.9em; }
.seat-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width 0.5s ease, opacity 0.4s; }
.seat.done .seat-line { opacity: 0; }
.seat.running .seat-line { background-image: linear-gradient(90deg, var(--accent) 0 40%, color-mix(in srgb, var(--accent) 55%, transparent) 60%, var(--accent)); background-size: 200% 100%; animation: seat-shimmer 1.4s linear infinite; }
@keyframes seat-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .seat.running .seat-line { animation: none; } }
.seat.idle .chips .chip { background: var(--surface-3); color: var(--faint); }
.seat.noread .seat-name { color: var(--muted); }
.seat.sitsout { opacity: .72; }
.seat.sitsout .chips { visibility: hidden; }
@media (max-width: 640px) {
  .seat-grid { padding: 12px 16px 16px; grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- sections ---------- */
.sections { display: grid; gap: 10px; }
.note-block { display: grid; gap: 4px; }
.note-block h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
.note-block p { font-size: 15px; line-height: 1.6; max-width: 72ch; }
.split-term { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.split-term:first-child { border-top: 0; padding-top: 0; }
.split-term h3 { font-size: 14px; }
.split-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.split-group { font-size: 13px; }
.split-group b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.split-group span { color: var(--muted); }
.round { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.round:first-child { border-top: 0; padding-top: 0; }
.round h3 { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.argument { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 14px; line-height: 1.55; }
.argument b { font-size: 13px; }
.argument ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 640px) { .argument { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- drawer contents ---------- */
.drawer-lean { display: grid; gap: 14px; }
.drawer-term { display: grid; gap: 8px; }
.drawer-term-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.drawer-term-top b { font-size: 14px; }
.drawer-term-top span { font-size: 13px; font-weight: 600; }
.drawer-term p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.drawer-term .meta { font-size: 12px; color: var(--faint); }
.evidence { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.evidence li { font-size: 14px; line-height: 1.5; padding-left: 14px; position: relative; }
.evidence li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.evidence small { display: block; color: var(--faint); font-size: 12px; }
.drawer-section { display: grid; gap: 8px; }
.drawer-section h3 { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
.drawer-section p { font-size: 14px; line-height: 1.6; }

/* Share panel */
/* Not "share-card" / "shared-bar": ad blockers hide those names (Oct 15). */
.run-link-card { padding: 16px 20px; display: grid; gap: 18px; }
.share-image { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.share-thumb { padding: 0; border: 0; cursor: pointer; flex: none; width: 96px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b0f17; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.16); }
.share-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.share-image-text { display: grid; gap: 10px; min-width: 0; }
.share-image-text p { margin: 4px 0 0; font-size: 14px; }
.share-image-text .share-hint { margin: 0; font-size: 13px; }
.share-foot { justify-content: flex-end; margin-top: -8px; }
.share-body { display: grid; gap: 12px; }
.share-body p { margin: 4px 0 0; font-size: 14px; }
.share-link { display: flex; gap: 8px; }
.share-link .input { flex: 1; min-width: 0; font-size: 14px; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-error { color: var(--down); font-size: 13px; margin: 0; }

/* What changed since the last run of this ticker */
.chg-body { padding: 8px 20px 18px; }
.chg-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.chg-row:first-child { border-top: 0; }
.chg-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.chg-arrow { color: var(--faint); font-weight: 400; }
.chg-delta { color: var(--muted); font-weight: 500; font-size: 13px; }
.chg-sub { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; margin: 14px 0 6px; }
.chg-flips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.chg-none { margin: 0; font-size: 14px; }
@media (max-width: 640px) {
  .run-link-card { padding: 14px 16px; }
  .chg-body { padding: 6px 16px 16px; }
  .chg-row { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .chg-row .chg-move { grid-column: 1 / -1; grid-row: 2; }
}

/* Price chart */
.pc-line { padding: 4px 20px 0; font-size: 14px; }
.pc-wrap { position: relative; padding: 6px 20px 14px; }
.pc { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-axis { fill: var(--faint); font-size: 11px; font-family: var(--mono); }
.pc-label { fill: var(--muted); font-size: 11px; font-weight: 600; }
.pc-before { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pc-before.up { stroke: var(--up); } .pc-before.down { stroke: var(--down); }
.pc-before.soft { stroke-width: 2; opacity: .45; }
.pc-after { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pc-after.up { stroke: var(--up); } .pc-after.down { stroke: var(--down); }
.pc-area { fill: var(--accent); opacity: .08; } .pc-area.up { fill: var(--up); } .pc-area.down { fill: var(--down); }
.pc-ref { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.pc-run { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.pc-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.pc-nowline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 3; }
.pc-nowline.up { stroke: var(--up); } .pc-nowline.down { stroke: var(--down); }
.pc-nowdot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pc-nowdot.up { fill: var(--up); } .pc-nowdot.down { fill: var(--down); }
.pc-cross { stroke: var(--muted); stroke-width: 1; }
.pc-hdot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pc-hit { fill: transparent; cursor: crosshair; }
.pc-tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); border-radius: 9px; box-shadow: var(--shadow); padding: 6px 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; }
@media (max-width: 640px) { .pc-line { padding: 4px 16px 0; } .pc-wrap { padding: 6px 16px 10px; } }
/* The Council's forecast fans (#173, our own targets): one colour per period. */
.t-short { --t: var(--t-short); } .t-medium { --t: var(--t-medium); } .t-long { --t: var(--t-long); }
.pc-head { flex-wrap: wrap; gap: 8px 12px; }
.pc-seg button { display: inline-flex; align-items: center; gap: 6px; }
.pc-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t); flex: none; }
.pc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-status b.warn-text { color: var(--warn); }
.pc-fan { fill: var(--t); opacity: .07; }
.pc-cone.sel .pc-fan { opacity: .13; }
.pc-edge { fill: none; stroke: var(--t); stroke-width: 1.25; stroke-dasharray: 4 3; opacity: .55; }
.pc-cone.sel .pc-edge { opacity: .9; }
.pc-mid { fill: none; stroke: var(--t); stroke-width: 1.5; stroke-dasharray: 2 3; opacity: .7; }
.pc-cone.sel .pc-mid { stroke-width: 2; opacity: 1; }
.pc-end { fill: var(--t); }
.pc-tick { stroke: var(--t); stroke-width: 2; }
.pc-pill rect { fill: var(--surface); stroke: var(--t, var(--line-strong)); stroke-width: 1.25; }
.pc-pill text { font-size: 11px; font-weight: 600; font-family: var(--sans); fill: var(--t, var(--ink)); }
.pc-pill.pill-mid rect { fill: var(--t); stroke: none; }
.pc-pill.pill-mid text { fill: var(--surface); }
.pc-pill.pill-now rect { fill: var(--ink); stroke: none; }
.pc-pill.pill-now.up rect { fill: var(--up); } .pc-pill.pill-now.down rect { fill: var(--down); }
.pc-pill.pill-now text { fill: var(--surface); }
.pc-pill.pill-run rect { fill: var(--ink); stroke: none; }
.pc-pill.pill-run text { fill: var(--surface); }
.pc-tipband { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.pc-note { padding: 0 20px 16px; margin: 0; font-size: 12px; }
@media (max-width: 640px) { .pc-note { padding: 0 16px 14px; } }

/* Getting started checklist (first sign-in) */
.onboard-card .card-head small { display: inline-flex; align-items: center; gap: 4px; }
.linklike { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.onboard-progress { height: 4px; margin: 12px 20px 0; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.onboard-progress span { display: block; height: 100%; background: var(--up); border-radius: 99px; transition: width .3s ease; }
.onboard-list { list-style: none; margin: 0; padding: 6px 20px 0; display: grid; }
.onboard-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.onboard-list li:first-child { border-top: 0; }
.onboard-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--surface); margin-top: 1px; }
.onboard-list li.done .onboard-check { background: var(--up); border-color: var(--up); }
.onboard-list li.done .onboard-text b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); font-weight: 500; }
.onboard-text { display: grid; gap: 1px; }
.onboard-text .faint { font-size: 13px; }
.onboard-act { font-size: 13px; white-space: nowrap; padding-top: 2px; }
.onboard-foot { padding: 4px 20px 16px; font-size: 13px; }
@media (max-width: 640px) {
  .onboard-progress { margin: 12px 16px 0; }
  .onboard-list { padding: 6px 16px 0; }
  .onboard-foot { padding: 4px 16px 14px; }
}

/* Welcome slides and key setup (first sign-in, js/welcome.js) */
.tour-thanks { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: 14px; background: var(--accent-soft); }
.tour-thanks p { margin: 0; font-size: 15px; }
.tour-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 20, .45); opacity: 0; transition: opacity .2s ease; z-index: 60; }
.tour-backdrop.open { opacity: 1; }
.tour {
  position: fixed; z-index: 61; left: 50%; top: 50%; width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); overflow-y: auto;
  transform: translate(-50%, -48%) scale(.98); opacity: 0; transition: opacity .2s ease, transform .2s ease;
  background: var(--surface); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 0 0 1px var(--line);
  padding: 22px 22px 18px; display: grid; gap: 16px;
}
.tour.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -8px -6px 0; }
.tour-art { background: var(--surface-2); border-radius: 14px; padding: 18px 16px; min-height: 96px; display: grid; align-content: center; min-width: 0; }
.simple-terms { gap: 18px; padding: 22px 18px; }
.simple-term { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 6.9em; align-items: center; gap: 12px; font-size: 14px; }
.simple-term-name, .simple-term-word { font-weight: 600; white-space: nowrap; }
.simple-term-word { text-align: right; }
.simple-terms .lean.small .lean-track { height: 8px; }
.sample-terms { gap: 14px; }
.sample-term { display: grid; gap: 6px; min-width: 0; }
.sample-term-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sample-term-head span { font-weight: 600; }
.sample-seats { gap: 8px; }
.sample-seat { background: var(--surface); border-radius: 10px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.sample-seat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.sample-seat-head .chip { font-family: var(--sans); flex: none; }
.sample-seat p { font-size: 13px; color: var(--muted); line-height: 1.45; }

.setup-body { display: grid; gap: 14px; min-width: 0; }
.setup-intro { color: var(--muted); font-size: 15px; line-height: 1.55; }
.setup-choices { display: grid; gap: 10px; }
.setup-choice {
  display: grid; gap: 6px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .15s ease, background .15s ease;
}
.setup-choice:hover { box-shadow: 0 0 0 1px var(--line-strong); background: var(--surface-2); }
.setup-choice:focus-visible, .setup-choice.on { box-shadow: 0 0 0 2px var(--accent); outline: none; }
.setup-choice-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.setup-choice > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.setup-steps { list-style: none; counter-reset: setup; display: grid; gap: 10px; padding: 0; margin: 0; }
.setup-steps li {
  counter-increment: setup; display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: start;
  font-size: 14px; line-height: 1.5;
}
.setup-steps li::before {
  content: counter(setup); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
}
.setup-steps li .btn { justify-self: start; }
.setup-key { display: grid; gap: 8px; }
.setup-key .input { font-family: var(--mono, ui-monospace, monospace); font-size: 16px; min-width: 0; width: 100%; }
.setup-key-actions { display: flex; gap: 8px; justify-content: flex-end; }
.setup-msg { font-size: 14px; line-height: 1.5; color: var(--muted); }
.setup-msg:empty { display: none; }
.setup-msg.ok { color: var(--up); }
.setup-msg.warn { color: var(--warn); }
.setup-msg.bad { color: var(--down); }
.setup-cost { font-size: 13px; line-height: 1.5; }
.setup-ready { background: var(--surface-2); border-radius: 14px; padding: 16px; display: grid; gap: 8px; }
.setup-count { display: flex; align-items: baseline; gap: 8px; }
.setup-count b { font-size: 34px; letter-spacing: -.02em; line-height: 1; }
.setup-count span { color: var(--muted); font-size: 15px; }
.setup-ready > p { font-size: 15px; }
.setup-out { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 14px; }
.setup-out li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.setup-out li .linklike { flex: none; }
.skip-sheet {
  background: var(--warn-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
}
.skip-sheet h3 { font-size: 16px; color: var(--ink); }
.skip-sheet p { font-size: 14px; line-height: 1.5; color: var(--ink); }
.skip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tour-text { display: grid; gap: 8px; }
.tour-count { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.tour-text h2 { font-size: 22px; letter-spacing: -.01em; outline: none; }
.tour-text p:not(.tour-count) { color: var(--muted); font-size: 15px; line-height: 1.55; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: width .2s ease; }
.tour-dots span.on { width: 20px; border-radius: 99px; background: var(--accent); }
.tour-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
@media (max-width: 640px) {
  .tour { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: calc(100dvh - 24px); border-radius: 20px 20px 0 0;
    transform: translateY(24px); padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .tour.open { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tour, .tour-backdrop { transition: none; } }
.split-group b.sitsout { color: var(--faint); }

/* Sample runs (no AI key): impossible to mistake for a real one. */
.sample-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--even);
  background: color-mix(in srgb, var(--even) 12%, var(--surface)); }
.sample-banner b { font-size: 17px; }
.sample-banner p { margin: 4px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.sample-banner .btn { flex: none; }
.busy-note { display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap;
  margin: 0 auto 14px; padding: 10px 14px; max-width: 560px; border-radius: 12px; font-size: 14px; text-align: center;
  background: color-mix(in srgb, var(--warn, #b7791f) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn, #b7791f) 45%, transparent); }
.busy-note[hidden] { display: none; }
.backup-note { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.backup-note-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.later-done { flex-basis: 100%; font-weight: 600; color: var(--up, #1f7a4d); }
.later-done.bad { color: var(--down, #b42318); }
.later-offer { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 8px; }
.later-offer .faint { font-size: 13px; }
.later-list { margin: 0 auto 14px; padding: 10px 14px; max-width: 560px; border-radius: 12px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); }
.later-list[hidden] { display: none; }
.later-list .later-title { margin: 0 0 4px; font-weight: 700; }
.later-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.later-list li { overflow-wrap: anywhere; }
.sample-note { display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap;
  margin: 12px auto 0; padding: 10px 14px; max-width: 560px; border-radius: 12px; font-size: 14px; text-align: center;
  background: color-mix(in srgb, var(--even) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--even) 45%, transparent); }
[data-pink] .chamber-seat.lit { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }

/* Tour's last step: the twelve seats take their places around the table. */
.assemble { display: grid; justify-items: center; gap: 10px; padding: 6px 0 2px; }
.assemble-ring { position: relative; width: min(230px, 70vw); aspect-ratio: 1; max-width: 100%; }
.assemble-ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.assemble-seat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--i) * 30deg)); }
.assemble-seat i {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--accent-soft);
  translate: 0 calc(min(230px, 70vw) * -0.42);
}
.assemble-core { position: absolute; inset: 30%; border-radius: 50%; background: var(--surface-2); display: grid; place-content: center; text-align: center; }
.assemble-core b { font-family: var(--mono); font-size: 34px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.assemble-core span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.assemble-caption { min-height: 1.5em; font-weight: 600; font-size: 15px; text-align: center; }
.assemble-mode { text-align: center; color: var(--muted); font-size: 14px; }
.assemble-go { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .assemble-seat i { animation: seat-in 520ms cubic-bezier(.2, .8, .25, 1.15) backwards; animation-delay: calc(var(--i) * 160ms + 150ms); }
  .assemble-core { animation: core-in 500ms ease-out backwards; }
  .assemble-go { animation: core-in 400ms ease-out backwards; animation-delay: 2.4s; }
}
@keyframes seat-in {
  from { translate: 0 calc(min(230px, 70vw) * -0.95); opacity: 0; scale: .4; }
  70% { opacity: 1; }
  to { translate: 0 calc(min(230px, 70vw) * -0.42); opacity: 1; scale: 1; }
}
@keyframes core-in { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }

/* The main Run box, right after the tour: a short glow says "start here". */
.hero-input.run-ready { animation: run-ready 1.2s ease-in-out 2; }
@keyframes run-ready { 50% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1px var(--accent); } }
@media (prefers-reduced-motion: reduce) { .hero-input.run-ready { animation: none; box-shadow: 0 0 0 3px var(--accent-soft); } }

/* The debate advocates' prices (Sept 29). */
.case-targets { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; }
.case-target { white-space: nowrap; cursor: help; }
.case-reason { font-size: 12px; margin-top: 2px; }
.pc-case.up path { fill: var(--up); } .pc-case.down path { fill: var(--down); }
.pc-pill.pill-case rect { fill: var(--surface); stroke-width: 1.25; }
.pc-pill.pill-case.up rect { stroke: var(--up); } .pc-pill.pill-case.down rect { stroke: var(--down); }
.pc-pill.pill-case.up text { fill: var(--up); } .pc-pill.pill-case.down text { fill: var(--down); }
.pc-bridge { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
/* #188: post this call, once a live run finishes */
.share-prompt { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; border: 1px solid var(--accent-soft, var(--line)); }
.share-prompt[hidden] { display: none; }
.share-prompt-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.share-prompt-text p { margin: 0; font-size: 14px; }

/* ---------- Ticker tape (Oct 3) ----------
   Under the nav on the Run page: popular stocks as pills sliding slowly
   past, faded at both edges. Hover pauses it; tap a pill to fill the box.
   Hidden while a run is showing. */
.tape { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 7px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.tape[hidden], body:has(#composer[hidden]) .tape { display: none; }
.tape { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.tape.dragging { cursor: grabbing; }
.tape.dragging .tape-pill { pointer-events: none; }
.tape-row { display: flex; width: max-content; will-change: transform; }
.tape-set { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.tape-note { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; padding-inline: 6px 2px; }
.tape-pill { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 3px 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tape-pill:hover { border-color: var(--accent); }
.tape-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tape-pill .up { color: var(--up); } .tape-pill .down { color: var(--down); }

/* Surprise me: a dice inside the ticker box. */
.hero-dice { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.hero-dice:hover { color: var(--accent); background: var(--accent-soft); }
.hero-dice:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hero-dice svg { width: 21px; height: 21px; fill: currentColor; }
.hero-dice.rolling svg { animation: dice-roll .6s ease-out; }
@keyframes dice-roll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (max-width: 640px) { .hero-dice { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .hero-dice.rolling svg { animation: none; } }

/* ---- Business check (Oct 4): chips under the summary, card above the position ---- */
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.biz-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px 6px 9px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.biz-chip:hover { border-color: var(--line-strong); }
.biz-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.biz-chip .k { color: var(--muted); }
.biz-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.biz-chip .dot.up { background: var(--up); } .biz-chip .dot.down { background: var(--down); } .biz-chip .dot.warn { background: var(--warn); }
.biz-card { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-margin-top: 80px; min-width: 0; }
.biz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.biz-head h2 { font-size: 18px; }
.biz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 30px; }
.biz-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.biz-tile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.biz-tile p { margin: 0; }
.biz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.biz-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.biz-big { font-size: 22px; font-weight: 700; }
.biz-card .pill { display: inline-flex; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.biz-card .pill-up { background: var(--up-soft); color: var(--up); }
.biz-card .pill-down { background: var(--down-soft); color: var(--down); }
.biz-card .pill-warn { background: var(--warn-soft); color: var(--warn); }
.biz-card .pill-plain { background: var(--surface-3); color: var(--muted); }
.biz-bars { min-width: 0; overflow: hidden; }
.biz-bars svg { width: 100%; min-width: 0; height: auto; display: block; max-width: 420px; }
.biz-bars text { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.biz-meter { display: grid; gap: 6px; }
.biz-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--up), var(--even) 50%, var(--down)); opacity: .85; }
.biz-mark { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); transform: translateX(-2px); }
.biz-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); }
.biz-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.biz-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 7px; }
.biz-rows li:first-child { border-top: 0; padding-top: 0; }
.biz-rows .num { font-weight: 500; text-align: right; }
.biz-rows .up { color: var(--up); } .biz-rows .warn { color: var(--warn); }
.biz-foot { margin: 0; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 720px) {
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
  .biz-card { padding: 16px; }
  .biz-rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .biz-rows .num { text-align: left; }
}

/* ---- the "Talk about $AMD" card on a run's results (index.html) ---- */
.talk-card { padding: 16px 18px; display: grid; gap: 10px; }
.talk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.talk-head h2 { font-size: 16px; margin: 0; }
.talk-head .faint { font-size: 12.5px; }
.talk-head .btn { margin-left: auto; }
.talk-msg { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.talk-msg .who { font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.talk-msg .txt { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.talk-empty { color: var(--muted); font-size: 14.5px; }
.talk-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.run-from-note { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.run-from-note[hidden] { display: none; }
.run-from-note .badge-owner { margin-left: 6px; }
@media (max-width: 560px) { .run-from-note .btn { grid-column: 1 / -1; justify-self: start; } }

/* The welcome tour's Community step (welcome.js chatTourArt) */
.chat-tour { gap: 12px; align-content: start; }
.chat-tour .an-chat { background: var(--surface); }
.chat-tour-name { margin: 0; font-size: 14.5px; }
.chat-tour-field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.chat-tour-field .at-wrap { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 0 10px; }
.chat-tour-field .at-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-tour-field .at-wrap span { color: var(--faint); }
.chat-tour-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 8px 2px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); }
.chat-tour-help { font-size: 12px; font-weight: 400; color: var(--faint); }
.chat-tour-help.bad { color: var(--down); }
.chat-tour-av { display: grid; gap: 6px; }
.chat-tour-lab { font-size: 13px; font-weight: 600; }
.chat-tour-av .av-grid { gap: 7px; }
.chat-tour-av .av { width: 32px; height: 32px; }
/* "53.8%" with "confidence to rise" under it (Nov 22). */
.pos-value .big .conf-word { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; margin: 2px 0 0; text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-options { gap: 10px; }
  .hero-options #question-toggle { flex-basis: 100%; }
}

/* The phone keyboard (watchKeyboard in app.js): the setup sheet rides up on
   top of the keyboard instead of hiding its key box behind it. */
html.kb-up .tour { top: calc(var(--vv-top, 0px) + var(--vvh, 100dvh) / 2); max-height: calc(var(--vvh, 100dvh) - 32px); }
@media (max-width: 640px) {
  html.kb-up .tour { top: auto; bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100dvh) - 12px); padding-bottom: 16px; }
}
/* Room to slide the ticker box up under the nav while typing (liftTickerBox). */
html.kb-open main.page:has(> #composer:not([hidden])) { padding-bottom: 60vh; }

/* ---- Welcome to Pro / Elite: the membership card (showUpgraded in run.js) ---- */
.upgraded { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; }
.upgraded::backdrop { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); }
.up-body { width: min(400px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; perspective: 900px; color: var(--ink); }
.up-body h2 { margin: 14px 0 0; font-size: 26px; letter-spacing: -0.01em; }
.up-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 330px; }
.up-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 330px; margin-top: 6px; }
.up-actions .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.up-stage { position: relative; width: min(330px, calc(100vw - 48px)); }
.up-spark { position: absolute; width: 10px; height: 10px; border-radius: 2px; opacity: 0; animation: up-spark 1s ease-out both; }
.up-stage:has(.up-pro) .up-spark { background: #b4bcc6; } .up-stage:has(.up-pro) .up-spark:nth-of-type(2n) { background: #eef1f4; }
.up-stage:has(.up-elite) .up-spark { background: #d9a73a; } .up-stage:has(.up-elite) .up-spark:nth-of-type(2n) { background: #ffe9a8; }
.up-in { animation: up-in .9s cubic-bezier(.2, .9, .3, 1.1) .15s both; }
.up-in .up-card { animation: up-tilt 1.4s ease-in-out 1.05s both; }
.up-rise1 { animation: up-rise .45s ease 1.6s both; } .up-rise2 { animation: up-rise .45s ease 1.8s both; } .up-rise3 { animation: up-rise .45s ease 2.1s both; }
@keyframes up-in { 0% { transform: translateY(260px) rotateX(55deg) scale(.85); opacity: 0; } 65% { transform: translateY(-10px) rotateX(-6deg) scale(1.02); opacity: 1; } 100% { transform: none; } }
@keyframes up-tilt { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(-10deg); } }
@keyframes up-spark { 0% { transform: scale(0); opacity: 0; } 40% { transform: scale(1); opacity: 1; } 100% { transform: scale(.4) translateY(-30px); opacity: 0; } }
@keyframes up-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .up-in, .up-in .up-card, .up-shine, .up-spark, .up-rise1, .up-rise2, .up-rise3 { animation-duration: 1ms; animation-delay: 0s; } }

/* Ask the Council (js/ask.js, council/elite_tools.py): Elite's follow-up
   questions on a finished run. */
.ask-card { padding: 18px; display: grid; gap: 12px; }
.ask-card > p { margin: 0; }
.ask-head { display: flex; align-items: center; gap: 10px; }
.ask-head h2 { margin: 0; font-size: 17px; }
.ask-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px;
  background: linear-gradient(135deg, #f8dc85, #c9962b); color: #3d2a05; }
.ask-qa { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.ask-q { margin: 0; font-weight: 600; }
.ask-a { color: var(--ink, inherit); font-size: 15px; line-height: 1.55; }
.ask-a p { margin: 0 0 6px; }
.ask-note { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); background: var(--surface-2, var(--accent-soft)); border-radius: 99px; padding: 2px 8px; }
.ask-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-ideas .suggest { font-size: 13px; }
.ask-form { display: flex; gap: 8px; align-items: flex-end; }
.ask-form textarea { flex: 1; min-width: 0; resize: vertical; min-height: 44px; }
.ask-busy { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; font-size: 14px; }
.ask-error { margin: 0; color: var(--down); font-size: 13px; }
.ask-left { margin: 0; font-size: 12px; }

/* ---- the new run page, in preview (?layout=v2; js/run.js setupLayoutV2) ----
   Three tabs over the run: Verdict (the bars, the seats, the dropdowns),
   Price (the chart and the targets), Business (the Business check). */
.v2-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 4px 0 14px;
  background: var(--surface-2, var(--bg)); border: 1px solid var(--line); border-radius: 12px; }
.v2-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px;
  font-weight: 500; color: var(--muted); cursor: pointer; }
.v2-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.v2-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-v2 #run[data-tab="verdict"] > [data-v2tab="price"],
.run-v2 #run[data-tab="verdict"] > [data-v2tab="business"],
.run-v2 #run[data-tab="price"] > :not([data-v2tab="price"]):not([data-v2tab="all"]),
.run-v2 #run[data-tab="business"] > :not([data-v2tab="business"]):not([data-v2tab="all"]) { display: none !important; }
/* The price targets live on the Price tab, the Business check on its own. */
.run-v2 .pos-target, .run-v2 #biz-chips { display: none !important; }
.run-v2 .seat .chip .cpct, .v2-seat-key { display: none; }
.run-v2 #sec-split { display: none !important; }
.v2-again { margin-top: 18px; }
.chg-fold > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0 4px; }
/* A computer: a seat's reasoning opens under its row, pointing at it. */
.seat[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.seat-bubble { grid-column: 1 / -1; position: relative; margin-top: 4px; background: var(--surface); border: 1px solid var(--accent);
  border-radius: 12px; padding: 16px 20px 18px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px) scale(0.99);
  transform-origin: top center; transition: opacity 0.18s ease, transform 0.18s ease; }
.seat-bubble.open { opacity: 1; transform: none; }
.seat-bubble-caret { position: absolute; top: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface);
  border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); transform: rotate(45deg); }
.seat-bubble-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.seat-bubble-head h3 { margin: 0; font-size: 17px; }
.seat-bubble-head small { color: var(--muted); }
.seat-bubble-body { margin-top: 10px; }
.seat-bubble.opens-up { margin: 0 0 4px; transform-origin: bottom center; transform: translateY(6px) scale(0.99); }
.seat-bubble.opens-up.open { transform: none; }
.seat-bubble.opens-up .seat-bubble-caret { top: auto; bottom: -8px; transform: rotate(225deg); }
/* While a seat's bubble is open, everything else steps back. */
.run-v2 #run > *, .run-v2 .seat { transition: opacity 0.2s ease; }
.bubble-open #run > :not(.seats-card) { opacity: 0.25; }
.bubble-open .seats-card > .card-head { opacity: 0.25; }
.bubble-open .seat:not([aria-expanded="true"]) { opacity: 0.25; }
.seat-bubble-body .drawer-lean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (prefers-reduced-motion: reduce) { .seat-bubble { transition: none; } }
.v2-notes { margin: 6px 20px 14px; border-top: 1px solid var(--line); }
.v2-notes > summary { cursor: pointer; padding: 14px 0 6px; font-weight: 600; font-size: 15px; }
.v2-flag { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 700; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); vertical-align: 1px; white-space: nowrap; }
.v2-note { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.v2-note:last-child { border-bottom: 0; }
.v2-note .pos-note { margin: 4px 0 0; }
.v2-targets { padding-bottom: 8px; }
.v2-target { padding: 6px 20px 12px; border-top: 1px solid var(--line); }
.v2-target h3 { margin: 10px 0 6px; font-size: 15px; }
/* Phones: the seats keep their three periods and drop their line of text. */
/* Phones: each seat is one row, its name then its three periods' chances
   (Nov 3: horizontal bars, not a grid), without its line of text. */
@media (max-width: 640px) {
  .run-v2 .seat-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px 14px; }
  /* Every seat the same shape: name, then its chips, on one line. A long
     name gets smaller text to fit beside them (Nov 3: Institutional
     Holdings' chips dropping under it looked off). */
  .run-v2 .seat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
  .run-v2 .seat-text { display: none; }
  .run-v2 .seat.done .seat-status { display: none; }
  .run-v2 .seat-top { flex: 1 1 0; min-width: 0; }
  .run-v2 .seat-name { font-size: clamp(11px, 3.6vw, 14px); line-height: 1.25; min-width: 0; }
  .run-v2 .seat .chips { flex: 0 0 auto; margin-left: auto; grid-template-columns: repeat(3, 60px); gap: 4px; }
  /* Each chip: its period over its chance, never its words (they don't fit). */
  .run-v2 .seat .chip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 3px; padding: 4px 2px; font-size: 13px; line-height: 1.2; }
  .run-v2 .seat .chip .t { flex-basis: 100%; text-align: center; font-size: 10px; }
  .run-v2 .seat .chip .cv { display: none; }
  .run-v2 .seat .chip .cpct { display: inline; }
}
@media (max-width: 380px) {
  .run-v2 .seat-grid { padding: 10px 8px 12px; }
  .run-v2 .seat { padding: 8px; gap: 6px; }
  .run-v2 .seat-top { gap: 6px; }
  .run-v2 .seat .chips { grid-template-columns: repeat(3, 52px); gap: 3px; }
  .run-v2 .seat .chip { font-size: 12px; }
}
@media (max-width: 340px) {
  .run-v2 .seat .chips { grid-template-columns: repeat(3, 47px); }
  .run-v2 .seat .chip { font-size: 11.5px; padding: 4px 1px; }
}

/* ---- Seat panels (seat-panels.js; ?seats=old for the earlier text panel) --------------- */
.sp { display: grid; gap: 12px; max-width: 720px; }
.sp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-chips .chip { flex-wrap: wrap; justify-content: center; gap: 0 4px; padding: 6px 4px; font-size: 14px; border-radius: var(--radius-sm); }
.sp-chips .chip .t { flex-basis: 100%; text-align: center; }
.sp-chips .chip .cv { display: none; }
.sp-chips .chip .cpct { display: inline; }
.sp-head { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sp-card { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; min-width: 0; }
.sp-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sp-l { font-size: 12px; color: var(--muted); }
.sp-r { font-size: 12px; font-weight: 600; color: var(--muted); }
.sp-s { font-size: 12px; color: var(--muted); }
.sp-v { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1.25; }
.sp .up { color: var(--up); }
.sp .down { color: var(--down); }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-tile { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-tile.wide { grid-column: 1 / -1; }
.sp-grid.three .sp-tile { padding: 10px 8px; text-align: center; align-items: center; }
.sp-grid.three .sp-v { font-size: 17px; }
.sp-grid.three .sp-s { font-size: 11px; }
.sp-cmp { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; }
.sp-cmp b { font-family: var(--mono); font-weight: 600; text-align: right; }
.sp-cmp-bar { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.sp-cmp-bar i { display: block; height: 100%; border-radius: 5px; background: var(--line-strong); }
.sp-cmp-bar i.ink { background: var(--ink); }
.sp-cmp-bar i.up { background: var(--up); }
.sp-cmp-bar i.down { background: var(--down); }
.sp-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.sp-split i.up { background: var(--up); }
.sp-split i.down { background: var(--down); }
.sp-ends { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.sp-ends b { color: var(--ink); font-weight: 600; }
.sp-ends b.up { color: var(--up); }
.sp-ends b.down { color: var(--down); }
.sp-rates { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px 8px; align-items: center; font-size: 12px; }
.sp-rate { display: flex; height: 16px; border-radius: 4px; overflow: hidden; gap: 1px; }
.sp-rate.faded { opacity: 0.55; }
.sp .r0 { background: #0b5f3d; } .sp .r1 { background: #4fa47a; } .sp .r2 { background: #c9c5b9; }
.sp .r3 { background: #e08a56; } .sp .r4 { background: #b5401f; }
.sp-legend { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.sp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sp-key { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sp-range { position: relative; height: 34px; }
.sp-range-track { position: absolute; top: 13px; height: 8px; border-radius: 4px; background: var(--track); }
.sp-range-base { position: absolute; top: 15px; left: 4%; right: 4%; height: 4px; border-radius: 2px; background: var(--track); }
.sp-range-track.targets { background: var(--line-strong); }
.sp-range-now { position: absolute; top: 5px; width: 3px; height: 24px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.sp-range-avg { position: absolute; top: 8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--muted); border: 3px solid var(--surface); box-sizing: border-box; }
.sp-range-avg.up { background: var(--up); }
.sp-range-avg.down { background: var(--down); }
.sp-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sp-list-h { padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.sp-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sp-row:last-child { border-bottom: 0; }
.sp-d { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sp-fig svg { width: 100%; height: 140px; display: block; overflow: visible; }
.sp-fig path, .sp-fig line { fill: none; vector-effect: non-scaling-stroke; }
.sp-price { stroke: var(--ink); stroke-width: 2; }
.sp-sma20 { stroke: var(--accent); stroke-width: 1.6; }
.sp-sma50 { stroke: var(--faint); stroke-width: 1.6; }
.sp-res { stroke: var(--down); stroke-dasharray: 4 4; stroke-width: 1; }
.sp-sup { stroke: var(--up); stroke-dasharray: 4 4; stroke-width: 1; }
.sp-line { display: inline-block; width: 14px; height: 2px; }
.sp-line.price { background: var(--ink); } .sp-line.sma20 { background: var(--accent); } .sp-line.sma50 { background: var(--faint); }
.sp-line.res { background: repeating-linear-gradient(90deg, var(--down) 0 4px, transparent 4px 7px); }
.sp-line.sup { background: repeating-linear-gradient(90deg, var(--up) 0 4px, transparent 4px 7px); }
.sp-gauge { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--up-soft), var(--track), var(--down-soft)); }
.sp-gauge.range52 { background: linear-gradient(90deg, var(--down-soft), var(--track), var(--up-soft)); }
.sp-gauge span { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.sp-dots { position: relative; height: 76px; border-bottom: 1px solid var(--line); }
.sp-dots::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.sp-dots-lab { position: absolute; left: 0; font-size: 10.5px; font-weight: 600; }
.sp-dots-lab.up { top: 0; } .sp-dots-lab.down { bottom: 2px; }
.sp-dot { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.8; }
.sp-dot.up { top: 25%; background: var(--up); }
.sp-dot.down { top: 75%; background: var(--down); }
.sp-months { position: relative; height: 16px; font-size: 12px; color: var(--muted); }
.sp-months span { position: absolute; transform: translateX(-50%); }
.sp-months span:last-child { transform: translateX(-100%); }
.sp-block { display: block; margin-top: 2px; }
.sp-body { display: grid; gap: 12px; }
.sp-pair { display: grid; gap: 12px; }
.sp-trade { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sp-trade .sp-v { font-size: 14px; }
.sp-trade .sp-s { grid-column: 1 / -1; }
.sp-all > summary { padding: 12px; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; text-align: center; list-style: none; }
.sp-all > summary::-webkit-details-marker, .sp-more > summary::-webkit-details-marker { display: none; }
.sp-all[open] > summary { border-bottom: 1px solid var(--line); }
.sp-list > .sp-trade:last-child, .sp-all .sp-trade:last-of-type { border-bottom: 0; }
.sp-note { margin: 0; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.sp-why { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-3); display: grid; gap: 4px; }
.sp-why .sp-head { margin: 0; }
.sp-why p { margin: 0; font-size: 15px; line-height: 1.5; }
.sp-more { border-top: 1px solid var(--line); }
.sp-more > summary { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.sp-more > summary::after { content: '▾'; color: var(--muted); transition: transform 0.15s; }
.sp-more[open] > summary::after { transform: rotate(180deg); }
.sp-more > .drawer-lean, .sp-more > .drawer-section, .sp-more > p { margin-bottom: 14px; }
.sp-mono { font-family: var(--mono); font-weight: 600; }
.sp-move { position: relative; height: 30px; }
.sp-move-band { position: absolute; left: 8%; right: 8%; top: 9px; height: 12px; border-radius: 6px; background: var(--accent-soft); }
.sp-split i.mid { background: var(--line-strong); }
.sp-mark { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.sp-mark span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; padding-top: 6px; }
.sp-mark span::before { content: ''; position: absolute; left: 50%; top: -8px; width: 2px; height: 12px; background: var(--ink); }
.sp-tile-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
.sp-pad0 { padding: 0; }
.sp-sub { font-size: 12px; color: var(--muted); margin-bottom: -4px; }
.sp-dots.tone .sp-dot { transform: translate(-50%, -50%); }
.sp-dot.mid { background: var(--faint); }
.sp-news { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sp-news:last-child, .sp-filing:last-child { border-bottom: 0; }
.sp-news a, .sp-filing a { color: inherit; text-decoration: none; }
.sp-news a:hover, .sp-filing a:hover { text-decoration: underline; }
.sp-news b, .sp-filing b { font-weight: 600; }
.sp-tone { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--faint); }
.sp-tone.up { background: var(--up); } .sp-tone.down { background: var(--down); }
.sp-news.plain { grid-template-columns: minmax(0, 1fr); }
.sp-news.plain .sp-tone { display: none; }
.sp-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.sp-bar-col { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-align: center; }
.sp-bar-col b { font-family: var(--mono); font-size: 12px; }
.sp-bar-zone { width: 100%; max-width: 44px; height: 64px; display: flex; align-items: flex-end; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.sp-bar-zone i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.sp-bar-zone i.up { background: var(--up); } .sp-bar-zone i.down { background: var(--down); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.sp-tag.up { background: var(--up-soft); color: var(--up); } .sp-tag.down { background: var(--down-soft); color: var(--down); }
.sp-filing { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sp-form.watch { background: var(--down-soft); color: var(--down); }
.sp-form { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); align-self: start; white-space: nowrap; }
.sp-diverge { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 52px; gap: 10px 8px; align-items: center; font-size: 13px; }
.sp-dv-name small { display: block; font-size: 11px; color: var(--muted); }
.sp-dv-track { position: relative; height: 12px; background: var(--track); border-radius: 6px; }
.sp-dv-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.sp-dv-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
/* Bars grow out of the zero line: square where they meet it, round at the far end (Nov 7). */
.sp-dv-track i.up { background: var(--up); border-radius: 0 6px 6px 0; } .sp-dv-track i.down { background: var(--down); border-radius: 6px 0 0 6px; }
.sp-diverge b { font-family: var(--mono); font-weight: 600; text-align: right; }
.sp-others > summary { text-align: left; color: var(--ink); }
.sp-news.graded { grid-template-columns: 74px minmax(0, 1fr); }
.sp-grade { align-self: start; margin-top: 1px; padding: 2px 0; border-radius: 6px; font-size: 11.5px; font-weight: 600; text-align: center; background: var(--surface-3); color: var(--muted); }
.sp-grade.up { background: var(--up-soft); color: var(--up); }
.sp-grade.down { background: var(--down-soft); color: var(--down); }
.sp-surprise { font-weight: 600; color: var(--warn); }
.sp-dots.grades { height: 96px; }
.sp-gap { margin-top: 6px; }
.sp-big { font-family: var(--sans); font-size: 22px; font-weight: 700; }
.sp-dot.g { width: 11px; height: 11px; }
.sp-dot.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--warn); }
.sp-ringkey { border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--warn); }
/* A computer's bubble is wide: the pictures go in two columns. */
@media (min-width: 1000px) {
  .seat-bubble .sp { max-width: none; }
  .seat-bubble .sp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .seat-bubble .sp-pair > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .sp-cmp { grid-template-columns: 80px minmax(0, 1fr) 40px; }
  .sp-v { font-size: 19px; }
}

/* ---- Flat run page mockup (?look=flat, Admin; Nov 7) ---------------------------------
   One page: the Council's position, the price, what changed and the rest sit
   straight on the page with thin dividers; only the seats keep their cards. */
body.run-flat #run > .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.run-flat #run > .card:not([hidden]) { border-top: 1px solid var(--line); padding-top: 8px; }
body.run-flat #run > .card .card-head { padding-left: 0; padding-right: 0; }
body.run-flat #run > .card .card-head h2 { font-size: 19px; letter-spacing: -0.01em; }
body.run-flat .seat-grid { padding-left: 0; padding-right: 0; }
body.run-flat .seat { box-shadow: var(--shadow); }
body.run-flat .sections { border-top: 1px solid var(--line); padding-top: 14px; }
body.run-flat .pos, body.run-flat .chg-body, body.run-flat .pc-line, body.run-flat .pc-wrap, body.run-flat .pc-note,
body.run-flat .run-link-card, body.run-flat .biz-card, body.run-flat .v2-target { padding-left: 0; padding-right: 0; }
body.run-flat .positions .pos:first-of-type { border-top: 0; }
body.run-flat .session { margin-left: 0; margin-right: 0; }
body.run-flat .v2-notes { margin-left: 0; margin-right: 0; }
body.run-flat .talk-card { padding-left: 0; padding-right: 0; }
body.run-flat .sections { gap: 0; padding-top: 0; }
body.run-flat details.section { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body.run-flat details.section > summary { padding-left: 0; padding-right: 0; }
body.run-flat details.section > .section-body { padding-left: 0; padding-right: 0; }

/* Flat page, three takes on the Council's position (Nov 7: its grey bar
   vanished into the grey page). */
/* 1. White page: the whole page on white, so the grey bar reads; the seat
      cards keep a border and shadow to stand off it. */
body.run-flat.pos-white { background: var(--surface); }
body.run-flat.pos-white .seat { background: var(--surface); border-color: var(--line-strong); }
/* 2. Highlighted verdict: the page stays grey, and the Council's position sits
      on a white band that runs edge to edge, no border or corners. */
body.run-flat.pos-band #positions { background: var(--surface); border-top: 0; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 1100px) { body.run-flat.pos-band #positions { margin-inline: -28px; padding-inline: 28px; border-radius: 0; } }
/* 3. Stronger bar: the page stays grey; a darker bar with quarter ticks, an ink
      middle line, bigger seat dots ringed in the page colour, and even seats
      drawn as hollow rings so they don't read as one more grey. */
body.run-flat.pos-bold #positions .lean-track { height: 10px; background: color-mix(in srgb, var(--ink) 12%, var(--bg));
  background-image: linear-gradient(90deg, transparent calc(25% - 1px), color-mix(in srgb, var(--ink) 22%, var(--bg)) calc(25% - 1px) 25%, transparent 25% calc(75% - 1px), color-mix(in srgb, var(--ink) 22%, var(--bg)) calc(75% - 1px) 75%, transparent 75%); }
body.run-flat.pos-bold #positions .lean-mid { background: var(--ink); width: 2px; top: -6px; bottom: -6px; }
body.run-flat.pos-bold #positions .lean-dots { height: 12px; }
body.run-flat.pos-bold #positions .lean-dot { width: 11px; height: 11px; margin-left: -5.5px; box-shadow: 0 0 0 2px var(--bg); }
body.run-flat.pos-bold #positions .lean-dot.even { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--even), 0 0 0 2px var(--bg); }
body.run-flat.pos-bold #positions .lean-scale { color: var(--muted); font-weight: 500; }
body.run-flat.pos-bold #positions .pos-value .big { font-size: 26px; }

/* Signed-out visitors: a short explainer under the search box (Nov 12, js/run.js initVisitor). */
.visitor-intro { max-width: 560px; margin: 18px auto 0; text-align: center; display: grid; gap: 10px; }
.visitor-lede { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.visitor-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14.5px; font-weight: 600; }
.visitor-fine { margin: 0; font-size: 12.5px; color: var(--faint, var(--muted)); }
/* The fund council's panels (Nov 13). */
.sp-novote { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-3); font-size: 13px; color: var(--muted); }
.sp-cmp.wide { grid-template-columns: 124px minmax(0, 1fr) 44px; }
.sp-hold { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 46px 48px; gap: 8px; align-items: center; font-size: 13px; }
.sp-hold > b, .sp-hold-p { font-family: var(--mono); font-weight: 600; text-align: right; }
.sp-hold-name { min-width: 0; }
.sp-hold-name b { font-weight: 600; }
.sp-hold-name small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-hold-h { font-size: 10.5px; color: var(--muted); }
.sp-hold-h span { text-align: right; line-height: 1.2; }
.sp-fig.sp-fig-low svg { height: 90px; }
.seat.novote .seat-status { color: var(--muted); }
.chip.novote .cv, .chip.novote .cpct { font-weight: 500; }
.seat .chips .chip.novote-all { grid-column: 1 / -1; justify-content: center; font-size: 12px; font-weight: 500; white-space: nowrap; }

/* IPO briefs (Nov 14, js/run.js ipoBriefHtml, council/ipos.py). */
.ipo-brief { max-width: 880px; margin: 18px auto; padding: 22px; display: grid; gap: 20px; scroll-margin-top: 76px; }
.ipo-head h2 { margin: 6px 0 4px; font-size: 24px; }
.ipo-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.ipo-headline { margin: 0; color: var(--muted); line-height: 1.5; }
.ipo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ipo-stat { display: grid; gap: 3px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ipo-label { font-size: 12.5px; color: var(--muted); }
.ipo-stat b { font-size: 17px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ipo-note { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ipo-block h3, .ipo-case h3 { margin: 0 0 10px; font-size: 15px; }
.ipo-bars { display: grid; gap: 8px; }
.ipo-bar { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 64px; align-items: center; gap: 10px; font-size: 13.5px; }
.ipo-bar-label { color: var(--muted); }
.ipo-track { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ipo-track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.ipo-bar b { text-align: right; }
.ipo-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ipo-case { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.ipo-case.ipo-for { border-left: 4px solid var(--up, #1f9d55); }
.ipo-for h3 { color: var(--up, #1f9d55); }
.ipo-case.ipo-against { border-left: 4px solid var(--down, #d64545); }
.ipo-against h3 { color: var(--down, #d64545); }
.ipo-case li { color: var(--ink); }
.ipo-case ul, .ipo-plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.ipo-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ipo-dates li { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 12px; padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line); position: relative; font-size: 14px; line-height: 1.45; }
.ipo-dates li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.ipo-dates li.done::before { background: var(--accent); }
.ipo-when { font-weight: 600; }
.ipo-research { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.ipo-council p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ipo-fine { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  .ipo-brief { padding: 16px; margin: 12px 0; }
  .ipo-cases { grid-template-columns: 1fr; }
  .ipo-bar { grid-template-columns: 1fr 58px; }
  .ipo-bar-label { grid-column: 1 / -1; }
  .ipo-dates li { grid-template-columns: 1fr; gap: 2px; }
}

/* The brief's Community snapshot (js/run.js loadIpoTalk): the run page's talk-card look, inside the brief. */
.ipo-talk { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--surface)); display: grid; gap: 10px; }
.ipo-talk .talk-head h3 { margin: 0; }
/* A seat shown for context is its own kind of card, not a greyed-out vote (Nov 14). */
.seat.context { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.seat-dot.info { background: var(--accent); }
.seat-status.context-tag { color: var(--accent); font-weight: 600; }
.seat .chips .seat-fact { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); padding: 5px 0 4px; line-height: 1.3; overflow-wrap: anywhere; }
.sp-novote { border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); color: var(--ink); }
.sp-novote b { color: var(--accent); }
.sp-gauge.sp-gauge-rev { background: linear-gradient(90deg, var(--up-soft), var(--track), var(--down-soft)); }
.sp-split i.ink { background: var(--ink); }

/* Seats that only show their numbers gather after the voting seats (Nov 17, js/run.js buildSeatGrid). */
.seat-grid .seat.context { order: 10; }
.seat-grid .seat-group-head { order: 9; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-strong, var(--line)); font-size: 13px; color: var(--muted); }
.seat-grid .seat-group-head b { color: var(--ink); font-size: 14px; }
.chips .chip-note { font-size: 12px; color: var(--muted); align-self: center; margin-left: 2px; }
@media (max-width: 640px) { .chips .chip-note { font-size: 11.5px; max-width: 7.5em; line-height: 1.25; } }

/* AI text written as points (Nov 21): a tight list, not a wall of text. */
.ai-points { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.ai-points li { line-height: 1.5; }
.ai-points li::marker { color: var(--muted); }
.drawer-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.drawer-fold > summary::-webkit-details-marker { display: none; }
.drawer-fold > summary h3 { margin: 0; }
.drawer-fold > summary::after { content: "Show"; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-left: auto; }
.drawer-fold[open] > summary::after { content: "Hide"; }

/* Funds and coins on Free (Nov 22): the shared Pro card (.pro-pitch in
   clean.css) under the ticker box, before any run starts. */
.pro-gate { max-width: 560px; margin: 14px auto 0; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.pro-gate.in { opacity: 1; transform: none; }
@media (max-width: 640px) { .pro-gate { margin: 12px 0 0; } }
@media (prefers-reduced-motion: reduce) { .pro-gate { transition: none; } }

/* "Gemini is busy": one quiet line, details a tap away (Nov 22). */
.busy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); padding: 6px 2px; }
.busy-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn, #b7791f); margin-right: 8px; vertical-align: 1px; animation: busy-pulse 1.6s ease-in-out infinite; }
@keyframes busy-pulse { 50% { opacity: .35; } }
.busy-more summary { cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; list-style: none; }
.busy-more summary::-webkit-details-marker { display: none; }
.busy-more[open] { flex-basis: 100%; order: 9; }
.busy-more[open] summary { display: none; }
.busy-more p { margin: 2px 0 0 18px; font-size: 13px; line-height: 1.5; }
.busy-pro { font-weight: 600; color: var(--accent); margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .busy-dot { animation: none; } }
.sample-acts { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }

/* A run turned away before it started (Nov 23): why, and what to do, by the ticker box. */
.start-block { display: grid; gap: 12px; }
.start-block-card { position: relative; padding: 16px 18px; border-radius: 14px; background: var(--card, #fff);
  border: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.start-block-card p { margin: 0; }
.start-block-head { font-size: 16px; padding-right: 28px; }
.start-block-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.start-block-card .pro-pitch-x { position: absolute; top: 8px; right: 8px; }
