/* /app: the dashboard, restyled to the dispatch tokens. Loaded after the page's own styles, so it only overrides. */
:root {
  --canvas: #0C1520; --panel: #132233; --line: #22354C;
  --accent-flare: #FF5B3A; --accent-hover: #FF7657; --accent-muted: rgba(255,91,58,.22);
  --route: #7FD3E6; --text-primary: #E8EEF3; --text-secondary: #94A7BA;
  /* the dashboard's own names, mapped onto the tokens */
  --bg: var(--canvas);
  --surface: var(--panel);
  --surface-2: #192c41;
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --faint: #8597ab;
  --accent: var(--route);
  --flare: var(--accent-flare);
  --flare-hover: var(--accent-hover);
  --good: #5FD69A; --warn: #F2BD63; --bad: #FF8A80;
}
body { background: var(--canvas); }
/* the valley behind the tool, dimmed to 85% canvas and softened; panels stay solid --panel so the numbers stay crisp.
   :root lifts it above web.css's .preview::before divider (the body carries .preview in the free preview). */
:root body::before { content: ""; position: fixed; inset: -24px; width: auto; height: auto; z-index: -1; pointer-events: none; filter: blur(6px);
  background: linear-gradient(rgba(12,21,32,.85), rgba(12,21,32,.85)), url("/media/bg-valley-1080.webp") center / cover no-repeat; }
@media (min-width: 1100px) { :root body::before { background-image: linear-gradient(rgba(12,21,32,.85), rgba(12,21,32,.85)), url("/media/bg-valley-1920.webp"); } }
@media (max-width: 760px) { :root body::before { background-image: linear-gradient(rgba(12,21,32,.85), rgba(12,21,32,.85)), url("/media/bg-nest-900.webp"); } }
/* the homepage now tells the story; /app is the tool */
#hero, #how, #compare, .closer, #sticky-cta { display: none !important; }
a.brand { text-decoration: none; color: inherit; border-radius: 12px; }
a.brand:hover .name { color: #fff; }
.btn.primary, .nav a.signup { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), background-color .2s; }
.btn.primary:hover, .nav a.signup:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px var(--accent-muted); }
.app-intro { padding: 28px 0 8px; max-width: 760px; }
.app-intro .ai-k { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--route); }
.app-intro h1 { margin: 0 0 10px; font-family: var(--f-display); font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.app-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.app-intro p a { color: var(--route); }
.app-intro .ai-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
body.member .app-intro, body.signed-in .app-intro .ai-cta [data-link="signin"] { display: none; }
@media (prefers-reduced-motion: reduce) { .btn.primary:hover, .nav a.signup:hover { transform: none; } }

/* Members' menu: one pane at a time (Today / Charts / Products + Saved), Niches and Help are their own views */
body.member[data-v]:not([data-v="today"]) :is(#m-head, #m-today, #foryou) { display: none !important; }
body.member[data-v]:not([data-v="charts"]) :is(#live-insights, #signals) { display: none !important; }
body.member[data-v]:not([data-v="products"]) #live { display: none !important; }
body.member #view-dash { min-height: 60vh; }
/* the menu in the dispatch rail style: IBM Plex Mono, active item in --route */
.appnav a, .appnav button { font-family: var(--f-mono); letter-spacing: .03em; }
.appnav a.on { color: var(--route); background: rgba(127,211,230,.08); box-shadow: inset 2px 0 0 var(--route); }
.appnav a.on .an-i { color: var(--route); }
.appnav .an-brand { font-family: var(--f-display) !important; letter-spacing: -.01em; }
.appnav .an-home { margin-bottom: 10px; color: var(--canvas); background: var(--route); font-weight: 600; }
.appnav .an-home:hover { color: var(--canvas); background: #a4e2ef; }
@media (min-width: 1024px) {
  .appnav { background: rgba(12,21,32,.97); }
  .appnav a, .appnav button { font-size: 13px; }
  .an-who b { font-family: var(--f-body); }
  .appnav .an-acc { display: none; }
}
@media (max-width: 1023px) {
  .appnav { background: rgba(12,21,32,.97); }
  .appnav a { font-size: 10px; padding: 6px 2px; min-width: 0; letter-spacing: 0; }
  .appnav a.on { background: none; border-radius: 0; box-shadow: inset 0 2px 0 var(--route); }
  body.member .wrap { padding-bottom: 84px; }
}
/* Niches: coming soon */
.nz-soon { margin: 24px 0; padding: 36px 28px; max-width: 640px; }
.nz-soon .nzs-k { margin: 0 0 10px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--route); }
.nz-soon h2 { margin: 0 0 10px; font-family: var(--f-display); font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }
.nz-soon p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Free preview (no plan): locked rows, chart covers, dispatch on Today. Server sends only the preview slice (src/preview.js). */
body.member[data-v]:not([data-v="today"]) #pv-today { display: none !important; }
body.preview .live-signin { margin-top: 16px; }
.lk-row { cursor: pointer; }
.lk-row .lk-n { color: var(--ink); font-weight: 600; }
.lk-row .lk-t { font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lk-row .star.lk { color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lk-thumb { background: linear-gradient(135deg, var(--surface-2), var(--line)); filter: blur(2px); }
.lk-b { filter: blur(5px); user-select: none; color: var(--muted); }
.lk-i { vertical-align: -2px; }
.pv-end td, .live.no-ebay .pv-end td:last-child { display: table-cell; padding: 0 !important; border: 0 !important; }
@media (max-width: 760px) { .live .pv-end td, .live.no-ebay .pv-end td:last-child { display: block; } }
.pv-endbox { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; padding: 18px 20px;
  border: 1px solid var(--accent-muted); border-radius: 14px; background: linear-gradient(180deg, rgba(255,91,58,.08), rgba(19,34,51,.6)); }
.pv-endbox p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.pv-endbox b { font-family: var(--f-mono); letter-spacing: .02em; }
.chart-box { position: relative; }
.pv-cover { position: absolute; inset: 0 auto 28px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 14px 16px;
  border-radius: 10px; background: rgba(12,21,32,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); border-right: 1px dashed var(--accent-muted); }
.pv-cover p, .pv-over p { margin: 0; max-width: 300px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.pv-cover b, .pv-over b { font-family: var(--f-mono); font-weight: 500; letter-spacing: .03em; }
.pv-cover.pv-cover-tag { inset: auto auto auto 8px; top: 8px; flex-direction: row; align-items: center; background: rgba(12,21,32,.85); border: 1px solid var(--accent-muted); }
.pv-cover .btn, .pv-over .btn, .pv-endbox .btn { white-space: nowrap; }
.pv-lkcats { position: relative; list-style: none; min-height: 120px; }
.pv-fake { display: grid; gap: 8px; padding: 8px; filter: blur(4px); opacity: .55; }
.pv-fake .bar { display: block; height: 6px; border-radius: 4px; background: var(--line); }
.pv-fake .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.pv-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.pv-sigmore { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font: 500 12px/1.3 var(--f-mono); letter-spacing: .03em; }
.pv-sigmore .btn { padding: 5px 10px; font-size: 12px; }
#live-empty .btn { margin-top: 12px; }
.pv-today { margin: 16px 0; padding: 22px 24px; max-width: 820px; }
.pv-today .pvt-k { margin: 0 0 8px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--route); }
.pv-today h2 { margin: 0 0 12px; font-family: var(--f-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.pv-today h3 { margin: 18px 0 8px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pv-today p { color: var(--ink); line-height: 1.65; }
.pv-today .pvt-s { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pv-today .pvt-sign { font-style: italic; color: var(--muted); }
.pv-today .pvt-by { font: 500 12px/1.5 var(--f-mono); color: var(--muted); }
.pv-today a { color: var(--route); }
@media (max-width: 560px) { .pv-cover { padding: 10px; } .pv-cover p { font-size: 12.5px; } .pv-endbox { padding: 14px; } .pv-today { padding: 18px 16px; } }
.pv-over .btn, .pv-cover .btn { width: auto !important; align-self: flex-start; display: inline-flex; }

/* ---------- Spotting scope: the /app menu as a lens dial (public/scope.js) ---------- */
.scope { position: relative; width: 200px; height: 200px; margin: 2px auto 10px; flex: none; touch-action: pan-y; }
.scope .sc-face, .scope .sc-ret, .scope .sc-wheel { position: absolute; inset: 0; }
.scope .sc-ret svg, .scope .sc-face { width: 100%; height: 100%; display: block; overflow: visible; }
.sc-face { background: radial-gradient(circle at 50% 50%, var(--surface-2) 0 46px, rgba(19,34,51,.9) 47px 62px, transparent 63px); border-radius: 50%; }
.sc-ticks line { stroke: var(--line-strong); stroke-width: 1; }
.sc-ticks line.lg { stroke: var(--muted); stroke-width: 1.4; }
.sc-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.sc-glass { fill: none; stroke: rgba(127,211,230,.22); stroke-width: 1; }
.sc-cross { stroke: rgba(127,211,230,.35); stroke-width: 1; }
.sc-ret { pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.sc-arm { stroke: #FF5B3A; stroke-width: 2; stroke-linecap: round; }
.sc-tip { fill: #FF5B3A; }
.sc-arc { fill: none; stroke: #FF5B3A; stroke-width: 2; stroke-dasharray: 18 342; stroke-dashoffset: 9; transform: rotate(-90deg); transform-origin: 100px 100px; opacity: .9; }
.sc-lens { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; margin: 0; text-align: center; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sc-lens b { font: 500 19px/1.1 var(--f-mono); color: var(--ink); letter-spacing: -.02em; }
.sc-lens span { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--route); }
.sc-wheel { pointer-events: none; transform-origin: 50% 50%; }
.appnav .sc-m { pointer-events: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-84px) rotate(calc(-1 * var(--a)));
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 5px 6px; border-radius: 6px; font: 500 10.5px/1.1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(10,18,29,.85); white-space: nowrap; }
.appnav .sc-m small { font-size: 8.5px; letter-spacing: .1em; color: var(--faint); }
.appnav .sc-m em { display: none; }
.appnav .sc-m:hover { color: var(--ink); background: var(--surface-2); }
.appnav .sc-m.on { color: var(--ink); background: rgba(255,91,58,.14); box-shadow: inset 0 0 0 1px rgba(255,91,58,.55); }
.appnav .sc-m:focus-visible { outline: 2px solid #FF5B3A; outline-offset: 2px; }
@media (min-width: 1024px) { .appnav .an-brand { padding-bottom: 8px !important; } }
/* phone: a half-dial at the bottom in place of the tab bar */
@media (max-width: 1023.98px) {
  body.member .appnav { height: calc(96px + env(safe-area-inset-bottom, 0px)); padding: 0; display: block; overflow: hidden; }
  body.member .wrap { padding-bottom: 120px; }
  body.member .fab { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .scope { position: absolute; inset: 0; width: auto; height: auto; margin: 0; overflow: hidden; }
  .scope .sc-face { display: none; }
  .scope .sc-wheel { inset: auto; left: 50%; top: 14px; width: 360px; height: 360px; margin-left: -180px; border-radius: 50%; }
  .scope .sc-wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -.5deg, rgba(148,167,186,.5) 0 .6deg, transparent .6deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 0 172px, #000 173px 180px); mask: radial-gradient(circle, transparent 0 172px, #000 173px 180px); }
  .appnav .sc-m { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-148px); min-height: 40px; transition: opacity .3s; min-width: 64px; justify-content: center; padding: 6px 10px; font-size: 11px; background: none; }
  .appnav .sc-m.on { background: none; box-shadow: none; color: var(--ink); }
  .scope .sc-ret { inset: 0 auto auto 50%; width: 14px; height: 10px; margin-left: -7px; transform: none !important; }
  .scope .sc-ret svg { display: none; }
  .scope .sc-ret::before { content: ""; position: absolute; inset: 0; background: #FF5B3A; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .scope .sc-lens { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: auto; flex-direction: row; gap: 6px; align-items: baseline; }
  .scope .sc-lens b { font-size: 15px; }
  body.member .appnav .an-acc { position: absolute; right: 6px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 2; flex: none; width: 56px; }
}
/* Products: List / Scope switch and the radar */
.lmode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin: 10px 0 0; gap: 2px; }
.lmode button { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 32px; }
.lmode button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lmode button:focus-visible { outline: 2px solid #FF5B3A; outline-offset: 2px; }
.radar { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 1fr); gap: 28px; align-items: center; padding: 18px 0 8px; }
.radar[hidden] { display: none; }
.rd-fig { position: relative; margin: 0; }
.rd-svg { width: 100%; height: auto; display: block; overflow: visible; }
.rd-bg { stroke: var(--line-strong); stroke-width: 1; }
.rd-ring { fill: none; stroke: rgba(127,211,230,.14); stroke-width: 1; stroke-dasharray: 2 4; }
.rd-spoke { stroke: rgba(148,167,186,.12); stroke-width: 1; }
.rd-cat { font: 500 9.5px var(--f-mono); fill: var(--faint); letter-spacing: .04em; dominant-baseline: middle; }
.rd-sweep { transform-origin: 200px 200px; animation: rd-spin 5s linear infinite; pointer-events: none; }
.rd-sweep line { stroke: #7FD3E6; stroke-width: 1.5; opacity: .8; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-hub { fill: var(--route); }
.rd-b { fill: #7FD3E6; stroke: rgba(10,18,29,.9); stroke-width: 1.2; cursor: pointer; }
.rd-b.emerging, .rd-b.rising { fill: #FF5B3A; }
.rd-b.crowded, .rd-b.declining { fill: #94A7BA; }
.rd-b:hover, .rd-b:focus-visible { r: 7px; outline: none; stroke: #fff; stroke-width: 1.6; }
.rd-b.lk { fill: rgba(148,167,186,.38); stroke: none; }
.rd-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; width: max-content; max-width: 240px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 3; }
.rd-tip[hidden] { display: none; }
.rd-tip b { font-size: 13px; line-height: 1.3; color: var(--ink); }
.rd-tip span { font: 500 11px/1.4 var(--f-mono); color: var(--muted); }
.rd-tip .rd-m { color: var(--good); }
.rd-k { margin: 0 0 6px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--route); }
.rd-cap { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.rd-key { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font: 500 12px var(--f-mono); color: var(--muted); }
.rd-key li { display: flex; align-items: center; gap: 8px; }
.rk { width: 9px; height: 9px; border-radius: 50%; background: #7FD3E6; }
.rk.e, .rk.r { background: #FF5B3A; }
.rk.c { background: #94A7BA; }
.rd-pv { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rd-pv[hidden] { display: none; }
.rd-pv b { color: var(--ink); }
@media (max-width: 760px) { .radar { grid-template-columns: 1fr; gap: 14px; } .rd-cat { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .rd-sweep { animation: none; } }
@media (max-width: 1023.98px) { .appnav .sc-m.far { opacity: 0; pointer-events: none; } }
