/* Maxima — "Ridgeline" design. The market as a living landscape.
   Theme: dark by default (follows the system); light = ink on paper. Every colour is a token. */

:root {
  --bg:         #04050a;
  --bg-top:     #12224a;
  --raise:      rgba(255,255,255,.045);
  --raise-2:    rgba(255,255,255,.08);
  --line:       rgba(255,255,255,.09);
  --text:       #eef2ff;
  --text-body:  #c3cadb;
  --muted:      #8b93a7;
  --value:      #ffffff;
  --up:         #7cf6ff;
  --down:       #ff6b3d;
  --flat:       #8b93a7;
  --warn:       #ffb224;
  --ridge-base: #1a2236;
  --mk1: #14303c; --mk2: #1f5468; --mk3: #2f8aa6; --mk4: #56c6dc;
  --cta-a: #7cf6ff; --cta-b: #b9fff0; --cta-ink: #04131a;
  --glow: rgba(124,246,255,.35);
  --sheet: rgba(8,11,22,.94);
  --mono: "Geist Mono", ui-monospace, monospace;
  --display: "Unbounded", "Arial Narrow", sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f3ee; --bg-top: #dfe7ef; --raise: rgba(0,0,0,.035); --raise-2: rgba(0,0,0,.06); --line: rgba(0,0,0,.1);
  --text: #0e1320; --text-body: #333a48; --muted: #5d6576; --value: #04131a;
  --up: #007a8a; --down: #c8401a; --flat: #5d6576; --warn: #b8720c; --ridge-base: #c9d2dc;
  --mk1: #d3dce4; --mk2: #aebdca; --mk3: #7d93a7; --mk4: #3d5a73;
  --cta-a: #04131a; --cta-b: #1b3a48; --cta-ink: #eef2ff; --glow: rgba(0,122,138,.18); --sheet: rgba(250,250,247,.96);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ee; --bg-top: #dfe7ef; --raise: rgba(0,0,0,.035); --raise-2: rgba(0,0,0,.06); --line: rgba(0,0,0,.1);
    --text: #0e1320; --text-body: #333a48; --muted: #5d6576; --value: #04131a;
    --up: #007a8a; --down: #c8401a; --flat: #5d6576; --warn: #b8720c; --ridge-base: #c9d2dc;
    --mk1: #d3dce4; --mk2: #aebdca; --mk3: #7d93a7; --mk4: #3d5a73;
    --cta-a: #04131a; --cta-b: #1b3a48; --cta-ink: #eef2ff; --glow: rgba(0,122,138,.18); --sheet: rgba(250,250,247,.96);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(130% 60% at 50% -10%, var(--bg-top) 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: var(--up); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
h1.eyebrow, h2.eyebrow { margin: 0; font-weight: inherit; }
.eyebrow.up { color: var(--up); }
.muted { color: var(--muted); font-size: 14px; }
.cursor { animation: blink 1.1s steps(2, start) infinite; }

.app { max-width: 1200px; margin: 0 auto; padding: 0 0 90px; min-height: 100vh; min-height: 100dvh; }

/* ---- Top bar ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: linear-gradient(180deg, var(--bg) 40%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand-mark { width: 24px; height: 24px; flex: 0 0 auto; }
.brand-word { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .3em; }
.top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line);
}
.pill #sessionLabel { overflow: hidden; text-overflow: ellipsis; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--flat); flex: 0 0 auto; }
.pill[data-state="open"] .dot { background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 2.2s ease-in-out infinite; }
.pill[data-state="pre"] .dot, .pill[data-state="after"] .dot { background: var(--up); animation: pulse 2.2s ease-in-out infinite; }
.pill.offline .dot { background: var(--down); animation: none; box-shadow: none; }
.pill.stale .dot { background: var(--flat); box-shadow: none; animation: none; }
.stale-note { color: var(--down); }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--line); background: var(--raise);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#menuBtn svg { fill: currentColor; stroke: none; }

.menu {
  position: fixed; z-index: 40; top: calc(64px + env(safe-area-inset-top)); right: max(16px, calc(50% - 584px));
  width: 260px; padding: 8px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
}
.menu button, .menu-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px;
  border: 0; background: transparent; border-radius: 12px; text-align: left; cursor: pointer; font-size: 15px; color: var(--text);
}
.menu button:hover, .menu-row:hover { background: var(--raise-2); }
.menu select { font: 500 13px var(--sans); color: var(--text); background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 6px 22px 6px 8px; max-width: 150px; }
.menu select option { color: #0e1320; }
.menu select, .call-row select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) center, calc(100% - 8px) center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.menu-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.src-badge { padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { padding: 6px 20px 0; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hero-top #heroEyebrow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx-pick { position: relative; flex: 0 0 auto; }
.idx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.idx-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s; }
.idx-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.idx-list { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 210px; padding: 6px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.idx-list[hidden] { display: none; }
.idx-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 500 12px var(--mono); letter-spacing: .08em; text-align: left; cursor: pointer; }
.idx-list button:hover { background: var(--raise-2); }
.idx-list button[aria-pressed="true"] { color: var(--up); }
.idx-list button[aria-pressed="true"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
@media (max-width: 520px) { .hero-top #heroEyebrow { letter-spacing: .12em; } }
.big { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; }
#heroNum {
  font-family: var(--display); font-weight: 300; font-size: clamp(64px, 18vw, 132px); line-height: .88; letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--value) 25%, var(--up) 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#heroNum.neg { background: linear-gradient(180deg, var(--value) 25%, var(--down) 130%); -webkit-background-clip: text; background-clip: text; }
.big .pct { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 5vw, 40px); color: var(--up); margin-top: 4px; }
.big.neg .pct { color: var(--down); }
.tagline { margin: 12px 0 0; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.35; color: var(--text-body); max-width: 640px; }
.tagline .up { color: var(--up); } .tagline .down { color: var(--down); }

/* ---- Breadth meter ---- */
.breadth { margin-top: 14px; max-width: 520px; }
.breadth-bar { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.breadth-bar span { display: block; height: 100%; border-radius: 3px; transition: width .4s; }
.b-up { background: var(--up); box-shadow: 0 0 10px var(--glow); }
.b-down { background: var(--down); }
#breadthText span { white-space: nowrap; }

/* ---- Since you last looked ---- */
.since { margin: 16px 20px 0; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(124,246,255,.12), rgba(124,246,255,.02)); border: 1px solid var(--line); }
.since-head { display: flex; justify-content: space-between; align-items: center; }
.since-body { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.link-btn { border: 0; background: transparent; color: var(--up); cursor: pointer; font-size: 13px; min-height: 36px; padding: 0 6px; }

/* ---- Terrain ---- */
.terrain-wrap { position: relative; height: clamp(300px, 46vw, 470px); margin-top: 6px; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.terrain { display: block; width: 100%; height: 100%; overflow: visible; }
.terrain .ridge { transition: stroke-width .2s, stroke-opacity .2s; }
.terrain .ridge.hot { stroke-width: 3.2 !important; stroke-opacity: 1 !important; }
.terrain .ridge.tremor { animation: tremor 1.4s ease-out 3; }
.terrain .label { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.terrain-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 20px; min-height: 40px; }
.terrain-bar .eyebrow { font-size: 9px; }
.sector-table { margin: 4px 20px 0; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--raise); }
.sector-table table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.sector-table th, .sector-table td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.sector-table th:first-child, .sector-table td:first-child { text-align: left; }
.sector-table th { font-weight: 500; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.sector-table tr:last-child td { border-bottom: 0; }
.sector-table tr.mine td:first-child::before { content: "◆ "; color: var(--up); }
.filters { display: flex; gap: 6px; padding: 0 20px 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--text-body); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 15px; }
.keys dt { font-family: var(--mono); font-size: 12px; color: var(--up); align-self: center; }
.keys dd { margin: 0; }
#storySpeak[aria-pressed="true"] { color: var(--up); border-color: var(--up); }
.terrain .ridge.mine { stroke-dasharray: none; }
.terrain-note { position: absolute; right: 20px; bottom: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.scan {
  position: absolute; top: 4%; bottom: 14%; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--up) 45%, transparent); box-shadow: 0 0 18px 2px var(--glow);
}
.scan.listening { transition: left .1s linear; }
.scrub { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.scrub-line { position: absolute; top: 2%; bottom: 10%; width: 1px; background: var(--value); opacity: .7; }
.scrub-card {
  position: absolute; top: 4px; min-width: 170px; padding: 10px 12px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; line-height: 1.6; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.scrub-card b { font-weight: 600; }

/* ---- Rows ---- */
.row-head { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; min-height: 36px; }
.peaks { margin-top: 18px; }
.peak-form { display: flex; gap: 8px; padding: 4px 20px 8px; }
.peak-form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--text); padding: 0 12px; font: 500 15px var(--mono); text-transform: uppercase; }
.peak-form button { height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; cursor: pointer; }
.peak-row, .story-row { display: flex; gap: 10px; padding: 4px 20px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.peak-row::-webkit-scrollbar, .story-row::-webkit-scrollbar { display: none; }
.peak {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: var(--raise); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px;
}
.peak b { font-weight: 600; }
.peak .x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }  /* styled with the other remove buttons, below */
.peak-empty { font-size: 14px; color: var(--muted); padding: 8px 0; }
.stories { margin-top: 14px; }
.summit { color: var(--up); }
.card {
  flex: 0 0 172px; height: 150px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: var(--raise); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card:hover { background: var(--raise-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-val { font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.card-title { font-size: 15px; line-height: 1.22; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card.read { opacity: .55; }
.card.read::after { content: "✓"; position: absolute; right: 12px; bottom: 10px; color: var(--up); font-size: 13px; }
.t-pos { color: var(--up); } .t-neg { color: var(--down); } .t-warn { color: var(--warn); } .t-neutral { color: var(--muted); }

.cta {
  position: relative; z-index: 1;
  margin: 14px 20px 0; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 24px;
  text-decoration: none; background: linear-gradient(90deg, var(--cta-a), var(--cta-b)); color: var(--cta-ink); font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 40px var(--glow); max-width: 520px;
}
.cta-go { width: 42px; height: 42px; border-radius: 50%; background: var(--cta-ink); color: var(--cta-a); display: flex; align-items: center; justify-content: center; }
.cta-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.state { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state .big-msg { font-family: var(--display); font-size: 26px; }
.state .detail { color: var(--muted); font-size: 14px; max-width: 60ch; overflow-wrap: anywhere; }
.ghost-btn, .solid-btn {
  min-height: 52px; padding: 0 20px; border-radius: 26px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.ghost-btn { background: var(--raise); border: 1px solid var(--line); color: var(--text); }
.solid-btn { background: var(--text); border: 0; color: var(--bg); font-weight: 600; }

/* ---- Tape ---- */
.tape {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; overflow: hidden; white-space: nowrap;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
}
.tape-track { display: inline-flex; animation: tape var(--tape-dur, 45s) linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tp { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 0 18px; }
.tp .tk { color: var(--text-body); margin-right: 7px; }
.tp.mine .tk::before { content: "◆ "; color: var(--up); }
.tp-sep { color: var(--line); }

/* ---- Story view ---- */
.story {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: radial-gradient(120% 50% at 70% 0%, var(--bg-top) 0%, var(--bg) 60%), var(--bg);
  padding-top: env(safe-area-inset-top);
}
.story-progress { display: flex; gap: 6px; padding: 14px 18px 0; }
.story-progress span { flex: 1; height: 12px; }
.story-progress svg { width: 100%; height: 12px; display: block; }
.story-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; }
.story-top .eyebrow { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-scroll { flex: 1; overflow-y: auto; padding: 8px 20px 20px; max-width: 760px; width: 100%; margin: 0 auto; }
.story-stat { margin: 18px 0 6px; }
.story-stat .v { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 17vw, 110px); line-height: .9; letter-spacing: -0.04em; }
.story-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-top: 10px; text-transform: uppercase; }
.story-head { margin: 18px 0 12px; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.story-head em { font-style: normal; color: var(--up); }
.story-media img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 18px; margin: 4px 0 14px; }
.story-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.read { margin-top: 18px; display: flex; gap: 12px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(124,246,255,.13), rgba(124,246,255,.02)); border: 1px solid var(--line); }
.read .brand-mark { width: 32px; height: 32px; }
#storyReadText { margin-top: 5px; font-size: 16px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { flex: 1 1 100px; padding: 10px 12px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.chip .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.chip .v { font-size: 15px; font-weight: 600; margin-top: 4px; }
.ticker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticker-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; background: var(--raise); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; }
.ticker-pill .sym { color: var(--text); font-weight: 600; }
.ticker-pill .ex { color: var(--muted); }
.ticker-pill .chg { font-weight: 600; }
.story-nav { display: flex; gap: 10px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); max-width: 760px; width: 100%; margin: 0 auto; }
.story-nav .solid-btn { flex: 1; justify-content: space-between; text-align: left; }
.story-nav .solid-btn .eyebrow { display: block; font-size: 9px; color: inherit; opacity: .6; }
#storyNextTitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }

/* ---- Sheets ---- */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); }
.sheet {
  position: fixed; z-index: 60; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
  background: var(--sheet); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -20px 60px rgba(0,0,0,.4); animation: rise .25s ease-out;
}
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sheet-title { font-family: var(--display); font-weight: 500; font-size: 22px; margin-top: 4px; }
.sheet-pct { font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -0.03em; }
.ridge-chart { display: block; width: 100%; height: 130px; margin: 12px 0 6px; overflow: visible; }
.ridge-stories { display: flex; flex-direction: column; margin-top: 10px; }
.ridge-stories a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions > * { flex: 1; }
.install-head { display: flex; gap: 14px; align-items: center; }
.install-icon { width: 56px; height: 56px; padding: 8px; border-radius: 14px; background: #081622; }
.install-steps { margin: 16px 0 0; padding-left: 20px; line-height: 1.7; font-size: 15px; }

/* ---- Ambient ---- */
.ambient { position: fixed; inset: 0; z-index: 70; background: var(--bg); cursor: none; }
.ambient .terrain { position: absolute; left: 0; right: 0; bottom: 12%; height: 62%; width: 100%; }
.ambient-hud { position: absolute; top: 28px; left: 36px; right: 36px; display: flex; justify-content: space-between; align-items: center; }
.ambient-clock { font-family: var(--mono); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.ambient-foot { position: absolute; left: 36px; right: 36px; top: 12%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ambient-num { font-family: var(--display); font-weight: 200; font-size: clamp(72px, 14vw, 180px); line-height: .85; letter-spacing: -0.05em; }
.ambient-story { max-width: 560px; font-family: var(--display); font-size: clamp(20px, 3vw, 34px); line-height: 1.15; transition: opacity .6s; }
.ambient-story .eyebrow { display: block; margin-bottom: 10px; }

/* ---- Toast ---- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; box-shadow: 0 14px 40px rgba(0,0,0,.4); text-align: center;
}
.toast.err { color: var(--down); border-color: var(--down); }
.toast.big { font-family: var(--display); font-size: 16px; letter-spacing: 0; color: var(--up); border-color: var(--up); }

@keyframes blink { 50% { opacity: .2; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes tape { to { transform: translateX(-50%); } }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes tremor { 0% { stroke-width: 5; stroke-opacity: 1; } 100% { stroke-width: 1.4; } }
@keyframes scanmove { 0% { transform: translateX(0); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateX(var(--scan, 300px)); opacity: 0; } }

@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "hero since" "ask movers" "dock dock" "terrain terrain" "tbar tbar" "table table" "dayann dayann" "year year" "mood mood" "odds odds" "earn earn" "horizon horizon" "rotation rotation" "crypto crypto" "money stories" "peaks stories" "cta stories" "stress stress" "income insiders" "world world" "memory memory"; grid-template-rows: auto minmax(0, 1fr); grid-auto-rows: auto; column-gap: 24px; align-items: start; }
  .ask { grid-area: ask; } .dock { grid-area: dock; } .terrain-bar { grid-area: tbar; } .sector-table { grid-area: table; }
  .horizon { grid-area: horizon; } .crypto { grid-area: crypto; } .money { grid-area: money; } .mood { grid-area: mood; } .odds { grid-area: odds; } .rotation { grid-area: rotation; } .stress { grid-area: stress; } .income { grid-area: income; } .insiders { grid-area: insiders; } .world { grid-area: world; } .memory { grid-area: memory; }
  .year { grid-area: year; }
  .year .year-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; }
  .year-stats { max-width: 640px; }
  .hero { grid-area: hero; padding-top: 18px; }
  .since { grid-area: since; align-self: start; }
  .movers { grid-area: movers; align-self: start; }
  .home:has(#since[hidden]) .movers { grid-row: 1 / 3; }
  .terrain-wrap { grid-area: terrain; }
  .peaks { grid-area: peaks; }
  .stories { grid-area: stories; }
  .stories .story-row { flex-direction: column; overflow: visible; }
  .stories .card { flex: 0 0 auto; height: auto; min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .stories .card-top { display: contents; }
  .stories .card-cat { grid-column: 1; }
  .stories .card-val { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .stories .card-title { grid-column: 1; -webkit-line-clamp: 2; }
  .cta { grid-area: cta; position: static; margin-top: 18px; }
  .state { grid-column: 1 / -1; }
}

/* =====================================================================
   Services (2026-10-05): Ask · Dock · Horizon · Money · World · Memory ·
   Calls · Watchtower · Sunday Letter
   ===================================================================== */

/* ---- Ask Maxima ---- */
.ask { padding: 16px 20px 0; max-width: 680px; }
.ask-bar {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 14px; border-radius: 28px;
  background: var(--raise); border: 1px solid var(--line); position: relative;
  box-shadow: 0 0 0 1px transparent, 0 10px 40px rgba(0,0,0,.18); transition: border-color .2s, box-shadow .2s;
}
.ask-bar:focus-within { border-color: var(--up); box-shadow: 0 0 0 4px var(--glow), 0 10px 40px rgba(0,0,0,.25); }
.ask-bar .brand-mark { width: 26px; height: 26px; }
.ask-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 16px var(--sans); }
.ask-bar input::placeholder { color: var(--muted); }
.ask-bar button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--cta-a), var(--cta-b)); color: var(--cta-ink); display: flex; align-items: center; justify-content: center; }
.ask-bar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ask-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; }
.ask-chips::-webkit-scrollbar { display: none; }
.ask-chips button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line); background: transparent; color: var(--text-body); font-size: 13px; cursor: pointer; }
.ask-chips button:hover { border-color: var(--up); color: var(--text); }
.ask-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.qa { padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(124,246,255,.10), rgba(124,246,255,.015)); border: 1px solid var(--line); animation: fadeup .35s ease-out; }
.qa-q { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.qa-a p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.qa-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qa-cites a, .qa-cites button { font-size: 12.5px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--up); text-decoration: none; cursor: pointer; font-family: var(--sans); }
.think { width: 120px; height: 16px; margin-top: 10px; display: block; }
.think path { fill: none; stroke: var(--up); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--up)); }

/* ---- Event Horizon ---- */
.horizon { margin-top: 10px; }
.horizon-wrap { padding: 0 20px; }
.horizon-svg { display: block; width: 100%; height: 196px; overflow: visible; cursor: pointer; }
.hz-day { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; fill: var(--muted); }
.hz-day.now { fill: var(--up); }
.hz-now { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; fill: var(--up); }
.hz-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; fill: var(--text-body); }
.hz-empty { font-size: 13px; fill: var(--muted); }
.beacon { transform-box: fill-box; transform-origin: 50% 100%; animation: beacon .9s cubic-bezier(.2,.8,.2,1) both; }
.beacon circle:first-of-type { animation: glow 2.6s ease-in-out infinite; }
.beacon.mine .hz-lbl { fill: var(--up); font-weight: 600; }
.beacon:hover rect:first-child { width: 5px; }
.horizon-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 20px 0; font-size: 8.5px; }
.horizon-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-earn { background: var(--up); box-shadow: 0 0 8px var(--up); } .lg-macro { background: var(--warn); box-shadow: 0 0 8px var(--warn); } .lg-opex { background: var(--muted); }
.ev-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ev-bars > div { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; }
.ev-bars .bar { display: block; height: 8px; border-radius: 4px; background: currentColor; }
.ev-bars .bar.ghost { background: transparent; border: 1px dashed var(--muted); height: 10px; }
.ev-bars > .eyebrow, .ev-bars > .muted { display: block; }
.ev-preview { font-size: 15px; line-height: 1.5; color: var(--text-body); margin: 14px 0 0; }

/* ---- My Money ---- */
.money { margin-top: 18px; padding-bottom: 4px; }
.money .row-head > span { display: flex; gap: 2px; }
.money-body { padding: 4px 20px 0; }
.money-empty { padding: 14px 16px; border-radius: 18px; border: 1px dashed var(--line); color: var(--text-body); font-size: 14.5px; line-height: 1.5; }
.money-empty b { color: var(--text); display: block; margin-bottom: 4px; }
.money-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,246,255,.14), transparent 60%), var(--raise); }
.money-total { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 8vw, 44px); letter-spacing: -0.03em; margin-top: 4px; }
.money-day { text-align: right; } .money-day b { font-family: var(--mono); font-size: 14px; display: block; margin-top: 6px; }
.blur { filter: blur(6px); user-select: none; }
.expo { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.expo-row { display: grid; grid-template-columns: 112px 1fr 38px 56px; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; }
.expo-name { letter-spacing: .1em; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expo-bar { height: 6px; border-radius: 3px; background: var(--raise-2); overflow: hidden; }
.expo-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--mk3), var(--up)); box-shadow: 0 0 10px var(--glow); }
.expo-share, .expo-pct { text-align: right; }
.money-touch { display: block; width: 100%; margin-top: 14px; min-height: 46px; border-radius: 16px; border: 1px solid var(--up); background: transparent; color: var(--text); font-size: 14px; cursor: pointer; text-align: left; padding: 0 14px; }
.money-touch b { color: var(--up); }
.holdings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.holdings .peak i { font-style: normal; font-size: 11px; }
.terrain .ridge.held { stroke-opacity: 1 !important; }
.ridge-money { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }

/* ---- Around the World ---- */
.world { margin-top: 18px; }
.sun-wrap { padding: 0 20px; }
.sun-svg { display: block; width: 100%; height: 160px; overflow: visible; }
.sun { animation: sun 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.st-open { animation: glow 2.2s ease-in-out infinite; }
.st-lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; fill: var(--text-body); }
.st-pct { font-family: var(--mono); font-size: 10px; font-weight: 600; }
.telaviv { margin: 8px 20px 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,178,36,.12), rgba(255,178,36,.02)); font-size: 15px; line-height: 1.5; }
.telaviv .eyebrow { display: block; margin-bottom: 4px; color: var(--warn); }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 10px 20px 0; }
.wg { padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--raise); }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) 70px 86px; align-items: center; gap: 8px; min-height: 30px; font-family: var(--mono); font-size: 11.5px; }
.wname { letter-spacing: .06em; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wval { text-align: right; white-space: nowrap; }
.spark { width: 70px; height: 22px; } .spark path { fill: none; stroke-width: 1.4; stroke-linejoin: round; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); margin-right: 6px; vertical-align: 1px; animation: pulse 2.2s infinite; }

/* ---- Market Memory ---- */
.memory { margin-top: 18px; }
.memory-body { padding: 4px 20px 0; }
.mem-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 14px 16px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(100% 120% at 100% 0%, rgba(124,246,255,.12), transparent 60%), var(--raise); }
.mem-head .fp { display: block; width: 180px; height: 44px; margin-top: 6px; }
.mem-sum { flex: 1 1 260px; margin: 0; font-size: 16px; line-height: 1.45; }
.twins { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 4px; scroll-snap-type: x proximity; }
.twins::-webkit-scrollbar { display: none; }
.twin { flex: 0 0 200px; scroll-snap-align: start; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--raise); }
.twin-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 14px; }
.twin .fp { display: block; width: 100%; height: 34px; margin: 8px 0; }
.twin-line { font-size: 12.5px; color: var(--text-body); line-height: 1.4; }
.twin-next { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
.twin-next b { display: block; font-size: 13px; letter-spacing: 0; margin-top: 2px; }
.mem-foot { font-size: 12.5px; margin-top: 6px; }
.archive { display: flex; align-items: center; gap: 10px; padding: 12px 20px 0; flex-wrap: wrap; }
.archive select, .letter-top select { font: 500 13px var(--sans); color: var(--text); background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 8px 30px 8px 10px; min-height: 40px; max-width: 100%; }
.archive select option, .letter-top select option { color: #0e1320; }
.archive select, .letter-top select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---- Sheets: tall + forms ---- */
.sheet.tall { max-height: 88vh; max-height: 88dvh; overflow-y: auto; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--text-body); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.call-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.call-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.call-row label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.call-row input, .call-row select { height: 44px; min-width: 0; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--text); padding: 0 10px; font: 500 14px var(--mono); }
.call-row select { padding-right: 26px; }
.call-row select option { color: #0e1320; }
.call-row input:focus, .call-row select:focus { outline: 2px solid var(--up); outline-offset: 1px; }
.conf { display: flex; flex-direction: column; gap: 6px; }
.score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.score > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); min-width: 0; }
.score b { font-family: var(--display); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; }
.score b.small { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; margin: 6px 0 4px; }
.score .muted { font-size: 11px; }
.calls-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.call { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); border-left: 3px solid var(--muted); }
.call.hit { border-left-color: var(--up); } .call.miss { border-left-color: var(--down); }
.call > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.call-st { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; text-align: right; }
.call .x, .rules .x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.watch-state { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.watch-state.on { color: var(--up); border-color: var(--up); box-shadow: 0 0 14px var(--glow); }
.solid-btn.wide { width: 100%; margin-top: 12px; }
.solid-btn:disabled { opacity: .5; cursor: not-allowed; }
.toggles { display: flex; flex-direction: column; margin-top: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--up); flex: 0 0 auto; }
.watch-form { grid-template-columns: 1fr 1.2fr 1fr auto; margin-top: 8px; }
.watch-form .ghost-btn { min-height: 44px; }
.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- The Sunday Letter ---- */
.letter { position: fixed; inset: 0; z-index: 52; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top);
  background: radial-gradient(120% 60% at 30% 0%, var(--bg-top) 0%, var(--bg) 62%), var(--bg); }
.letter-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; max-width: 820px; width: 100%; margin: 0 auto; }
.letter-top .eyebrow { flex: 1; }
.letter-scroll { flex: 1; overflow-y: auto; padding: 8px 22px calc(40px + env(safe-area-inset-bottom)); max-width: 820px; width: 100%; margin: 0 auto; }
.letter-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6.5vw, 56px); line-height: 1.04; letter-spacing: -0.03em; margin: 10px 0 8px;
  background: linear-gradient(180deg, var(--value) 30%, var(--up) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.letter-land { position: relative; height: clamp(220px, 40vw, 340px); margin: 6px -22px 0; }
.letter-land .terrain { height: 100%; }
.letter-days { position: absolute; left: 22px; right: 22px; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.letter-days span { text-align: center; } .letter-days b { display: block; font-size: 12px; letter-spacing: 0; margin-top: 2px; }
.letter-intro { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6; color: var(--text); margin: 22px 0 0; }
.letter-sectors { font-family: var(--mono); font-size: 11.5px; line-height: 2; margin-top: 12px; }
.letter-scroll h2 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; margin: 34px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.letter-five { margin: 0; padding: 0; list-style: none; counter-reset: five; }
.letter-five li { counter-increment: five; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.letter-five li::before { content: counter(five, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--display); font-weight: 200; font-size: 30px; color: var(--up); }
.letter-five b { font-size: 17px; } .letter-five span { color: var(--text-body); line-height: 1.55; font-size: 15px; }
.letter-review > div, .letter-ahead > div { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.letter-ahead > div { grid-template-columns: 52px 1fr; }
.letter-calls { display: flex; flex-direction: column; gap: 10px; }
.lc { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); border-left: 3px solid var(--up); }
.lc.hit { border-left-color: var(--up); } .lc.miss { border-left-color: var(--down); }
.lc .link-btn { align-self: flex-start; padding: 0; }
.letter-sign { margin: 36px 0 0; font-size: 17px; line-height: 1.6; font-style: italic; color: var(--text-body); }
.letter-wait { text-align: center; padding: 60px 10px; }
.letter-wait h1 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.brand-mark.big { width: 64px; height: 64px; animation: glow 2.4s ease-in-out infinite; }

@keyframes draw { 0% { stroke-dashoffset: 160; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
@keyframes beacon { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 420px) {
  .expo-row { grid-template-columns: 92px 1fr 34px 52px; gap: 6px; font-size: 10.5px; }
  .score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-form { grid-template-columns: 1fr 1fr; }
  .call-row { grid-template-columns: 1fr 1fr; }
  .call-row label:last-child { grid-column: 1 / -1; }
  .ev-bars > div { grid-template-columns: 100px 1fr auto; }
}

.pastbar { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 18; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 20px 6px; padding: 10px 10px 10px 16px; max-width: 760px; border-radius: 18px; border: 1px solid var(--warn);
  background: linear-gradient(135deg, rgba(255,178,36,.18), rgba(255,178,36,.04)), var(--sheet); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: fadeup .3s ease-out; }
.pastbar > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pastbar .eyebrow { color: var(--warn); }
.pastbar b { font-size: 14px; font-weight: 600; }
.pastbar .solid-btn { min-height: 42px; padding: 0 16px; flex: 0 0 auto; font-size: 14px; }

/* =====================================================================
   Round 4 (2026-10-06): Mood · Rotation · Stress Test · Income · Insiders
   ===================================================================== */

.mood { margin-top: 16px; }
.mood-body { padding: 4px 20px 0; }
.mood-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 16px 10px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 20% 100%, var(--glow), transparent 60%), var(--raise); }
.mood-gauge { width: 220px; height: 120px; flex: 0 0 auto; overflow: visible; }
.mood-end { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; fill: var(--muted); }
.needle { transform-origin: 110px 104px; transform: rotate(var(--deg)); animation: needle 1.4s cubic-bezier(.2,.9,.2,1.15) both; }
.mood-read { flex: 1 1 140px; }
.mood-score { font-family: var(--display); font-weight: 300; font-size: 64px; line-height: .9; letter-spacing: -0.04em; }
.mood-label { font-family: var(--display); font-weight: 500; font-size: 20px; margin: 6px 0 4px; }
.mood-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.mp { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--raise); }
.mp-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.mp-why { font-size: 12.5px; line-height: 1.4; color: var(--text-body); }

.rotation { margin-top: 18px; }
.rpath { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trail 1.6s ease-out forwards; }
.rhead { filter: drop-shadow(0 0 5px currentColor); }

.stress, .income, .insiders { margin-top: 18px; }
.stress-body, .income-body, .ins-body { padding: 4px 20px 0; }
.xray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xray > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--raise); min-width: 0; }
.xray b { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; }
.xray .muted { font-size: 11.5px; line-height: 1.3; }
.shocks { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 4px; scroll-snap-type: x proximity; }
.shocks::-webkit-scrollbar { display: none; }
.shock { flex: 0 0 210px; scroll-snap-align: start; padding: 14px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,107,61,.10), transparent 70%), var(--raise); display: flex; flex-direction: column; gap: 6px; }
.shock-top { display: flex; flex-direction: column; gap: 2px; }
.shock-name { font-size: 14px; font-weight: 600; }
.shock-num { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.shock-loss { font-family: var(--mono); font-size: 11.5px; color: var(--text-body); min-height: 14px; }
.shock-bars { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 5px 8px; margin-top: 4px; }
.shock-bars .muted { grid-column: 2; font-size: 11px; margin-top: -3px; }
.sb { display: block; height: 7px; border-radius: 4px; }
.sb.you { background: var(--down); box-shadow: 0 0 10px rgba(255,107,61,.4); }
.sb.spy { background: var(--muted); opacity: .6; }
.shock-via { font-size: 11px; line-height: 1.35; }

.inc-cal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; margin-top: 12px; padding: 0 2px; }
.inc-m { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.inc-m i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--up), var(--mk3)); box-shadow: 0 0 12px var(--glow); animation: grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.inc-m i.none { background: var(--raise-2); box-shadow: none; }
.inc-m .eyebrow { font-size: 8px; letter-spacing: .08em; }
.inc-amt { font-family: var(--mono); font-size: 8.5px; color: var(--text-body); white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 60px; }
.inc-list { display: flex; flex-direction: column; margin-top: 12px; }
.inc-list > div { display: grid; grid-template-columns: 82px 60px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.inc-payers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.ins { border-radius: 18px; border: 1px solid var(--line); background: var(--raise); margin-bottom: 8px; overflow: hidden; }
.ins.has-buy { border-color: color-mix(in srgb, var(--up) 60%, var(--line)); box-shadow: 0 0 20px var(--glow); }
.ins-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 15px; }
.ins-name { flex: 1; color: var(--text-body); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ins-badge { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ins-badge.buy { color: var(--up); border-color: var(--up); } .ins-badge.sell { color: var(--down); border-color: var(--down); }
.ins-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 14px 12px; font-family: var(--mono); font-size: 11.5px; }
.ins-trades { border-top: 1px solid var(--line); }
.ins-t { display: grid; grid-template-columns: 70px 1fr; gap: 3px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; border-left: 3px solid var(--down); }
.ins-t.buy { border-left-color: var(--up); background: linear-gradient(90deg, rgba(124,246,255,.08), transparent); }
.ins-t > :nth-child(n+3) { grid-column: 2; }
.ins-t b:last-of-type { font-family: var(--mono); }
.ins-more { margin: 4px 10px 8px; }

@keyframes needle { from { transform: rotate(-90deg); } }
@keyframes trail { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@media (max-width: 420px) {
  .xray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood-top { justify-content: center; }
  .inc-list > div { grid-template-columns: 70px 52px 1fr auto; gap: 6px; font-size: 13px; }
}
:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; }
.ridge[role="button"]:focus-visible { stroke: var(--value); stroke-width: 3; stroke-opacity: 1; outline: none; }
.beacon:focus-visible, .hill:focus-visible, .day-svg .pin:focus-visible { outline-offset: -2px; }
.lens-cap input:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; }
.ambient-exit { position: absolute; z-index: 1; bottom: 20px; left: 50%; transform: translateX(-50%); }
.ambient-exit:not(:focus-visible) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Round 5 (2026-10-06): Instrument deck · CNN Fear & Greed · mood history ·
   Rotation Wheel · section heads · rest of the session
   ===================================================================== */

/* ---- Instrument deck (replaces the 13-tile dock) ---- */
.deck { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 4px; }
.deck-now { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inst { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 128px; padding: 13px 14px 10px; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: left; font: inherit;
  background: linear-gradient(160deg, var(--raise-2), transparent 55%), var(--raise); transition: transform .18s, border-color .2s, box-shadow .2s; }
.inst::after { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.inst:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--up) 50%, var(--line)); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.inst:hover::after { opacity: .55; }
.inst:active { transform: scale(.98); }
.inst-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.inst .dk-stat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--up); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.inst-viz { display: block; width: 100%; height: 58px; margin-top: auto; overflow: visible; }
.deck-rows { display: flex; flex-wrap: wrap; gap: 10px; }
.deck-rows .deck-row { flex: 1 1 auto; }
.deck-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--raise);
  overflow-x: auto; scrollbar-width: none; }
.deck-row::-webkit-scrollbar { display: none; }
.deck-lbl { flex: 0 0 auto; font-size: 8.5px; margin-right: 6px; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 13px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; font: 500 13px var(--sans); white-space: nowrap; transition: background .2s, border-color .2s; }
.chip:hover { background: var(--raise-2); border-color: var(--line); }
.chip svg { width: 17px; height: 17px; fill: none; stroke: var(--up); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip .dk-stat { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.chip.locked { opacity: .5; }
.chip.locked svg { stroke: var(--muted); }
@media (max-width: 899px) {
  .deck { padding-left: 0; padding-right: 0; }
  .deck-now { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 2px 20px 4px; scroll-padding-left: 20px; }
  .deck-now::-webkit-scrollbar { display: none; }
  .inst { flex: 0 0 158px; scroll-snap-align: start; min-height: 122px; }
  .deck-rows { flex-direction: column; flex-wrap: nowrap; padding: 0 20px; gap: 8px; }
}
@media (max-width: 420px) { .deck-now { padding: 2px 14px 4px; scroll-padding-left: 14px; } .deck-rows { padding: 0 14px; } .inst { flex-basis: 146px; } }

/* ---- Section heads: a little more edge ---- */
.row-head > .eyebrow:first-child { color: var(--text-body); display: inline-flex; align-items: center; gap: 10px; }
.row-head > .eyebrow:first-child::before { content: ""; width: 16px; height: 2px; border-radius: 1px; background: var(--up); box-shadow: 0 0 10px var(--up); flex: 0 0 auto; }

/* ---- CNN Fear & Greed ---- */
.mood { margin-top: 22px; }
.fg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px 28px; align-items: center; padding: 18px 20px 16px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 25% 100%, var(--glow), transparent 65%), var(--raise); }
.fg-dial { display: flex; flex-direction: column; align-items: center; }
.fg-gauge { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.fg-gauge .needle { transform-origin: 170px 168px; }
.mz { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; font-weight: 600; }
.mz.on { font-size: 9px; }
.mtick { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.fg-num { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -.03em; }
.fg-label-in { font-family: var(--mono); font-weight: 600; font-size: 9.5px; letter-spacing: .05em; }
.fg-delta { font-size: 13px; margin-top: 4px; }
.fg-then { display: flex; flex-direction: column; gap: 4px; }
.fg-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; }
.fg-row > span:first-child { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.fg-row b { font-size: 15px; font-weight: 600; }
.fg-row i { height: 0; border-top: 1px dashed var(--line); }
.fg-bub { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 600 15px var(--mono); color: var(--text);
  border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); }
.fg-src { font-size: 11.5px; margin-top: 8px; line-height: 1.45; }
.mood-body { padding: 4px 20px 0; }
.mood-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-top: 10px; }
.mp { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--raise); display: flex; flex-direction: column; }
.mp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; }
.mp-top b { font-family: var(--mono); font-size: 17px; text-align: right; line-height: 1; }
.mp-top b small { display: block; font-size: 8px; letter-spacing: .14em; margin-top: 4px; font-weight: 500; }
.mp-bar { position: relative; display: block; height: 6px; margin: 10px 0 9px; }
.mp-bar i { position: absolute; top: 0; height: 100%; border-left: 2px solid var(--raise); background: var(--raise-2); }
.mp-bar i:first-child { border-radius: 3px 0 0 3px; border-left: 0; } .mp-bar i:last-of-type { border-radius: 0 3px 3px 0; }
.mp-bar em { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 10px currentColor; }
.mp-why { font-size: 12.5px; line-height: 1.4; color: var(--text-body); }
.mp-val { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }

/* ---- Mood history ---- */
.mood-hist { margin: 14px 20px 0; padding: 14px 14px 10px; border-radius: 22px; border: 1px solid var(--line); background: var(--raise); }
.mh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mh-seg { padding: 2px; border-radius: 12px; }
.mh-seg button { min-height: 32px; min-width: 42px; padding: 0 8px; font-size: 10px; }
.mh-wrap { position: relative; }
.mh-svg { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; overflow: visible; }
.mh-zone { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-opacity: .7; }
.mh-ax { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.mh-mark { font-family: var(--mono); font-size: 9.5px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.mh-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trail 1.8s ease-out forwards; }
.mh-now { animation: pulse 2.2s infinite; }
.mh-tip { position: absolute; top: -6px; display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.mh-tip b { font-family: var(--mono); font-size: 15px; }

/* ---- Rotation Wheel ---- */
.rot-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 0 20px; align-items: center; }
.rot-wrap { border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 50%, var(--raise-2), transparent 70%), var(--raise); overflow: hidden; }
.rot-svg { display: block; width: 100%; cursor: pointer; }
.rq { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; }
.rhub { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; fill: var(--text-body); }
.rhub2 { font-family: var(--mono); font-size: 8px; fill: var(--muted); }
.rlbl { font-family: var(--sans); font-size: 12px; font-weight: 500; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.rlbl.on { font-weight: 700; font-size: 13px; }
.rsec { transition: opacity .25s; animation: fadeup .5s ease-out both; cursor: pointer; }
.rsec.dim { opacity: .16; }
.rhead { filter: drop-shadow(0 0 6px currentColor); }
.rping { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
.rot-spin { animation: spin 24s linear infinite; }
.rot-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rot-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rph { padding: 12px; border-radius: 18px; border: 1px solid var(--line); border-top: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%), var(--raise); min-width: 0; }
.rph-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rph-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rph-head .muted { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.rph-blurb { font-size: 11.5px; margin: 3px 0 8px; line-height: 1.3; }
.rph-list { display: flex; flex-wrap: wrap; gap: 5px; }
.rph-list button { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 32px; justify-content: center; padding: 4px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font: 500 12.5px var(--sans); cursor: pointer; }
.rph-list button.on, .rph-list button:hover { border-color: var(--c); color: var(--c); }
.rph-new { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; color: var(--c); margin-top: 1px; }
.rot-read { font-size: 14px; line-height: 1.6; }

/* ---- Landscape: the rest of the session ---- */
.t-future { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; fill: var(--muted); }
.t-hour { font-family: var(--mono); font-size: 8.5px; fill: var(--muted); opacity: .8; }

@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .fg { grid-template-columns: minmax(0, 1fr); }
  .rot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .fg { padding: 14px 12px; }
  .mood-hist { margin: 12px 14px 0; padding: 12px 10px 8px; }
  .rot-grid { padding: 0 14px; }
  .rph { padding: 10px; }
  .rlbl { font-size: 11px; }
  .mp { padding: 10px 12px; }
  .mood-parts { gap: 6px; }
}
@media (min-width: 900px) {
  .home:has(#income[hidden]) { grid-template-areas: "hero since" "ask movers" "dock dock" "terrain terrain" "tbar tbar" "table table" "dayann dayann" "year year" "mood mood" "odds odds" "earn earn" "horizon horizon" "rotation rotation" "crypto crypto" "money stories" "peaks stories" "cta stories" "insiders insiders" "world world" "memory memory"; }
  .twins .twin { flex: 1 1 0; min-width: 180px; }
}

/* =====================================================================
   Round 6 (2026-10-06): Crypto · 24/7
   ===================================================================== */
.deck-now { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.iv-lg { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; }
.crypto { margin-top: 22px; }
.cx-head { display: flex; align-items: center; gap: 10px; }
.crypto-body { padding: 4px 20px 0; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.cx-coins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-coin { position: relative; padding: 16px 17px 14px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; min-width: 0;
  background: radial-gradient(80% 60% at 100% 0%, var(--cxg), transparent 60%), var(--raise); }
.cx-btc { --cxg: rgba(247,147,26,.16); --cxc: #f7931a; }
.cx-eth { --cxg: rgba(155,140,255,.18); --cxc: #9b8cff; }
.cx-top { display: flex; align-items: center; gap: 12px; }
.cx-glyph { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 600 22px var(--sans); color: var(--cxc);
  border: 1.5px solid var(--cxc); box-shadow: 0 0 18px color-mix(in srgb, var(--cxc) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--cxc) 25%, transparent); }
.cx-id { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cx-id b { font-size: 17px; }
.cx-24 { display: flex; flex-direction: column; align-items: flex-end; font: 600 17px var(--mono); }
.cx-24 .eyebrow { font-size: 8px; }
.cx-price { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -.035em; line-height: 1; margin: 14px 0 6px; color: var(--value); }
.cx-chart { display: block; width: 100%; height: 150px; overflow: visible; }
.cx-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trail 1.6s ease-out forwards; }
.cx-ext { font-family: var(--mono); font-size: 9px; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.cx-ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cx-ch > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); min-width: 0; }
.cx-ch .eyebrow { font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.cx-ch b { font: 600 13px var(--mono); white-space: nowrap; }
.cx-range { margin-top: 12px; }
.cx-bar { position: relative; height: 6px; margin: 7px 0 5px; border-radius: 3px; background: linear-gradient(90deg, var(--down), var(--warn), var(--up)); opacity: .9; }
.cx-bar i { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 10px var(--cxc); }
.cx-rl { display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--muted); }
.cx-ath { font-size: 13px; margin-top: 10px; line-height: 1.45; }
.cx-ath b { color: var(--text); }
.cx-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-side-card { padding: 14px 15px; border-radius: 20px; border: 1px solid var(--line); background: var(--raise); }
.cx-fng { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cx-fng svg { width: 130px; height: 62px; flex: 0 0 auto; }
.cx-fng-num { font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; }
.cx-fng-lbl { font-family: var(--display); font-size: 15px; margin-top: 3px; }
.cx-prev { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; }
.cx-prev > span { display: flex; flex-direction: column; gap: 1px; }
.cx-prev b { font: 600 15px var(--mono); }
.cx-fng-h { display: block; width: 100%; height: 36px; margin-top: 10px; }
.mood-axis-s { display: flex; justify-content: space-between; font-size: 8px; margin-top: 2px; }
.cx-foot { font-size: 11.5px; line-height: 1.4; margin-top: 8px; }
.cx-ratio { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 400 28px var(--display); letter-spacing: -.02em; margin-top: 6px; }
.cx-ratio span { font: 600 12px var(--mono); letter-spacing: 0; }
.cx-m { display: grid; grid-template-columns: 38px minmax(0, 1fr) 70px auto auto; align-items: center; gap: 8px; min-height: 36px; border-top: 1px solid var(--line); font-size: 13px; }
.cx-m:first-of-type { margin-top: 8px; }
.cx-m .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-mp { font-family: var(--mono); font-size: 12px; text-align: right; }
.cx-m > span:last-child { font: 600 12px var(--mono); text-align: right; min-width: 52px; }
@media (max-width: 1100px) { .cx-grid { grid-template-columns: minmax(0, 1fr); } .cx-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 899px) { .cx-coins { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .crypto-body { padding: 4px 14px 0; }
  .cx-coin { padding: 14px 13px 12px; }
  .cx-ch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-m { grid-template-columns: 34px minmax(0, 1fr) 54px auto auto; gap: 6px; }
  .cx-m .spark { width: 54px; }
}
@media (max-width: 520px) { #cryptoNote { display: none; } }

/* =====================================================================
   Round 8 (2026-10-31): review pass · Movers · Year · Backup
   ===================================================================== */

/* Remove buttons read as destructive: a warm tint at rest, the full danger colour on hover/focus,
   and a 44px touch target around the 28px visible chip. Every one has an Undo toast. */
.peak .x, .call .x, .rules .x { position: relative; color: color-mix(in srgb, var(--muted) 55%, var(--down)); transition: color .15s, background .15s; }
.peak .x::after, .call .x::after, .rules .x::after { content: ""; position: absolute; inset: -8px; }
.peak .x:hover, .call .x:hover, .rules .x:hover,
.peak .x:focus-visible, .call .x:focus-visible, .rules .x:focus-visible { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); outline: none; }
.peak .x:focus-visible, .call .x:focus-visible, .rules .x:focus-visible { box-shadow: 0 0 0 2px var(--down); }
.toast-undo { margin-left: 10px; border: 1px solid var(--up); border-radius: 10px; background: transparent; color: var(--up); font: inherit; letter-spacing: .1em; padding: 6px 12px; min-height: 32px; cursor: pointer; text-transform: uppercase; }

/* A panel that failed to load. */
.load-fail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--down); font-size: 14px; color: var(--text-body); }
.load-fail .ghost-btn { min-height: 40px; margin-left: auto; }

/* Top bar: frosted once content scrolls beneath it (it used to let text run through the logo and pill). */
.top.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.to-top { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--sheet); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Section headings that were wrapping into two lines on a phone */
.row-head > .eyebrow { white-space: nowrap; }
.row-head > .eyebrow:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-head { gap: 12px; }

.horizon-empty { padding: 4px 20px; }

/* Status dot: the shared primitive (see house-design patterns.md "Status dot").
   data-state: live pings, steady breathes slowly, stale and down sit still. */
.sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--flat); flex: 0 0 auto; display: inline-block; }
.sdot[data-state="live"] { background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 2.2s ease-in-out infinite; }
.sdot[data-state="steady"] { background: var(--up); animation: pulse 4.5s ease-in-out infinite; }
.sdot[data-state="down"] { background: var(--down); }

/* Movers */
.movers { margin-top: 22px; }
.movers-body { padding: 4px 20px 0; }
.mv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mv-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mv-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; text-align: left; font-family: var(--mono); font-size: 12px; }
.mv-row.pinned { border-color: var(--up); }
.mv-row:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; }
.mv-t { overflow: hidden; text-overflow: ellipsis; }
.mv-bar { height: 6px; border-radius: 3px; background: var(--raise-2); overflow: hidden; }
.mv-bar i { display: block; height: 100%; border-radius: 3px; }
.t-bg-pos { background: var(--up); } .t-bg-neg { background: var(--down); }
.mv-hint { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 520px) { .mv-cols { grid-template-columns: 1fr; } }

/* The Year */
.year { margin-top: 22px; }
.year-body { padding: 4px 20px 0; }
.year-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.year-stats > div, .bk-sum > div { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); min-width: 0; }
.year-stats b, .bk-sum b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.year-stats .muted { font-size: 11px; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; }
.ym .eyebrow { margin-bottom: 6px; }
.ym-grid { display: grid; grid-template-rows: repeat(5, 18px); grid-auto-columns: 18px; gap: 3px; }
.yc { width: 18px; height: 18px; border: 0; border-radius: 4px; padding: 0; cursor: pointer; position: relative; }
.yc::after { content: ""; position: absolute; inset: -3px; }
.yc.on, .yc:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.year-read { margin-top: 14px; min-height: 42px; font-size: 14px; color: var(--text-body); }
.year-key { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.year-key i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
@media (max-width: 520px) { .year-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Back up */
.bk-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.bk-text { width: 100%; margin-top: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font-family: var(--mono); font-size: 12px; resize: vertical; }
.bk-note { min-height: 20px; margin: 10px 0 0; }

/* Section index: names fade in at the right edge while scrolling, then fade out. */
.secnav-target { scroll-margin-top: 76px; }
.secnav { position: fixed; z-index: 25; right: max(4px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); max-height: calc(100dvh - 230px); max-height: calc(100vh - 230px); display: flex; flex-direction: column; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.secnav.vis, .secnav:focus-within { opacity: 1; visibility: visible; transition: opacity .2s; }
.secnav button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 34px; min-width: 44px; padding-right: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-body); }
.secnav button span { padding: 5px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--sheet); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.secnav button::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.secnav button.on { color: var(--up); }
.secnav button.on span { border-color: var(--up); }
.secnav button.on::after { background: var(--up); box-shadow: 0 0 8px var(--up); }
.secnav button:focus-visible span { outline: 2px solid var(--up); outline-offset: 1px; }
.secnav button:hover span { border-color: var(--up); }
@media (max-height: 640px) { .secnav button { min-height: 28px; } }

/* Loading skeleton (deck tiles): shimmer blocks in the same boxes as the loaded number and chart */
@keyframes skel-sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.inst.skel .dk-stat, .inst.skel .inst-viz { color: transparent; border-radius: 8px; background: linear-gradient(100deg, var(--raise-2) 30%, color-mix(in srgb, var(--text) 14%, var(--raise-2)) 50%, var(--raise-2) 70%); background-size: 220% 100%; animation: skel-sweep 1.4s linear infinite; }
.inst.skel .dk-stat { width: 64px; height: 11px; }
.inst.skel .inst-viz { opacity: .7; }

/* ---- 2026-11-13 round ---- */
/* Top bar: the background runs edge to edge of the window; logo and menu stay on the page column. */
body { overflow-x: clip; }
.top { background: none; }
.top::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--bg) 40%, transparent); }
.top.scrolled { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.top.scrolled::before { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }

/* The Year: 12 months in even rows at every width */
.year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* My Peaks: quick-pin suggestions */
.peak-sugg { padding: 8px 20px 4px; }
.peak-sugg .eyebrow { margin-bottom: 8px; }
.peak-sugg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.peak.sugg { cursor: pointer; color: var(--text); border-style: dashed; padding: 8px 14px; }
.peak.sugg:hover, .peak.sugg:focus-visible { background: var(--raise-2); border-style: solid; }
.peak.sugg .eyebrow { margin: 0; font-size: 8.5px; }

/* Story reader: keep reading after the last story */
.story-more { margin: 28px 0 8px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--raise); }
.story-more p { margin: 8px 0 16px; }
.story-more-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.story-more-btns button { min-height: 46px; }

/* Wide screens: the stories column is as tall as Money + Peaks + the brief button beside it and scrolls inside,
   instead of stretching that side into an empty gap. */
@media (min-width: 900px) {
  .stories { align-self: stretch; contain: size; min-height: 460px; display: flex; flex-direction: column; }
  .stories .story-row { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-bottom: 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); }
}

/* Sentiment bar (top bar): ticks + zone, like the deck's mono readouts */
.senti { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text); }
.senti:hover, .senti:focus-visible { border-color: var(--line); background: var(--raise); }
.senti-eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; flex: 0 0 auto; }
.senti-eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--line); transform-origin: bottom; transition: background .3s; }
.senti-eq i.on { background: var(--mood, var(--warn)); box-shadow: 0 0 8px var(--mood, var(--warn)); animation: senti-breathe var(--pulse, 1.6s) ease-in-out infinite; }
@keyframes senti-breathe { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.senti-txt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 0; }
.senti-txt b { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; white-space: nowrap; }
/* Phones: the header has no room, and Fear & Greed is the first deck tile right below it. */
@media (max-width: 600px) { .senti { display: none; } }

/* ---- Round 9 (2026-11-13) ---------------------------------------------------- */
/* Mood weather [A]: fear-to-greed line on the top bar's bottom edge, a dot at the score. */
.top::after { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 46px; z-index: -1; pointer-events: none;
  background: radial-gradient(22% 100% at var(--mx, 50%) 100%, color-mix(in srgb, var(--mood, transparent) 16%, transparent), transparent 70%); }
.mw { position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 2px; pointer-events: none; }
.mw[hidden] { display: none; }
.mw-line { position: absolute; inset: 0; background: linear-gradient(90deg, var(--down), var(--warn) 50%, var(--up)); opacity: .5; }
.mw-bead { position: absolute; bottom: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--mood, var(--warn)); box-shadow: 0 0 16px var(--mood, var(--warn)); }
.mw-bead::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--mood, var(--warn)); animation: mw-ping var(--pulse, 1.6s) ease-out infinite; }
@keyframes mw-ping { from { transform: scale(1); opacity: .85; } to { transform: scale(3.2); opacity: 0; } }
.senti { padding: 5px 10px; }
.lens-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top.senti-tight .senti { display: none; }
@media (max-width: 600px) { .sl-more { display: none; } .top-right { gap: 6px; } .lens-btn, #menuBtn { width: 40px; height: 40px; } .brand { gap: 8px; } .brand-word { letter-spacing: .22em; } .senti { display: inline-flex; padding: 5px 6px; } .senti-eq { display: none; } .senti-txt b { font-size: 9.5px; letter-spacing: .1em; } }
@media (max-width: 420px) { .top-right { gap: 6px; } .lens-btn, #menuBtn { width: 40px; height: 40px; } .brand { gap: 8px; } .brand-word { letter-spacing: .2em; } #sessionPill { font-size: 9px; letter-spacing: .08em; padding: 6px 9px; gap: 5px; } }

/* The tide of odds [C] */
.odds { margin-top: 22px; }
.odds-body { padding: 4px 20px 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .odds-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }
.oq { min-width: 0; }
.oq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.oq-head a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15.5px; min-width: 0; }
.oq-head a span { color: var(--muted); font-size: 12px; }
.oq-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.oq-head .eyebrow { white-space: nowrap; flex: 0 0 auto; }
.tank { position: relative; height: 64px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--raise); }
.tank svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tank-lead { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); display: flex; align-items: baseline; gap: 10px; color: var(--bg); pointer-events: none; }
.tank-lead.light { color: var(--text); }
.tank-lead b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.tank-lead span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.tank-was { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed var(--text); opacity: .55; }
.tank-was span { position: absolute; top: 5px; left: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; white-space: nowrap; color: var(--text); }
.tank-was.r span { left: auto; right: 5px; }
.oq-outs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; font-size: 13px; color: var(--text-body); }
.oq-outs span { display: inline-flex; align-items: center; gap: 6px; }
.oq-outs i { width: 9px; height: 9px; border-radius: 3px; }
.oq-outs b { font-family: var(--mono); font-size: 12px; }
.oq-outs em { font-style: normal; font-family: var(--mono); font-size: 11.5px; }

/* Command lens [E] */
.lens { position: fixed; inset: 0; z-index: 80; }
.lens[hidden] { display: none; }
.lens-dim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.lens-open { overflow: hidden; }
.lens-box { position: relative; width: min(640px, calc(100% - 32px)); margin: calc(70px + env(safe-area-inset-top)) auto 0; max-height: calc(100% - 90px); overflow-y: auto; scrollbar-width: none; }
.lens-cap { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--up) 55%, transparent); background: var(--sheet);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--up) 10%, transparent), 0 20px 60px -10px var(--glow); }
.lens-cap svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.lens-cap input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 19px var(--sans); color: var(--text); outline: none; }
.lens-cap input::-webkit-search-cancel-button { display: none; }
.lens-esc { font-family: var(--mono); font-size: 10.5px; padding: 6px 9px; min-height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.lens-res { margin-top: 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--sheet); overflow: hidden; transition: opacity .2s; }
.lens-res.busy { opacity: .6; }
.lens-hint { padding: 14px 18px; font-size: 14px; }
.lens-hint:empty { display: none; }
.lens-r { display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.lens-r:first-child { border-top: 0; }
.lens-r.sel, .lens-r:hover { background: var(--raise-2); }
.lens-lg { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600; background: var(--raise-2); }
.lens-nm { min-width: 0; display: flex; flex-direction: column; }
.lens-nm b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lens-nm span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lens-r svg { width: 90px; height: 30px; }
.lens-px { text-align: right; font-family: var(--mono); font-size: 13px; }
.lens-mtn { margin: 10px 0 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--sheet); padding: 16px; }
.lens-mtn[hidden] { display: none; }
.lens-mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lens-big { display: block; font-family: var(--display); font-weight: 300; font-size: 26px; margin-top: 4px; }
.lens-big span { font-family: var(--mono); font-size: 13px; }
.lens-svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.lens-t { font-family: var(--mono); font-size: 10px; fill: var(--text); }
.lens-t.muted-t { fill: var(--muted); }
.lens-here { filter: drop-shadow(0 0 8px currentColor); }
.lens-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 520px) { .lens-r { grid-template-columns: 36px minmax(0, 1fr) auto; } .lens-r svg { display: none; } .lens-mh .eyebrow:last-child { display: none; } }

/* Stars everywhere [G] */
.star { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -6px -8px -6px 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; position: relative; }
.star::after { content: ""; position: absolute; inset: -6px; }
.star:hover, .star:focus-visible { color: var(--warn); background: var(--raise-2); }
.star.on { color: var(--warn); text-shadow: 0 0 12px color-mix(in srgb, var(--warn) 70%, transparent); }
.mv-row { grid-template-columns: 50px minmax(0, 1fr) auto 14px; gap: 6px; }
.mv-star { color: var(--muted); font-size: 14px; text-align: center; }
.mv-star.on { color: var(--warn); text-shadow: 0 0 10px color-mix(in srgb, var(--warn) 70%, transparent); }
.mv-row.pinned { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.star-fly { position: fixed; z-index: 90; pointer-events: none; color: var(--warn); font-size: 20px; text-shadow: 0 0 14px var(--warn); transition: transform .6s cubic-bezier(.5,0,.2,1), opacity .6s; }
.peak.landed { animation: landed .9s cubic-bezier(.2,.9,.2,1); }
@keyframes landed { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 60%, transparent); border-color: var(--warn); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* ---- Round 10 (2026-11-14) ---------------------------------------------------- */
@media (min-width: 900px) { .dayann { grid-area: dayann; } .earn { grid-area: earn; } }
.pad-msg { padding: 4px 20px 0; }
.pad-msg[hidden] { display: none; }
/* Earnings week [B1·C]: an engraved print of the week, ink on paper, colour only for results. */
.earn { margin-top: 22px; }
.earn-body { padding: 4px 20px 0; }
.earn-nav { display: inline-flex; align-items: center; gap: 6px; }
.earn-step { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.earn-nav .eyebrow { white-space: nowrap; }
.earn-step:hover { background: var(--raise-2); }
.earn-step:disabled { opacity: .35; cursor: default; }
.earn-frame { border-radius: 22px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); scrollbar-width: thin; }
.earn-svg { display: block; width: 100%; min-width: 720px; height: auto; }
.earn-svg text { font-family: var(--mono); }
.earn-svg .hill { cursor: pointer; }
.earn-svg .hl { opacity: 0; transition: opacity .25s; }
.earn-svg .hill:hover .hl, .earn-svg .hill.sel .hl { opacity: 1; }
.bcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.bcard .sym { font-family: var(--display); font-weight: 400; font-size: 22px; }
.bcard .bc-name { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.bcard .verdict { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; padding: 8px 12px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
@media (max-width: 520px) { .bcard { grid-template-columns: minmax(0, 1fr) auto; } .bcard .sym { grid-column: 1 / -1; } }
.earn-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; }
.earn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.earn-legend i { width: 10px; height: 10px; border-radius: 3px; }
.earn-legend i.dash { border: 1px dashed var(--muted); }
/* The day, annotated [F1]: the session in chapters, stories pinned at their minute. */
.dayann { margin-top: 22px; }
.day-body { padding: 4px 20px 0; }
.day-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--bg-top) 50%, transparent), transparent 65%); }
.day-svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.day-svg text { font-family: var(--mono); }
.day-svg .pin { cursor: pointer; }
.day-svg .day-scrub { pointer-events: none; }
.day-svg .ring { transform-box: fill-box; transform-origin: center; animation: day-ping 2.4s ease-out infinite; }
@keyframes day-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.day-list { display: grid; gap: 6px; margin-top: 10px; }
.day-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--raise); border-radius: 14px; padding: 9px 12px; cursor: pointer; color: var(--text); }
.day-row b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--muted); }
.day-row span { font-size: 13.5px; line-height: 1.3; min-width: 0; }
.day-row small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.day-row em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.day-row.sel { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--raise)); }
.day-row.sel b { color: var(--warn); }
.fcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--raise); padding: 18px 20px; margin-top: 14px; }
.fcard h3 { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.25; margin: 6px 0 8px; text-wrap: balance; }
.fcard h3 a { color: var(--text); text-decoration: none; }
.fcard h3 a span { color: var(--muted); font-size: 13px; }
.fcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fcard p { margin: 0; color: var(--text-body); max-width: 62ch; font-size: 14.5px; }
.fcard .imp { text-align: right; }
.fcard .imp b { font-family: var(--display); font-weight: 300; font-size: 30px; display: block; margin-top: 4px; }
.fcard .who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.fcard .who > span:not(.eyebrow) { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11.5px; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
@media (max-width: 560px) { .fcard { grid-template-columns: minmax(0, 1fr); padding: 16px; } .fcard .imp { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .day-svg .ring { animation: none; } }

/* Enlarge isolated touch targets without moving their visible edges. */
@media (pointer: coarse) {
  #lensBtn, #menuBtn, .idx-btn { position: relative; }
  #lensBtn::after, #menuBtn::after, .idx-btn::after { content: ""; position: absolute; inset: -3px; }
  .idx-btn::after { inset: -7px 0; }
}
