/* ==========================================================================
   时倾团队 · 旗舰级暗色驾驶舱设计系统 (Linear / Raycast / Vercel)
   ========================================================================== */

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  color-scheme: dark;

  --bg: #040406;
  --bg-elevated: #090A0D;
  --surface: rgba(14, 15, 20, 0.78);
  --surface-solid: #0E0F14;
  --surface-2: rgba(22, 24, 32, 0.85);
  --surface-hover: rgba(30, 33, 44, 0.9);
  --surface-glass: rgba(4, 4, 6, 0.72);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --line-3: rgba(255, 255, 255, 0.26);

  --text: #FAFAFA;
  --text-2: #A1A1AA;
  --text-3: #6D6E7A;

  --amber: #F59E0B;
  --amber-bright: #FBBF24;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-line: rgba(245, 158, 11, 0.34);

  --orange: #FB923C;
  --green: #10B981;
  --green-bright: #34D399;
  --green-soft: rgba(16, 185, 129, 0.12);
  --green-line: rgba(16, 185, 129, 0.34);

  --rose: #F43F5E;
  --rose-bright: #FB7185;
  --rose-soft: rgba(244, 63, 94, 0.12);
  --rose-line: rgba(244, 63, 94, 0.34);

  --indigo: #818CF8;
  --cyan: #38BDF8;

  --r-card: 18px;
  --r-box: 13px;
  --r-sm: 8px;
  --r-pill: 999px;

  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 84px; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(129, 140, 248, 0.28); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber-bright); outline-offset: 2px; border-radius: 6px;
}

.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* ---------- 电影级暗色天际线动态极光 + 胶片颗粒 + 点阵 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden;
  background: var(--bg);
}
.aurora i {
  display: block; position: absolute; border-radius: 50%;
  filter: blur(95px); opacity: 0.62; will-change: transform;
}
.aurora i:nth-child(1) {
  width: 720px; height: 440px; left: 8%; top: -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.56), rgba(56, 189, 248, 0.24) 60%, transparent 75%);
  animation: auroraDrift1 14s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 600px; height: 420px; right: -6%; top: -100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.34), rgba(251, 146, 60, 0.16) 60%, transparent 75%);
  animation: auroraDrift2 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 680px; height: 400px; left: 28%; bottom: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), rgba(16, 185, 129, 0.16) 60%, transparent 75%);
  animation: auroraDrift3 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(80px, 50px) scale(1.14); } }
@keyframes auroraDrift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes auroraDrift3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-70px, -60px) scale(1.16); } }

/* 顶部地平线流光弧 + 动态扫光 */
.horizon-glow {
  position: fixed; top: -170px; left: 50%; transform: translateX(-50%);
  width: min(1440px, 135vw); height: 340px; z-index: -2; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.24) 0%, rgba(56, 189, 248, 0.10) 45%, transparent 72%);
  filter: blur(36px);
  animation: horizonPulse 8s ease-in-out infinite alternate;
}
@keyframes horizonPulse { 0% { opacity: 0.72; transform: translateX(-50%) scale(0.98); } 100% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.horizon-glow::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 36px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25) 28%, rgba(165, 180, 252, 0.85) 50%, rgba(251, 191, 36, 0.55) 62%, transparent);
  background-size: 200% 100%;
  animation: horizonSweep 7s ease-in-out infinite alternate;
  opacity: 0.65;
}
@keyframes horizonSweep { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.dot-matrix-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 85%);
}

.bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
}

.noise-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95;
  background: linear-gradient(90deg, var(--indigo), var(--cyan), var(--amber-bright));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

/* ---------- 统一粘性玻璃顶栏 ---------- */
.top-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 70;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.top-nav.scrolled { background: rgba(4, 4, 6, 0.92); border-bottom-color: var(--line-2); }

.nav-shell {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 16px; min-width: 0; }

.brand-logo-group { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-sq-box {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, #FFFFFF, #CBD5E1);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 16px rgba(129, 140, 248, 0.28);
  transition: transform 0.25s var(--ease-pop);
}
.brand-logo-group:hover .brand-sq-box { transform: scale(1.06) rotate(-3deg); }
.brand-sq-box span { font-size: 15px; font-weight: 800; font-family: Georgia, 'Songti SC', serif; color: #040406; }
.brand-title { font-size: 14px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
.brand-sub { font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.2; }

.nav-divider { width: 1px; height: 22px; background: var(--line-2); flex-shrink: 0; }
.section-switch {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px;
  background: rgba(16, 18, 28, 0.92);
  border: 1px solid rgba(165, 180, 252, 0.28);
  border-radius: var(--r-pill);
  box-shadow: 0 0 36px -6px rgba(99, 102, 241, 0.45), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.section-switch a {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: #E4E4E7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.section-switch a svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.9; }
.switch-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-bright); box-shadow: 0 0 10px var(--green-bright);
  animation: dotPulse 1.8s infinite;
}
.section-switch a:hover {
  color: #FFFFFF; background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px);
}
.section-switch a[aria-current="page"] {
  background: linear-gradient(135deg, #6366F1 0%, #38BDF8 100%);
  border-color: rgba(255, 255, 255, 0.36);
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) inset, 0 6px 28px -2px rgba(56, 189, 248, 0.72);
}
.section-switch a[aria-current="page"]::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: navTabShine 3.6s ease-in-out infinite;
}
@keyframes navTabShine { 0%, 55% { left: -60%; } 100% { left: 145%; } }

.nav-links, .price-nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.text-link, .price-nav-actions a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.text-link:hover, .price-nav-actions a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.text-link .arrow-down { font-size: 11px; color: var(--text-3); }

.nav-pill-btn {
  margin-left: 8px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF, #E4E4E7); color: #040406;
  border-radius: var(--r-pill); padding: 7px 16px;
  font-weight: 700; font-size: 13px; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 24px -6px rgba(165, 180, 252, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.nav-pill-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 28px -4px rgba(165, 180, 252, 0.55); }
.nav-pill-btn:active { transform: scale(0.98); }

/* ---------- 主容器 ---------- */
.main-shell { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 88px; }

/* ---------- 旗舰级命令式页头 ---------- */
.command-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.hero-title-group { min-width: 0; }
.category-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: var(--r-pill); padding: 3px 11px; margin-bottom: 12px;
}
.category-meta span { color: var(--text-3); }
.main-h1 {
  font-size: clamp(34px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.06;
  background: linear-gradient(180deg, #FFFFFF 35%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-subtitle { margin-top: 8px; font-size: 14px; color: var(--text-2); max-width: 540px; }

.hero-right-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.hero-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.live-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); border: 1px solid var(--green-line); color: #A7F3D0;
  border-radius: var(--r-pill); padding: 5px 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.live-dot-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); animation: dotPulse 2s infinite; }
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* 实时波形动画 */
.live-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.live-eq i {
  display: block; width: 2px; border-radius: 2px; background: var(--green-bright);
  animation: eqBar 1.1s ease-in-out infinite alternate;
}
.live-eq i:nth-child(1) { height: 5px; animation-delay: 0s; }
.live-eq i:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.live-eq i:nth-child(3) { height: 7px; animation-delay: 0.4s; }
.live-eq i:nth-child(4) { height: 11px; animation-delay: 0.15s; }
@keyframes eqBar { 0% { transform: scaleY(0.35); } 100% { transform: scaleY(1); } }

.live-ticker-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px 13px 4px 5px;
  font-size: 12px; max-width: min(330px, 100%); overflow: hidden;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ticker-badge {
  background: rgba(129, 140, 248, 0.16); color: #C7D2FE;
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); flex-shrink: 0;
}
.ticker-text-slider { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }

.pill-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.action-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--r-sm); padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.action-pill b { font-weight: 600; }
.action-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 8px var(--amber); }
.pill-green::before { background: var(--green-bright); box-shadow: 0 0 8px var(--green); }
.action-pill:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-3); transform: translateY(-1px); }

/* ---------- Bento 驾驶舱 ---------- */
.bento-cockpit {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.crosshair {
  position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 5;
}
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: rgba(255, 255, 255, 0.35);
}
.crosshair::before { left: 5px; top: 0; width: 1px; height: 11px; }
.crosshair::after  { top: 5px; left: 0; height: 1px; width: 11px; }
.ch-tl { left: -6px; top: -6px; }
.ch-tr { right: -6px; top: -6px; }
.ch-bl { left: -6px; bottom: -6px; }
.ch-br { right: -6px; bottom: -6px; }
.bento-main { grid-column: span 7; display: flex; }
.bento-side { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }

/* 玻璃质感卡片 + 鼠标边界光斑 + 内部反光高光 */
.neo-card {
  position: relative; width: 100%;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 28px 56px -34px rgba(0, 0, 0, 0.95);
  transition: border-color 0.2s ease, transform 0.22s var(--ease-out);
}
.neo-card:hover { border-color: var(--line-2); }

/* 鼠标聚光（内容光晕 + 1px 边缘动态亮线） */
.neo-card::after, .timeline-record-item::after, .featured-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(165, 180, 252, 0.11), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.neo-card:hover::after, .timeline-record-item:hover::after, .featured-card:hover::after { opacity: 1; }

.last-record-card::before, .wish-pink-card::before, .alert-card::before, .featured-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 255, 255, 0.55), rgba(129, 140, 248, 0.30) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s ease;
}
.last-record-card:hover::before, .wish-pink-card:hover::before, .alert-card:hover::before, .featured-card:hover::before { opacity: 1; }

/* 01 主状态雷达大卡 */
.state-yellow-card {
  --accent: var(--amber-bright);
  background:
    radial-gradient(460px 260px at 88% 44%, rgba(245, 158, 11, 0.14), transparent 72%),
    radial-gradient(420px 220px at 0% 0%, rgba(129, 140, 248, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(18, 20, 27, 0.92), rgba(10, 11, 15, 0.95));
  border-color: rgba(245, 158, 11, 0.28);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.state-yellow-card.forecast {
  --accent: var(--orange);
  background:
    radial-gradient(460px 260px at 88% 44%, rgba(251, 146, 60, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.92), rgba(10, 11, 15, 0.95));
  border-color: rgba(251, 146, 60, 0.38);
}
.state-yellow-card.completed {
  --accent: var(--green-bright);
  background:
    radial-gradient(460px 260px at 88% 44%, rgba(16, 185, 129, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(13, 24, 20, 0.92), rgba(10, 11, 15, 0.95));
  border-color: rgba(16, 185, 129, 0.36);
}

.state-yellow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg, transparent 265deg, var(--accent) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spinAng 7s linear infinite; opacity: 0.72;
}
@keyframes spinAng { to { --ang: 360deg; } }

/* 高精度轨道雷达视觉核心 */
.state-dynamic-scene {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 174px; height: 174px; pointer-events: none; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, color-mix(in srgb, var(--accent) 6%, transparent) 46%, transparent 72%);
  box-shadow: 0 0 80px -10px color-mix(in srgb, var(--accent) 36%, transparent);
}
/* 扫描雷达光束 */
.state-dynamic-scene::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 40%, transparent) 0deg, transparent 74deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 22%, #000 23%, #000 98%, transparent 100%);
  mask: radial-gradient(circle, transparent 22%, #000 23%, #000 98%, transparent 100%);
  animation: ringSpin 4s linear infinite;
}
/* 外层精准刻度环 */
.state-dynamic-scene::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, transparent);
  animation: ringSpin 22s linear infinite reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.scene-anim-wrap {
  width: 64px; height: 64px; position: relative; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(4, 4, 6, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 32%, transparent);
}
.scene-anim-wrap::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  animation: sonarWave 2.8s ease-out infinite;
}
@keyframes sonarWave {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.scene-svg { width: 30px; height: 30px; display: block; }
.scene-svg [stroke="#181818"] { stroke: var(--accent); stroke-width: 2.2; }
.scene-svg [fill="#FFF8DD"]   { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.scene-svg [fill="#D4A81E"], .scene-svg [fill="#E5A91A"], .scene-svg [fill="#FFDE59"] { fill: var(--accent); }
.scene-svg [stroke="#E5A91A"], .scene-svg [stroke="#15803D"] { stroke: var(--accent); }
.scene-svg [fill="#D8F3DC"] { fill: color-mix(in srgb, var(--accent) 14%, transparent); }

.state-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.state-label-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.state-pulse-indicator { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--accent); animation: pulseState 2s infinite; }
@keyframes pulseState {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.card-question-title { font-size: 13px; font-weight: 600; color: var(--text-2); }
.mini-status-chip {
  flex-shrink: 0; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: var(--r-pill); padding: 3px 11px; font-size: 11px; font-weight: 700;
}

.state-card-body { margin: 22px 0 22px; padding-right: 196px; position: relative; z-index: 2; }
.state-huge-headline {
  font-size: clamp(24px, 2.7vw, 33px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.22; color: var(--text); margin-bottom: 10px;
  overflow-wrap: anywhere; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

.state-skeleton-box { display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 11px; background: rgba(255, 255, 255, 0.06); border-radius: 6px; position: relative; overflow: hidden; }
.shimmer-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); animation: skLoading 1.5s infinite; }
@keyframes skLoading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-line-1 { width: 88%; } .sk-line-2 { width: 64%; } .sk-line-3 { width: 42%; }

.state-desc-text { font-size: 14px; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.state-estimate { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--amber-bright); white-space: pre-line; overflow-wrap: anywhere; }
.state-details { margin-top: 10px; color: var(--text-2); }
.state-details summary { cursor: pointer; width: fit-content; padding: 3px 0; color: var(--amber-bright); font-size: 12.5px; font-weight: 600; }
.state-details .details-close-label, .state-details[open] .details-open-label { display: none; }
.state-details[open] .details-close-label { display: inline; }
.state-full-text {
  max-height: 220px; overflow: auto; overscroll-behavior: contain; padding: 10px 12px; margin-top: 8px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere;
}

.state-pulse-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; position: relative; z-index: 2; }
.metric-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px 10px; font-size: 11px; font-weight: 500; color: var(--text-2);
}
.metric-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 6px var(--green); }

.state-card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line); position: relative; z-index: 2;
}
.time-subnote { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.raw-tweet-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #040406;
  background: linear-gradient(180deg, #FFFFFF, #E4E4E7);
  border-radius: var(--r-sm); padding: 6px 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 20px -8px rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.raw-tweet-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* 02 上次重置 KPI 卡 */
.last-record-card {
  padding: 20px 22px; overflow: hidden;
  background: radial-gradient(320px 160px at 100% 0%, rgba(56, 189, 248, 0.07), transparent 70%), var(--surface);
}
.bento-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bento-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.last-chip { background: var(--green-soft); border: 1px solid var(--green-line); color: #A7F3D0; border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.last-kpi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.elapsed-big {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06;
  background: linear-gradient(180deg, #FFFFFF 20%, #93C5FD 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.last-date-meta { text-align: right; }
.last-full-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.last-source-note { font-size: 11px; color: var(--text-3); }
.last-col-right { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.last-title-row strong { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.last-raw-text { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: var(--text-3); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.last-raw-link { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--cyan); transition: opacity 0.15s ease; }
.last-raw-link:hover { opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; }

/* 03 许愿反应堆小卡 */
.wish-pink-card {
  padding: 20px 22px;
  background: radial-gradient(360px 180px at 100% 100%, rgba(245, 158, 11, 0.12), transparent 70%), var(--surface);
  display: flex; flex-direction: column; gap: 13px;
}
.wish-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wish-title-wrap { display: flex; align-items: center; gap: 8px; }
.wish-status-ring { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.wish-logo-title { font-size: 14px; font-weight: 700; color: var(--text); }
.heat-number {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 25px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FDE68A, #F59E0B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.counter-bump { animation: bumpNumber 0.25s var(--ease-pop); }
@keyframes bumpNumber { 0% { transform: scale(1); } 50% { transform: scale(1.09); } 100% { transform: scale(1); } }

.wish-progress-block { display: flex; flex-direction: column; gap: 6px; }
.wish-progress-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.wish-state-text { font-weight: 600; color: var(--text-2); }
.heat-note { font-size: 11px; color: var(--text-3); }
.star-slider-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: var(--r-pill); overflow: hidden; }
.star-slider-fill {
  height: 100%; width: 20%; background-color: var(--text-3); border-radius: var(--r-pill);
  background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  background-size: 50% 100%; background-repeat: no-repeat; background-position: -60% 0;
  animation: barShine 2.6s ease-in-out infinite;
  transition: width 0.6s var(--ease-out), background-color 0.35s ease;
}
@keyframes barShine { to { background-position: 180% 0; } }

.wish-action-row { display: flex; align-items: center; gap: 10px; }
.big-3d-button {
  flex: 1; height: 44px; border-radius: var(--r-sm); position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FDE68A, #F59E0B, #EA580C);
  background-size: 200% 200%;
  animation: wishBtnGlow 4s ease infinite;
  color: #140D02; font-size: 14px; font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 0 28px -4px rgba(245, 158, 11, 0.72);
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
@keyframes wishBtnGlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.big-3d-button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg); animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine { 0%, 60% { left: -50%; } 100% { left: 140%; } }
.big-3d-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 0 36px -2px rgba(251, 191, 36, 0.9); }
.big-3d-button:active, .big-3d-button.button-pressed { transform: scale(0.98); }
.big-3d-button:disabled { opacity: 0.75; cursor: progress; }

.green-toast-box { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.check-circle-icon {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); color: #040406; display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.green-toast-text b { color: var(--text-2); font-weight: 600; }

.fly-plus-one {
  position: fixed; z-index: 10000; font-size: 12.5px; font-weight: 800; color: #140D02;
  background: var(--amber-bright); padding: 3px 10px; border-radius: var(--r-pill);
  pointer-events: none; white-space: nowrap; animation: flyUp 0.75s var(--ease-out) forwards;
}
@keyframes flyUp { 0% { opacity: 1; transform: translate(-50%, 0) scale(0.9); } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1); } }

/* ---------- 分区通用标题 ---------- */
.flow-section { margin-bottom: 48px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-no {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #C7D2FE; background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 6px; padding: 2px 7px;
}
.sec-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.sec-line { flex: 1; height: 1px; min-width: 24px; background: linear-gradient(90deg, var(--line-2), transparent); transform-origin: left; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal-fallback .reveal { opacity: 1; transform: none; }

/* ---------- 01 厂商动态（2x2 品牌微光网格） ---------- */
.alerts-filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.alerts-filters label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); min-width: 145px; flex: 1 1 155px; }
.alerts-filters select {
  font: inherit; font-size: 12.5px; font-weight: 500;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--line-2); padding: 7px 10px; border-radius: var(--r-sm);
}
.alert-clear {
  padding: 7px 13px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.alert-clear:hover { color: var(--text); border-color: var(--line-3); }
#alertsMore { margin-top: 14px; }

.alerts-health-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; padding: 0 2px; }
.alerts-health { color: var(--text-3); font-size: 11.5px; font-family: var(--font-mono); overflow-wrap: anywhere; }

.alerts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.alert-card { padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r-box); overflow: hidden; }
.alert-card:hover { transform: translateY(-2px); }

/* 厂商专属柔和环境光 */
.alert-card[data-vendor="gpt"]    { background: radial-gradient(280px 140px at 0% 0%, rgba(16, 185, 129, 0.09), transparent 70%), var(--surface); }
.alert-card[data-vendor="claude"] { background: radial-gradient(280px 140px at 0% 0%, rgba(251, 146, 60, 0.10), transparent 70%), var(--surface); }
.alert-card[data-vendor="gemini"] { background: radial-gradient(280px 140px at 0% 0%, rgba(56, 189, 248, 0.10), transparent 70%), var(--surface); }
.alert-card[data-vendor="system"] { background: radial-gradient(280px 140px at 0% 0%, rgba(129, 140, 248, 0.10), transparent 70%), var(--surface); }
.alert-card[data-category="incident"] { border-color: var(--rose-line); }

.alert-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--text); margin: 8px 0 6px; overflow-wrap: anywhere; }
.alert-meta { color: var(--text-3); font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; font-family: var(--font-mono); }
.alert-card > .alert-meta:first-child { color: var(--text-2); font-family: var(--font-base); font-weight: 600; font-size: 12px; }
.alert-card[data-vendor="gpt"] > .alert-meta:first-child    { color: #6EE7B7; }
.alert-card[data-vendor="claude"] > .alert-meta:first-child { color: #FDBA74; }
.alert-card[data-vendor="gemini"] > .alert-meta:first-child { color: #7DD3FC; }
.alert-card[data-category="incident"] > .alert-meta:first-child { color: var(--rose-bright); }

.alert-summary { color: var(--text-2); font-size: 13px; line-height: 1.68; margin-top: 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.alert-card details { margin: 10px 0 4px; color: var(--text-2); font-size: 12px; }
.alert-card summary { cursor: pointer; color: var(--text-3); font-weight: 600; }
.alert-card summary:hover { color: var(--text); }
.alert-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow-y: auto; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.alert-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: auto; padding-top: 10px; color: var(--cyan); }
.alert-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 02 历史轨迹 ---------- */
.archive-badge { font-size: 11.5px; font-weight: 500; color: var(--text-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.archive-badge strong { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-right: 2px; }

.timeline-records { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 26px; }
.timeline-records::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--indigo), var(--line) 55%, transparent); }
.timeline-record-item {
  position: relative; display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; align-items: start; gap: 18px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.timeline-record-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.timeline-record-item::before { content: ""; position: absolute; left: -24px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-3); }
.timeline-record-item:first-child::before { background: var(--indigo); border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.22), 0 0 14px var(--indigo); }

.item-date { font-family: var(--font-mono); font-size: 12px; font-weight: 600; line-height: 1.45; padding-top: 2px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.item-date small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.item-content { min-width: 0; }
.item-content h3 { font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 4px; overflow-wrap: anywhere; color: var(--text); }
.item-content p { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--text-3); overflow-wrap: anywhere; }
.item-content p + p { margin-top: 3px; }

.item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.item-tag { font-size: 11px; font-weight: 600; white-space: nowrap; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); }
.item-tag-forecast  { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-bright); }
.item-tag-completed { background: var(--green-soft); border-color: var(--green-line); color: #A7F3D0; }
.item-link { font-size: 12px; font-weight: 500; color: var(--text-3); transition: color 0.15s ease; }
.item-link:hover { color: var(--text); }
.empty-loader { text-align: center; padding: 28px 16px; font-size: 13px; color: var(--text-3); border: 1px dashed var(--line); border-radius: var(--r-box); }

/* ---------- 关于 & 页脚 ---------- */
.about-card {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 30px;
  background: radial-gradient(400px 180px at 0% 50%, rgba(129, 140, 248, 0.08), transparent 70%), var(--surface);
}
.about-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-3); }
.about-hero-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 0; }
.about-card .highlight-yellow { color: var(--amber-bright); background: none; padding: 0; }
.about-p { max-width: 520px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

.bottom-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; }
.footer-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); }

/* ---------- 弹窗 ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-wrap.open { opacity: 1; pointer-events: auto; }
.modal-window {
  width: 100%; max-width: 350px; padding: 28px 24px 22px; text-align: center;
  background: var(--surface-solid); border-color: var(--line-2);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.95);
  transform: translateY(10px) scale(0.97); transition: transform 0.22s var(--ease-out);
}
.modal-wrap.open .modal-window { transform: none; }
.modal-x-btn { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; display: grid; place-items: center; color: var(--text-2); }
.modal-x-btn:hover { color: var(--text); }
.modal-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: #A5B4FC; margin-bottom: 6px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; }
.qr-border-frame { display: inline-block; padding: 10px; background: #fff; border-radius: var(--r-box); margin-bottom: 18px; }
.qr-img { width: 184px; height: 184px; display: block; object-fit: contain; }
.modal-bottom-btn { width: 100%; padding: 9px; background: var(--text); color: #040406; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .bento-main, .bento-side { grid-column: span 12; }
  .command-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-right-actions { align-items: flex-start; }
  .hero-live, .pill-bar { justify-content: flex-start; }
  .about-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 760px) {
  .nav-shell { padding: 10px 16px; gap: 10px; }
  .brand-sub, .nav-divider, .nav-links .text-link, .price-nav-actions a { display: none; }
  .main-shell { padding: 20px 16px 60px; }
  .alerts-list { grid-template-columns: 1fr; }
  .state-card-body { padding-right: 0; }
  .state-dynamic-scene { display: none; }
  .timeline-records { padding-left: 20px; }
  .timeline-records::before { left: 5px; }
  .timeline-record-item { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .timeline-record-item::before { left: -19px; top: 19px; }
  .item-date small { display: inline; margin-left: 6px; }
  .item-actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-wrap { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 560px) {
  .brand-title { display: none; }
  .section-switch { gap: 4px; padding: 3px; }
  .section-switch a { padding: 7px 13px; font-size: 13px; gap: 5px; }
  .section-switch a svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
