/* Pulse. Swipe-first daily briefing for Epic Signal. */
:root {
  --bg: #08080a;
  --bg-2: #0f0f13;
  --surface: #16161c;
  --surface-2: #1e1e26;
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);
  --ink: #f1f1f4;
  --ink-2: #bdbdc8;
  --ink-3: #82828f;
  --signal: #ff5a3c;
  --signal-2: #ff8a73;
  --ai: #a493ff;
  --markets: #3ddc97;
  --down: #ff6464;
  --bigtech: #4cc9f0;
  --cloudflare: #f6821f;
  --spy: #fbbf24;
  --accent: var(--signal);
  --top-ui: 160px;
  --bottom-ui: 118px;
  --player-h: 0px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2,.9,.3,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; gap: 36px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill, svg path.fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

.lane-ai { --accent: var(--ai); --grad: linear-gradient(150deg, #43307f 0%, #1b1440 45%, #0a0912 100%); }
.lane-markets { --accent: var(--markets); --grad: linear-gradient(150deg, #0d5a41 0%, #082a1f 45%, #050c09 100%); }
.lane-bigtech { --accent: var(--bigtech); --grad: linear-gradient(150deg, #0d5576 0%, #0a2433 45%, #060b10 100%); }
.lane-cloudflare { --accent: var(--cloudflare); --grad: linear-gradient(150deg, #7a3e08, #1a0f04); }
.lane-spy { --accent: var(--spy); --grad: linear-gradient(150deg, #6b4e07, #181203); }

/* ---------- desktop backdrop and rails ---------- */
.backdrop { position: fixed; inset: -60px; background: var(--bg) center/cover no-repeat; filter: blur(60px) saturate(1.4) brightness(.5); transform: scale(1.1); transition: background-image .6s, opacity .6s; z-index: 0; }
.backdrop.neutral { background-image: radial-gradient(60% 50% at 50% 30%, rgba(255,90,60,.25), transparent 70%) !important; filter: blur(30px); }
.backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.7) 90%); }
.rail { position: relative; z-index: 1; width: 250px; flex-shrink: 0; display: none; }
.rail-brand { display: flex; align-items: center; gap: 12px; }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,90,60,.6); animation: pulse 2s infinite; flex-shrink: 0; }
.pulse-dot.big { width: 16px; height: 16px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,60,.55); } 70% { box-shadow: 0 0 0 14px rgba(255,90,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); } }
.rail-name { font-family: Fraunces, serif; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.rail-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.rail-pitch { font-family: Newsreader, serif; font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 26px 0; }
.keys { margin: 0; display: grid; gap: 10px; }
.keys div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.keys dt { width: 74px; display: flex; gap: 4px; }
.keys dd { margin: 0; }
kbd { font-family: Inter, sans-serif; font-size: 11px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink); }
.rail-built { margin-top: 28px; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.queue-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.queue-head h3 { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.queue-head span { font-size: 12px; color: var(--ink-3); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 78vh; overflow: auto; scrollbar-width: none; }
.queue li { display: flex; gap: 11px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; transition: background .2s, transform .2s; position: relative; }
.queue li:hover { background: rgba(255,255,255,.06); }
.queue li.cur { background: rgba(255,255,255,.10); }
.queue li.cur::before { content: ''; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--signal); }
.q-thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--grad) center/cover; flex-shrink: 0; display: grid; place-items: center; font-family: Fraunces, serif; font-weight: 800; font-size: 11px; color: rgba(255,255,255,.8); }
.queue li.read .q-thumb { opacity: .55; }
.q-txt { min-width: 0; display: grid; gap: 2px; }
.q-lane { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.q-hl { font-size: 13px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.queue li.read .q-hl { color: var(--ink-3); }
.q-check { margin-left: auto; opacity: 0; color: var(--markets); }
.q-check svg { width: 18px; height: 18px; }
.q-check circle { display: none; }
.queue li.read .q-check { opacity: 1; }
.q-empty { color: var(--ink-3); font-size: 13px; }

.frame-wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; height: 100%; width: 100%; }
.side-nav { display: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line); place-items: center; transition: background .2s, transform .2s, opacity .2s; backdrop-filter: blur(10px); }
.side-nav:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.side-nav:disabled { opacity: .25; pointer-events: none; }

/* ---------- the phone frame ---------- */
.phone { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; background: #000; container-type: size; isolation: isolate; user-select: none; -webkit-user-select: none; }
.phone.listening { --player-h: 74px; }
.phone.catchup { --top-ui: 196px; }
@media (min-width: 720px) {
  .frame-wrap { width: auto; height: auto; }
  .phone { width: min(440px, 92vw); height: min(900px, calc(100dvh - 48px)); border-radius: 30px; box-shadow: 0 40px 120px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); }
  .side-nav { display: grid; }
  .phone { --safe-t: 0px; --safe-b: 0px; }
}
@media (min-width: 1180px) { .rail { display: block; } }

.stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 50%; touch-action: none; }
.boot { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--ink-3); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.boot.err { text-transform: none; letter-spacing: 0; padding: 40px; text-align: center; }

/* ---------- cards ---------- */
.card { position: absolute; inset: 0; overflow: hidden; background: var(--bg); backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
.card.enter { animation: cardIn .5s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: scale(1.04); } }
.cube-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 20; }
.media { position: absolute; left: 0; right: 0; top: 0; height: 58%; background: var(--grad, #111); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.credit { position: absolute; right: 12px; top: calc(var(--top-ui) + var(--safe-t) + 4px); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); background: rgba(0,0,0,.35); padding: 3px 6px; border-radius: 4px; backdrop-filter: blur(6px); }
.shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 22%),
  linear-gradient(0deg, var(--bg) 42%, rgba(8,8,10,.85) 54%, rgba(8,8,10,0) 72%); }
.typo { position: absolute; inset: 0; background: var(--grad); overflow: hidden; display: grid; place-items: center; }
.typo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,.14), transparent 50%), repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.typo::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: 4%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .35; filter: blur(10px); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-30px, 30px) scale(1.15); } }
.typo-big { position: relative; z-index: 1; font-family: Fraunces, serif; font-style: italic; font-weight: 800; font-size: clamp(64px, 17cqw, 120px); letter-spacing: -.04em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.7); transform: rotate(-6deg) translateY(-6%); max-width: 92%; text-align: center; word-break: break-word; }
.typo-big.ghost { position: absolute; -webkit-text-stroke: 0; color: var(--accent); opacity: .18; transform: rotate(-6deg) translate(10px, calc(-6% + 10px)); filter: blur(1px); }
.typo-sub { position: absolute; z-index: 1; top: calc(var(--top-ui) + var(--safe-t) + 14px); left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45); }

.content { position: absolute; left: 20px; right: 20px; bottom: calc(var(--bottom-ui) + var(--player-h) + var(--safe-b)); z-index: 2; transition: bottom .35s var(--ease); }
.content.center { top: calc(var(--top-ui) + var(--safe-t)); bottom: calc(24px + var(--player-h) + var(--safe-b)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.lane-tag { color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.new-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--signal); color: #fff; padding: 3px 7px; border-radius: 99px; }
.from { color: var(--ink-3); }
.hl { font-family: Fraunces, serif; font-weight: 600; font-size: clamp(24px, 3.75cqh, 36px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 16px; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.know-h { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.know ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.know li { position: relative; padding-left: 20px; font-family: Newsreader, serif; font-size: clamp(14.5px, 1.95cqh, 17.5px); line-height: 1.38; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s, transform .3s; }
.know li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.speaking { color: var(--ink) !important; }
li.speaking { transform: translateX(4px); }
li.speaking::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.hl.speaking { text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.tickers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tk { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background .2s, transform .15s; }
.tk:hover { background: rgba(255,255,255,.14); }
.tk:active { transform: scale(.94); }

.bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--player-h) + var(--safe-b)); padding: 0 16px 10px; z-index: 3; transition: bottom .35s var(--ease); }

/* ---------- cover card ---------- */
.cover { background: radial-gradient(100% 60% at 50% 0%, #20141a, var(--bg)); }
.cover .content { bottom: calc(52px + var(--player-h) + var(--safe-b)); }
.collage { position: absolute; left: 0; right: 0; top: 0; height: 52%; }
.cl { position: absolute; background: center/cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); opacity: .9; }
.c1 .cl0, .c0 .cl0 { inset: 0; border-radius: 0; }
.c2 .cl0 { left: -6%; top: 14%; width: 62%; height: 62%; transform: rotate(-7deg); animation: float1 8s ease-in-out infinite alternate; }
.c2 .cl1 { right: -6%; top: 22%; width: 58%; height: 58%; transform: rotate(6deg); animation: float2 9s ease-in-out infinite alternate; }
.c3 .cl0 { left: -8%; top: 16%; width: 54%; height: 54%; transform: rotate(-9deg); animation: float1 8s ease-in-out infinite alternate; }
.c3 .cl1 { right: -10%; top: 12%; width: 56%; height: 56%; transform: rotate(8deg); animation: float2 9s ease-in-out infinite alternate; }
.c3 .cl2 { left: 24%; top: 30%; width: 52%; height: 52%; transform: rotate(-1deg); z-index: 2; animation: float3 10s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: rotate(-4deg) translateY(-10px); } }
@keyframes float2 { to { transform: rotate(9deg) translateY(8px); } }
@keyframes float3 { to { transform: rotate(2deg) translateY(-6px) scale(1.02); } }
.cover-glow { position: absolute; width: 120%; height: 60%; left: -10%; top: 30%; background: radial-gradient(closest-side, rgba(255,90,60,.28), transparent); filter: blur(20px); }
.cover.slot-evening .cover-glow { background: radial-gradient(closest-side, rgba(120,100,255,.3), transparent); }
.cover.slot-afternoon .cover-glow { background: radial-gradient(closest-side, rgba(255,190,80,.26), transparent); }
.cover .shade { background: linear-gradient(180deg, rgba(8,8,10,.8) 0%, rgba(8,8,10,0) 22%), linear-gradient(0deg, var(--bg) 45%, rgba(8,8,10,.6) 62%, rgba(8,8,10,0) 80%); }
.mast { font-family: Inter, sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .32em; color: var(--signal); margin-bottom: 8px; }
.slot-big { display: flex; align-items: baseline; gap: 10px; font-family: Fraunces, serif; font-size: clamp(44px, 7cqh, 64px); line-height: .95; letter-spacing: -.03em; }
.slot-big em { font-weight: 700; }
.slot-big > span:last-child { font-weight: 400; color: var(--ink-3); font-size: .5em; letter-spacing: 0; }
.slot-ico { align-self: center; color: var(--signal-2); }
.slot-ico svg { width: 30px; height: 30px; }
.cover-date { font-size: 14px; color: var(--ink-2); margin: 10px 0 4px; font-weight: 500; }
.tagline { font-family: Newsreader, serif; font-style: italic; font-size: 16px; color: var(--ink-3); margin: 0 0 14px; }
.cover-stats { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.cover-stats b { color: var(--ink); font-size: 15px; }
.lane-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ld { font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); }
.ld i, .lane-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cover-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.content.center .cover-cta { justify-content: center; }
.btn { height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.95); }
.btn.primary { background: var(--ink); color: #0a0a0c; }
.btn.ghost { background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.btn b { background: var(--signal); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.btn.primary b { background: var(--signal); }
.hint { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hint-tap { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-3); position: relative; }
.hint-tap::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ink-3); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- empty and finish ---------- */
.empty { background: radial-gradient(80% 50% at 50% 40%, #17171e, var(--bg)); }
.empty h2, .finish h2 { font-family: Fraunces, serif; font-weight: 600; font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 8px; text-wrap: balance; }
.empty p { color: var(--ink-2); font-family: Newsreader, serif; font-size: 17px; margin: 0 0 22px; max-width: 300px; }
.empty-glyph svg { width: 54px; height: 54px; color: var(--ink-3); stroke-width: 1.4; }
.finish { background: radial-gradient(90% 55% at 50% 30%, #0f2a20, var(--bg)); }
.finish-glow { position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: -30%; background: conic-gradient(from 0deg, transparent, rgba(61,220,151,.18), transparent 30%, rgba(255,90,60,.14), transparent 60%); animation: spin 18s linear infinite; filter: blur(30px); }
@keyframes spin { to { transform: rotate(360deg); } }
.done-check svg { width: 76px; height: 76px; stroke: var(--markets); stroke-width: 2.6; }
.done-check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .7s .1s var(--ease) forwards; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .65s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-check { animation: popIn .6s var(--ease); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
.done-sub { font-family: Newsreader, serif; font-size: 17px; color: var(--ink-2); margin: 0 0 22px; max-width: 320px; line-height: 1.4; }
.stats { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; width: 100%; margin-bottom: 10px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; animation: rise .5s var(--ease) both; }
.stat.week { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.stat b { font-family: Fraunces, serif; font-size: 32px; font-weight: 700; line-height: 1; }
.stat > span:last-child { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.flame { color: #ff9a3c; }
.flame svg { width: 28px; height: 28px; animation: flicker 1.4s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(1.1) rotate(4deg); } }
.bars7 { display: flex; gap: 6px; height: 46px; align-items: flex-end; margin-bottom: 6px; }
.b7 { width: 12px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.b7 i { width: 100%; height: max(4px, calc(var(--h) * .7)); border-radius: 4px; background: rgba(255,255,255,.2); animation: grow .6s .2s var(--ease) both; transform-origin: bottom; }
.b7.today i { background: var(--markets); }
.b7 em { font-style: normal; font-size: 9px; color: var(--ink-3); }
@keyframes grow { from { transform: scaleY(0); } }
.next-ed { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; margin-bottom: 18px; animation: rise .5s .2s var(--ease) both; }
.ne-ico { color: var(--signal-2); }
.ne-ico svg { width: 24px; height: 24px; }
.ne-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ne-v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.ne-in { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--markets); background: rgba(61,220,151,.12); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.finish .cover-cta { animation: rise .5s .3s var(--ease) both; }

/* ---------- top chrome ---------- */
.chrome { position: absolute; left: 0; right: 0; top: 0; z-index: 30; padding: calc(8px + var(--safe-t)) 10px 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.chrome > * { pointer-events: auto; }
.phone.holding .chrome, .phone.holding .bottom, .phone.holding .mode-banner { opacity: 0; }
.phone.holding .chrome { transform: translateY(-8px); }
.bottom, .mode-banner { transition: opacity .25s, bottom .35s var(--ease); }
.bars { display: flex; gap: 4px; height: 3px; margin: 0 2px 10px; transition: opacity .3s; }
.bars.done { opacity: .35; }
.bar { flex: 1; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); border-radius: 3px; }
.bar.full i { transform: scaleX(1); }
.phone.autoplay-off .bar.cur i { background: rgba(255,255,255,.55); }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ed-pill { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; min-width: 0; transition: background .2s; }
.ed-pill:hover { background: rgba(255,255,255,.08); }
.ed-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--signal), #ffb36b, var(--ai), var(--signal)); position: relative; flex-shrink: 0; }
.ed-icon::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #111; }
.ed-icon svg { position: relative; width: 17px; height: 17px; color: #ffd2c4; }
.ed-text { display: grid; text-align: left; min-width: 0; line-height: 1.15; }
.ed-kicker { white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ed-label { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.chev { width: 16px; height: 16px; opacity: .7; }
.top-actions { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; position: relative; transition: background .2s, color .2s; filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn.on { color: var(--signal); background: rgba(255,90,60,.16); }
.icon-btn .i-play { display: none; }
.icon-btn.paused .i-play { display: block; }
.icon-btn.paused .i-pause { display: none; }
.icon-btn.paused { color: var(--spy); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--signal); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }
.catch-pill { height: 32px; padding: 0 5px 0 11px; border-radius: 99px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); margin-right: 2px; transition: background .2s; }
.catch-ico { width: 15px; height: 15px; margin-right: -3px; }
.catch-ico path { fill: currentColor; stroke: none; }
@container (max-width: 470px) { .catch-txt { display: none; } .catch-pill { padding-left: 9px; } .icon-btn { width: 35px; } .ed-kicker { font-size: 9.5px; } }
.catch-pill b { background: var(--signal); min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; padding: 0 6px; }
.catch-pill.empty b { background: rgba(255,255,255,.18); }
.catch-pill.on { background: var(--ink); color: #0a0a0c; }
.catch-pill.on b { color: #fff; }
.lanes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 4px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.lanes::-webkit-scrollbar { display: none; }
.lane-chip { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.lane-chip span { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lane-chip.all i { background: var(--ink); }
.lane-chip.zero { opacity: .55; }
.lane-chip:active { transform: scale(.94); }
.lane-chip.on { background: var(--ink); color: #0a0a0c; border-color: var(--ink); }
.lane-chip.on span { color: #55555f; }
.lane-chip.on i { background: var(--accent); box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.lane-chip.all.on i { background: var(--signal); }

.mode-banner { position: absolute; z-index: 29; left: 50%; transform: translateX(-50%); top: calc(164px + var(--safe-t)); display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 5px 5px 5px 12px; border-radius: 99px; background: rgba(255,90,60,.18); border: 1px solid rgba(255,90,60,.4); backdrop-filter: blur(12px); white-space: nowrap; animation: dropIn .4s var(--ease); }
@keyframes dropIn { from { transform: translate(-50%, -10px); opacity: 0; } }
.mb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 2s infinite; }
.mode-banner button { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); }

/* ---------- listen player ---------- */
.player { position: absolute; z-index: 35; left: 10px; right: 10px; bottom: calc(8px + var(--safe-b)); height: 60px; border-radius: 18px; background: rgba(28,28,36,.86); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; overflow: hidden; }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 20px; width: 22px; flex-shrink: 0; margin-right: 6px; }
.eq i { flex: 1; background: var(--signal); border-radius: 2px; height: 30%; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
@keyframes eq { to { height: 100%; } }
.player.paused .eq i { animation-play-state: paused; opacity: .5; }
.pl-text { flex: 1; min-width: 0; }
.pl-kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-2); }
.pl-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.pl-title span { display: inline-block; }
.pl-title span.marquee { animation: marquee 14s linear infinite; padding-right: 40px; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.pl-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; transition: background .2s; }
.pl-btn:hover { background: rgba(255,255,255,.1); }
.pl-btn svg { width: 17px; height: 17px; }
.pl-btn.big { width: 40px; height: 40px; background: var(--ink); color: #0a0a0c; }
.pl-btn.big .i-play { display: none; }
.player.paused .pl-btn.big .i-play { display: block; }
.player.paused .pl-btn.big .i-pause { display: none; }
.pl-rate { font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,.1); min-width: 38px; }
.pl-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.pl-prog span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }

/* ---------- scrim, sheets, trays ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.scrim.dragging { transition: none; }
.sheet, .tray { position: absolute; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(100% - 28px - var(--safe-t)); background: var(--bg-2); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6); transform: translateY(101%); transition: transform .48s cubic-bezier(.2,.95,.25,1); display: flex; flex-direction: column; overflow: hidden; touch-action: pan-y; }
.sheet.open, .tray.open { transform: translateY(0); }
.sheet.dragging, .tray.dragging { transition: none; }
.tray { height: auto; max-height: 82%; z-index: 55; }
.sheet-head { position: relative; flex-shrink: 0; height: 36px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.tray .sheet-head { height: auto; padding: 22px 20px 12px; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line-soft); }
.grip { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: rgba(255,255,255,.25); }
.sheet-x { position: absolute; right: 10px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); z-index: 2; }
.tray .sheet-x { position: static; flex-shrink: 0; }
.sheet-x svg { width: 18px; height: 18px; }
.tray-title h3 { margin: 0; font-family: Fraunces, serif; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.tray-title p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sheet-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.sheet .sheet-head { position: absolute; left: 0; right: 0; top: 0; z-index: 3; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent); }
.sh-media { position: relative; height: 240px; background: var(--grad); overflow: hidden; }
.sh-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-media .credit { top: auto; bottom: 10px; }
.sh-media .typo-sub { top: auto; bottom: 14px; }
.sh-body { padding: 18px 22px 40px; }
.sh-body h1 { font-family: Fraunces, serif; font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 12px; text-wrap: balance; }
.dek { font-family: Newsreader, serif; font-size: 19px; line-height: 1.4; color: var(--ink-2); margin: 0 0 12px; }
.byline { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.sh-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 8px; }
.sh-votes .pill { justify-content: center; height: 40px; transition: background .2s, border-color .2s, color .2s; }
.sh-actions { display: flex; gap: 8px; margin: 0 0 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 600; width: auto; }
.pill svg { width: 16px; height: 16px; }
.save-btn.pill { width: auto; }
.know.box { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 18px; padding: 16px 16px 14px; }
.know.box li { -webkit-line-clamp: unset; color: var(--ink); }
.prose { font-family: Newsreader, serif; font-size: 19px; line-height: 1.62; color: #dcdce2; margin-top: 22px; }
.prose p { margin: 0 0 1.05em; }
.prose h3 { font-family: Fraunces, serif; font-size: 21px; font-weight: 600; margin: 1.5em 0 .5em; color: var(--ink); }
.prose a { color: var(--signal-2); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose code { font-size: .85em; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; }
.context { margin: 10px 0 24px; padding: 16px; border-radius: 16px; background: var(--surface); border-left: 3px solid var(--accent); font-family: Newsreader, serif; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.context p:last-child { margin-bottom: 0; }
.ctx-h, .src-h { font-family: Inter, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.sources { margin: 26px 0; display: grid; gap: 6px; }
.sources a { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); transition: background .2s; }
.sources a:hover { background: var(--surface-2); }
.sources svg { grid-row: span 2; align-self: center; width: 16px; height: 16px; color: var(--ink-3); }
.src-o { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.src-t { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tags span { font-size: 12px; color: var(--ink-3); padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-soft); }
.next-story { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-top: 10px; transition: background .2s; }
.next-story:hover { background: var(--surface-2); }
.next-story svg { grid-row: span 2; align-self: center; transform: rotate(90deg); }
.ns-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-2); }
.ns-h { font-family: Fraunces, serif; font-size: 17px; line-height: 1.25; margin-top: 4px; }

.list { list-style: none; margin: 0; padding: 8px 12px 24px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.row:hover { background: rgba(255,255,255,.05); }
.r-thumb { width: 58px; height: 58px; border-radius: 12px; background: var(--grad) center/cover; flex-shrink: 0; }
.r-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.r-lane { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.r-hl { font-family: Fraunces, serif; font-size: 16px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-sub { font-size: 11.5px; color: var(--ink-3); }
.r-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); flex-shrink: 0; }
.r-x:hover { background: rgba(255,100,100,.14); color: var(--down); }
.tray-empty { text-align: center; padding: 34px 30px 50px; color: var(--ink-3); }
.tray-empty h4 { font-family: Fraunces, serif; font-size: 22px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.tray-empty p { font-family: Newsreader, serif; font-size: 16px; margin: 0 auto; max-width: 280px; line-height: 1.45; }
.te-ico svg { width: 40px; height: 40px; stroke-width: 1.4; }
.ed-group { padding: 6px 12px; }
.eg-h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 6px; position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.ed-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-align: left; transition: background .2s, opacity .2s; }
.ed-row:hover { background: rgba(255,255,255,.05); }
.ed-row.cur { background: rgba(255,90,60,.1); }
.ed-row.loading { opacity: .5; }
.er-ring { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--markets) calc(var(--f) * 360deg), rgba(255,255,255,.1) 0); position: relative; }
.er-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-2); }
.er-ico { position: relative; color: var(--ink-2); display: grid; }
.er-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.er-slot { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ed-row.cur .er-slot { color: var(--signal-2); }
.er-hl { font-family: Fraunces, serif; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.er-done svg { width: 22px; height: 22px; color: var(--markets); }
.er-done circle { display: none; }
.more { display: block; margin: 8px auto 26px; padding: 10px 18px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 600; }

/* ---------- brief length switch ---------- */
.len { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 9px 2px 0; padding: 3px; border-radius: 99px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); }
.len button { height: 28px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .25s, color .25s; }
.len button span { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); transition: color .25s; }
.len button.on { background: var(--ink); color: #0a0a0c; }
.len button.on span { color: #55555f; }
.phone.deep #btnPause { display: none; }

/* ---------- story card pieces ---------- */
.sl-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: -2px 0 10px; padding: 5px 10px 5px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: background .2s, transform .15s; }
.sl-tag svg { width: 14px; height: 14px; color: var(--accent); }
.sl-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-tag:hover { background: rgba(255,255,255,.14); }
.sl-tag:active { transform: scale(.96); }
.dek-line { margin: 0; font-family: Newsreader, serif; font-size: clamp(16px, 2.2cqh, 19px); line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.xp { animation: rise .35s var(--ease); }
.xp-lead { margin: 0 0 12px; font-family: Newsreader, serif; font-size: 17.5px; line-height: 1.42; color: var(--ink); }
.xp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.xp li { position: relative; padding-left: 20px; font-family: Newsreader, serif; font-size: 16px; line-height: 1.42; color: var(--ink-2); }
.xp li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.xt { color: var(--ink); font-weight: 600; }
.xd { color: var(--accent); font-family: Inter, sans-serif; font-size: .82em; font-weight: 500; }
.card.explaining .shade { background: linear-gradient(180deg, rgba(8,8,10,.9), rgba(8,8,10,.94)); }
.card.explaining .content { max-height: calc(100% - var(--top-ui) - var(--safe-t) - var(--bottom-ui) - var(--player-h) - var(--safe-b) - 10px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; }
.card.explaining .content::-webkit-scrollbar { display: none; }
.card.explaining:not(.deep) .hl { -webkit-line-clamp: 3; font-size: clamp(21px, 3cqh, 28px); }

/* Jargon underline and its definition popover. */
.term { display: inline; font: inherit; color: inherit; text-align: inherit; padding: 0; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--accent, var(--signal)); text-decoration-thickness: 1.5px; text-underline-offset: 3.5px; border-radius: 3px; transition: background .2s; user-select: none; -webkit-user-select: none; }
.term:hover, .term.on { background: color-mix(in srgb, var(--accent, var(--signal)) 22%, transparent); }
.pop { position: fixed; z-index: 300; width: min(300px, calc(100vw - 20px)); padding: 12px 14px; border-radius: 14px; background: #f1f1f4; color: #101014; box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: popUp .18s var(--ease); }
.pop::after { content: ''; position: absolute; left: var(--ax, 50%); top: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.pop.above::after { top: auto; bottom: -6px; }
.pop b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #d9401f; margin-bottom: 4px; }
.pop p { margin: 0; font-family: Newsreader, serif; font-size: 15.5px; line-height: 1.4; }
@keyframes popUp { from { opacity: 0; transform: translateY(4px) scale(.97); } }

/* ---------- action row ---------- */
.act-row { display: flex; gap: 6px; align-items: stretch; }
.act { flex: 1; min-width: 0; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); color: var(--ink-2); transition: background .2s, border-color .2s, color .2s, transform .15s; }
.act svg { width: 19px; height: 19px; }
.act span { font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.act:hover { background: rgba(255,255,255,.11); color: var(--ink); }
.act:active { transform: scale(.93); }
.vote.up.on { color: var(--markets); background: rgba(61,220,151,.14); border-color: rgba(61,220,151,.45); }
.vote.down.on { color: var(--down); background: rgba(255,100,100,.14); border-color: rgba(255,100,100,.45); }
.vote.on svg path { fill: currentColor; fill-opacity: .28; }
.act.explain.on { color: var(--spy); background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.45); }
.save-btn.on { color: var(--signal); background: rgba(255,90,60,.14); border-color: rgba(255,90,60,.4); }
.save-btn.on svg path { fill: currentColor; }
.deeper { margin: 8px auto 0; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); padding: 2px 20px; }
.chev-up { animation: nudge 1.6s ease-in-out infinite; display: grid; }
@keyframes nudge { 0%, 100% { transform: translateY(2px); opacity: .6; } 50% { transform: translateY(-4px); opacity: 1; } }
.pager { margin-top: 8px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.pager button { width: 56px; height: 34px; display: grid; place-items: center; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line-soft); color: var(--ink); transition: background .2s, transform .15s; }
.pager button:hover { background: rgba(255,255,255,.14); }
.pager button:active { transform: scale(.93); }

/* ---------- deep dive card ---------- */
.card.deep { background: var(--bg); }
.dd-bg { position: absolute; inset: 0; background: var(--grad); opacity: .5; }
.dd-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.9) 38%, var(--bg) 70%); }
.dd-scroll { position: absolute; left: 0; right: 0; top: calc(var(--top-ui) + var(--safe-t)); bottom: calc(var(--bottom-ui) + var(--player-h) + var(--safe-b)); padding: 14px 20px 26px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; z-index: 2; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); transition: bottom .35s var(--ease); }
.dd-scroll .hl { -webkit-line-clamp: unset; display: block; font-size: clamp(25px, 3.6cqh, 32px); }
.dd-scroll .know { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 18px; padding: 15px 16px 14px; }
.dd-scroll .know li, .dd-scroll .xp li { -webkit-line-clamp: unset; display: block; color: var(--ink); font-size: 16.5px; }
.dd-scroll .xp { background: color-mix(in srgb, var(--spy) 7%, var(--surface)); border: 1px solid rgba(251,191,36,.28); border-radius: 18px; padding: 15px 16px 14px; }
.dd-scroll .prose { font-size: 18px; margin-top: 20px; }
.dd-scroll .context { margin: 6px 0 22px; }
.dd-scroll .sources { margin: 22px 0 10px; }
.dd-end { margin-top: 20px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.dd-end::before, .dd-end::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 10px; }

/* ---------- special cards: markets, model drop, coming up ---------- */
.special { background: radial-gradient(110% 60% at 50% 0%, #17171f, var(--bg)); }
.sp-glow { position: absolute; width: 130%; height: 55%; left: -15%; top: -8%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent); filter: blur(24px); opacity: .8; }
.content.sp { top: calc(var(--top-ui) + var(--safe-t) + 8px); bottom: calc(22px + var(--player-h) + var(--safe-b)); display: flex; flex-direction: column; justify-content: center; }
.sp-k { font-size: 11px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sp-h { font-family: Fraunces, serif; font-weight: 600; font-size: clamp(27px, 4.2cqh, 36px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 6px; text-wrap: balance; }
.sp-sub { margin: 0 0 16px; font-family: Newsreader, serif; font-size: 16px; color: var(--ink-2); }
.sp-foot { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-3); }
.spark { display: block; width: 100%; height: 34px; stroke-width: 1.8; overflow: visible; }
.spark path { vector-effect: non-scaling-stroke; }
.spark .sp-line { stroke: var(--c, var(--ink-2)); fill: none; }
.spark .sp-area { stroke: none; fill: var(--c, var(--ink-2)); opacity: .14; }
.spark .sp-flat { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.spark.up { --c: var(--markets); }
.spark.dn { --c: var(--down); }
.spark.cov { --c: var(--signal-2); height: 44px; }
.mk-list { display: grid; gap: 8px; }
.mk { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(70px, 1.1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); animation: rise .5s var(--ease) both; }
.mk:nth-child(2) { animation-delay: .06s; } .mk:nth-child(3) { animation-delay: .12s; } .mk:nth-child(4) { animation-delay: .18s; }
.mk-l { display: grid; gap: 2px; min-width: 0; }
.mk-n { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .03em; }
.mk-v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-c { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.mk-c.up { color: var(--markets); background: rgba(61,220,151,.12); }
.mk-c.dn { color: var(--down); background: rgba(255,100,100,.12); }
.md-list { display: grid; gap: 8px; }
.md { padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); animation: rise .5s var(--ease) both; }
.md:nth-child(2) { animation-delay: .07s; } .md:nth-child(3) { animation-delay: .14s; }
.md-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.md-n { font-family: Fraunces, serif; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.md-o { font-size: 12px; color: var(--ink-3); margin: 3px 0 9px; }
.mtype { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.mtype.frontier { color: var(--ai); background: rgba(164,147,255,.14); border: 1px solid rgba(164,147,255,.35); }
.mtype.open { color: var(--markets); background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.35); }
.scores { display: grid; gap: 6px; }
.sc { display: grid; grid-template-columns: 118px 1fr 38px; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-2); }
.sc-bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,.09); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: var(--w); border-radius: 7px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); animation: growX .7s .15s var(--ease) both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }
.sc b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.sc-none { font-size: 12px; color: var(--ink-3); font-style: italic; }
.coming { --accent: var(--signal-2); }
.ev-list { display: grid; gap: 8px; margin-top: 12px; }
.ev { display: flex; gap: 13px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); animation: rise .5s var(--ease) both; }
.ev:nth-child(2) { animation-delay: .07s; } .ev:nth-child(3) { animation-delay: .14s; }
.ev-d { flex-shrink: 0; width: 50px; height: 54px; border-radius: 13px; display: grid; place-content: center; text-align: center; background: rgba(255,90,60,.13); border: 1px solid rgba(255,90,60,.3); }
.ev-d b { font-family: Fraunces, serif; font-size: 22px; font-weight: 700; line-height: 1; }
.ev-d span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-2); margin-top: 2px; }
.ev-t { min-width: 0; display: grid; gap: 3px; }
.ev-n { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ev-m { font-size: 11.5px; color: var(--ink-3); }
.ev-b { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.cd { font-size: 11px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.1); padding: 3px 8px; border-radius: 99px; }
.conf { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.conf.ok { color: var(--markets); background: rgba(61,220,151,.12); }
.conf.est { color: var(--spy); background: rgba(251,191,36,.13); }

/* ---------- storyline recap ---------- */
.rc-lead { margin: 14px 20px 4px; font-family: Newsreader, serif; font-style: italic; font-size: 15.5px; color: var(--ink-3); }
.rc-list { list-style: none; margin: 0; padding: 6px 12px 24px; display: grid; gap: 2px; }
.rc { display: flex; gap: 12px; align-items: flex-start; padding: 11px 8px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.rc:hover { background: rgba(255,255,255,.05); }
.rc > svg { align-self: center; width: 16px; height: 16px; color: var(--ink-3); }
.rc-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: Fraunces, serif; font-weight: 700; font-size: 14px; background: rgba(255,90,60,.14); border: 1px solid rgba(255,90,60,.34); color: var(--signal-2); }
.rc-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rc-d { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rc-h { font-family: Fraunces, serif; font-size: 16.5px; line-height: 1.22; }
.rc-k { font-family: Newsreader, serif; font-size: 14.5px; line-height: 1.38; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- company quick look ---------- */
/* A half sheet on phones. A full height side panel on wider screens. */
.qscrim { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .35s; }
.qscrim.show { opacity: 1; pointer-events: auto; }
.quick { position: fixed; z-index: 200; left: 0; right: 0; bottom: 0; height: 56dvh; display: flex; flex-direction: column; background: var(--bg-2); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6); transform: translateY(102%); transition: transform .46s cubic-bezier(.2,.95,.25,1); overflow: hidden; touch-action: pan-y; }
.quick.open { transform: none; }
.quick.dragging { transition: none; }
.quick .quick-head { height: auto; padding: 22px 16px 12px 20px; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.quick .sheet-x { position: static; flex-shrink: 0; }
.quick-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.mono { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: Fraunces, serif; font-weight: 800; font-size: 19px; color: #0a0a0c; background: linear-gradient(140deg, var(--hue), color-mix(in srgb, var(--hue) 55%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--hue) 35%, transparent); }
.qh-t { min-width: 0; display: grid; gap: 2px; }
.qh-n { font-family: Fraunces, serif; font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh-s { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.quick-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(26px + var(--safe-b)); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.q-load { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 50px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.q-sec { padding: 16px 0; border-bottom: 1px solid var(--line-soft); animation: rise .4s var(--ease) both; }
.q-sec:last-child { border-bottom: 0; }
.q-h { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.q-stand { margin: 0; font-family: Newsreader, serif; font-size: 17px; line-height: 1.48; color: var(--ink); }
.q-asof { margin-top: 7px; font-size: 11.5px; color: var(--ink-3); }
.q-none { margin: 0; font-family: Newsreader, serif; font-size: 15.5px; color: var(--ink-3); font-style: italic; }
.q-cov { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; }
.q-cov-n { display: grid; text-align: center; }
.q-cov-n b { font-family: Fraunces, serif; font-size: 24px; font-weight: 700; line-height: 1; }
.q-cov-n span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.q-list { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 1px; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.q-row:hover { background: rgba(255,255,255,.05); }
.q-row > svg { width: 15px; height: 15px; color: var(--ink-3); }
.q-row-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.q-row-m { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.q-row-h { font-family: Fraunces, serif; font-size: 15.5px; line-height: 1.24; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick .ev { animation: none; }
.q-models { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-models li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.q-m-n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-m-d { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
@media (min-width: 720px) {
  .quick { left: auto; top: 0; bottom: 0; width: min(430px, 92vw); height: 100dvh; border-radius: 26px 0 0 26px; border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,.6); transform: translateX(104%); }
  .quick .grip { display: none; }
  .quick .quick-head { padding-top: 22px; cursor: default; }
  .qscrim { background: rgba(0,0,0,.35); }
}

/* ---------- toast ---------- */
.toast { position: absolute; z-index: 70; left: 50%; bottom: calc(var(--bottom-ui) + var(--player-h) + var(--safe-b) + 6px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(240,240,244,.96); color: #0a0a0c; font-size: 13px; font-weight: 600; box-shadow: 0 14px 40px rgba(0,0,0,.5); white-space: nowrap; transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--signal); font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.toast button:hover { background: rgba(255,90,60,.12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-height: 700px) {
  .hl { -webkit-line-clamp: 3; }
  .dek-line { -webkit-line-clamp: 3; }
}

/* ---------- live app additions: settings, late stories, sources, links ---------- */
/* A narrow phone has five header controls now, so they sit closer and the edition name still fits. */
@container (max-width: 470px) { .icon-btn { width: 31px; } .toprow { gap: 4px; } .ed-pill { padding-right: 6px; gap: 7px; } .slot-big { flex-wrap: wrap; row-gap: 4px; } .chev { display: none; } .ed-icon { width: 30px; height: 30px; } .catch-pill { padding-left: 8px; gap: 5px; } .lanes { gap: 5px; } .lane-chip { padding: 0 9px; gap: 5px; font-size: 11.5px; } .lane-chip span { font-size: 10px; } }
/* The lane row fades at its right edge only while there is more to scroll to. */
.lanes { mask-image: none; }
.lanes.more { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.icon-btn.alert::after { content: ''; position: absolute; top: 6px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.set { padding: 6px 12px calc(22px + var(--safe-b)); }
.set-h { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 14px 8px 6px; }
.set-row { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 8px; border-radius: 14px; text-align: left; color: var(--ink); text-decoration: none; transition: background .2s, opacity .2s; }
.set-row:hover { background: rgba(255,255,255,.05); }
.set-row:disabled { opacity: .5; cursor: default; }
.set-row > svg { width: 22px; height: 22px; color: var(--ink-2); }
.set-row > svg:last-child { width: 15px; height: 15px; color: var(--ink-3); }
.set-row[data-hot] { background: rgba(255,90,60,.12); }
.set-row[data-hot] > svg { color: var(--signal-2); }
.set-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.set-t b { font-size: 15px; font-weight: 600; }
.set-t small { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.set-status { margin: 6px 8px 0; font-family: Newsreader, serif; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.set-status:empty { display: none; }
.late { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-3); font-style: italic; }
.late a, .tray-empty a { color: var(--signal-2); }
.mk-src { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.mk-src span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mk-src a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; }
.mk-src a:hover { color: var(--ink); }
.sp-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 14px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sp-link:hover { background: rgba(255,255,255,.12); }
.sp-link svg { width: 16px; height: 16px; }
.rc-note { margin: 0 20px 22px; font-size: 11.5px; color: var(--ink-3); }
.tray-empty a.btn { margin-top: 18px; color: var(--ink); text-decoration: none; }
.rail-links { margin-top: 14px; display: flex; gap: 16px; font-size: 12px; }
.rail-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.rail-links a:hover { color: var(--ink); }
