/* ============================================================
   SUPERCRZY v2 — Global Styles
   Faithfully ported from Next.js globals.css
   ============================================================ */

:root {
  --bg: #0f1419;
  --bg-soft: #121a21;
  --bg-deep: #0d1318;
  --bg-gradient-end: #101820;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.11);
  --text: #e2e2e2;
  --muted: #91a0b4;
  --meta-ink: rgba(232, 237, 248, 0.68);
  --meta-ink-soft: rgba(232, 237, 248, 0.58);
  --brand: #5b6dff;
  --accent: #00e5ff;
  --brand-glow: #34ffc1;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
  color-scheme: dark;

  /* ── LOCKED LAYOUT PARAMETERS ── */
  --logo-margin: 70px;         /* Logo 左侧间距 */
  --logo-height: 52px;         /* Logo 高度 */
  --logo-pill-width: 190px;    /* Logo 实际宽度，运行时会同步 */
  --logo-nav-gap: 20px;        /* Logo 与导航间距（固定） */
  --nav-height: 52px;          /* 导航栏高度 */
  --content-margin: 0px;       /* 内容左侧边距 */
  --header-margin: 16px;       /* Header 上边距 */
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #edf2f7;
  --bg-gradient-end: #eef3f8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(23, 37, 57, 0.04);
  --panel-strong: #ffffff;
  --line: rgba(23, 37, 57, 0.14);
  --text: #142033;
  --muted: #4e5d73;
  --meta-ink: rgba(23, 37, 57, 0.78);
  --meta-ink-soft: rgba(23, 37, 57, 0.66);
  --shadow: 0 8px 28px rgba(23, 37, 57, 0.08), 0 1px 4px rgba(23, 37, 57, 0.05);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-deep: #edf2f7;
    --bg-gradient-end: #eef3f8;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-soft: rgba(23, 37, 57, 0.04);
    --panel-strong: #ffffff;
    --line: rgba(23, 37, 57, 0.14);
    --text: #142033;
    --muted: #4e5d73;
    --meta-ink: rgba(23, 37, 57, 0.78);
    --meta-ink-soft: rgba(23, 37, 57, 0.66);
    --shadow: 0 8px 28px rgba(23, 37, 57, 0.08), 0 1px 4px rgba(23, 37, 57, 0.05);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 220ms ease, color 220ms ease;
}

body.intro-active {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 300;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(15, 20, 32, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: #f5f7fb;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layered aurora atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% -10%, rgba(91, 109, 255, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(0, 229, 255, 0.12) 0%, transparent 30%),
    radial-gradient(circle at 55% 90%, rgba(145, 60, 255, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(91, 109, 255, 0.04) 0%, transparent 60%);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(180deg, #fbfcfe, #f8fafc 26%, #f7f9fc 100%);
  filter: none;
  transform: none;
}

html[data-theme="light"] body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background: none;
  filter: none;
  opacity: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.site-frame {
  position: relative;
  z-index: 1;
}

.symbol-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.84em;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.symbol-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-glow);
  box-shadow: 0 0 14px rgba(52, 255, 193, 0.68);
  animation: hero-signal-pulse 2.8s ease-in-out infinite;
}

.symbol-mark-mini {
  gap: 6px;
  font-size: 0.78em;
}

.symbol-mark-mini::after {
  width: 6px;
  height: 6px;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 48%, rgba(52, 255, 193, 0.08), transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.06), transparent 26%),
    #041717;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 0ms;
}

.site-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(52, 255, 193, 0.03) 50%, transparent 100%),
    radial-gradient(circle at 52% 50%, rgba(52, 255, 193, 0.12), transparent 10%);
  pointer-events: none;
}

.site-intro-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: min(100%, 520px);
  text-align: center;
  transform: translateY(0) scale(1);
  transition:
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-intro-sparkline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 26px;
}

.site-intro-path {
  position: relative;
  width: min(100%, 520px);
  height: 140px;
  margin: -2px 0 2px;
}

.site-intro-path svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.site-intro-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow:
    0 0 20px rgba(52, 255, 193, 0.9),
    0 0 36px rgba(52, 255, 193, 0.34),
    0 0 70px rgba(52, 255, 193, 0.16);
  animation: site-intro-pulse 1.6s ease-in-out infinite;
}

.site-intro-curve {
  stroke: rgba(52, 255, 193, 0.84);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 540;
  stroke-dashoffset: 540;
  filter: drop-shadow(0 0 9px rgba(52, 255, 193, 0.24));
}

.site-intro-orb {
  fill: rgba(52, 255, 193, 0.08);
  stroke: rgba(52, 255, 193, 0.44);
  stroke-width: 1.4;
  opacity: 0.2;
  transform-origin: 500px 58px;
  transform: scale(0.84);
}

.site-intro-orb-core {
  fill: #34ffc1;
  opacity: 0.36;
  filter: drop-shadow(0 0 12px rgba(52, 255, 193, 0.65));
  transform-origin: 500px 58px;
  transform: scale(0.7);
}

.site-intro-transfer-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow: 0 0 20px rgba(52, 255, 193, 0.92), 0 0 34px rgba(52, 255, 193, 0.3);
  transform: translate3d(0, -50%, 0) scale(0);
  opacity: 0;
}

.site-intro-handoff-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 82;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow: 0 0 22px rgba(52, 255, 193, 0.95), 0 0 40px rgba(52, 255, 193, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    left 760ms cubic-bezier(0.22, 1, 0.36, 1),
    top 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease;
}

.site-intro-trail {
  width: clamp(68px, 12vw, 118px);
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 255, 193, 0.94), rgba(52, 255, 193, 0));
  transform-origin: left center;
  animation: site-intro-trace 1.6s ease-in-out infinite;
}

.site-intro-copy {
  margin: 0;
  color: #f4fbfb;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.site-intro-note {
  margin: 0;
  color: rgba(223, 245, 245, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0ms, 720ms;
}

.site-intro.is-leaving .site-intro-inner {
  opacity: 0;
  transform: translate3d(5vw, -7vh, 0) scale(0.92);
}

.site-intro.is-hidden {
  display: none;
}

.site-intro.is-tracing .site-intro-orb {
  animation: site-intro-orb-wake 980ms cubic-bezier(0.2, 0.78, 0.2, 1) 260ms forwards;
}

.site-intro.is-tracing .site-intro-orb-core {
  animation: site-intro-orb-core 980ms cubic-bezier(0.2, 0.78, 0.2, 1) 260ms forwards;
}

.site-intro.is-handoff .site-intro-copy,
.site-intro.is-handoff .site-intro-note,
.site-intro.is-handoff .site-intro-sparkline {
  opacity: 0.42;
}

.site-intro.is-handoff .site-intro-path {
  opacity: 0.92;
}

.site-intro.is-handoff .site-intro-transfer-dot {
  opacity: 0 !important;
}

@keyframes site-intro-pulse {
  0%, 100% {
    transform: scale(0.84);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes site-intro-trace {
  0%, 100% {
    transform: scaleX(0.72);
    opacity: 0.52;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes site-intro-orb-wake {
  0% {
    opacity: 0.2;
    transform: scale(0.84);
  }
  58% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes site-intro-orb-core {
  0% {
    opacity: 0.36;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro,
  .site-intro *,
  body.intro-active .site-main {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ── Header: full-width so nav-rail reaches screen edge ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  margin-top: var(--header-margin);
  width: 100%;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-hidden {
  transform: translateY(calc(-100% - 20px));
}

/* ── Content area: constrained width, centered ── */
.site-main,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

/* Dual-capsule: shared glass pill style */
.brand-pill,
.nav-pill {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 250ms ease;
}

.site-header.scrolled .brand-pill,
.site-header.scrolled .nav-pill {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Logo pill: fixed margin from left, full round */
.brand-pill {
  border-radius: 999px;
  padding: 0 20px;
  height: var(--logo-height);
  flex-shrink: 0;
  text-decoration: none;
  transition: background 200ms ease, box-shadow 250ms ease;
  margin-left: var(--logo-margin);
}

.brand-pill:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
  animation: brand-pulse-green 3s ease-in-out infinite;
  margin-left: 8px;
  transform-origin: center;
}

@keyframes brand-pulse-green {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.92);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.38);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.86), 0 0 30px rgba(0, 255, 136, 0.24);
  }
}

.brand-wordmark {
  font-family: 'Saira Stencil One', 'Arial Black', 'Avenir Next Condensed', 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1;
  vertical-align: middle;
  background: linear-gradient(90deg, #4263ff, #36b3ff, #915cff, #ff66c8, #4263ff);
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: logoGrad 8s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
}

@keyframes logoGrad {
  0%   { background-position: 0% 0; }
  100% { background-position: 400% 0; }
}

html[data-theme="light"] .brand-wordmark {
  background: linear-gradient(90deg, #4263ff, #2155cc, #6b3fa0, #b83d7a, #4263ff);
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: logoGrad 8s linear infinite;
}

html[data-theme="light"] .brand-dot {
  background: linear-gradient(135deg, #4263ff, #36b3ff);
  box-shadow: 0 0 18px rgba(66, 99, 255, 0.55);
}

html[data-theme="light"] .brand-pill {
  background: #ffffff;
  border-color: rgba(23, 37, 57, 0.1);
  box-shadow: 0 2px 8px rgba(23, 37, 57, 0.06);
}

html[data-theme="light"] .brand-pill:hover {
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(23, 37, 57, 0.08);
}

/* ── Light mode atmosphere: keep the backdrop alive so glass has something to refract ── */
html[data-theme="light"] body::before {
  opacity: 1;
}

/* ── Light mode: OpenAI-style clean component overrides ── */

/* Nav pill — white solid, subtle shadow, no blur */
html[data-theme="light"] .nav-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(247, 250, 253, 0.44)),
    rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 28px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .nav-pill::before {
  display: none;
}

html[data-theme="light"] .nav-pill > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .site-header.scrolled .nav-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(23, 37, 57, 0.07);
}

/* Glass panels — white cards with soft shadow instead of blur */
html[data-theme="light"] .glass-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(250, 252, 255, 0.28)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.04), rgba(0, 229, 255, 0.015) 58%, rgba(115, 245, 207, 0.02));
  border-color: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 18px 36px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .craze-inline-panel::before {
  background: linear-gradient(90deg, rgba(0, 190, 120, 0.9), rgba(0, 170, 215, 0.34));
}

html[data-theme="light"] .signal-awakening-link {
  border-color: rgba(18, 122, 128, 0.18);
  background: rgba(18, 122, 128, 0.06);
  color: #127a80;
}

html[data-theme="light"] .hero-craze-chip:hover {
  border-color: rgba(0, 190, 120, 0.22);
  background: rgba(0, 190, 120, 0.06);
  color: #115844;
}

html[data-theme="light"] .hero-craze-core-dot,
html[data-theme="light"] .site-intro-orb-core,
html[data-theme="light"] .site-intro-transfer-dot {
  box-shadow: 0 0 18px rgba(0, 190, 120, 0.45);
}

html[data-theme="light"] .hero-craze-core-ring,
html[data-theme="light"] .site-intro-orb {
  border-color: rgba(0, 190, 120, 0.2);
  stroke: rgba(0, 190, 120, 0.44);
}

html[data-theme="light"] .hero-craze-live {
  border-color: rgba(32, 58, 116, 0.1);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 16px rgba(23, 37, 57, 0.035);
}

html[data-theme="light"] .hero-craze-core {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="light"] .hero-craze-core-ring {
  display: none;
}

html[data-theme="light"] .hero-craze-core-word {
  color: #213455;
  text-shadow: none;
}

html[data-theme="light"] .hero-craze-core::before {
  filter: drop-shadow(0 0 3px rgba(82, 136, 255, 0.08));
}

html[data-theme="light"] .hero-craze-core::after {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(210, 223, 246, 0.92);
  opacity: 1;
}

html[data-theme="light"] .hero-craze-core-dot::before {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.98),
    0 0 8px rgba(45, 215, 182, 0.2);
}

html[data-theme="light"] .hero-craze-core.is-primed .hero-craze-core-dot::before {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.98),
    0 0 12px rgba(45, 215, 182, 0.28);
}

html[data-theme="light"] .hero-craze-live-kicker {
  color: #70beff;
}

html[data-theme="light"] .hero-craze-live-copy h3,
html[data-theme="light"] .hero-panel h2 {
  color: #16253c;
}

html[data-theme="light"] .hero-craze-live-copy p:last-child,
html[data-theme="light"] .panel-note {
  color: #5d6f86;
}

html[data-theme="light"] a.glass-panel:hover,
html[data-theme="light"] .signal-brief-item:hover,
html[data-theme="light"] .snapshot-live-board:hover,
html[data-theme="light"] .topic-watch-card:hover,
html[data-theme="light"] .route-card:hover,
html[data-theme="light"] .media-card:hover,
html[data-theme="light"] .framework-card:hover {
  box-shadow: 0 18px 30px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .hero-proof-cell,
html[data-theme="light"] .proof-card {
  background: rgba(23, 37, 57, 0.02);
}

html[data-theme="light"] .topic-card-home {
  box-shadow: 0 1px 10px rgba(23, 37, 57, 0.04);
}

html[data-theme="light"] .snapshot-live-board,
html[data-theme="light"] .topic-watch-card,
html[data-theme="light"] .craze-bridge-card {
  box-shadow: 0 1px 10px rgba(23, 37, 57, 0.04);
}

html[data-theme="light"] .hero-panel,
html[data-theme="light"] .craze-inline-panel,
html[data-theme="light"] .snapshot-live-board,
html[data-theme="light"] .snapshot-board-uses,
html[data-theme="light"] .topic-watch-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .ordered-card,
html[data-theme="light"] .article-card,
html[data-theme="light"] .decision-card,
html[data-theme="light"] .framework-card,
html[data-theme="light"] .route-card,
html[data-theme="light"] .side-panel,
html[data-theme="light"] .table-card,
html[data-theme="light"] .article-shell,
html[data-theme="light"] .article-hero,
html[data-theme="light"] .article-meta-card,
html[data-theme="light"] .proof-card,
html[data-theme="light"] .topics-overview-panel,
html[data-theme="light"] .topics-signal-list,
html[data-theme="light"] .signal-brief-item,
html[data-theme="light"] .lead-story,
html[data-theme="light"] .mini-story,
html[data-theme="light"] .media-card,
html[data-theme="light"] .topic-card-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(252, 253, 255, 0.26)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.05), rgba(0, 229, 255, 0.018) 54%, rgba(115, 245, 207, 0.022));
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 20px 42px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .hero-panel,
html[data-theme="light"] .page-intro,
html[data-theme="light"] .article-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 16px 28px rgba(23, 37, 57, 0.06);
}

html[data-theme="light"] .hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html[data-theme="light"] .hero-panel::before,
html[data-theme="light"] .hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

html[data-theme="light"] .hero-panel::before {
  background: none;
  filter: none;
  opacity: 0;
  transform: none;
  animation: none;
}

html[data-theme="light"] .hero-panel::after {
  background: none;
  opacity: 0;
}

html[data-theme="light"] .hero-panel > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .lead-story,
html[data-theme="light"] .side-panel,
html[data-theme="light"] .article-meta-card,
html[data-theme="light"] .signal-brief-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(251, 253, 255, 0.18)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.06), rgba(0, 229, 255, 0.022) 54%, rgba(115, 245, 207, 0.024));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 18px 34px rgba(23, 37, 57, 0.07);
}

html[data-theme="light"] .signal-brief-item:hover,
html[data-theme="light"] .lead-story:hover,
html[data-theme="light"] .side-panel:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 22px 40px rgba(23, 37, 57, 0.09);
}

html[data-theme="light"] .craze-lens {
  background:
    radial-gradient(circle at 12% 14%, rgba(91, 109, 255, 0.14), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(0, 229, 255, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(91, 109, 255, 0.11), rgba(0, 229, 255, 0.055) 52%, rgba(255, 255, 255, 0.18) 100%);
  border-color: rgba(132, 150, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .craze-lens::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 24%, transparent 100%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.18), transparent 20%);
}

html[data-theme="light"] .craze-lens::after {
  border-color: rgba(132, 150, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(0, 229, 255, 0.03);
}

html[data-theme="light"] .ai-output-shell {
  background:
    radial-gradient(circle at 16% 18%, rgba(91, 109, 255, 0.12), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(0, 229, 255, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(91, 109, 255, 0.1), rgba(0, 229, 255, 0.04) 58%, rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.26);
  border-color: rgba(132, 150, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 26px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .hero-panel,
html[data-theme="light"] .craze-inline-panel,
html[data-theme="light"] .snapshot-live-board,
html[data-theme="light"] .snapshot-board-uses,
html[data-theme="light"] .topic-watch-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .signal-brief-item,
html[data-theme="light"] .lead-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(252, 253, 255, 0.24)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.05), rgba(0, 229, 255, 0.018) 54%, rgba(115, 245, 207, 0.022));
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 20px 42px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .snapshot-board-tab {
  border-color: rgba(23, 37, 57, 0.11);
  background: rgba(23, 37, 57, 0.035);
  color: rgba(23, 37, 57, 0.7);
}

html[data-theme="light"] .snapshot-board-tab.active,
html[data-theme="light"] .snapshot-board-tab:hover,
html[data-theme="light"] .snapshot-board-tab:focus-visible {
  color: #21314a;
  border-color: rgba(91, 109, 255, 0.18);
  background: rgba(91, 109, 255, 0.08);
}

html[data-theme="light"] .snapshot-board-tab.active::after {
  color: #0fae79;
}

html[data-theme="light"] .snapshot-board-tabs {
  background: rgba(23, 37, 57, 0.02);
  border-color: rgba(23, 37, 57, 0.06);
}

html[data-theme="light"] .snapshot-live-tag,
html[data-theme="light"] .snapshot-board-use-card {
  background: rgba(23, 37, 57, 0.02);
  border-color: rgba(23, 37, 57, 0.07);
}

html[data-theme="light"] .snapshot-pill,
html[data-theme="light"] .topic-watch-tag {
  background: rgba(23, 37, 57, 0.03);
  border-color: rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .topic-watch-index {
  color: rgba(23, 37, 57, 0.12);
}

html[data-theme="light"] .topic-index {
  color: rgba(23, 37, 57, 0.14);
}

html[data-theme="light"] .hero-craze-console {
  border-color: rgba(23, 37, 57, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.96)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(23, 37, 57, 0.06);
}

html[data-theme="light"] .home-page.has-home-experience.home-motion-ready .hero-craze-console.is-awake {
  border-color: rgba(0, 190, 120, 0.16);
  box-shadow: 0 14px 30px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .home-page.has-home-experience.home-motion-ready .hero-craze-console.is-writing {
  border-color: rgba(0, 190, 120, 0.24);
  box-shadow: 0 16px 34px rgba(23, 37, 57, 0.1);
}

html[data-theme="light"] .hero-craze-mode {
  border-color: rgba(23, 37, 57, 0.15);
  background: rgba(23, 37, 57, 0.035);
  color: rgba(23, 37, 57, 0.74);
}

html[data-theme="light"] .hero-craze-mode.active,
html[data-theme="light"] .hero-craze-mode:hover,
html[data-theme="light"] .hero-craze-mode:focus-visible {
  color: #0e5b48;
  border-color: rgba(0, 190, 120, 0.26);
  background: rgba(0, 190, 120, 0.08);
}

html[data-theme="light"] .hero-craze-preview h3 {
  color: #182230;
}

html[data-theme="light"] .hero-craze-preview p:last-child,
html[data-theme="light"] .panel-note {
  color: rgba(23, 37, 57, 0.78);
}

@keyframes light-hero-aurora-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
    filter: blur(28px) saturate(108%);
  }
  50% {
    transform: translate3d(1.5%, 2%, 0) scale(1.09);
    filter: blur(32px) saturate(118%);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.07);
    filter: blur(30px) saturate(112%);
  }
}

/* Hero section — white base, no gradient overlay */
html[data-theme="light"] .hero {
  border-color: rgba(23, 37, 57, 0.08);
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 190, 120, 0.09), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(91, 109, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(245, 249, 253, 0.96));
  box-shadow:
    0 18px 44px rgba(23, 37, 57, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .hero::before {
  background:
    linear-gradient(90deg, rgba(0, 190, 120, 0.06), transparent 14%),
    radial-gradient(circle at 18% 22%, rgba(0, 170, 215, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%);
}

html[data-theme="light"] .lead-story-body {
  margin-top: 0;
  padding: 18px 0 14px;
  background: transparent;
  border-radius: 0;
}

html[data-theme="light"] .lead-story .story-visual {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

html[data-theme="light"] .lead-story .story-visual img {
  border-radius: 24px 24px 0 0;
}

/* Search form — light gray fill */
html[data-theme="light"] .search-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(247, 250, 253, 0.38)),
    rgba(255, 255, 255, 0.24);
  border-color: rgba(23, 37, 57, 0.12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(23, 37, 57, 0.035);
}

html[data-theme="light"] .search-form:hover,
html[data-theme="light"] .search-form:focus-within,
html[data-theme="light"] .search-form.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 251, 255, 0.5)),
    rgba(255, 255, 255, 0.3);
  border-color: rgba(91, 109, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(91, 109, 255, 0.08);
}

/* Search icon button — light: no background, just color change */
html[data-theme="light"] .search-icon-btn {
  background: none;
  border: none;
}

html[data-theme="light"] .search-icon-btn:hover {
  color: var(--brand);
}

/* Theme toggle */
html[data-theme="light"] .theme-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 250, 253, 0.44)),
    rgba(255, 255, 255, 0.24);
  border-color: rgba(23, 37, 57, 0.12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(23, 37, 57, 0.035);
}

html[data-theme="light"] .theme-toggle:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 251, 255, 0.5)),
    rgba(255, 255, 255, 0.3);
  border-color: rgba(91, 109, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(23, 37, 57, 0.06);
}

/* Buttons — secondary gets a proper light treatment */
html[data-theme="light"] .button-secondary {
  background: #f4f7fb;
  border-color: rgba(23, 37, 57, 0.15);
}

html[data-theme="light"] .button-secondary:hover {
  background: #ffffff;
  border-color: rgba(23, 37, 57, 0.18);
  box-shadow: 0 2px 8px rgba(23, 37, 57, 0.06);
}

/* Signal pills */
html[data-theme="light"] .signal-pill {
  background: rgba(23, 37, 57, 0.04);
  border-color: rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .signal-pill:hover {
  background: rgba(91, 109, 255, 0.08);
  border-color: rgba(91, 109, 255, 0.2);
}

/* Visual containers (hero-visual, story-visual etc.) — subtle light backgrounds */
html[data-theme="light"] .hero-visual,
html[data-theme="light"] .story-visual,
html[data-theme="light"] .mini-visual,
html[data-theme="light"] .media-card-visual,
html[data-theme="light"] .craze-visual {
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.06), rgba(0, 229, 255, 0.03));
  border-color: rgba(23, 37, 57, 0.08);
}

/* Mobile dock — white solid */
html[data-theme="light"] .mobile-dock {
  background: #ffffff;
  border-color: rgba(23, 37, 57, 0.08);
  box-shadow: 0 8px 32px rgba(23, 37, 57, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Mobile actions capsule (visible on small screens) */
html[data-theme="light"] .mobile-actions {
  background: #ffffff;
  border-color: rgba(23, 37, 57, 0.08);
  box-shadow: 0 1px 6px rgba(23, 37, 57, 0.06);
  backdrop-filter: none;
}

/* Back to top */
html[data-theme="light"] .back-to-top {
  background: #ffffff;
  border-color: rgba(23, 37, 57, 0.1);
  backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(23, 37, 57, 0.06);
}

/* CRAZE orb — lighter glow for light mode */
html[data-theme="light"] .craze-orb {
  box-shadow:
    0 0 20px rgba(91, 109, 255, 0.25),
    0 0 44px rgba(0, 229, 255, 0.08);
}

/* Footer brand text — dark gradient for light mode */
html[data-theme="light"] .footer-brand {
  background: linear-gradient(90deg, #1a1a1a 0%, rgba(26, 26, 26, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Topic index numbers — visible in light mode */
html[data-theme="light"] .topic-index {
  color: rgba(23, 37, 57, 0.15);
}

/* Article card image placeholder — softer gradient */
html[data-theme="light"] .article-card-img {
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.1), rgba(0, 229, 255, 0.05));
}

/* Insight card accent — solid in light mode, no glow needed */
html[data-theme="light"] .insight-card::before {
  box-shadow: none;
}

html[data-theme="light"] .insight-card h3 {
  color: var(--text);
}

/* Filter chips */
html[data-theme="light"] .filter-chip {
  background: rgba(23, 37, 57, 0.04);
  border-color: rgba(23, 37, 57, 0.14);
}

html[data-theme="light"] .filter-chip:hover {
  background: rgba(23, 37, 57, 0.06);
}

/* Share buttons */
html[data-theme="light"] .share-btn {
  background: rgba(23, 37, 57, 0.04);
  border-color: rgba(23, 37, 57, 0.14);
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .search-demo-text,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .theme-toggle-label,
html[data-theme="light"] .section-caption,
html[data-theme="light"] .hero-proof-label,
html[data-theme="light"] .snapshot-live-note,
html[data-theme="light"] .meta-row,
html[data-theme="light"] .compact-story-meta,
html[data-theme="light"] .footer-copy p,
html[data-theme="light"] .dock-label {
  color: var(--muted);
}

html[data-theme="light"] .nav-links a {
  color: #111111;
  font-weight: 560;
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
  color: #111111;
}

html[data-theme="light"] .hero-text,
html[data-theme="light"] .page-intro p,
html[data-theme="light"] .article-summary,
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .ordered-card p,
html[data-theme="light"] .article-card p,
html[data-theme="light"] .panel-note,
html[data-theme="light"] .quick-row,
html[data-theme="light"] .lead-story .story-copy .text-card-desc,
html[data-theme="light"] .hero-craze-preview p:last-child {
  color: var(--meta-ink-soft);
}

html[data-theme="light"] .panel-label,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .card-kicker,
html[data-theme="light"] .symbol-mark,
html[data-theme="light"] .snapshot-live-label,
html[data-theme="light"] .inline-link,
html[data-theme="light"] .inline-link-tight,
html[data-theme="light"] .topic-watch-path {
  color: #127a80;
}

html[data-theme="light"] .symbol-mark::after {
  background: #2ab3b0;
  box-shadow: 0 0 10px rgba(42, 179, 176, 0.28);
}

html[data-theme="light"] .snapshot-live-rank,
html[data-theme="light"] .snapshot-board-use-kicker,
html[data-theme="light"] .topic-watch-path,
html[data-theme="light"] .inline-link,
html[data-theme="light"] .inline-link-tight,
html[data-theme="light"] .panel-link,
html[data-theme="light"] .section-heading .inline-link,
html[data-theme="light"] .snapshot-block .inline-link,
html[data-theme="light"] .topics-block .inline-link,
html[data-theme="light"] .topic-article-link:hover .topic-article-title {
  color: #0f6673;
}

html[data-theme="light"] .snapshot-board-use-card {
  border-color: rgba(23, 37, 57, 0.11);
  background: rgba(23, 37, 57, 0.02);
}

html[data-theme="light"] .snapshot-live-tag,
html[data-theme="light"] .topic-watch-tag {
  color: rgba(23, 37, 57, 0.72);
  border-color: rgba(23, 37, 57, 0.12);
  background: rgba(23, 37, 57, 0.03);
}

html[data-theme="light"] .share-btn:hover {
  background: rgba(23, 37, 57, 0.06);
  border-color: rgba(91, 109, 255, 0.3);
}

html[data-theme="light"] .filter-chip,
html[data-theme="light"] .share-btn,
html[data-theme="light"] .lens-tab,
html[data-theme="light"] .topics-key-stats span,
html[data-theme="light"] .topic-card-meta span,
html[data-theme="light"] .decision-path-step,
html[data-theme="light"] .intent-route-tag,
html[data-theme="light"] .rank-scenario-tone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 250, 253, 0.5)),
    rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(23, 37, 57, 0.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

html[data-theme="light"] .filter-chip:hover,
html[data-theme="light"] .share-btn:hover,
html[data-theme="light"] .lens-tab:hover {
  border-color: rgba(91, 109, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .lens-tab.active,
html[data-theme="light"] .filter-chip.active,
html[data-theme="light"] .intent-route-card.active,
html[data-theme="light"] .intent-route-card:hover,
html[data-theme="light"] .intent-route-card:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 247, 255, 0.68)),
    rgba(91, 109, 255, 0.09);
  border-color: rgba(91, 109, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 28px rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .ai-output-shell,
html[data-theme="light"] .ai-response-card,
html[data-theme="light"] .lens-link-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 254, 0.56)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.08), rgba(0, 229, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 18px 34px rgba(23, 37, 57, 0.08);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

html[data-theme="light"] .ai-output-head {
  color: #137c86;
}

html[data-theme="light"] .ai-output-dot {
  box-shadow:
    0 0 0 4px rgba(42, 179, 176, 0.12),
    0 0 14px rgba(0, 229, 255, 0.2);
}

html[data-theme="light"] .ai-output-shell::before {
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.28) 50%, transparent 82%);
}

html[data-theme="light"] .lens-link-card:hover {
  border-color: rgba(91, 109, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 36px rgba(23, 37, 57, 0.1);
}

html[data-theme="light"] .page-intro,
html[data-theme="light"] .topic-card,
html[data-theme="light"] .decision-path-card,
html[data-theme="light"] .intent-route-card,
html[data-theme="light"] .rank-scenario-card,
html[data-theme="light"] .table-card,
html[data-theme="light"] .agent-signal-panel,
html[data-theme="light"] .agent-feature-panel,
html[data-theme="light"] .agent-inline-panel,
html[data-theme="light"] .lead-map-panel,
html[data-theme="light"] .craze-briefing-panel,
html[data-theme="light"] .newsletter-panel,
html[data-theme="light"] .craze-workbench,
html[data-theme="light"] .craze-workbench-panel,
html[data-theme="light"] .craze-workbench-output,
html[data-theme="light"] .craze-context-card,
html[data-theme="light"] .craze-evidence-card,
html[data-theme="light"] .craze-agent-bridge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 249, 253, 0.62)),
    linear-gradient(135deg, rgba(91, 109, 255, 0.05), rgba(0, 229, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 22px 44px rgba(23, 37, 57, 0.08);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
}

html[data-theme="light"] .topic-card:hover,
html[data-theme="light"] .decision-path-card:hover,
html[data-theme="light"] .rank-scenario-card:hover,
html[data-theme="light"] .agent-signal-panel:hover,
html[data-theme="light"] .agent-feature-panel:hover,
html[data-theme="light"] .agent-inline-panel:hover,
html[data-theme="light"] .craze-evidence-card:hover {
  border-color: rgba(91, 109, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 28px 52px rgba(23, 37, 57, 0.1);
}

html[data-theme="light"] .agent-link-chip,
html[data-theme="light"] .lead-map-pill,
html[data-theme="light"] .lead-map-link,
html[data-theme="light"] .newsletter-points span,
html[data-theme="light"] .personalized-badge,
html[data-theme="light"] .signal-intensity-badge,
html[data-theme="light"] .provenance-pill,
html[data-theme="light"] .rank-change,
html[data-theme="light"] .craze-status-dot,
html[data-theme="light"] .craze-agent-step,
html[data-theme="light"] .craze-workbench-tabs,
html[data-theme="light"] .craze-workbench-tabs span {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(23, 37, 57, 0.05);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}

html[data-theme="light"] .agent-link-chip,
html[data-theme="light"] .lead-map-pill,
html[data-theme="light"] .newsletter-points span,
html[data-theme="light"] .personalized-badge,
html[data-theme="light"] .signal-intensity-badge,
html[data-theme="light"] .provenance-pill,
html[data-theme="light"] .rank-change,
html[data-theme="light"] .craze-agent-step,
html[data-theme="light"] .craze-workbench-tabs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 253, 0.5)),
    rgba(255, 255, 255, 0.32);
}

html[data-theme="light"] .newsletter-panel.home-newsletter,
html[data-theme="light"] .subscribe-band {
  border-color: rgba(125, 143, 170, 0.16);
  box-shadow: 0 24px 60px rgba(63, 83, 130, 0.08);
}

html[data-theme="light"] .newsletter-panel.home-newsletter {
  background:
    radial-gradient(circle at 10% 12%, rgba(115, 245, 207, 0.1), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(91, 109, 255, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.9));
}

html[data-theme="light"] .subscribe-band {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.84));
}

html[data-theme="light"] .subscribe-band-copy h2,
html[data-theme="light"] .newsletter-copy h2 {
  color: #18253d;
}

html[data-theme="light"] .subscribe-band-copy p,
html[data-theme="light"] .subscribe-microcopy,
html[data-theme="light"] .subscribe-status {
  color: rgba(74, 92, 124, 0.88);
}

html[data-theme="light"] .subscribe-input-wrap {
  border-color: rgba(125, 143, 170, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .subscribe-input {
  color: #18253d;
}

html[data-theme="light"] .lead-map-link,
html[data-theme="light"] .craze-status-dot,
html[data-theme="light"] .craze-workbench-tabs .active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(240, 248, 255, 0.58)),
    rgba(91, 109, 255, 0.1);
}

html[data-theme="light"] .agent-link-chip:hover,
html[data-theme="light"] .lead-map-link:hover {
  border-color: rgba(91, 109, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(23, 37, 57, 0.08);
}

/* Nav links — visible hover/active on white background */
html[data-theme="light"] .nav-links a:hover {
  background: rgba(91, 109, 255, 0.06);
}

html[data-theme="light"] .nav-links a.active {
  background: rgba(91, 109, 255, 0.1);
}

/* Dock items */
html[data-theme="light"] .dock-item:hover,
html[data-theme="light"] .dock-item.active {
  background: rgba(91, 109, 255, 0.06);
}

html[data-theme="light"] .dock-craze:hover {
  background: rgba(91, 109, 255, 0.1);
}

/* Topic article links */
html[data-theme="light"] .topic-article-link {
  background: rgba(23, 37, 57, 0.02);
  border-color: rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .topic-article-link:hover {
  background: rgba(91, 109, 255, 0.06);
  border-color: rgba(91, 109, 255, 0.2);
}

/* CRAZE quick panel links */
html[data-theme="light"] .craze-quick-links a {
  background: #f7f8fa;
  border-color: rgba(23, 37, 57, 0.1);
}

html[data-theme="light"] .craze-quick-links a:hover {
  background: #ffffff;
  border-color: rgba(91, 109, 255, 0.25);
}

/* Nav pill */
.nav-rail {
  position: absolute;
  left: calc(var(--logo-margin) + var(--logo-pill-width) + var(--logo-nav-gap));
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Nav pill: left-rounded only (right side flush with screen edge) */
.nav-pill {
  pointer-events: auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px 0 0 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 250ms ease;
  padding: 5px 8px 5px 4px;
  gap: 4px;
  min-width: 0;
  flex: 1;
  --surface-x: 18%;
  --surface-y: 50%;
  --surface-tilt-x: 0deg;
  --surface-tilt-y: 0deg;
  transform: perspective(1200px) rotateX(var(--surface-tilt-x)) rotateY(var(--surface-tilt-y));
  transition: box-shadow 250ms ease, transform 260ms ease;
}

.nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.08) 48%, transparent 76%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.nav-pill.is-surface-active::after {
  opacity: 1;
}

/* Desktop: hide mobile-only elements */
.mobile-actions {
  display: none;
}

.mobile-search-form {
  width: 0;
  opacity: 0;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.mobile-search-form.active,
.mobile-search-form:focus-within {
  width: min(220px, 48vw);
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(91, 109, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
  padding-left: 28px;
  min-width: 0;
}

/* Search + theme — natural flow after nav links */
.search-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: -28px;
  transform: translateX(-28px);
}

.nav-links a {
  position: relative;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(91, 109, 255, 0.14);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--accent);
}

/* Magnifier inside the search form, left side */
.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color 200ms ease;
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.search-icon-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
}

.search-icon-btn:hover { color: var(--accent); }

/* Search form: icon + demo text / input */
.search-form {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, width 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 170px;
  flex-shrink: 0;
}

.search-form[role="search"] {
  margin: 0;
}

.search-form:hover,
.search-form:focus-within,
.search-form.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(91, 109, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(91, 109, 255, 0.1);
  width: 320px;
}

/* Demo text container — covers the input to show typing effect */
.search-demo-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
}

.search-demo-text {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 10px 0 0;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 200ms;
}

.search-demo-text.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: middle;
  animation: cursorBlink 700ms step-end infinite;
}

.search-demo-text.fade-out {
  opacity: 0;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 0;
  height: 34px;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text);
  caret-color: var(--accent);
}

.search-input::placeholder { color: transparent; }
.search-input::-webkit-search-cancel-button { display: none; }

/* Hide demo text when user focuses the input */
.search-demo-wrap:focus-within .search-demo-text {
  display: none;
}
.search-demo-wrap:focus-within .search-input::placeholder { color: var(--muted); }

.search-input::-webkit-search-cancel-button {
  display: none;
}

/* ── Theme toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 180ms ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.theme-toggle-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.theme-toggle-icon .icon-sun,
.theme-toggle-icon .icon-moon {
  display: none;
}

/* Default (system/light): show sun */
.theme-toggle-icon .icon-sun {
  display: block;
}

/* Dark mode: show moon */
html[data-theme="dark"] .theme-toggle-icon .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon .icon-moon {
  display: block;
}

.theme-toggle-label {
  line-height: 1;
}

.site-main {
  padding: 28px 0 110px;
  padding-left: var(--content-margin);
  transition: opacity 480ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-page .site-main {
  padding-top: 92px;
}

body.home-page.intro-active .site-main {
  opacity: 0.01;
  transform: translateY(16px);
}

.rank-page .site-main {
  padding-top: 92px;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.empty-state svg {
  stroke: var(--muted);
}

/* ── Topics page ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.topic-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(91, 109, 255, 0.12);
  border: 1px solid rgba(91, 109, 255, 0.2);
  color: var(--accent);
  flex-shrink: 0;
}

.topic-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* topic-title is now in unified card titles (1.15rem / 1.25) */

.topic-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.topic-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.topic-article-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.topic-article-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(91, 109, 255, 0.25);
}

.topic-article-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease;
}

.inline-link:hover {
  color: var(--brand);
}

.inline-link svg {
  stroke: currentColor;
}

/* ── Footer ── */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 24px 32px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.footer-brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-social-link:hover {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.28);
  background: rgba(91, 109, 255, 0.1);
  transform: translateY(-1px);
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.footer-social-link.social-x svg {
  width: 15px;
  height: 15px;
}

/* ── Mobile Dock ── */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
  min-width: 44px;
}

.dock-item:hover,
.dock-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.dock-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.dock-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.dock-craze {
  color: var(--accent);
  transform: scale(1.08);
}

.dock-craze:hover {
  color: var(--accent);
  background: rgba(91, 109, 255, 0.12);
}

.dock-craze.active {
  color: var(--accent);
  background: rgba(91, 109, 255, 0.16);
}

/* ── Page structure ── */
.page-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.home-page .page-stack {
  gap: 32px;
}

.glass-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 260ms ease;
}

.hero,
.page-intro,
.article-hero,
.article-shell,
.side-panel,
.table-card {
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px 22px;
  padding: 26px 26px 22px;
  min-height: 340px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 255, 136, 0.09), transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    linear-gradient(160deg, rgba(91, 109, 255, 0.11), transparent 42%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  --surface-x: 22%;
  --surface-y: 28%;
  --surface-tilt-x: 0deg;
  --surface-tilt-y: 0deg;
  transform: perspective(1400px) rotateX(var(--surface-tilt-x)) rotateY(var(--surface-tilt-y));
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-page.has-home-experience.home-motion-ready .hero-copy > *,
.home-page.has-home-experience.home-motion-ready .hero-copy-main > *,
.home-page.has-home-experience.home-motion-ready .hero-copy-foot > *,
.home-page.has-home-experience.home-motion-ready .hero-panel > * {
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-page.has-home-experience .hero-copy > *,
.home-page.has-home-experience .hero-copy-main > *,
.home-page.has-home-experience .hero-copy-foot > *,
.home-page.has-home-experience .hero-panel > * {
  opacity: 0;
  transform: translateY(22px);
}

.home-page.has-home-experience.home-motion-ready .hero-copy > *,
.home-page.has-home-experience.home-motion-ready .hero-copy-main > *,
.home-page.has-home-experience.home-motion-ready .hero-copy-foot > *,
.home-page.has-home-experience.home-motion-ready .hero-panel > * {
  opacity: 1;
  transform: translateY(0);
}

.home-page.has-home-experience .hero-copy > *:nth-child(1) { transition-delay: 40ms; }
.home-page.has-home-experience .hero-copy > *:nth-child(2) { transition-delay: 380ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(1) { transition-delay: 60ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(2) { transition-delay: 120ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(3) { transition-delay: 210ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(4) { transition-delay: 290ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(5) { transition-delay: 360ms; }
.home-page.has-home-experience .hero-copy-main > *:nth-child(6) { transition-delay: 430ms; }
.home-page.has-home-experience .hero-copy-foot > *:nth-child(1) { transition-delay: 500ms; }
.home-page.has-home-experience .hero-copy-foot > *:nth-child(2) { transition-delay: 560ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(1) { transition-delay: 250ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(2) { transition-delay: 320ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(3) { transition-delay: 390ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(4) { transition-delay: 470ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(5) { transition-delay: 540ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(6) { transition-delay: 610ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(7) { transition-delay: 680ms; }
.home-page.has-home-experience .hero-panel > *:nth-child(8) { transition-delay: 750ms; }

.hero::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(0, 229, 255, 0.16), transparent 20%),
    radial-gradient(circle at 78% 20%, rgba(91, 109, 255, 0.16), transparent 24%),
    linear-gradient(110deg, rgba(0, 255, 136, 0.06), transparent 18%, rgba(91, 109, 255, 0.05) 52%, transparent 72%);
  pointer-events: none;
  filter: blur(16px);
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 24%;
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, rgba(91, 109, 255, 0.08) 38%, transparent 72%);
  pointer-events: none;
  filter: blur(34px);
  opacity: 0.75;
  animation: none;
}

.hero.is-surface-active::after {
  opacity: 0.92;
}

.signal-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 24px;
  overflow: hidden;
}

.signal-cluster,
.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-cluster {
  flex: 1 1 380px;
}

.ticker {
  flex: 1.2 1 420px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.ticker-track {
  min-width: 0;
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-label,
.ticker-badge,
.ticker-label {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
}

.signal-pill:first-child {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.25);
  background: rgba(91, 109, 255, 0.1);
}

.ticker-badge {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 109, 255, 0.18);
  color: var(--accent);
}

.ticker-label {
  color: var(--accent);
  white-space: normal;
  line-height: 1.5;
  max-width: min(100%, 36ch);
  letter-spacing: 0.1em;
}

.hero-copy,
.hero-panel,
.page-intro,
.feature-card,
.ordered-card,
.article-card,
.article-shell,
.side-panel,
.table-card {
  padding: 28px;
}

.quick-list,
.craze-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.quick-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 6px 10px 6px 0;
  border-radius: 14px;
  transform: translateX(0);
  opacity: 0.7;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    background 260ms ease,
    box-shadow 320ms ease;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 16px rgba(91, 109, 255, 0.55);
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
}

.quick-row.is-current {
  transform: translateX(8px);
  opacity: 1;
  background: linear-gradient(90deg, rgba(91, 109, 255, 0.08), rgba(0, 229, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(91, 109, 255, 0.12);
}

.quick-row.is-current .dot {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5), 0 0 32px rgba(91, 109, 255, 0.18);
}

.home-page.hero-cues-static .quick-row {
  opacity: 1;
  transform: none;
  background: transparent;
  box-shadow: none;
}

.home-page.hero-cues-static .quick-row.is-current {
  opacity: 1;
  transform: none;
  background: transparent;
  box-shadow: none;
}

.home-page.hero-cues-static .quick-row .dot,
.home-page.hero-cues-static .quick-row.is-current .dot {
  transform: none;
  box-shadow: 0 0 16px rgba(91, 109, 255, 0.55);
}

.hero h1,
.page-intro h1,
.article-shell h1,
.craze-intro h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-text,
.page-intro p,
.article-summary,
.feature-card p,
.ordered-card p,
.article-card p,
.section-caption {
  color: var(--muted);
}

/* ── Unified card body text ── */
.feature-card p,
.ordered-card p,
.insight-card p,
.media-card-copy p,
.mini-story p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 720px;
  min-height: 0;
  gap: 12px;
}

.hero-copy-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-copy-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding: 8px 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-foot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--meta-ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 54ch;
  font-size: 0.93rem;
  line-height: 1.54;
  text-wrap: balance;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}

.hero-proof-strip-panel {
  max-width: none;
  margin: -2px 0 2px;
}

.hero-proof-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-proof-value {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-proof-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.28;
}

.hero-note-accent {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 6px;
}

.hero-note,
.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.54;
  letter-spacing: 0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #6b7cff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91, 109, 255, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 36px rgba(91, 109, 255, 0.34);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(52, 255, 193, 0.28);
  background: rgba(52, 255, 193, 0.06);
}

.panel-label,
.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius-xl);
  min-width: 0;
  position: relative;
}

.hero-craze-live {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(80, 109, 182, 0.16);
  background: rgba(9, 17, 30, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(4, 10, 20, 0.24);
}

.hero-craze-core-wrap {
  display: grid;
  place-items: center;
}

.hero-craze-core {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  isolation: isolate;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-craze-core-dot {
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: none;
  box-shadow: none;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-craze-core-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #e8fff9, #7cf5dc 52%, #2dd7b6 84%, rgba(45, 215, 182, 0.9) 100%);
  box-shadow:
    0 0 0 2px rgba(8, 16, 26, 0.94),
    0 0 10px rgba(45, 215, 182, 0.48);
  transform: translateX(-50%) scale(0.96);
}

.hero-craze-core.is-primed .hero-craze-core-dot::before {
  box-shadow:
    0 0 0 2px rgba(8, 16, 26, 0.96),
    0 0 14px rgba(45, 215, 182, 0.6);
  transform: translateX(-50%) scale(1.06);
}

.hero-craze-core-ring {
  display: none;
}

.hero-craze-core.is-primed .hero-craze-core-ring {
  display: none;
}

.hero-craze-core-word {
  position: relative;
  z-index: 1;
  color: #fdfefe;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 10px rgba(6, 12, 22, 0.28);
}

.hero-craze-core::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #4d86ff 0deg, #5f8fff 88deg, #55b8ff 188deg, #31e1ce 306deg, #4d86ff 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 9px));
  filter: drop-shadow(0 0 10px rgba(77, 134, 255, 0.3)) drop-shadow(0 0 18px rgba(49, 225, 206, 0.14));
}

.hero-craze-core::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 48% 42%, rgba(19, 31, 49, 0.98), rgba(11, 20, 31, 0.96) 72%, rgba(7, 14, 22, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(115, 164, 255, 0.08);
  opacity: 1;
}

.hero-craze-live-copy {
  display: grid;
  gap: 8px;
}

.hero-craze-live-kicker {
  margin: 0;
  color: rgba(132, 215, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-craze-live-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.12;
}

.hero-craze-live-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

.home-page.has-home-experience.home-motion-ready .hero-craze-core-dot {
  animation: craze-orbit-run 7.6s linear infinite;
}

.home-page.has-home-experience.home-motion-ready .hero-craze-core-dot::before {
  animation: craze-core-bloom 2.5s ease-in-out infinite;
}

.home-page.has-home-experience.home-motion-ready .hero-craze-core-ring-a {
  animation:
    craze-ring-spin 14s linear infinite,
    craze-ring-float 2.8s ease-in-out infinite;
}

.home-page.has-home-experience.home-motion-ready .hero-craze-core-ring-b {
  animation:
    craze-ring-spin-reverse 18s linear infinite,
    craze-ring-float 2.8s ease-in-out infinite 420ms;
}

.hero-craze-console {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 9px 11px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  opacity: 0.42;
  transform: translateY(10px);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 260ms ease;
}

.home-page.has-home-experience.home-motion-ready .hero-craze-console.is-awake {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(52, 255, 193, 0.16);
  box-shadow: 0 16px 32px rgba(6, 20, 18, 0.22);
}

.home-page.has-home-experience.home-motion-ready .hero-craze-console.is-writing {
  border-color: rgba(52, 255, 193, 0.24);
  box-shadow: 0 20px 38px rgba(6, 20, 18, 0.26);
}

.hero-craze-modes {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-craze-mode {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--meta-ink-soft);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-craze-mode.active,
.hero-craze-mode:hover,
.hero-craze-mode:focus-visible {
  color: #defcf6;
  border-color: rgba(52, 255, 193, 0.26);
  background: rgba(52, 255, 193, 0.08);
  transform: translateY(-1px);
}

.hero-craze-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 82px;
}

.hero-craze-preview > * {
  transition: opacity 220ms ease, transform 260ms ease;
}

.hero-craze-console.is-writing .hero-craze-preview > * {
  opacity: 0.86;
}

.hero-craze-preview-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-craze-preview h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-craze-preview p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.42;
}

.hero-craze-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-craze-typing::after {
  content: "";
  width: 1px;
  height: 0.95em;
  background: rgba(52, 255, 193, 0.78);
  animation: craze-caret-blink 0.9s step-end infinite;
}

@keyframes craze-caret-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.signal-awakening {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.signal-awakening p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.signal-awakening-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow: 0 0 18px rgba(52, 255, 193, 0.88), 0 0 34px rgba(52, 255, 193, 0.24);
  animation: none;
  flex: 0 0 auto;
}

.signal-awakening-line {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 255, 193, 0.8), rgba(52, 255, 193, 0));
  flex: 0 0 auto;
}

.signal-awakening-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 255, 193, 0.24);
  background: rgba(52, 255, 193, 0.08);
  color: #8bf7da;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes hero-signal-pulse {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.hero-craze-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-craze-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

html[data-theme="light"] .hero-proof-strip-panel .hero-proof-cell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(247, 250, 253, 0.44)),
    rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes hero-aurora-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    opacity: 0.76;
  }
  50% {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
    opacity: 0.92;
  }
  100% {
    transform: translate3d(3%, -1%, 0) scale(1.02);
    opacity: 0.8;
  }
}

@keyframes hero-glow-shift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-3%, -4%, 0) scale(1.06);
    opacity: 0.88;
  }
}

.hero-craze-chip:hover {
  border-color: rgba(52, 255, 193, 0.28);
  background: rgba(52, 255, 193, 0.08);
  color: #dffcf5;
}

@keyframes craze-core-bloom {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes craze-orbit-run {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes craze-ring-spin {
  0% {
    transform: scale(0.92) rotate(0deg);
  }
  100% {
    transform: scale(0.92) rotate(360deg);
  }
}

@keyframes craze-ring-spin-reverse {
  0% {
    transform: scale(1.02) rotate(0deg);
  }
  100% {
    transform: scale(1.02) rotate(-360deg);
  }
}

@keyframes craze-ring-float {
  0%, 100% {
    transform: scale(0.78);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.5;
  }
}

@keyframes craze-wave-breathe {
  0%, 100% {
    transform: scaleX(0.76);
    opacity: 0.36;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.88;
  }
}

.interactive-surface,
a.glass-panel,
.signal-brief-item,
.snapshot-brief-card,
.topic-watch-card,
.route-card,
.media-card,
.framework-card {
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 260ms ease,
    opacity 180ms ease;
}

a.glass-panel:hover,
.signal-brief-item:hover,
.snapshot-brief-card:hover,
.topic-watch-card:hover,
.route-card:hover,
.media-card:hover,
.framework-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 109, 255, 0.28);
  box-shadow: 0 24px 48px rgba(7, 11, 20, 0.26);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rank snapshot (replaces duplicate article card) */
.rank-snapshot { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 36px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.rank-pos { color: var(--accent); font-weight: 700; font-size: 0.7rem; }
.rank-model { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 4px;
  transition: width 1s ease;
}
.rank-score { color: var(--muted); text-align: right; font-size: 0.78rem; }

.panel-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* Trending topic tags */
.signal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91,109,255,0.12);
  border: 1px solid rgba(91,109,255,0.25);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: default;
}

.panel-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 200ms;
}
.panel-link:hover { opacity: 0.7; }

.stack-top {
  margin-top: 0;
}

.hero-panel-link {
  margin-top: 2px;
}

.span-full {
  grid-column: 1 / -1;
}

.hero-visual,
.story-visual,
.mini-visual,
.media-card-visual,
.craze-visual {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.with-photo {
  background: transparent;
}

.hero-visual {
  aspect-ratio: 16 / 10;
}

/* SVG placeholder in place of Next.js Image */
.hero-visual svg,
.story-visual svg,
.mini-visual svg,
.media-card-visual svg,
.craze-visual svg,
.article-hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-visual img,
.mini-visual img,
.media-card-visual img,
.article-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-panel h2,
.section-heading h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Unified card titles (h3-level) ── */
.feature-card h2,
.feature-card h3,
.ordered-card h3,
.article-card h2,
.article-card h3,
.insight-card h3,
.media-card h3,
.mini-story h3,
.lead-story h3,
.topic-card-home h3,
.lens-block h3,
.lens-link-card h3,
.craze-quick-panel h2,
.topic-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-block + .section-block {
  margin-top: 22px;
}

.section-heading .inline-link {
  align-self: flex-start;
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.64rem, 1.86vw, 2.18rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-heading > div {
  max-width: 680px;
}

.section-caption {
  max-width: 48ch;
  font-size: 0.89rem;
  line-height: 1.6;
  text-wrap: balance;
  color: var(--muted);
}

.latest-signals-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.58fr);
  align-items: flex-start;
  gap: 34px;
}

.latest-signals-heading > div:first-child {
  max-width: none;
  min-width: 0;
}

.signals-side-heading {
  width: 100%;
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  align-self: start;
  gap: 18px;
  box-sizing: border-box;
  padding: 4px 0 0 26px;
}

.signals-side-heading .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.signals-side-heading .inline-link {
  margin-top: 0;
  white-space: nowrap;
}

.rail-caption {
  margin: 8px 0 0;
  max-width: 30ch;
  font-size: 0.8rem;
  line-height: 1.58;
  color: var(--muted);
}

.feature-news-grid,
.split-grid,
.craze-section {
  display: grid;
  gap: 18px;
}

.feature-news-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 28px;
}

.latest-main-column {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 0;
  align-self: stretch;
  height: 100%;
}

.feature-news-grid .lead-story {
  min-height: 0;
  height: 100%;
}

.latest-story-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.compact-story {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  min-height: 176px;
  border-radius: var(--radius-lg);
}

.compact-story .mini-visual {
  flex: 0 0 132px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.compact-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.compact-story-copy .card-kicker {
  margin: 0;
}

.compact-story-copy h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 100%;
}

.compact-story-copy .text-card-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--muted);
  max-width: 100%;
}

.compact-story-copy .meta-row {
  margin-top: auto;
  padding-top: 2px;
  gap: 8px;
  font-size: 0.75rem;
}

.compact-story-feature {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.signal-brief-list {
  display: grid;
  gap: 10px;
}

.signal-brief-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 14px;
  text-decoration: none;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: 22px;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
  --surface-x: 50%;
  --surface-y: 50%;
}

.signal-brief-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.08) 48%, transparent 78%);
  opacity: 0;
  transform: translateX(-10%);
  transition: opacity 220ms ease, transform 320ms ease;
  pointer-events: none;
}

.signal-brief-item:first-child {
  border-top: 1px solid transparent;
}

.signal-brief-item:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 32px rgba(7, 11, 20, 0.16);
}

.signal-brief-item.is-surface-active::before,
.signal-brief-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.signal-brief-thumb {
  aspect-ratio: 1.62 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.signal-brief-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.signal-brief-copy h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-brief-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.56;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-brief-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-brief-topline .card-kicker {
  margin: 0;
}

.signal-brief-topline .compact-story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--meta-ink-soft);
  font-size: 0.73rem;
  line-height: 1.35;
}

.secondary-signal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.micro-story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  text-decoration: none;
  min-height: 0;
  border-radius: var(--radius-lg);
}

.micro-story .card-kicker {
  margin: 0;
}

.micro-story h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.micro-story p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.micro-story .meta-row {
  margin-top: auto;
  gap: 8px;
  font-size: 0.75rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-snapshot-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 38px;
  align-items: stretch;
}

.snapshot-block,
.topics-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapshot-block .section-intro,
.topics-block .section-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 108px;
  gap: 6px;
  flex-shrink: 0;
}

.snapshot-block .section-heading,
.topics-block .section-heading {
  align-items: start;
  gap: 10px;
  min-height: 0;
}

.snapshot-block .section-heading > div,
.topics-block .section-heading > div {
  min-height: 0;
}

.snapshot-block .section-caption,
.topics-block .section-caption {
  max-width: 52ch;
  margin: 0;
  min-height: 0;
  font-size: 0.77rem;
  line-height: 1.28;
  white-space: normal;
}

.snapshot-block .section-heading h2,
.topics-block .section-heading h2 {
  font-size: clamp(1.32rem, 1.38vw, 1.58rem);
  line-height: 1.04;
  max-width: none;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.ordered-card,
.article-card,
.lead-story,
.mini-story,
.insight-card,
.media-card {
  border-radius: var(--radius-lg);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
  transition: background 180ms ease;
  height: 100%;
}

.article-card:hover {
  background: var(--panel-strong);
}

.article-card > p {
  margin: 0;
  color: var(--muted);
}

/* News card image placeholder */
.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2px;
  position: relative;
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.25), rgba(0, 229, 255, 0.12));
}

.article-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(91, 60, 255, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.25) 0%, transparent 50%);
}

.article-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%);
  animation: img-shimmer 3s ease-in-out infinite;
}

.article-card-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.with-photo::before,
.with-photo::after {
  display: none;
}

.ad-slot-block {
  padding-top: 2px;
}

.ad-slot {
  position: relative;
  overflow: hidden;
  border-style: dashed;
  border-color: rgba(0, 229, 255, 0.22);
  border-width: 1px;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(91, 109, 255, 0.12), transparent 36%);
  pointer-events: none;
}

.ad-slot-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ad-slot-label,
.ad-slot-key,
.ad-slot-size {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot-label {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
}

.ad-slot-key {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.ad-slot-size {
  background: rgba(91, 109, 255, 0.12);
  border: 1px solid rgba(91, 109, 255, 0.16);
  color: rgba(229, 235, 245, 0.84);
}

.ad-slot-copy {
  position: relative;
  z-index: 1;
}

.ad-slot-copy h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.18;
}

.ad-slot-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 56ch;
}

.ad-slot-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
}

.ad-slot-billboard {
  aspect-ratio: 97 / 9;
  min-height: 90px;
  max-width: 970px;
  margin-inline: auto;
}

.ad-slot-banner {
  aspect-ratio: 728 / 90;
  min-height: 90px;
  max-width: 760px;
  margin-inline: auto;
}

.article-card-sponsored {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px;
}

.article-card-sponsored .meta-row {
  margin-top: auto;
}

.ad-card-visual {
  aspect-ratio: auto;
  min-height: 88px;
  max-height: 104px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(91, 109, 255, 0.18), rgba(0, 229, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.ad-card-glow,
.ad-card-mesh {
  position: absolute;
  inset: 0;
}

.ad-card-glow {
  background:
    radial-gradient(circle at 26% 28%, rgba(0, 229, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(91, 109, 255, 0.18), transparent 34%);
  filter: blur(2px);
}

.ad-card-mesh {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
  opacity: 0.36;
}

.article-card-sponsored h2 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.article-card-sponsored p {
  max-width: 68ch;
}

.ad-slot-inline-article,
.ad-slot-footer {
  margin-top: 30px;
  padding: 20px 22px;
}

.ad-slot-inline-article {
  margin-bottom: 6px;
}

.ad-slot-footer {
  margin-bottom: 22px;
}

html[data-theme="light"] .ad-slot {
  border-color: rgba(23, 37, 57, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(240, 246, 255, 0.82)),
    var(--panel);
}

html[data-theme="light"] .ad-slot-label {
  background: rgba(0, 191, 255, 0.08);
  border-color: rgba(0, 191, 255, 0.16);
}

html[data-theme="light"] .ad-slot-key {
  background: rgba(23, 37, 57, 0.04);
  border-color: rgba(23, 37, 57, 0.08);
}

html[data-theme="light"] .ad-slot-size {
  background: rgba(91, 109, 255, 0.08);
  border-color: rgba(91, 109, 255, 0.14);
  color: rgba(74, 92, 124, 0.9);
}

@keyframes img-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

html[data-theme="light"] .article-card-img {
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.18), rgba(0, 229, 255, 0.08));
}

html[data-theme="light"] .article-card-img::before {
  background:
    radial-gradient(circle at 30% 70%, rgba(91, 109, 255, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
}

html[data-theme="light"] .home-page .section-block:first-of-type {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .home-page .section-block:first-of-type .feature-news-grid {
  gap: 30px;
}

html[data-theme="light"] .home-page .section-block:first-of-type .latest-main-column {
  border-radius: 0;
  background: transparent;
}

html[data-theme="light"] .home-page .section-block:first-of-type .lead-story {
  overflow: visible;
  border-radius: 30px;
}

html[data-theme="light"] .home-page .section-block:first-of-type .lead-story .story-visual {
  background: transparent;
}

html[data-theme="light"] .home-page .section-block:first-of-type .latest-story-rail {
  padding-left: 28px;
  border-left-color: rgba(23, 37, 57, 0.08);
}

.topic-card-topics {
  border-radius: var(--radius-lg);
}

.lead-story,
.mini-story,
.media-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  overflow: hidden;
}

.news-card-visual {
  aspect-ratio: 16 / 9;
}

.lead-story {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  padding: 12px;
  min-height: 0;
  border-radius: 30px;
  position: relative;
  --surface-x: 50%;
  --surface-y: 50%;
  --surface-tilt-x: 0deg;
  --surface-tilt-y: 0deg;
  transform: perspective(1400px) rotateX(var(--surface-tilt-x)) rotateY(var(--surface-tilt-y));
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, border-color 220ms ease;
}

.lead-story::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.09) 48%, transparent 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.lead-story.is-surface-active::after,
.lead-story:hover::after {
  opacity: 1;
}

.story-visual {
  aspect-ratio: 16 / 9.2;
}

.story-copy,
.mini-story-copy,
.media-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: calc(100% - 32px);
  min-width: 0;
  padding: 0;
  margin: 0 16px 16px;
}

.story-copy {
  gap: 14px;
}

.story-copy h3 {
  font-size: 1.56rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead-story .story-visual {
  aspect-ratio: 16 / 6.9;
  min-height: 0;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(7, 11, 20, 0.16);
}

.story-copy .text-card-desc {
  font-size: 0.92rem;
  line-height: 1.62;
}

.lead-story-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 16px 10px 6px 8px;
}

.lead-story-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.lead-story-topline .card-kicker {
  margin: 0;
}

.lead-story-topline .compact-story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--meta-ink);
  font-size: 0.76rem;
  line-height: 1.4;
}

.lead-story .story-copy {
  justify-content: flex-start;
  flex: 1 1 auto;
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.lead-story .story-copy h3 {
  font-size: clamp(1.56rem, 1.72vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
  text-wrap: pretty;
}

.lead-story .story-copy .text-card-desc {
  max-width: 62ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.lead-story .story-copy .meta-row {
  gap: 10px;
  font-size: 0.78rem;
  color: var(--meta-ink);
}

.snapshot-live-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 22px;
  flex: 1;
}

.snapshot-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.snapshot-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34ffc1, #0ac7ff);
  box-shadow: 0 0 16px rgba(52, 255, 193, 0.52);
  flex: 0 0 auto;
}

.snapshot-live-note {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.snapshot-board-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.snapshot-board-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--meta-ink-soft);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.snapshot-board-tab.active,
.snapshot-board-tab:hover,
.snapshot-board-tab:focus-visible {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.24);
  background: rgba(91, 109, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(91, 109, 255, 0.14);
}

.snapshot-board-tab.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow: 0 0 12px rgba(52, 255, 193, 0.42);
  display: inline-block;
  margin-right: 8px;
}

.snapshot-board-tab.active::after {
  content: "live";
  margin-left: 8px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snapshot-live-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  transition: opacity 220ms ease, transform 220ms ease;
  flex: 1;
}

.snapshot-live-list.is-switching {
  opacity: 0.56;
  transform: translateY(3px);
}

.snapshot-live-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, opacity 180ms ease;
}

.snapshot-live-rank {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.snapshot-live-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.snapshot-live-model-name {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.snapshot-live-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--meta-ink-soft);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.snapshot-live-score {
  color: var(--meta-ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  justify-self: end;
}

.snapshot-live-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.snapshot-board-uses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}

.snapshot-board-uses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snapshot-board-uses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-board-use-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.snapshot-board-use-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snapshot-board-use-card h3 {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.topics-watch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  flex: 1;
}

.topic-watch-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 126px;
  padding: 16px 17px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  flex: 1;
}

.topic-watch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 109, 255, 0.28);
  background: var(--panel-strong);
}

.topic-watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topic-watch-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-watch-index {
  color: var(--meta-ink-soft);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.topic-watch-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.topic-watch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.48;
}

.topic-watch-path {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.craze-inline-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  align-items: start;
  gap: 24px 28px;
  padding: 24px 24px 22px;
  position: relative;
  overflow: hidden;
}

.craze-inline-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.92), rgba(0, 229, 255, 0.42));
}

.craze-home-callout {
  gap: 14px;
}

.craze-inline-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 64ch;
}

.craze-inline-copy h3 {
  margin: 0;
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.craze-inline-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.62;
}

.proof-block {
  gap: 18px;
}

.proof-heading {
  align-items: start;
}

.proof-heading h2 {
  max-width: 14ch;
}

.proof-heading .section-caption {
  max-width: 42ch;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(52, 255, 193, 0.8), rgba(0, 229, 255, 0.28));
}

.proof-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.proof-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.proof-stat {
  color: var(--text);
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.craze-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.craze-inline-actions-stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.craze-inline-actions-stack .button {
  width: 100%;
  justify-content: center;
}

.mini-story {
  padding: 16px;
  gap: 14px;
}

.mini-story-left .mini-visual {
  aspect-ratio: 16 / 6.5;
}

.mini-visual {
  aspect-ratio: 16 / 9;
}

.topic-card-home {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  min-height: 108px;
}

.topic-index {
  color: rgba(255, 255, 255, 0.24);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  min-width: 52px;
}

.topic-card-home p {
  margin: 0;
  color: var(--muted);
}

.topic-card-home h3 {
  margin: 0 0 4px;
}

.topic-card-home-link {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topic-card-home-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 109, 255, 0.22);
  background: var(--panel-strong);
}

html[data-theme="light"] .topic-card-home-link:hover,
html[data-theme="light"] .topic-watch-card:hover,
html[data-theme="light"] .decision-card:hover,
html[data-theme="light"] .framework-card:hover,
html[data-theme="light"] .route-card:hover,
html[data-theme="light"] .media-card:hover,
html[data-theme="light"] .mini-story:hover,
html[data-theme="light"] .article-card:hover,
html[data-theme="light"] .signal-brief-item:hover,
html[data-theme="light"] a.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 26px 52px rgba(23, 37, 57, 0.1);
}

.decision-card,
.framework-card,
.route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 109, 255, 0.8), rgba(0, 229, 255, 0.5));
}

.insight-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.insight-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  max-width: 28ch;
}

.snapshot-block .inline-link,
.topics-block .inline-link {
  align-self: flex-start;
}

.insight-card-wide {
  grid-column: 1 / -1;
  min-height: 150px;
}

.decision-card {
  position: relative;
  overflow: hidden;
}

.decision-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(91, 109, 255, 0.7), rgba(0, 229, 255, 0.45));
  opacity: 0.75;
}

.decision-card h3,
.framework-card h3,
.route-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.decision-card p,
.framework-card p,
.route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.88rem;
}

.decision-card p {
  max-width: 35ch;
}

.framework-card p {
  max-width: 33ch;
}

.decision-card .simple-list {
  margin-top: auto;
  padding-top: 4px;
}

.route-card {
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.route-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 109, 255, 0.35);
  background: var(--panel-strong);
}

.route-card p:last-child {
  max-width: 30ch;
}

.route-card .meta-row {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.74rem;
  color: var(--meta-ink-soft);
}

.quick-paths-block {
  gap: 16px;
}

.quick-paths-block .section-heading {
  align-items: start;
}

.quick-paths-block .section-heading h2 {
  max-width: 16ch;
}

.quick-paths-block .section-caption {
  max-width: 34ch;
}

.lab-preview-block {
  margin-top: 10px;
}

.media-card-visual {
  aspect-ratio: 16 / 10;
}

.craze-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.craze-copy {
  padding: 8px;
}

.craze-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.craze-visual {
  aspect-ratio: 4 / 3;
}

.meta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.meta-row span {
  position: relative;
}

.meta-row span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 2px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  vertical-align: middle;
}

.page-intro {
  min-height: 220px;
  border-radius: var(--radius-xl);
}

.page-intro p {
  max-width: 60ch;
  line-height: 1.7;
  margin: 12px 0 0;
}

.news-intro {
  min-height: 196px;
  padding-top: 24px;
  padding-bottom: 22px;
}

.news-intro p:not(.eyebrow) {
  max-width: 84ch;
  line-height: 1.56;
  margin-top: 10px;
}

.news-feed-block {
  gap: 18px;
}

.news-carousel-shell {
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(91, 109, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(9, 15, 28, 0.96), rgba(8, 14, 24, 0.88));
}

.news-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.news-carousel-head h2,
.news-main-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.28rem, 1.6vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.news-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.news-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.news-carousel-btn:hover,
.news-carousel-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(115, 245, 207, 0.44);
  background: rgba(115, 245, 207, 0.12);
}

.news-carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.news-carousel-stage {
  position: relative;
  min-height: 464px;
  overflow: visible;
}

.news-carousel-card {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  overflow: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    left 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 320ms ease,
    filter 320ms ease,
    box-shadow 320ms ease;
}

.news-carousel-card[data-position="center"] {
  left: 20%;
  width: 60%;
  z-index: 3;
  transform: translateX(0) scale(1);
  box-shadow: 0 32px 80px rgba(6, 10, 20, 0.34);
  padding: 0;
  min-height: 464px;
}

.news-carousel-card[data-position="left"] {
  left: 11%;
  width: 18%;
  z-index: 2;
  transform: perspective(1400px) rotateY(18deg) scale(0.94);
  opacity: 0.86;
  filter: saturate(0.85) brightness(0.9);
}

.news-carousel-card[data-position="right"] {
  left: 71%;
  width: 18%;
  z-index: 2;
  transform: perspective(1400px) rotateY(-18deg) scale(0.94);
  opacity: 0.86;
  filter: saturate(0.85) brightness(0.9);
}

.news-carousel-card[data-position="far-left"] {
  left: 0;
  width: 11%;
  z-index: 1;
  transform: perspective(1400px) rotateY(26deg) scale(0.86);
  opacity: 0.68;
  filter: saturate(0.75) brightness(0.78) blur(0.2px);
}

.news-carousel-card[data-position="far-right"] {
  left: 89%;
  width: 11%;
  z-index: 1;
  transform: perspective(1400px) rotateY(-26deg) scale(0.86);
  opacity: 0.68;
  filter: saturate(0.75) brightness(0.78) blur(0.2px);
}

.news-carousel-card[data-position="hidden"] {
  left: 50%;
  width: 10%;
  z-index: 0;
  transform: translateX(-50%) scale(0.82);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

.news-carousel-card-visual {
  aspect-ratio: 16 / 9.6;
  border-radius: 22px;
  overflow: hidden;
}

.news-carousel-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-carousel-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.news-carousel-card[data-position="center"] .news-carousel-card-visual {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: inherit;
}

.news-carousel-card[data-position="center"] .news-carousel-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0) 0%, rgba(5, 9, 18, 0) 68%, rgba(5, 9, 18, 0.12) 78%, rgba(5, 9, 18, 0.34) 88%, rgba(5, 9, 18, 0.62) 96%, rgba(5, 9, 18, 0.78) 100%);
  pointer-events: none;
}

.news-carousel-card[data-position="center"] .news-carousel-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 72px 28px 18px;
  gap: 8px;
  color: rgba(244, 247, 255, 0.96);
  background: linear-gradient(180deg, rgba(5, 9, 18, 0) 0%, rgba(5, 9, 18, 0.16) 26%, rgba(5, 9, 18, 0.5) 66%, rgba(5, 9, 18, 0.76) 100%);
}

.news-carousel-card-copy h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.news-carousel-card-copy p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.news-carousel-card[data-position="center"] .card-kicker,
.news-carousel-card[data-position="center"] .news-carousel-card-copy h3,
.news-carousel-card[data-position="center"] .news-carousel-card-copy p:last-of-type,
.news-carousel-card[data-position="center"] .news-carousel-card-copy .meta-row {
  position: relative;
  z-index: 1;
}

.news-carousel-card[data-position="center"] .card-kicker {
  color: rgba(121, 242, 227, 0.98);
}

.news-carousel-card[data-position="center"] .news-carousel-card-copy h3 {
  max-width: 13ch;
  color: #f7fbff;
  font-size: clamp(1.4rem, 2.2vw, 2.3rem);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.news-carousel-card[data-position="center"] .news-carousel-card-copy p:last-of-type {
  max-width: 48ch;
  color: rgba(236, 241, 248, 0.9);
  font-size: 0.98rem;
  line-height: 1.42;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.news-carousel-card[data-position="center"] .news-carousel-card-copy .meta-row {
  color: rgba(232, 238, 248, 0.82);
  font-size: 0.92rem;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.26);
}

.news-carousel-card[data-position="left"] .news-carousel-card-copy p:last-of-type,
.news-carousel-card[data-position="right"] .news-carousel-card-copy p:last-of-type,
.news-carousel-card[data-position="left"] .meta-row,
.news-carousel-card[data-position="right"] .meta-row {
  display: none;
}

.news-carousel-card[data-position="far-left"] .news-carousel-card-copy p:last-of-type,
.news-carousel-card[data-position="far-right"] .news-carousel-card-copy p:last-of-type,
.news-carousel-card[data-position="far-left"] .meta-row,
.news-carousel-card[data-position="far-right"] .meta-row {
  display: none;
}

.news-carousel-card[data-position="left"] .news-carousel-card-copy h3,
.news-carousel-card[data-position="right"] .news-carousel-card-copy h3 {
  font-size: 1rem;
  line-height: 1.14;
}

.news-carousel-card[data-position="far-left"] .news-carousel-card-visual,
.news-carousel-card[data-position="far-right"] .news-carousel-card-visual {
  aspect-ratio: 1 / 1.36;
  border-radius: 18px;
}

.news-carousel-card[data-position="far-left"] .news-carousel-card-copy,
.news-carousel-card[data-position="far-right"] .news-carousel-card-copy {
  gap: 8px;
}

.news-carousel-card[data-position="far-left"] .card-kicker,
.news-carousel-card[data-position="far-right"] .card-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.news-carousel-card[data-position="far-left"] .news-carousel-card-copy h3,
.news-carousel-card[data-position="far-right"] .news-carousel-card-copy h3 {
  font-size: 0.82rem;
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.news-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 18px;
  align-items: start;
}

.news-main-column,
.news-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.news-main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.news-main-head .rail-caption {
  max-width: 30ch;
  margin: 0;
}

.news-signal-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.signal-note-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px 18px 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.signal-note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 229, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(91, 109, 255, 0.08), transparent 56%);
  opacity: 0.9;
  pointer-events: none;
}

.signal-note-card > * {
  position: relative;
  z-index: 1;
}

.signal-note-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.signal-note-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.signal-note-card-plain::before {
  background:
    linear-gradient(135deg, rgba(115, 245, 207, 0.06), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.trending-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(115, 245, 207, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(10, 16, 28, 0.88));
}

.news-side-ad-slot {
  aspect-ratio: 3 / 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 109, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(0, 229, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(10, 17, 30, 0.96), rgba(10, 16, 28, 0.86));
}

.news-side-ad-slot .ad-slot-copy {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.news-side-ad-slot .ad-slot-copy h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.18;
}

.news-side-ad-slot .ad-slot-copy p {
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.38;
}

.trending-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.trending-panel-head h3 {
  margin: 6px 0 0;
  font-size: 1.18rem;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.trending-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(115, 245, 207, 0.22);
  background: rgba(115, 245, 207, 0.1);
  color: rgba(196, 255, 236, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trending-topic-list {
  display: grid;
  gap: 8px;
}

.trending-topic-link {
  position: relative;
  display: block;
  padding: 15px 14px 11px 70px;
  min-height: 52px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.trending-topic-link:hover,
.trending-topic-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(91, 109, 255, 0.34);
  background: rgba(91, 109, 255, 0.1);
}

.trending-topic-rank {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -1px;
  top: -1px;
  width: 42px;
  height: 24px;
  border-radius: 10px 0 7px 0;
  background: linear-gradient(180deg, #ff615c, #ff5047);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.58rem;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(255, 83, 74, 0.24);
}

.trending-topic-rank::after {
  display: none;
}

.trending-topic-link:nth-child(2) .trending-topic-rank {
  background: linear-gradient(180deg, #ffb93d, #ff9d1f);
  box-shadow: 0 10px 22px rgba(255, 168, 44, 0.2);
}

.trending-topic-link:nth-child(2) .trending-topic-rank::after {
  border-color: rgba(143, 77, 0, 0.92) transparent transparent transparent;
}

.trending-topic-link:nth-child(3) .trending-topic-rank {
  background: linear-gradient(180deg, #5a8dff, #3f73ff);
  box-shadow: 0 10px 22px rgba(63, 115, 255, 0.22);
}

.trending-topic-link:nth-child(3) .trending-topic-rank::after {
  border-color: rgba(29, 53, 133, 0.92) transparent transparent transparent;
}

.trending-topic-link:nth-child(4) .trending-topic-rank {
  background: linear-gradient(180deg, #7b86a2, #626d88);
  box-shadow: 0 10px 22px rgba(98, 109, 136, 0.2);
}

.trending-topic-link:nth-child(4) .trending-topic-rank::after {
  border-color: rgba(54, 60, 78, 0.92) transparent transparent transparent;
}

.trending-topic-link:nth-child(5) .trending-topic-rank {
  background: linear-gradient(180deg, #7b86a2, #626d88);
  box-shadow: 0 10px 22px rgba(98, 109, 136, 0.2);
}

.trending-topic-link:nth-child(5) .trending-topic-rank::after {
  border-color: rgba(54, 60, 78, 0.92) transparent transparent transparent;
}

.trending-topic-link:nth-child(n+6) .trending-topic-rank {
  background: linear-gradient(180deg, #7b86a2, #626d88);
  box-shadow: 0 10px 22px rgba(98, 109, 136, 0.18);
}

.trending-topic-link:nth-child(n+6) .trending-topic-rank::after {
  border-color: rgba(54, 60, 78, 0.92) transparent transparent transparent;
}

.trending-topic-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trending-topic-copy strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-topic-copy strong.trending-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: currentColor;
  animation: cursorBlink 650ms step-end infinite;
}

.mixed-news-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.9), rgba(10, 16, 28, 0.82));
}

.mixed-news-feed .empty-state {
  margin: 18px;
}

.mixed-news-feed .article-card,
.mixed-news-feed .article-card-wide,
.mixed-news-feed .article-card-wide-secondary,
.mixed-news-feed .article-card-textonly,
.mixed-news-feed .article-card-tall {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 14px 18px;
  min-height: 0;
  padding: 12px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-decoration: none;
}

.mixed-news-feed .article-card:last-child,
.mixed-news-feed .article-card-wide:last-child,
.mixed-news-feed .article-card-wide-secondary:last-child,
.mixed-news-feed .article-card-textonly:last-child,
.mixed-news-feed .article-card-tall:last-child {
  border-bottom: 0;
}

.mixed-news-feed .article-card:hover,
.mixed-news-feed .article-card-wide:hover,
.mixed-news-feed .article-card-wide-secondary:hover,
.mixed-news-feed .article-card-textonly:hover,
.mixed-news-feed .article-card-tall:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mixed-news-feed .article-card-img {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  aspect-ratio: 1.48 / 1;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.mixed-news-feed .article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mixed-news-feed .card-kicker {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(121, 242, 227, 0.96);
}

.mixed-news-feed .article-card h2,
.mixed-news-feed .article-card-wide h2,
.mixed-news-feed .article-card-wide-secondary h2,
.mixed-news-feed .article-card-textonly h2,
.mixed-news-feed .article-card-tall h2 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.mixed-news-feed .article-card > p:not(.card-kicker),
.mixed-news-feed .article-card-wide > p:not(.card-kicker),
.mixed-news-feed .article-card-wide-secondary > p:not(.card-kicker),
.mixed-news-feed .article-card-textonly > p:not(.card-kicker),
.mixed-news-feed .article-card-tall > p:not(.card-kicker) {
  display: none;
}

.mixed-news-feed .article-card .meta-row,
.mixed-news-feed .article-card-wide .meta-row,
.mixed-news-feed .article-card-wide-secondary .meta-row,
.mixed-news-feed .article-card-textonly .meta-row,
.mixed-news-feed .article-card-tall .meta-row {
  grid-column: 2;
  grid-row: 3;
  margin-top: 2px;
  font-size: 0.84rem;
  color: rgba(229, 235, 245, 0.74);
}

.mixed-news-feed .article-card-personalized {
  border-color: rgba(255, 255, 255, 0.08);
}

.mixed-news-feed .article-card-personalized .article-card-img::after {
  display: none;
}

.mixed-news-feed .personalized-badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

html[data-theme="light"] .mixed-news-feed {
  border-color: rgba(125, 143, 170, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9));
  box-shadow: 0 20px 52px rgba(63, 83, 130, 0.08);
}

html[data-theme="light"] .mixed-news-feed .article-card,
html[data-theme="light"] .mixed-news-feed .article-card-wide,
html[data-theme="light"] .mixed-news-feed .article-card-wide-secondary,
html[data-theme="light"] .mixed-news-feed .article-card-textonly,
html[data-theme="light"] .mixed-news-feed .article-card-tall {
  background: rgba(255, 255, 255, 0.56);
  border-bottom-color: rgba(125, 143, 170, 0.14);
}

html[data-theme="light"] .mixed-news-feed .article-card:hover,
html[data-theme="light"] .mixed-news-feed .article-card-wide:hover,
html[data-theme="light"] .mixed-news-feed .article-card-wide-secondary:hover,
html[data-theme="light"] .mixed-news-feed .article-card-textonly:hover,
html[data-theme="light"] .mixed-news-feed .article-card-tall:hover {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .mixed-news-feed .card-kicker {
  color: #187f86;
}

html[data-theme="light"] .mixed-news-feed .article-card h2,
html[data-theme="light"] .mixed-news-feed .article-card-wide h2,
html[data-theme="light"] .mixed-news-feed .article-card-wide-secondary h2,
html[data-theme="light"] .mixed-news-feed .article-card-textonly h2,
html[data-theme="light"] .mixed-news-feed .article-card-tall h2 {
  color: #18253d;
}

html[data-theme="light"] .mixed-news-feed .article-card .meta-row,
html[data-theme="light"] .mixed-news-feed .article-card-wide .meta-row,
html[data-theme="light"] .mixed-news-feed .article-card-wide-secondary .meta-row,
html[data-theme="light"] .mixed-news-feed .article-card-textonly .meta-row,
html[data-theme="light"] .mixed-news-feed .article-card-tall .meta-row {
  color: rgba(74, 92, 124, 0.86);
}

html[data-theme="light"] .news-side-ad-slot {
  border-color: rgba(125, 143, 170, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 109, 255, 0.1), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(0, 229, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.88));
}

html[data-theme="light"] .trending-topic-link {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(125, 143, 170, 0.18);
}

html[data-theme="light"] .trending-topic-link:hover,
html[data-theme="light"] .trending-topic-link:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(91, 109, 255, 0.26);
}

html[data-theme="light"] .trending-topic-copy strong {
  color: #18253d;
}

.craze-page .page-stack {
  gap: 28px;
}

.craze-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  min-height: 520px;
  padding: 26px;
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    radial-gradient(circle at 18% 12%, rgba(115, 245, 207, 0.2), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(66, 99, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 255, 0.52));
  border: 1px solid rgba(125, 143, 170, 0.16);
  box-shadow: 0 28px 80px rgba(63, 83, 130, 0.08);
}

[data-theme="dark"] .craze-workbench {
  background:
    radial-gradient(circle at 18% 12%, rgba(115, 245, 207, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(91, 109, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(17, 23, 45, 0.84), rgba(8, 13, 24, 0.72));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.craze-workbench-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(6px, 2vw, 24px);
}

.craze-workbench-copy h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(2.55rem, 5vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.craze-workbench-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.craze-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.craze-workbench-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] .craze-workbench-panel {
  background:
    linear-gradient(180deg, rgba(23, 32, 58, 0.72), rgba(12, 18, 34, 0.58)),
    rgba(255, 255, 255, 0.035);
}

.craze-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.craze-console-head h2 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.craze-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(115, 245, 207, 0.32);
  border-radius: 999px;
  color: #207c68;
  background: rgba(115, 245, 207, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .craze-status-dot {
  color: rgba(154, 255, 226, 0.92);
}

.craze-status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(115, 245, 207, 0.8);
}

.craze-workbench-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .craze-workbench-tabs {
  background: rgba(255, 255, 255, 0.045);
}

.craze-workbench-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.craze-workbench-tabs .active {
  color: #122038;
  background: linear-gradient(135deg, rgba(115, 245, 207, 0.72), rgba(95, 141, 255, 0.42));
  box-shadow: 0 12px 30px rgba(66, 99, 255, 0.18);
}

[data-theme="dark"] .craze-workbench-tabs .active {
  color: #eaf2ff;
  background: linear-gradient(135deg, rgba(115, 245, 207, 0.22), rgba(95, 141, 255, 0.3));
}

.craze-workbench-output {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(91, 109, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(245, 248, 255, 0.62)),
    rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .craze-workbench-output {
  border-color: rgba(91, 109, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(23, 31, 58, 0.78), rgba(10, 15, 29, 0.74)),
    rgba(255, 255, 255, 0.04);
}

.craze-workbench-output::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 109, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.craze-workbench-output h3 {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 16px 0 14px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.craze-workbench-output p {
  position: relative;
  z-index: 1;
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.craze-output-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.craze-output-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.craze-output-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 0 16px rgba(115, 245, 207, 0.42);
}

.craze-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.craze-context-card,
.craze-evidence-card,
.craze-agent-bridge {
  border-radius: var(--radius-xl);
}

.craze-context-card {
  padding: 24px;
}

.craze-context-card h2,
.craze-agent-copy h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(1.32rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.craze-context-card p,
.craze-agent-copy p,
.craze-agent-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.craze-evidence-section {
  margin-top: 4px;
}

.craze-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.craze-evidence-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.craze-evidence-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 109, 255, 0.28);
}

.craze-evidence-card span,
.craze-agent-step span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.craze-evidence-card h3 {
  margin: auto 0 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.craze-evidence-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.craze-agent-bridge {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(91, 109, 255, 0.09), rgba(115, 245, 207, 0.08)),
    var(--panel);
}

.craze-agent-copy {
  max-width: 620px;
}

.craze-agent-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.craze-agent-step {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.36);
}

[data-theme="dark"] .craze-agent-step {
  background: rgba(255, 255, 255, 0.04);
}

.craze-agent-step strong {
  display: block;
  margin: 34px 0 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.filter-chip.active {
  color: var(--text);
  background: rgba(91, 109, 255, 0.18);
  border-color: rgba(91, 109, 255, 0.4);
}

/* ── Share buttons ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-hero-copy .share-bar {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
  gap: 12px;
}

.ssr-article-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.share-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 180ms ease;
}

.share-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(91, 109, 255, 0.35);
  transform: translateY(-1px);
}

.share-btn.copied {
  color: var(--accent);
  border-color: rgba(91, 109, 255, 0.45);
  background: rgba(91, 109, 255, 0.12);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.article-end-divider {
  height: 1px;
  margin: 50px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 109, 255, 0), rgba(91, 109, 255, 0.38), rgba(45, 212, 191, 0.22), rgba(91, 109, 255, 0));
}

/* ── Article layout ── */
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  padding: 24px;
}

.article-hero-copy {
  padding: 8px 4px;
}

.article-hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.article-hero-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.article-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
}

html[data-theme="light"] .article-hero-visual,
html[data-theme="light"] .story-visual,
html[data-theme="light"] .signal-brief-thumb,
html[data-theme="light"] .media-card-visual,
html[data-theme="light"] .mini-visual,
html[data-theme="light"] .article-card-img {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 32px rgba(23, 37, 57, 0.08);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
}

.article-content {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.75;
}

.article-takeaways {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-section + .article-section {
  margin-top: 36px;
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
}

.article-section p {
  margin: 0 0 16px;
}

.article-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.related-section {
  margin-top: 42px;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.simple-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

.simple-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transform: translateY(-50%);
}

.article-summary {
  font-size: 1rem;
  line-height: 1.65;
  margin: 10px 0 0;
}

.article-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-meta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.article-meta-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.article-meta-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.article-meta-card .simple-list {
  gap: 7px;
}

.lens-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

.inline-link-tight {
  margin-top: 14px;
  display: inline-flex;
}

.snapshot-live-footer .inline-link-tight {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topics-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.topics-overview-panel,
.topics-signal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.topics-overview-panel p,
.topics-signal-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.topics-key-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topics-key-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
}

.topic-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-card-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(91, 109, 255, 0.12);
  border: 1px solid rgba(91, 109, 255, 0.18);
  color: var(--muted);
  font-size: 0.76rem;
}

/* ── Article progress bar ── */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.article-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 16px rgba(91, 109, 255, 0.45);
  transition: width 100ms linear;
}

/* ── CRAZE Reading Lens ── */
.ai-output-shell {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(91, 109, 255, 0.16), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(0, 229, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(91, 109, 255, 0.14), rgba(0, 229, 255, 0.06) 58%, rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(91, 109, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(11, 19, 48, 0.16);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ai-output-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 16%, rgba(255, 255, 255, 0.08) 50%, transparent 84%);
  transform: translateX(-100%);
  animation: ai-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}

.ai-output-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-output-shell.is-generating {
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(11, 19, 48, 0.22),
    0 0 0 1px rgba(91, 109, 255, 0.08);
}

.ai-output-shell.is-generating .ai-output-dot {
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.55),
    0 0 30px rgba(91, 109, 255, 0.22);
}

.ai-output-shell.is-generating::before {
  animation-duration: 2.8s;
}

.ai-output-shell.is-complete {
  border-color: rgba(91, 109, 255, 0.24);
}

.ai-output-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.craze-lens #tab-summary.ai-output-shell {
  padding: 12px 14px 14px;
}

.craze-lens #tab-summary .ai-output-head {
  display: none;
}

.craze-lens #tab-summary .ai-output-status {
  margin-bottom: 10px;
}

.craze-lens #tab-summary .simple-list {
  gap: 10px;
}

.ai-output-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  flex-shrink: 0;
}

.ai-output-shell.is-generating .ai-output-status::after {
  content: "";
  width: 1.7em;
  height: 1em;
  margin-left: 2px;
  background:
    radial-gradient(circle at 12% 50%, currentColor 0 1.5px, transparent 2px),
    radial-gradient(circle at 50% 50%, currentColor 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 50%, currentColor 0 1.5px, transparent 2px);
  opacity: 0.72;
  animation: ai-status-dots 1.2s linear infinite;
}

.ai-output-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  animation: ai-pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.ai-response-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  margin-top: 10px;
}

.craze-lens {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 14%, rgba(91, 109, 255, 0.2), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(0, 229, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(91, 109, 255, 0.14), rgba(0, 229, 255, 0.07) 52%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(91, 109, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 38px rgba(23, 37, 57, 0.08);
}

.craze-lens::before,
.craze-lens::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.craze-lens::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 100%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.1), transparent 20%);
  opacity: 0.9;
}

.craze-lens::after {
  inset: 16px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(91, 109, 255, 0.16);
  background: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 229, 255, 0.04);
}

.craze-lens > * {
  position: relative;
  z-index: 1;
}

.related-section .section-heading {
  gap: 12px;
  margin-bottom: 4px;
}

.related-section .section-heading h2 {
  font-size: clamp(1.85rem, 2.1vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.related-section .card-grid {
  gap: 16px;
}

.related-section .article-card {
  min-height: 168px;
  justify-content: space-between;
  align-items: stretch;
  padding: 20px 22px;
  gap: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
}

.related-section .article-card .card-kicker {
  margin-bottom: 2px;
}

.related-section .article-card h3 {
  max-width: 18ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.36;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.related-reading-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.related-reading-thumb {
  align-self: center;
  width: 132px;
  height: 104px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(11, 19, 48, 0.12);
}

.related-reading-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lens-subtitle,
.lens-intro,
.lens-block p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.lens-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.lens-tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lens-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.lens-tab.active {
  color: var(--text);
  background: rgba(91, 109, 255, 0.18);
  border-color: rgba(91, 109, 255, 0.4);
}

.lens-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.craze-lens .typewriter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.craze-lens .typewriter-list li {
  position: relative;
  padding-left: 22px;
  opacity: 0.38;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.craze-lens .typewriter-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.craze-lens .typewriter-line {
  display: inline;
}

.craze-lens .typewriter-caret {
  display: inline-block;
  width: 0.55ch;
  margin-left: 2px;
  color: var(--accent);
  animation: craze-type-caret 0.9s steps(1) infinite;
}

.craze-lens .typewriter-item.is-complete .typewriter-caret {
  display: none;
}

.craze-lens .typewriter-item.is-active,
.craze-lens .typewriter-item.is-complete {
  opacity: 1;
  transform: translateY(0);
}

@keyframes craze-type-caret {
  0%, 45% {
    opacity: 1;
  }

  46%, 100% {
    opacity: 0;
  }
}

@keyframes ai-status-dots {
  0% {
    transform: translateX(0);
    opacity: 0.45;
  }

  50% {
    transform: translateX(2px);
    opacity: 0.95;
  }

  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .craze-lens .typewriter-caret {
    animation: none;
  }

  .ai-output-shell.is-generating::before,
  .ai-output-shell.is-generating .ai-output-dot,
  .ai-output-shell.is-generating .ai-output-status::after {
    animation: none;
  }
}

.lens-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lens-link-card {
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 180ms ease;
}

.lens-link-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Rank table ── */
.table-card {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  align-items: center;
  min-height: 58px;
  gap: 14px;
}

.grid-rank {
  grid-template-columns: 36px 1.5fr 1.1fr 0.8fr 0.8fr 0.8fr;
}

.table-head {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.table-row + .table-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-row span {
  font-size: 0.88rem;
  color: var(--text);
}

.rank-board-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-metric-grid .feature-card {
  min-height: 100%;
}

.rank-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 24px;
}

.rank-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-view-tab {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--meta-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rank-view-tab.active,
.rank-view-tab:hover,
.rank-view-tab:focus-visible {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.32);
  background: rgba(91, 109, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(91, 109, 255, 0.14);
}

.rank-view-tab.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34ffc1;
  box-shadow: 0 0 12px rgba(52, 255, 193, 0.42);
  display: inline-block;
  margin-right: 8px;
}

.rank-view-tab.active::after {
  content: "live";
  margin-left: 8px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
  justify-content: end;
}

.rank-select-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rank-select-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rank-select-field select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.rank-source-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rank-source-chip {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.table-scroll {
  overflow-x: auto;
}

.rank-grid-dynamic {
  grid-template-columns: 56px 90px 76px minmax(240px, 1.8fr) minmax(180px, 1.1fr) minmax(92px, 0.72fr) minmax(170px, 1.08fr) minmax(120px, 0.86fr) minmax(150px, 1fr);
}

.table-head.rank-grid-dynamic {
  min-width: 1320px;
}

#rankTableBody .table-row {
  min-width: 1320px;
}

.rank-brief-card {
  justify-content: flex-start;
}

.rank-trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  border-radius: 999px;
}

.trophy-gold {
  background: rgba(255, 214, 88, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 88, 0.25);
}

.trophy-silver {
  background: rgba(211, 220, 232, 0.14);
  box-shadow: inset 0 0 0 1px rgba(211, 220, 232, 0.24);
}

.trophy-bronze {
  background: rgba(214, 146, 94, 0.14);
  box-shadow: inset 0 0 0 1px rgba(214, 146, 94, 0.24);
}

.rank-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.change-new {
  color: #f5ad42;
  background: rgba(245, 173, 66, 0.12);
}

.change-up {
  color: #25c56d;
  background: rgba(37, 197, 109, 0.12);
}

.change-down {
  color: #3aa0ff;
  background: rgba(58, 160, 255, 0.12);
}

.change-flat {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.rank-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.rank-model-cell,
.rank-vendor-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rank-vendor-cell {
  min-width: 0;
}

.vendor-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: white;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.vendor-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.vendor-openai { background: rgba(255, 255, 255, 0.94); }
.vendor-anthropic { background: rgba(255, 248, 241, 0.94); }
.vendor-google { background: rgba(248, 250, 255, 0.94); }
.vendor-moonshot { background: rgba(247, 248, 252, 0.94); }
.vendor-xiaomi { background: rgba(255, 247, 240, 0.94); }
.vendor-meta { background: rgba(245, 249, 255, 0.94); }
.vendor-openrouter { background: rgba(245, 248, 255, 0.94); }
.vendor-deepseek { background: rgba(245, 248, 255, 0.94); }
.vendor-minimax { background: rgba(255, 247, 252, 0.94); }
.vendor-xai { background: rgba(248, 248, 248, 0.94); }
.vendor-stepfun { background: rgba(246, 246, 255, 0.94); }
.vendor-mythos { background: rgba(247, 248, 250, 0.94); }
.vendor-zhipu { background: rgba(245, 247, 255, 0.94); }
.vendor-qwen { background: rgba(247, 244, 255, 0.94); }
.vendor-default { background: rgba(248, 250, 252, 0.94); }

.provenance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rank-page .page-stack {
  gap: 24px;
}

.rank-page .page-intro {
  padding: 30px 34px;
}

.rank-page .page-intro p:not(.eyebrow) {
  max-width: 62ch;
}

.rank-page .rank-board-shell .section-heading {
  gap: 6px;
  margin-bottom: 2px;
}

.rank-page .rank-board-shell .section-caption {
  max-width: 42ch;
  font-size: 0.84rem;
  line-height: 1.45;
}

.rank-page .decision-card h3 {
  font-size: 1.08rem;
  line-height: 1.24;
}

.rank-page .decision-card > p:not(.card-kicker) {
  font-size: 0.9rem;
  line-height: 1.58;
}

.rank-page .decision-card .simple-list {
  gap: 8px;
}

.rank-page .rank-metric-card {
  padding: 20px 22px;
}

.rank-page .rank-metric-card p:not(.card-kicker) {
  font-size: 0.88rem;
  line-height: 1.52;
}

.agent-hero-grid,
.agent-feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.agent-heat-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  gap: 20px;
}

.agent-hero-copy {
  padding: 30px 34px;
}

.agent-hero-copy p:not(.eyebrow) {
  max-width: 64ch;
}

.agent-signal-panel,
.agent-heat-list,
.agent-heat-side,
.agent-feature-panel,
.agent-inline-panel {
  padding: 22px;
  border-radius: 26px;
}

.agent-heat-list {
  display: grid;
  gap: 8px;
}

.agent-heat-list-body,
#agentHeatListBody {
  display: grid;
  gap: 4px;
}

.agent-heat-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-heat-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-heat-row-top {
  position: relative;
  padding-left: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.agent-heat-row-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 109, 255, 0.9), rgba(0, 229, 255, 0.52));
}

.agent-heat-row-top1 .agent-heat-rank {
  color: #f0b63f;
}

.agent-heat-row-top2 .agent-heat-rank {
  color: #b7c7e5;
}

.agent-heat-row-top3 .agent-heat-rank {
  color: #c98a55;
}

.agent-heat-row-top1 .agent-heat-rank-number {
  color: #f6bf4a;
}

.agent-heat-row-top2 .agent-heat-rank-number {
  color: #c7d4ea;
}

.agent-heat-row-top3 .agent-heat-rank-number {
  color: #d79a65;
}

.agent-heat-row:first-child {
  padding-top: 4px;
}

.agent-heat-row:last-child {
  padding-bottom: 2px;
}

.agent-heat-rank {
  width: 36px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  color: var(--text);
}

.agent-heat-trophy {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.agent-heat-trophy svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.14));
}

.agent-heat-rank-number {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.agent-heat-main {
  display: grid;
  gap: 2px;
}

.agent-heat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-heat-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agent-heat-head h3,
.agent-heat-note h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.1;
}

.agent-heat-type {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--meta-ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.agent-heat-main p,
.agent-heat-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.agent-heat-why {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--meta-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-heat-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.agent-metric-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(91, 109, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-metric-icon {
  display: inline-block;
  margin-right: 6px;
  color: #f7c95c;
  font-size: 0.86em;
  line-height: 1;
}

.agent-metric-pill.muted {
  color: var(--muted);
}

.agent-heat-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.agent-heat-footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-heat-more {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(91, 109, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.agent-heat-more:hover,
.agent-heat-more:focus-visible {
  border-color: rgba(91, 109, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.agent-heat-note {
  display: grid;
  gap: 10px;
}

.agent-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agent-inline-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
}

.agent-inline-copy h3,
.agent-feature-copy h2,
.agent-signal-panel h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.agent-inline-copy p:not(.card-kicker),
.agent-feature-copy p,
.agent-signal-panel p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.agent-feature-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.agent-link-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-agent-block {
  gap: 10px;
}

.home-robotics-block {
  gap: 10px;
}

.home-story-carousel {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: -10px;
}

.home-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: -10px;
}

.home-carousel-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-carousel-button:hover,
.home-carousel-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(91, 109, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.home-carousel-button:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.home-carousel-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.home-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 19.5vw);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.home-carousel-track::-webkit-scrollbar {
  display: none;
}

.home-story-card {
  display: flex;
  flex-direction: column;
  min-height: 348px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 109, 255, 0.26);
}

.home-story-card .compact-story-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.home-story-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.home-story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-story-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.home-story-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-story-copy .compact-story-meta {
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-story-card.is-surface-active,
.home-story-card:hover {
  box-shadow:
    0 20px 50px rgba(14, 20, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .home-carousel-button {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(23, 37, 57, 0.12);
}

html[data-theme="light"] .home-story-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(239, 245, 255, 0.74)),
    var(--panel);
}

.decision-path-grid,
.intent-route-grid,
.rank-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-channel-grid,
.agent-dossier-grid,
.trust-grid {
  margin-top: 18px;
}

.news-channel-grid {
  margin-bottom: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-dossier-grid .decision-card {
  min-height: 100%;
}

.decision-path-card,
.intent-route-card,
.rank-scenario-card {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
}

.decision-path-card::before,
.intent-route-card::before,
.rank-scenario-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.08), rgba(0, 229, 255, 0.03) 52%, transparent 80%);
  opacity: 0.9;
}

.decision-path-card > *,
.intent-route-card > *,
.rank-scenario-card > * {
  position: relative;
  z-index: 1;
}

.decision-path-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.decision-path-step {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 109, 255, 0.14);
  border: 1px solid rgba(91, 109, 255, 0.18);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.decision-path-card h3,
.intent-route-card h3,
.rank-scenario-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.decision-path-card p:not(.card-kicker),
.intent-route-card p,
.rank-scenario-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

.decision-path-link {
  margin-top: auto;
  color: var(--accent-cyan);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intent-route-card {
  min-height: 190px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.intent-route-card:hover,
.intent-route-card:focus-visible,
.intent-route-card.active {
  transform: translateY(-3px);
  border-color: rgba(91, 109, 255, 0.26);
  background: rgba(91, 109, 255, 0.11);
}

.intent-route-tag,
.rank-scenario-tone {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(91, 109, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-map-panel {
  margin: 18px 0 22px;
  padding: 20px 22px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.lead-map-copy h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.22;
}

.lead-map-copy p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.lead-map-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lead-map-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.lead-map-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(91, 109, 255, 0.18);
  border: 1px solid rgba(91, 109, 255, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-proof-strip-compact {
  max-width: 520px;
}

.craze-briefing-panel,
.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 20px;
  padding: 24px 26px;
  border-radius: 28px;
}

.newsletter-panel.home-newsletter {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding: 18px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 18%, rgba(115, 245, 207, 0.12), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(91, 109, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(10, 18, 34, 0.94), rgba(10, 17, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-panel.home-newsletter::before {
  content: "";
  position: absolute;
  inset: auto -12% -60% 54%;
  height: 180px;
  background: radial-gradient(circle, rgba(121, 242, 227, 0.1), transparent 62%);
  pointer-events: none;
}

.subscribe-band {
  display: grid;
  max-width: 980px;
  margin: 0 auto 10px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(12, 20, 36, 0.92), rgba(12, 19, 33, 0.88));
}

.craze-briefing-copy h2,
.newsletter-copy h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.craze-briefing-copy p:not(.eyebrow),
.newsletter-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.craze-briefing-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.newsletter-block {
  padding: 8px 0 18px;
}

.newsletter-copy {
  display: grid;
  gap: 12px;
}

.home-newsletter .newsletter-copy {
  gap: 10px;
  align-content: center;
}

.home-newsletter .newsletter-copy h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.16;
}

.home-newsletter .newsletter-copy p:not(.eyebrow) {
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.56;
}

.subscribe-band-copy {
  display: grid;
  gap: 4px;
}

.subscribe-band-copy h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.14;
}

.subscribe-band-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
  max-width: 42ch;
}

.newsletter-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-points span,
.personalized-badge,
.signal-intensity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(91, 109, 255, 0.16);
  background: rgba(91, 109, 255, 0.08);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.newsletter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.home-newsletter .subscribe-form {
  align-items: stretch;
}

.subscribe-form-shell {
  display: grid;
  gap: 6px;
  align-content: center;
}

.home-newsletter .subscribe-form-shell {
  gap: 8px;
}

.subscribe-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-newsletter .subscribe-input-wrap {
  min-height: 48px;
}

.subscribe-input-wrap svg {
  width: 18px;
  height: 18px;
  stroke: rgba(121, 242, 227, 0.88);
  flex: none;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.subscribe-input::placeholder {
  color: var(--muted);
}

.subscribe-submit {
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #08111f;
  background: linear-gradient(135deg, #8effdd, #5dc8ff);
  box-shadow: 0 14px 26px rgba(56, 191, 255, 0.16);
}

.home-newsletter .subscribe-submit {
  min-width: 124px;
  min-height: 48px;
  box-shadow: 0 14px 26px rgba(56, 191, 255, 0.16);
}

.subscribe-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.subscribe-microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.36;
}

.home-newsletter .subscribe-microcopy {
  max-width: 36ch;
  font-size: 0.74rem;
}

.continue-reading-section[hidden] {
  display: none !important;
}

.article-card-personalized {
  border-color: rgba(91, 109, 255, 0.24);
}

.article-card-personalized .article-card-img::after,
.lead-story .story-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0) 0%, rgba(9, 14, 24, 0.16) 100%);
}

.signal-intensity-badge {
  color: var(--text);
}

.rank-scenario-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-scenario-card {
  min-height: 176px;
}

.provenance-verified {
  color: #4bc77e;
  background: rgba(75, 199, 126, 0.13);
  box-shadow: inset 0 0 0 1px rgba(75, 199, 126, 0.22);
}

.provenance-mini {
  color: #6ec3ff;
  background: rgba(110, 195, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(110, 195, 255, 0.22);
}

.provenance-vendor {
  color: #f1b249;
  background: rgba(241, 178, 73, 0.13);
  box-shadow: inset 0 0 0 1px rgba(241, 178, 73, 0.22);
}

.provenance-reported {
  color: #d4d9e4;
  background: rgba(212, 217, 228, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 217, 228, 0.16);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(16px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease, color 200ms ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: 104px;
    width: 40px;
    height: 40px;
  }

  .craze-quick-panel {
    width: min(340px, calc(100vw - 24px));
  }

  .craze-nudge {
    max-width: min(250px, calc(100vw - 32px));
    padding: 10px 12px;
  }

  .craze-utility-row,
  .craze-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-path-grid,
  .intent-route-grid,
  .rank-scenario-grid,
  .news-channel-grid,
  .agent-heat-shell,
  .lead-map-panel,
  .agent-radar-grid,
  .agent-hero-grid,
  .agent-feature-panel,
  .agent-inline-panel {
    grid-template-columns: 1fr;
  }

  .lead-map-signals {
    justify-content: flex-start;
  }

  .agent-feature-links {
    justify-content: flex-start;
  }

  .agent-heat-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-heat-titleline {
    flex-wrap: wrap;
  }

  .agent-heat-metrics {
    justify-content: flex-start;
  }

  .agent-heat-why {
    white-space: normal;
  }

  .agent-heat-board-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── CRAZE FAB ── */
.craze-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.craze-nudge {
  display: none;
  max-width: min(280px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(91, 109, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 20, 34, 0.94), rgba(14, 20, 34, 0.88)),
    var(--panel);
  color: var(--text);
  box-shadow:
    0 18px 36px rgba(8, 14, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.craze-nudge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.craze-nudge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: rgba(121, 242, 227, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.craze-nudge-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8effdd, #5dc8ff);
  box-shadow: 0 0 10px rgba(93, 200, 255, 0.45);
}

.craze-nudge-copy {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.craze-quick-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 20px;
  display: none;
  position: relative;
  overflow: hidden;
}

.craze-quick-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(91, 109, 255, 0.85), rgba(0, 229, 255, 0.42));
}

.craze-quick-panel.visible {
  display: block;
}

.craze-quick-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

.craze-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.craze-quick-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.15;
}

.craze-panel-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.craze-panel-close:hover,
.craze-panel-close:focus-visible {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.craze-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.craze-inline-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
}

.craze-utility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.craze-utility-btn {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.craze-utility-btn:hover,
.craze-utility-btn:focus-visible {
  border-color: rgba(91, 109, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.craze-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.craze-mode-tab {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.craze-mode-tab.active,
.craze-mode-tab:hover,
.craze-mode-tab:focus-visible {
  color: var(--text);
  border-color: rgba(91, 109, 255, 0.28);
  background: rgba(91, 109, 255, 0.14);
}

.craze-panel-section {
  display: block;
}

.craze-panel-section[hidden] {
  display: none;
}

.craze-summary-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  line-height: 1.62;
}

.craze-angle-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(91, 109, 255, 0.16);
  background: rgba(91, 109, 255, 0.08);
}

.craze-angle-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.craze-angle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
}

.craze-jump-grid,
.craze-panel-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.craze-jump-btn,
.craze-panel-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
}

.craze-jump-btn {
  cursor: pointer;
}

.craze-panel-link {
  min-height: 52px;
}

.craze-panel-link em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.74rem;
  white-space: nowrap;
}

.craze-jump-btn:hover,
.craze-jump-btn:focus-visible,
.craze-panel-link:hover,
.craze-panel-link:focus-visible {
  border-color: rgba(91, 109, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.craze-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.58;
}

.craze-orb {
  --gaze-x: 0px;
  --gaze-y: 0px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.26), transparent 44%);
  box-shadow:
    0 0 24px rgba(91, 109, 255, 0.35),
    0 0 52px rgba(0, 229, 255, 0.15);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  animation: craze-orb-float 5.8s ease-in-out infinite;
}

.craze-core,
.craze-ring {
  position: absolute;
  border-radius: 999px;
}

.craze-core {
  inset: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  animation: breathe 4s ease-in-out infinite;
}

.craze-ring {
  inset: -3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.craze-orb::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.42), transparent 42%);
  opacity: 0.55;
  transform: translateY(-2px);
}

.craze-orb::after {
  content: "";
  position: absolute;
  inset: auto auto 10px 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(4px);
  opacity: 0;
}

.craze-orb:hover,
.craze-orb:focus-visible {
  animation-duration: 3.8s;
}

.craze-orb.is-alert {
  animation: craze-orb-pop 460ms cubic-bezier(0.2, 0.9, 0.2, 1.12);
}

.craze-orb.is-nudging {
  animation: craze-orb-pop 480ms cubic-bezier(0.2, 0.9, 0.2, 1.12);
}

.craze-orb.is-nudging::after {
  opacity: 1;
  animation: craze-orb-wink 620ms ease-out;
}

.craze-face {
  position: absolute;
  inset: 17px 15px 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

.craze-eye {
  width: 10px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 252, 255, 0.98);
  box-shadow:
    0 1px 6px rgba(4, 11, 24, 0.18),
    inset 0 -1px 0 rgba(190, 220, 255, 0.28);
  transform-origin: center 60%;
  transition: transform 120ms ease, box-shadow 140ms ease;
}

.craze-pupil {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #10243a;
  transform: translate(var(--gaze-x), var(--gaze-y));
  transition: transform 100ms linear;
}

.craze-orb:hover .craze-eye,
.craze-orb:focus-visible .craze-eye {
  box-shadow:
    0 1px 8px rgba(4, 11, 24, 0.22),
    0 0 12px rgba(93, 200, 255, 0.18),
    inset 0 -1px 0 rgba(190, 220, 255, 0.32);
}

.craze-orb.is-blinking .craze-eye {
  transform: scaleY(0.12);
}

html[data-theme="light"] .craze-eye {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 6px rgba(13, 27, 45, 0.16),
    inset 0 -1px 0 rgba(176, 208, 255, 0.32);
}

html[data-theme="light"] .craze-pupil {
  background: #17314a;
}

/* ── Insight card ── */
.insight-card {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 20px 22px;
  position: relative;
  overflow: hidden;
}

/* Left accent stripe — gives each card visual identity */
.insight-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px rgba(91, 109, 255, 0.35), 0 0 24px rgba(0, 229, 255, 0.1);
}

/* Kicker: quieter — it's metadata, not content */
.insight-card .card-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  margin-bottom: 1px;
  opacity: 0.8;
}

/* Model name: THE star of the card — bold and clear */
.insight-card h3 {
  font-size: 1.26rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em;
}

/* Description: supportive, never competing with title */
.insight-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.58;
}

/* Full-width insight card (Gemini): use two-column inner layout so it doesn't look like an orphan */
.insight-card.insight-card-wide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: center;
  padding: 24px 24px 24px 26px;
}

.insight-card.insight-card-wide .card-kicker {
  grid-row: 1;
  grid-column: 1;
}

.insight-card.insight-card-wide h3 {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.2rem;
  line-height: 1.2;
}

.insight-card.insight-card-wide p {
  grid-row: 2;
  grid-column: 1 / -1;
  margin-top: 6px;
}

.framework-card p {
  max-width: 33ch;
}

/* ── Animations ── */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes ai-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  }
  50% {
    transform: scale(1.18);
    box-shadow:
      0 0 16px rgba(0, 229, 255, 0.45),
      0 0 26px rgba(91, 109, 255, 0.3);
  }
}

@keyframes ai-scan {
  0%, 20% {
    transform: translateX(-100%);
    opacity: 0;
  }
  30%, 70% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes craze-orb-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-3px) rotate(-2.5deg);
  }
  70% {
    transform: translateY(2px) rotate(2deg);
  }
}

@keyframes craze-orb-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08) rotate(-4deg);
  }
  70% {
    transform: scale(0.97) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes craze-orb-wink {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 0.88;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ── Text utilities (replaces inline styles) ── */
.text-muted {
  color: var(--muted);
}

.text-sm {
  font-size: 0.85rem;
  line-height: 1.6;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  stroke: var(--muted);
  margin-bottom: 12px;
}

.text-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  max-width: 58ch;
}

.lead-story h3,
.mini-story h3,
.media-card h3,
.snapshot-brief-card h3,
.topic-watch-card h3,
.craze-bridge-card h3,
.topic-card-home h3,
.insight-card h3 {
  text-wrap: balance;
}

.lead-story h3 {
  font-size: 1.16rem;
  line-height: 1.26;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.mini-story h3 {
  font-size: 1.04rem;
  line-height: 1.32;
  margin-bottom: 0;
}

.media-card h3 {
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.story-copy h3,
.mini-story-copy h3,
.media-card-copy h3,
.story-copy .text-card-desc,
.mini-story-copy .text-card-desc,
.media-card-copy .text-card-desc {
  width: 100%;
  max-width: none;
}

.story-copy .card-kicker,
.mini-story-copy .card-kicker,
.media-card-copy .card-kicker {
  margin-bottom: 0;
}

.story-copy .meta-row,
.mini-story-copy .meta-row,
.media-card-copy .meta-row {
  margin-top: auto;
  padding-top: 4px;
}

.mini-story-copy .text-card-desc {
  font-size: 0.88rem;
  line-height: 1.66;
}

.story-copy .text-card-desc,
.media-card-copy .text-card-desc {
  font-size: 0.88rem;
  line-height: 1.66;
}

.story-copy .text-card-desc,
.mini-story-copy .text-card-desc,
.media-card-copy .text-card-desc {
  text-wrap: pretty;
}

.story-copy .meta-row,
.media-card-copy .meta-row {
  gap: 12px;
  font-size: 0.82rem;
}

.topic-card-home h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.28;
}

/* Inline link arrow icon */
.inline-link svg {
  width: 14px;
  height: 14px;
}

/* Rank table model name */
.table-model-name {
  font-weight: 600;
}

/* Rank number column */
.rank-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ── Responsive: 960px ── */
@media (max-width: 960px) {
  .hero,
  .article-hero,
  .article-layout,
  .card-grid-3,
  .card-grid-2,
  .feature-news-grid,
  .split-grid,
  .home-snapshot-grid,
  .craze-section,
  .craze-workbench,
  .craze-agent-bridge,
  .topics-overview-grid,
  .article-meta-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .news-split-layout,
  .news-main-head {
    grid-template-columns: 1fr;
  }

  .news-carousel-head {
    align-items: flex-start;
  }

  .news-carousel-stage {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .news-carousel-card {
    position: relative;
    inset: auto;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
    display: none;
  }

  .news-carousel-card[data-position="center"],
  .news-carousel-card[data-position="left"],
  .news-carousel-card[data-position="right"] {
    display: flex;
  }

  .news-carousel-card[data-position="far-left"],
  .news-carousel-card[data-position="far-right"] {
    display: none;
  }

  .news-carousel-card[data-position="center"] {
    min-height: 420px;
  }

  .news-carousel-card[data-position="left"] .news-carousel-card-copy p:last-of-type,
  .news-carousel-card[data-position="right"] .news-carousel-card-copy p:last-of-type,
  .news-carousel-card[data-position="left"] .meta-row,
  .news-carousel-card[data-position="right"] .meta-row {
    display: flex;
  }

  .news-main-head {
    display: flex;
    align-items: flex-start;
  }

  .news-main-head .rail-caption {
    max-width: none;
  }

  .news-side-ad-slot {
    aspect-ratio: auto;
    min-height: 170px;
  }

  .ad-slot-billboard {
    aspect-ratio: auto;
    min-height: 90px;
  }

  .ad-slot-banner {
    aspect-ratio: auto;
    min-height: 84px;
  }

  .mixed-news-feed .article-card-wide,
  .mixed-news-feed .article-card-wide-secondary {
    grid-column: auto;
  }

  .mixed-news-feed .article-card-wide .article-card-img,
  .mixed-news-feed .article-card-wide-secondary .article-card-img {
    aspect-ratio: 16 / 9;
  }

  .signal-bar,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .latest-signals-heading {
    display: flex;
    gap: 12px;
  }

  .snapshot-block .section-heading h2,
  .topics-block .section-heading h2,
  .quick-paths-block .section-heading h2 {
    max-width: none;
  }

  .craze-inline-panel {
    grid-template-columns: 1fr;
  }

  .craze-context-grid,
  .craze-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craze-agent-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-panel {
    align-self: stretch;
  }

  .craze-inline-actions-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .craze-inline-actions-stack .button {
    width: auto;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signals-side-heading {
    padding: 0;
  }

  .home-carousel-track {
    grid-auto-columns: minmax(248px, 74vw);
  }

  .home-carousel-button {
    width: 38px;
    height: 38px;
  }

  .ad-slot-band {
    grid-template-columns: 1fr;
  }

  .newsletter-panel,
  .subscribe-band {
    grid-template-columns: 1fr;
  }

  .newsletter-panel.home-newsletter {
    max-width: none;
    gap: 16px;
    padding: 16px;
  }

  .subscribe-band {
    max-width: none;
    gap: 12px;
    padding: 14px;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-submit {
    width: 100%;
  }

  .rank-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ticker {
    width: 100%;
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
  }

  .craze-inline-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-side-stack {
    position: static;
    top: auto;
  }
}

/* ── Responsive: 720px ── */
@media (max-width: 720px) {
  :root {
    --logo-margin: 16px;
    --content-margin: 0px;
  }

  .site-header {
    margin-top: 8px;
    width: min(calc(100% - 24px), var(--max-width));
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .nav-rail { display: none; }
  .site-main {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 12px;
    padding-bottom: 36px;
  }

  .home-page .site-main,
  .rank-page .site-main {
    padding-top: 14px;
  }

  .home-carousel-track {
    grid-auto-columns: minmax(226px, 82vw);
  }

  .news-carousel-shell {
    padding: 18px 14px 14px;
  }

  .news-carousel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .news-carousel-controls {
    justify-content: flex-end;
  }

  .news-carousel-card[data-position="left"],
  .news-carousel-card[data-position="right"] {
    display: none;
  }

  .news-carousel-card[data-position="far-left"],
  .news-carousel-card[data-position="far-right"] {
    display: none;
  }

  .news-carousel-card[data-position="center"] {
    display: flex;
    min-height: 360px;
  }

  .news-carousel-card-copy h3 {
    font-size: 1.24rem;
  }

  .mixed-news-feed {
    display: flex;
    flex-direction: column;
  }

  .signal-note-card {
    padding: 16px 16px 14px;
  }

  .mixed-news-feed .article-card,
  .mixed-news-feed .article-card-wide,
  .mixed-news-feed .article-card-wide-secondary,
  .mixed-news-feed .article-card-textonly,
  .mixed-news-feed .article-card-tall {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .mixed-news-feed .article-card h2,
  .mixed-news-feed .article-card-wide h2,
  .mixed-news-feed .article-card-wide-secondary h2,
  .mixed-news-feed .article-card-textonly h2,
  .mixed-news-feed .article-card-tall h2 {
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .ad-slot-band,
  .ad-slot-inline-article,
  .ad-slot-footer {
    padding: 18px;
  }

  .ad-slot-meta {
    flex-wrap: wrap;
  }

  .ad-slot-copy p {
    max-width: none;
  }

  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 20px 0 120px;
    margin-top: 28px;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
    border-top: 1px solid var(--line);
    border-right: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .footer-copy {
    gap: 10px;
    max-width: none;
  }

  .footer-brand {
    font-family: 'Saira Stencil One', 'Arial Black', 'Avenir Next Condensed', 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    align-self: center;
    margin-inline: auto;
    padding-inline: 10px;
    background: linear-gradient(90deg, #4263ff, #36b3ff, #915cff, #ff66c8, #4263ff);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: logoGrad 8s linear infinite;
  }

  .footer-copy p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .footer-nav {
    width: 100%;
    gap: 10px 16px;
    justify-content: flex-start;
  }

  .footer-nav a {
    font-size: 0.88rem;
    color: #4263ff;
    font-weight: 600;
  }

  .footer-nav a:hover {
    color: #2155cc;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-social-link {
    width: 34px;
    height: 34px;
  }

  .brand-pill {
    padding: 0 16px;
    height: 48px;
    margin-left: 0;
  }

  .brand-wordmark {
    font-size: 1.02rem;
    letter-spacing: 1.24px;
  }

  /* Minimal right-side capsule with search + theme */
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(24px) saturate(1.6);
    padding: 5px 8px 5px 10px;
    flex: 0 0 auto;
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    justify-content: flex-end;
    overflow: hidden;
    transition: width 250ms cubic-bezier(0.34, 1.56, 0.64, 1), max-width 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-actions.expanded {
    width: min(236px, calc(100vw - 182px));
    min-width: min(236px, calc(100vw - 182px));
    max-width: min(236px, calc(100vw - 182px));
    gap: 6px;
  }

  .mobile-search-form {
    display: flex;
    flex: 1 1 auto;
    width: 0;
    max-width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    border-color: transparent;
    box-shadow: none;
    overflow: hidden;
    transform: translateX(10px);
    transition: max-width 250ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease, transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-search-form.active,
  .mobile-search-form:focus-within {
    width: auto;
    max-width: 168px;
    opacity: 1;
    pointer-events: auto;
    position: static;
    border-color: rgba(91, 109, 255, 0.24);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    transform: translateX(0);
  }

  .mobile-search-form .search-input {
    min-width: 0;
    width: 100%;
    padding: 0 10px 0 0;
    font-size: 0.86rem;
  }

  .mobile-search-form .search-input::placeholder {
    color: var(--muted);
  }

  /* Mobile search icon sizing */
  .mobile-actions .search-icon-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .mobile-actions .search-icon-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Theme toggle: icon only on mobile */
  .mobile-actions .theme-toggle {
    width: 34px;
    min-width: 34px;
    padding: 0 2px 0 0;
    border: none;
    background: none;
    height: 34px;
    justify-content: center;
    flex: 0 0 auto;
  }

  .mobile-actions .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .craze-fab {
    display: flex;
    left: 12px;
    right: 12px;
    bottom: 92px;
    align-items: stretch;
    pointer-events: none;
  }

  body.reader-active .craze-fab {
    bottom: 148px;
  }

  .craze-fab .craze-orb {
    display: none;
  }

  .craze-quick-panel {
    width: 100%;
    max-width: none;
    margin-left: auto;
    pointer-events: auto;
  }

  .mobile-actions .theme-toggle-label {
    display: none;
  }

  .home-page .mobile-actions {
    width: min(248px, calc(100vw - 148px));
    min-width: min(248px, calc(100vw - 148px));
    max-width: min(248px, calc(100vw - 148px));
    gap: 6px;
  }

  .home-page .mobile-search-form,
  .home-page .mobile-search-form.active,
  .home-page .mobile-search-form:focus-within {
    max-width: 156px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-color: transparent;
  }

  .hero {
    min-height: auto;
    gap: 16px;
    padding: 16px;
  }

  .hero-copy {
    order: 1;
    max-width: none;
    padding: 0;
    gap: 16px;
  }

  .hero-copy-main {
    gap: 16px;
  }

  .hero-copy-foot {
    padding: 0;
    border-top: 0;
  }

  .hero-foot-label {
    font-size: 0.68rem;
  }

  .hero-panel {
    display: none;
  }

  .site-intro-path {
    height: 96px;
    margin: -6px 0 0;
  }

  .site-intro-path svg {
    transform: scale(0.86);
    transform-origin: center;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .hero-text {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .hero-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-proof-cell {
    padding: 10px 10px 9px;
    border-radius: 14px;
  }

  .hero-proof-value {
    font-size: 1.02rem;
  }

  .hero-proof-label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .signal-awakening {
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .signal-awakening-line {
    width: 44px;
  }

  .hero-note {
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .quick-list {
    display: none;
  }

  .quick-row {
    gap: 9px;
    font-size: 0.86rem;
    line-height: 1.58;
  }

  /* Topics grid: single column on mobile */
  .topics-grid {
    grid-template-columns: 1fr;
  }

  /* Show mobile dock */
  .mobile-dock {
    display: flex;
  }

  /* Mobile CRAZE uses the dock trigger + bottom sheet */
  .craze-fab {
    display: flex;
  }

  /* Card and content adjustments */
  .hero,
  .article-hero,
  .article-hero-copy,
  .page-intro,
  .feature-card,
  .ordered-card,
  .article-card,
  .article-shell,
  .side-panel,
  .table-card {
    padding: 20px;
  }

  .hero h1,
  .page-intro h1,
  .article-shell h1,
  .craze-intro h1 {
    font-size: 1.46rem;
    line-height: 1.14;
  }

  .hero {
    padding: 16px;
  }

  .hero-copy,
  .hero-panel {
    padding: 0;
  }

  .signal-bar {
    display: none;
  }

  .signal-cluster,
  .ticker {
    gap: 8px;
  }

  .signal-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .ticker-track {
    flex-basis: 100%;
  }

  .ticker-label {
    font-size: 0.74rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .decision-card,
  .framework-card,
  .route-card {
    padding: 16px;
  }

  .proof-grid,
  .card-grid,
  .card-grid-3,
  .article-meta-grid,
  .topics-overview-grid,
  .rank-source-strip {
    grid-template-columns: 1fr;
  }

  .proof-heading h2,
  .quick-paths-block .section-heading h2,
  .snapshot-block .section-heading h2,
  .topics-block .section-heading h2 {
    max-width: none;
  }

  .proof-card {
    padding: 18px;
  }

  .proof-stat {
    font-size: 1.6rem;
  }

  .topics-watch-list .topic-watch-card:nth-child(n+4),
  .signal-brief-list .signal-brief-item:nth-child(n+5) {
    display: none;
  }

  .snapshot-microbar,
  .craze-inline-copy p:last-child,
  .proof-heading .section-caption {
    display: none;
  }

  .article-meta-card,
  .topics-overview-panel,
  .topics-signal-list,
  .topic-card {
    padding: 16px;
  }

  .page-stack {
    gap: 20px;
  }

  .craze-page .page-stack {
    gap: 18px;
  }

  .craze-workbench {
    min-height: 0;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
  }

  .craze-workbench-copy {
    gap: 15px;
    padding: 4px;
  }

  .craze-workbench-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.25rem, 13vw, 3.65rem);
  }

  .craze-workbench-copy p:not(.eyebrow) {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .craze-workbench-actions {
    width: 100%;
    gap: 8px;
  }

  .craze-workbench-actions .button {
    flex: 1 1 145px;
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .craze-workbench-panel {
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .craze-console-head {
    align-items: flex-start;
  }

  .craze-status-dot {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .craze-workbench-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .craze-workbench-tabs span {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .craze-workbench-output {
    padding: 18px;
    border-radius: 22px;
  }

  .craze-workbench-output h3 {
    max-width: 14ch;
    font-size: 1.72rem;
  }

  .craze-output-list {
    gap: 8px;
    margin-top: 18px;
  }

  .craze-output-list li {
    align-items: flex-start;
    font-size: 0.86rem;
  }

  .craze-context-grid,
  .craze-evidence-grid {
    grid-template-columns: 1fr;
  }

  .craze-context-card,
  .craze-evidence-card {
    padding: 18px;
  }

  .craze-evidence-card {
    min-height: 174px;
  }

  .craze-agent-bridge {
    gap: 18px;
    padding: 20px;
    border-radius: 26px;
  }

  .craze-agent-step {
    min-height: 0;
    padding: 16px;
  }

  .craze-agent-step strong {
    margin-top: 22px;
  }

  .section-block {
    gap: 16px;
  }

  .home-page .page-stack {
    gap: 24px;
  }

  .feature-news-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .latest-main-column,
  .secondary-signal-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto;
  }

  .latest-signals-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .signals-side-heading {
    width: 100%;
    flex: none;
    gap: 14px;
    padding: 0;
  }

  .home-snapshot-grid {
    gap: 22px;
  }

  .home-snapshot-grid .snapshot-block {
    padding-top: 0;
  }

  .craze-inline-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 16px;
  }

  .craze-inline-copy h3 {
    font-size: 1.12rem;
    line-height: 1.12;
  }

  .craze-inline-actions-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .craze-inline-actions-stack .button {
    width: 100%;
  }

  .rail-caption {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .feature-news-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    min-width: 0;
  }

  .latest-story-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
    border-left: 0;
  }

  .signal-brief-list {
    gap: 8px;
  }

  .signal-brief-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .signal-brief-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .signal-brief-thumb {
    border-radius: 14px;
  }

  .signal-brief-copy h3 {
    font-size: 0.94rem;
    line-height: 1.28;
  }

  .signal-brief-copy p {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .lead-story,
  .mini-story,
  .compact-story {
    gap: 12px;
  }

  .lead-story {
    display: flex;
    padding: 0;
    min-height: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .compact-story {
    padding: 12px;
    min-height: 0;
  }

  .compact-story .mini-visual {
    flex: 0 0 108px;
    aspect-ratio: 1 / 1;
  }

  .compact-story-copy h3 {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .compact-story-copy .text-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .micro-story,
  .compact-text-story {
    padding: 14px 14px 13px;
    gap: 8px;
  }

  .micro-story h3,
  .compact-text-story h3 {
    font-size: 0.96rem;
  }

  .micro-story p,
  .compact-text-story p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .story-visual,
  .mini-visual {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .lead-story .story-visual {
    border-radius: 18px;
    min-height: 0;
    aspect-ratio: 16 / 9.2;
    border: 0;
  }

  .feature-news-grid .lead-story {
    min-height: 0;
    height: auto;
  }

  .section-heading h2,
  .article-section h2,
  .article-meta-card h3,
  .topic-title {
    font-size: 1.08rem;
    line-height: 1.28;
  }

  .page-intro p,
  .article-summary,
  .article-section p,
  .topic-description,
  .craze-quick-copy {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .hero-craze-actions {
    gap: 6px;
  }

  .hero-craze-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .site-intro {
    padding: 24px;
  }

  .site-intro-inner {
    gap: 12px;
    min-width: 0;
  }

  .site-intro-copy {
    max-width: 11ch;
    font-size: clamp(1.12rem, 6vw, 1.66rem);
  }

  .site-intro-note {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .site-intro-sparkline {
    gap: 12px;
  }

  .site-intro-trail {
    width: 60px;
  }

  .site-intro-transfer-dot {
    width: 10px;
    height: 10px;
  }

  .story-copy,
  .mini-story-copy,
  .media-card-copy {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    gap: 10px;
  }

  .lead-story .story-copy {
    width: calc(100% - 24px);
    margin: 0;
    padding: 0;
  }

  .lead-story h3 {
    font-size: 1.36rem;
    line-height: 1.05;
    max-width: 15ch;
  }

  .mini-story h3 {
    font-size: 1rem;
    line-height: 1.32;
  }

  .story-copy .text-card-desc,
  .mini-story-copy .text-card-desc,
  .media-card-copy .text-card-desc {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .story-copy .meta-row,
  .mini-story-copy .meta-row,
  .media-card-copy .meta-row {
    gap: 8px;
    font-size: 0.76rem;
    padding-top: 2px;
  }

  .lead-story-topline {
    gap: 8px;
  }

  .lead-story-body {
    gap: 12px;
    padding: 14px 16px 16px;
  }

  .lead-story .story-copy .text-card-desc {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .meta-row span + span::before {
    margin-right: 8px;
  }

  .article-hero-visual {
    min-height: 188px;
  }

  .snapshot-live-head,
  .snapshot-live-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .snapshot-live-note {
    max-width: none;
    text-align: left;
  }

  .snapshot-live-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .snapshot-live-list {
    gap: 0;
  }

  .snapshot-live-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .snapshot-board-tabs {
    width: 100%;
  }

  .snapshot-board-uses-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-live-score {
    grid-column: 2;
  }

  .craze-lens {
    position: static;
  }

  .article-meta-grid,
  .topics-overview-grid,
  .topics-grid,
  .card-grid,
  .card-grid-2,
  .card-grid-3 {
    gap: 16px;
  }

  .article-card {
    padding: 18px;
    gap: 8px;
  }

  .article-card-img {
    border-radius: 12px;
    margin-bottom: 0;
  }

  .article-card h2,
  .article-card h3 {
    font-size: 1.02rem;
    line-height: 1.32;
    margin-bottom: 4px;
  }

  .article-card > p,
  .article-card .text-card-desc {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .article-card .meta-row {
    gap: 8px;
    font-size: 0.76rem;
  }

  .topic-article-link {
    padding: 8px 10px;
  }

  .topic-article-title {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .topic-card-meta,
  .topics-key-stats,
  .meta-row {
    gap: 8px;
    font-size: 0.78rem;
  }

  .article-content {
    gap: 0;
  }

  .ssr-article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-section + .article-section {
    margin-top: 24px;
  }

  .related-section {
    margin-top: 28px;
  }

  .article-shell,
  .article-hero,
  .page-intro {
    border-radius: 24px;
  }

  .grid-rank {
    grid-template-columns: 32px 1.3fr 1fr 0.7fr 0.7fr 0.7fr;
    font-size: 0.88rem;
  }

  .mobile-dock {
    bottom: 14px;
    padding: 7px 10px;
  }

  .site-footer {
    padding-bottom: 114px;
    border-radius: 22px;
  }

  .dock-item {
    min-width: 42px;
    padding: 5px 8px;
  }

  .rank-controls {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .rank-select-field {
    min-width: 0;
    flex: 1 1 100%;
  }

  .rank-grid-dynamic {
    grid-template-columns: 46px 76px 64px minmax(180px, 1.45fr) minmax(150px, 0.95fr) minmax(78px, 0.7fr) minmax(150px, 1fr) minmax(104px, 0.82fr) minmax(132px, 0.92fr);
  }

  .table-head.rank-grid-dynamic,
  #rankTableBody .table-row {
    min-width: 1180px;
  }

  .rank-source-strip {
    grid-template-columns: 1fr;
  }

  .rank-page .site-main {
    padding-top: 76px;
  }

  .table-head.rank-grid-dynamic,
  #rankTableBody .table-row {
    min-width: 900px;
  }
}

/* ── CRAZE hash highlight ── */
.highlight-pulse {
  animation: crazeHighlight 2s ease-out forwards;
}

@keyframes crazeHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(91, 109, 255, 0.7); }
  30%  { box-shadow: 0 0 0 12px rgba(91, 109, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 109, 255, 0); }
}

/* ── Content editor ── */
.editor-toolbar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.editor-toolbar-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.editor-toolbar-head strong {
  font-size: 0.95rem;
}

.editor-toolbar-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-toolbar-width {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.editor-toolbar-width-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.editor-toolbar-width-head span:first-child {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editor-toolbar-width-head span:last-child {
  color: var(--text);
  font-weight: 600;
}

.editor-toolbar-width-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px auto;
  gap: 8px;
  align-items: center;
}

.editor-toolbar-width-controls input[type="range"] {
  width: 100%;
}

.editor-toolbar-width-controls input[type="number"] {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.editor-toolbar-width-controls input:disabled,
.editor-toolbar-width-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.editor-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-toolbar button,
.editor-toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.editor-editable {
  outline: 1px dashed rgba(0, 229, 255, 0.35);
  outline-offset: 6px;
  border-radius: 8px;
  cursor: text;
  transition: outline-color 180ms ease, background 180ms ease;
}

.editor-mode a[href]:not(.editor-toolbar-link) {
  cursor: text;
}

.editor-editable:hover,
.editor-editable.active,
.editor-editable:focus {
  outline-color: rgba(91, 109, 255, 0.7);
  background: rgba(91, 109, 255, 0.06);
}

.editor-dashboard {
  width: min(calc(100% - 32px), 980px);
  margin: 48px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.editor-card h2,
.editor-card h3,
.editor-card p {
  margin-top: 0;
}

.editor-card p {
  color: var(--muted);
}

.editor-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 720px) {
  .editor-grid,
  .editor-link-list {
    grid-template-columns: 1fr;
  }

  .editor-toolbar {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .editor-toolbar-width-controls {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   SUPERCRZY Reader — WeChat-style listen pill
   ================================================================ */

/* ── ♪ Listen link (in article meta-row) ── */
.listen-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--action, #4263ff);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  white-space: nowrap;
}
.listen-link:hover {
  color: var(--action-hover, #5b7bff);
}
.listen-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Reader Pill (hidden when idle) ── */
.reader-pill {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  align-items: center;
  gap: 10px;
  background: var(--surface-elevated, rgba(18,18,24,0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 26px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  max-width: min(600px, calc(100vw - 32px));
}

.reader-pill.active {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Note icon (playing indicator) ── */
.reader-note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--action, #4263ff);
  color: #fff;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.reader-note-icon svg {
  width: 13px;
  height: 13px;
}
.reader-note-icon.pulsing {
  animation: reader-note-pulse 1.6s ease-in-out infinite;
}

@keyframes reader-note-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* ── Title ── */
.reader-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #e5e5e5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  flex-shrink: 1;
}

/* ── Controls ── */
.reader-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Voice selector ── */
.reader-voice-select {
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  max-width: 130px;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.reader-voice-select:hover {
  border-color: var(--action, #4263ff);
}
.reader-voice-select:focus {
  outline: none;
  border-color: var(--action, #4263ff);
}

.reader-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reader-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary, #e5e5e5);
}

.reader-btn-speed {
  width: auto;
  min-width: 28px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
}

.reader-btn-close {
  margin-left: 2px;
}

/* ── Active sentence highlight ── */
.reader-active-sentence {
  background: rgba(66,99,255,0.08) !important;
  border-radius: 6px;
  transition: background 0.3s ease;
}

/* ── Dark mode overrides ── */
html[data-theme="dark"] .reader-pill {
  background: rgba(14,14,20,0.97);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

html[data-theme="dark"] .reader-title {
  color: #e5e5e5;
}

html[data-theme="dark"] .reader-active-sentence {
  background: rgba(66,99,255,0.12) !important;
}

html[data-theme="dark"] .reader-voice-select {
  color: #9ca3af;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .reader-note-icon {
  background: #4263ff;
  color: #fff;
}

/* ── Light mode overrides ── */
html[data-theme="light"] .reader-pill {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

html[data-theme="light"] .reader-title {
  color: #111827;
}

html[data-theme="light"] .reader-btn {
  color: #6b7280;
}
html[data-theme="light"] .reader-btn:hover {
  color: #111827;
  background: rgba(0,0,0,0.04);
}

html[data-theme="light"] .reader-active-sentence {
  background: rgba(66,99,255,0.06) !important;
}

html[data-theme="light"] .reader-voice-select {
  color: #6b7280;
  border-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .reader-note-icon {
  background: #4263ff;
  color: #fff;
}

/* ── Responsive: floating mini-pill on mobile ── */
@media (max-width: 480px) {
  /* Pill anchors to the right edge, rounded left side only */
  .reader-pill {
    bottom: 90px;
    left: auto !important;
    right: 0;
    transform: translateX(0) translateY(12px) !important;
    border-radius: 26px 0 0 26px;
    padding: 6px 8px 6px 6px;
    gap: 6px;
    max-width: calc(100vw - 8px);
    width: max-content;
    /* Smooth collapse / expand */
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      right 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: fixed;
    touch-action: none;
  }

  .reader-pill.active {
    transform: translateX(0) translateY(0) !important;
  }

  /* ── Collapsed: fixed 48px pill with icon on right ── */
  .reader-pill.active.collapsed {
    width: 48px;
    min-width: 48px;
    padding: 6px 4px 6px 4px;
    cursor: grab;
  }
  .reader-pill.active.collapsed:active {
    cursor: grabbing;
  }

  .reader-pill.active:not(.collapsed) {
    overflow: visible;
    border-radius: 26px;
  }

  /* Title & controls fade + shrink when collapsing */
  .reader-pill .reader-title {
    max-width: 130px;
    font-size: 12px;
    flex-shrink: 1;
    transition: opacity 0.25s ease, max-width 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
  }
  .reader-pill .reader-controls {
    transition: opacity 0.25s ease, max-width 0.35s ease;
    overflow: hidden;
    max-width: 300px;
    flex-shrink: 0;
  }

  .reader-pill.active.collapsed .reader-title,
  .reader-pill.active.collapsed .reader-controls {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }

  /* Note icon — always flex child, positioned right in collapsed state */
  .reader-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
  }
  .reader-note-icon:hover {
    opacity: 0.85;
  }
  .reader-note-icon svg {
    width: 15px;
    height: 15px;
  }

  /* In collapsed state, push note-icon to the right side of the pill */
  .reader-pill.active.collapsed .reader-note-icon {
    margin-left: auto;
    /* Ensure icon is always visible — prevent it from shrinking/disappearing */
    min-width: 32px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--action, #4263ff) !important;
  }

  .reader-btn {
    width: 24px;
    height: 24px;
  }
  .reader-voice-select {
    max-width: 84px;
    font-size: 10px;
  }

  /* Colored right-edge bar (pulse indicator) on collapsed */
  .reader-pill.active.collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    border-radius: 2px 0 0 2px;
    background: var(--action, #4263ff);
    opacity: 0.7;
  }
  .reader-pill.active.collapsed.pulsing-bar::after {
    animation: reader-bar-pulse 1.6s ease-in-out infinite;
  }

  @keyframes reader-bar-pulse {
    0%, 100% { opacity: 0.5; height: 40%; top: 30%; }
    50%      { opacity: 1;   height: 60%; top: 20%; }
  }
}
