/* ============================================================
   VECTOR · Design System
   ============================================================ */
:root {
  --bg: #070a08;
  --bg-soft: #090d0a;
  --panel: rgba(16, 22, 17, 0.62);
  --panel-solid: #0d120e;
  --panel-2: rgba(255, 255, 255, 0.035);
  --panel-3: rgba(255, 255, 255, 0.06);
  --line: rgba(232, 244, 232, 0.075);
  --line-strong: rgba(232, 244, 232, 0.14);
  --text: #eef4ec;
  --text-soft: #c3cdc3;
  --muted: #8a978c;
  --faint: #5b675e;
  --signal: #c8ff63;
  --signal-dim: #a7d94f;
  --signal-soft: rgba(200, 255, 99, 0.1);
  --ice: #8bc5ff;
  --ice-soft: rgba(139, 197, 255, 0.1);
  --coral: #ff7a70;
  --coral-soft: rgba(255, 122, 112, 0.1);
  --amber: #ffc65c;
  --amber-soft: rgba(255, 198, 92, 0.1);
  --violet: #b7a5ff;
  --violet-soft: rgba(183, 165, 255, 0.1);
  --up: var(--signal);
  --down: var(--coral);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --sidebar-w: 252px;
  --topbar-h: 76px;
  --ticker-h: 42px;
  --font-sans: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  --font-mono: "DM Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.48);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-color-mode="cn"] {
  --up: #ff7168;
  --down: #47dba1;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--signal); color: #081006; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(232, 244, 232, 0.12); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(232, 244, 232, 0.22); }

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- Ambient ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.7;
}
.ambient-orb--lime {
  width: 640px;
  height: 640px;
  top: -280px;
  left: 80px;
  background: radial-gradient(circle, rgba(154, 213, 67, 0.14), transparent 66%);
}
.ambient-orb--ice {
  width: 720px;
  height: 720px;
  top: 10%;
  right: -360px;
  background: radial-gradient(circle, rgba(95, 148, 190, 0.12), transparent 68%);
}
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shell ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.main-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.view {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 26px 30px 64px;
  flex: 1;
  outline: none;
}
.view > * { animation: rise-in 0.55s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: 0.04s; }
.view > *:nth-child(3) { animation-delay: 0.08s; }
.view > *:nth-child(4) { animation-delay: 0.12s; }
.view > *:nth-child(5) { animation-delay: 0.16s; }
.view > *:nth-child(6) { animation-delay: 0.2s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-loader {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.loader-mark {
  width: 24px;
  height: 24px;
  color: var(--signal);
  animation: spin 2.6s linear infinite;
}
.loader-mark svg { width: 100%; height: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sidebar ---------- */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 9, 0.82), rgba(7, 10, 8, 0.94));
  backdrop-filter: blur(24px);
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--signal);
  background: linear-gradient(145deg, rgba(200, 255, 99, 0.16), rgba(200, 255, 99, 0.03));
  border: 1px solid rgba(200, 255, 99, 0.22);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(160, 220, 70, 0.08);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-type { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-type strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.brand-type span {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: var(--faint);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: auto;
  box-shadow: 0 0 0 4px rgba(200, 255, 99, 0.08);
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 255, 99, 0.06); }
  50% { box-shadow: 0 0 0 6px rgba(200, 255, 99, 0.01); }
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--faint);
  padding: 0 10px 9px;
}
.nav-label--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
}
.primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: color 0.2s, background 0.2s;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-item.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(200, 255, 99, 0.11), rgba(200, 255, 99, 0.025));
}
.nav-item.is-active svg { color: var(--signal); }
.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: var(--signal);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.2s var(--ease);
}
.nav-item.is-active .nav-indicator { transform: translateY(-50%) scaleY(1); }
.nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 5px;
  padding: 2px 6px;
}
.nav-beta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--signal);
  border: 1px solid rgba(200, 255, 99, 0.22);
  border-radius: 4px;
  padding: 2px 4px;
}

.watchlist {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.watch-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-soft);
  transition: background 0.18s;
}
.watch-row:hover { background: rgba(255, 255, 255, 0.035); }
.watch-symbol { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }
.asset-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.asset-dot--us { background: var(--ice); box-shadow: 0 0 7px rgba(139, 197, 255, 0.5); }
.asset-dot--cn { background: var(--amber); box-shadow: 0 0 7px rgba(255, 198, 92, 0.45); }
.asset-dot--crypto { background: var(--signal); box-shadow: 0 0 7px rgba(200, 255, 99, 0.45); }
.asset-dot--macro { background: var(--violet); }
.watch-price { font-family: var(--font-mono); font-size: 10px; color: var(--text-soft); }
.watch-chg { font-family: var(--font-mono); font-size: 9.5px; }
.watch-chg.is-up { color: var(--up); }
.watch-chg.is-down { color: var(--down); }

.sidebar-spacer { flex: 1; min-height: 18px; }

.sidebar-pulse {
  margin: 0 2px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(200, 255, 99, 0.045), rgba(255, 255, 255, 0.012));
}
.sidebar-pulse-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; color: var(--faint); }
.sidebar-pulse-head em { font-style: normal; color: var(--signal); font-size: 6.5px; border: 1px solid rgba(200, 255, 99, 0.2); border-radius: 3px; padding: 1px 4px; }
.sidebar-pulse-main { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.sidebar-pulse-main > strong { font-size: 22px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; color: var(--signal); }
.sidebar-pulse-main div { display: flex; flex-direction: column; gap: 1px; }
.sidebar-pulse-main span { font-size: 8px; color: var(--text-soft); }
.sidebar-pulse-main small { font-size: 7px; color: var(--faint); }
.sidebar-pulse-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 8px; overflow: hidden; }
.sidebar-pulse-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(200, 255, 99, 0.35), var(--signal)); }
.sidebar-pulse-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-family: var(--font-mono); font-size: 6.5px; color: var(--faint); }
.sidebar-pulse-foot b { font-weight: 400; color: var(--muted); }

@media (max-height: 820px) {
  .sidebar-pulse { display: none; }
}

.account-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border-radius: 15px;
  padding: 13px;
  position: relative;
  overflow: hidden;
}
.account-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -52px;
  top: -58px;
  background: radial-gradient(circle, rgba(200, 255, 99, 0.14), transparent 70%);
  border-radius: 50%;
}
.account-top { display: flex; align-items: center; gap: 9px; }
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(200, 255, 99, 0.24), rgba(139, 197, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  flex: 0 0 auto;
}
.account-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.account-id strong { font-size: 11.5px; font-weight: 600; }
.account-id span { font-family: var(--font-mono); font-size: 8.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.mode-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--signal);
  background: var(--signal-soft);
  border-radius: 4px;
  padding: 2px 5px;
}
.account-balance { display: flex; align-items: baseline; justify-content: space-between; margin-top: 13px; }
.account-balance span { font-size: 10px; color: var(--faint); }
.account-balance strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sidebar-wallet-btn {
  width: 100%;
  height: 32px;
  margin-top: 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--text-soft);
  transition: background 0.2s, border-color 0.2s;
}
.sidebar-wallet-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sidebar-wallet-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }
.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5px 0;
  color: var(--faint);
  font-size: 9px;
}
.sidebar-foot > span { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ee7a5; display: inline-block; }
.text-btn { color: var(--faint); font-size: 9.5px; transition: color 0.2s; }
.text-btn:hover { color: var(--text); }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 8, 0.72);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.mobile-menu { display: none; }
.page-ident { min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: var(--faint);
  white-space: nowrap;
}
.page-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.search-trigger {
  margin-left: auto;
  width: min(360px, 30vw);
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  color: var(--faint);
  font-size: 11.5px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.search-trigger:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.search-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: 0 0 auto; }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.session-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}
.session-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 198, 92, 0.08); }
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  position: relative;
}
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); border-color: var(--line); }
.icon-btn--tiny { width: 20px; height: 20px; border-radius: 5px; }
.icon-btn--tiny svg { width: 12px; height: 12px; }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  border: 1.5px solid var(--bg);
}
.wallet-pill {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 6px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
  margin-left: 4px;
}
.wallet-pill:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.wallet-orb {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 18%),
    conic-gradient(from 210deg, #c8ff63, #78b9a2, #8bc5ff, #c8ff63);
  filter: saturate(0.8);
}
.wallet-copy { display: flex; flex-direction: column; gap: 0; align-items: flex-start; line-height: 1.3; }
.wallet-copy strong { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; }
.wallet-copy small { font-size: 8px; color: var(--faint); }
.wallet-chevron { width: 11px; height: 11px; fill: none; stroke: var(--faint); stroke-width: 1.6; margin-left: 2px; }

/* ---------- Ticker ---------- */
.ticker-tape {
  height: var(--ticker-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 9, 0.74);
  backdrop-filter: blur(18px);
  overflow: hidden;
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 64s linear infinite;
  will-change: transform;
}
.ticker-tape:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 18px;
  position: relative;
  white-space: nowrap;
  font-size: 10.5px;
}
.ticker-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--line);
}
.ticker-symbol { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; }
.ticker-price { font-family: var(--font-mono); font-size: 10px; color: var(--text-soft); }
.ticker-chg { font-family: var(--font-mono); font-size: 9px; }
.ticker-chg.is-up { color: var(--up); }
.ticker-chg.is-down { color: var(--down); }
.ticker-tag {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ---------- Common ---------- */
.panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--faint);
  display: block;
  margin-bottom: 4px;
}
.section-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.section-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s, gap 0.2s;
  white-space: nowrap;
}
.section-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.section-link:hover { color: var(--signal); gap: 8px; }
.page-section { margin-top: 30px; }
.mono { font-family: var(--font-mono); }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.muted { color: var(--muted); }
.tiny { font-size: 10px; }
.hide { display: none !important; }

.btn {
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--signal);
  color: #081006;
  box-shadow: 0 8px 24px rgba(200, 255, 99, 0.12);
}
.btn-primary:hover { background: #d4ff83; box-shadow: 0 10px 30px rgba(200, 255, 99, 0.2); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text-soft); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--text); background: rgba(255, 255, 255, 0.045); }
.btn-soft { background: var(--signal-soft); color: var(--signal); border: 1px solid rgba(200, 255, 99, 0.15); }
.btn-sm { height: 33px; padding: 0 12px; border-radius: 8px; font-size: 10.5px; }
.btn-lg { height: 46px; border-radius: 12px; padding: 0 22px; font-size: 12.5px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--crypto { color: var(--signal); background: var(--signal-soft); border: 1px solid rgba(200, 255, 99, 0.14); }
.badge--us { color: var(--ice); background: var(--ice-soft); border: 1px solid rgba(139, 197, 255, 0.14); }
.badge--cn { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255, 198, 92, 0.14); }
.badge--macro { color: var(--violet); background: var(--violet-soft); border: 1px solid rgba(183, 165, 255, 0.14); }
.badge--live { color: var(--signal); background: var(--signal-soft); border: 1px solid rgba(200, 255, 99, 0.16); }
.badge--demo { color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.badge--amber { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255, 198, 92, 0.14); }
.badge--down { color: var(--down); background: rgba(255, 122, 112, 0.08); border: 1px solid rgba(255, 122, 112, 0.14); }

.change-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 4px;
}
.change-pill.is-up { color: var(--up); background: rgba(200, 255, 99, 0.07); }
.change-pill.is-down { color: var(--down); background: rgba(255, 122, 112, 0.07); }
.change-pill--neutral { color: var(--muted); background: rgba(255, 255, 255, 0.04); }

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

.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--faint);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.demo-note i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.78fr);
  gap: 14px;
}
.hero-card {
  position: relative;
  min-height: 344px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 35px 36px 30px;
  background:
    radial-gradient(ellipse at 87% 30%, rgba(200, 255, 99, 0.1), transparent 42%),
    radial-gradient(ellipse at 50% 110%, rgba(139, 197, 255, 0.06), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 232, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 68%);
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -170px;
  top: -150px;
  border: 1px solid rgba(200, 255, 99, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(200, 255, 99, 0.012), 0 0 0 96px rgba(200, 255, 99, 0.008);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 3; max-width: 560px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 20px;
}
.hero-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hero-kicker span { color: var(--faint); letter-spacing: 0.1em; }
.hero-title {
  font-size: clamp(34px, 3.35vw, 49px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 520px;
}
.hero-title .hero-accent {
  color: var(--signal);
  font-weight: 600;
}
.hero-sub {
  margin-top: 17px;
  max-width: 448px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 25px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 31px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  width: fit-content;
}
.hero-stat { padding-right: 25px; margin-right: 25px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat span { font-size: 9px; color: var(--faint); display: block; margin-bottom: 2px; }
.hero-stat strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-stat small { font-size: 8px; color: var(--up); margin-left: 4px; font-family: var(--font-mono); }
.hero-orbit { position: absolute; right: 34px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); z-index: 2; }
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 244, 232, 0.075);
}
.orbit-ring::before {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(200, 255, 99, 0.8);
}
.orbit-ring--1 { inset: 26px; animation: orbit 28s linear infinite; }
.orbit-ring--2 { inset: 58px; border-style: dashed; border-color: rgba(232, 244, 232, 0.09); animation: orbit 40s linear infinite reverse; }
.orbit-ring--3 { inset: 90px; border-color: rgba(200, 255, 99, 0.12); animation: orbit 22s linear infinite; }
.orbit-ring--3::before { background: var(--ice); box-shadow: 0 0 12px rgba(139, 197, 255, 0.75); }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit-core {
  position: absolute;
  inset: 115px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 42% 33%, rgba(200, 255, 99, 0.18), rgba(200, 255, 99, 0.035) 55%, rgba(7, 10, 8, 0.6));
  border: 1px solid rgba(200, 255, 99, 0.2);
  box-shadow: 0 0 45px rgba(200, 255, 99, 0.1), inset 0 0 22px rgba(200, 255, 99, 0.05);
}
.orbit-core span { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.12em; color: var(--signal); opacity: 0.8; }
.orbit-core strong { font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 650; }
.orbit-core small { font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.12em; color: var(--muted); }
.orbit-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 14, 10, 0.8);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-soft);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.orbit-chip i { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); }
.orbit-chip.chip--1 { top: 20px; right: 2px; }
.orbit-chip.chip--2 { bottom: 46px; left: -12px; }
.orbit-chip.chip--3 { bottom: 6px; right: 24px; }
.orbit-chip em { font-style: normal; color: var(--signal); }
.orbit-chip.chip--2 em { color: var(--amber); }
.orbit-chip.chip--3 em { color: var(--ice); }

/* sentiment */
.sentiment-card {
  padding: 24px 23px 20px;
  display: flex;
  flex-direction: column;
  min-height: 344px;
  overflow: hidden;
}
.sentiment-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 99, 0.1), transparent 70%);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.card-head p { font-size: 9px; color: var(--faint); margin-top: 2px; }
.card-head .card-head-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.card-head .card-head-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sentiment-body { display: flex; align-items: center; gap: 18px; margin-top: 15px; }
.gauge { position: relative; flex: 0 0 auto; }
.gauge svg { display: block; overflow: visible; }
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.gauge-center strong { font-size: 31px; letter-spacing: -0.05em; line-height: 1; font-weight: 650; }
.gauge-center span { font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 4px; text-transform: uppercase; }
.gauge-progress { transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 6px rgba(200, 255, 99, 0.25)); }
.sentiment-copy { min-width: 0; }
.sentiment-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--signal); }
.sentiment-label i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.sentiment-copy p { font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.55; }
.sentiment-copy small { display: block; font-family: var(--font-mono); font-size: 8px; color: var(--faint); margin-top: 8px; }
.sentiment-bars { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.sent-bar { display: grid; grid-template-columns: 52px 1fr 27px; align-items: center; gap: 9px; }
.sent-bar span { font-size: 9px; color: var(--muted); }
.sent-bar div { height: 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.sent-bar div i { display: block; height: 100%; border-radius: inherit; background: var(--signal); opacity: 0.8; }
.sent-bar strong { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-soft); text-align: right; font-weight: 400; }

/* ---------- Index cards ---------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.index-card {
  padding: 16px 16px 13px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  position: relative;
  overflow: hidden;
}
.index-card:hover { transform: translateY(-2px); border-color: rgba(232, 244, 232, 0.16); background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); }
.index-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.index-name { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.index-name i { width: 5px; height: 5px; border-radius: 50%; }
.index-name i.us { background: var(--ice); box-shadow: 0 0 7px rgba(139, 197, 255, 0.55); }
.index-name i.cn { background: var(--amber); box-shadow: 0 0 7px rgba(255, 198, 92, 0.5); }
.index-name i.crypto { background: var(--signal); box-shadow: 0 0 7px rgba(200, 255, 99, 0.5); }
.index-name i.macro { background: var(--violet); }
.index-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; gap: 8px; }
.index-price { font-size: 23px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.index-price small { font-size: 10px; color: var(--faint); font-weight: 400; margin-left: 2px; }
.index-spark { height: 34px; margin-top: 5px; color: var(--muted); }
.index-spark .spark-svg { width: 100%; height: 34px; }
.index-spark.is-up { color: var(--up); }
.index-spark.is-down { color: var(--down); }
.index-consensus {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.index-consensus span { font-size: 8.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index-consensus strong { font-family: var(--font-mono); font-size: 9px; color: var(--signal); font-weight: 500; white-space: nowrap; }
.index-consensus svg { width: 10px; height: 10px; fill: none; stroke: var(--faint); stroke-width: 1.8; }

/* ---------- Market cards ---------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.market-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.011));
  padding: 17px 17px 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  display: flex;
  flex-direction: column;
}
.market-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 90% 0%, rgba(200, 255, 99, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.market-card:hover { border-color: rgba(232, 244, 232, 0.17); transform: translateY(-2px); }
.market-card:hover::before { opacity: 1; }
.market-card--featured { border-color: rgba(200, 255, 99, 0.14); }
.market-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.market-tags { display: flex; align-items: center; gap: 6px; }
.market-time { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9px; font-family: var(--font-mono); white-space: nowrap; }
.market-time svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.market-time.is-soon { color: var(--amber); }
.market-title {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 580;
  letter-spacing: -0.012em;
  margin-top: 13px;
  min-height: 44px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-prob-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 15px; position: relative; z-index: 1; }
.market-prob { display: flex; align-items: baseline; gap: 7px; }
.market-prob strong { font-size: 29px; letter-spacing: -0.045em; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.market-prob span { font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.market-prob .prob-delta { font-size: 9px; color: var(--up); }
.market-mini-chart { width: 88px; height: 34px; color: var(--signal); flex: 0 0 auto; }
.market-mini-chart.is-down { color: var(--down); }
.market-mini-chart .spark-svg { width: 100%; height: 34px; }
.prob-track {
  height: 3px;
  background: rgba(255, 122, 112, 0.22);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.prob-track i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--p, 50%);
  background: var(--signal);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(200, 255, 99, 0.25);
}
.market-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px; color: var(--faint); font-size: 8.5px; position: relative; z-index: 1; }
.market-foot span { display: flex; align-items: center; gap: 4px; }
.market-foot b { color: var(--text-soft); font-weight: 500; font-family: var(--font-mono); font-size: 8.5px; }
.market-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; position: relative; z-index: 2; }
.trade-btn {
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.trade-btn em { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: var(--faint); }
.trade-btn:hover { border-color: rgba(200, 255, 99, 0.28); background: var(--signal-soft); color: var(--signal); }
.trade-btn--no:hover { border-color: rgba(255, 122, 112, 0.3); background: rgba(255, 122, 112, 0.08); color: var(--down); }
.market-card--skeleton { min-height: 330px; }

/* ---------- Macro / pulse ---------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 12px;
}
.macro-panel { padding: 22px 23px; overflow: hidden; }
.macro-panel::after {
  content: "V";
  position: absolute;
  right: 20px;
  top: 4px;
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  letter-spacing: -0.1em;
}
.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--signal);
  background: var(--signal-soft);
  border: 1px solid rgba(200, 255, 99, 0.14);
  white-space: nowrap;
}
.signal-chip svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.macro-regime { display: flex; align-items: center; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.macro-regime h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 620; }
.confidence-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}
.macro-headline { font-size: 12.5px; color: var(--text-soft); margin-top: 7px; line-height: 1.6; }
.macro-narrative {
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.macro-scenarios { display: flex; gap: 3px; margin-top: 17px; height: 34px; border-radius: 8px; overflow: hidden; }
.scenario-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 9px;
  min-width: 0;
  font-size: 8.5px;
  color: rgba(7, 10, 8, 0.82);
  white-space: nowrap;
}
.scenario-seg span { overflow: hidden; text-overflow: ellipsis; }
.scenario-seg b { font-family: var(--font-mono); font-size: 8px; font-weight: 500; }
.scenario-seg--bull { background: var(--signal); }
.scenario-seg--base { background: #a9b7ac; }
.scenario-seg--bear { background: #e89186; color: #210b09; }
.macro-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 17px; }
.factor-row { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 8px; }
.factor-row span { font-size: 9px; color: var(--muted); }
.factor-row div { height: 3px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.factor-row div i { display: block; height: 100%; background: linear-gradient(90deg, rgba(200, 255, 99, 0.38), var(--signal)); border-radius: 4px; }
.factor-row strong { font-family: var(--font-mono); font-size: 8px; color: var(--faint); font-weight: 400; text-align: right; }
.macro-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.macro-cta small { font-size: 8.5px; color: var(--faint); }
.pulse-panel { padding: 22px 21px; }
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.pulse-tile {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 11px;
  padding: 10px 11px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.pulse-tile span { font-size: 8.5px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.pulse-tile span svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pulse-tile strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pulse-tile small { font-size: 8px; color: var(--faint); display: flex; align-items: center; gap: 4px; }
.pulse-tile small i { width: 4px; height: 4px; border-radius: 50%; background: var(--up); }
.pulse-tile--wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; min-height: 54px; }
.pulse-tile--wide strong { font-size: 18px; }
.pulse-tile .up { color: var(--up); }
.pulse-tile .down { color: var(--down); }
.breadth-bar { height: 4px; border-radius: 3px; background: rgba(255, 122, 112, 0.3); overflow: hidden; margin-top: 3px; }
.breadth-bar i { display: block; height: 100%; background: var(--up); border-radius: 3px; }

/* ---------- News + calendar ---------- */
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 12px; }
.news-panel, .calendar-panel { padding: 21px 21px 14px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.news-item:first-child { border-top: 0; padding-top: 4px; }
.news-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; margin-top: 6px; }
.news-dot--lime { background: var(--signal); box-shadow: 0 0 8px rgba(200, 255, 99, 0.5); }
.news-dot--ice { background: var(--ice); }
.news-dot--coral { background: var(--coral); }
.news-dot--amber { background: var(--amber); }
.news-content { min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 7px; font-size: 8px; color: var(--faint); font-family: var(--font-mono); }
.news-tag { color: var(--muted); }
.news-title { font-size: 11.5px; line-height: 1.55; color: var(--text-soft); margin-top: 3px; font-weight: 500; transition: color 0.2s; }
.news-item:hover .news-title { color: var(--text); }
.news-summary { font-size: 9.5px; color: var(--faint); line-height: 1.55; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-source { margin-left: auto; font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); flex: 0 0 auto; }
.calendar-list { display: flex; flex-direction: column; }
.calendar-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.calendar-item:first-child { border-top: 0; padding-top: 4px; }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding-right: 9px; }
.cal-date strong { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-soft); }
.cal-date span { font-size: 7.5px; color: var(--faint); }
.cal-body strong { display: block; font-size: 10.5px; font-weight: 550; color: var(--text-soft); }
.cal-body span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; }
.impact-dots { display: flex; gap: 2px; }
.impact-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.impact-dots i.on { background: var(--amber); }
.impact-dots.i3 i.on { background: var(--coral); }
.cal-region { font-family: var(--font-mono); font-size: 7px; color: var(--faint); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: 5px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 20px 30px 22px;
  color: var(--faint);
  font-size: 9px;
}
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-mono); color: var(--muted); letter-spacing: 0.05em; }
.footer-links { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.footer-links button { color: var(--faint); font-size: 9px; transition: color 0.2s; }
.footer-links button:hover { color: var(--text); }
.footer-sep { width: 1px; height: 10px; background: var(--line-strong); }

/* ---------- Page headers ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-header-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.page-header-copy .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--signal); opacity: 0.6; }
.page-header h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.04em; font-weight: 600; }
.page-header p { color: var(--muted); font-size: 12px; margin-top: 7px; max-width: 580px; line-height: 1.65; }
.page-header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.page-header-actions .btn { margin-left: 2px; }
.header-stats { display: flex; gap: 26px; align-items: center; padding-bottom: 2px; }
.header-stat span { display: block; font-size: 8.5px; color: var(--faint); margin-bottom: 1px; }
.header-stat strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.header-stat small { font-size: 8px; color: var(--up); font-family: var(--font-mono); margin-left: 3px; }

/* ---------- Markets page ---------- */
.market-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.mini-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}
.mini-index-left { display: flex; flex-direction: column; gap: 1px; }
.mini-index-left span { font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.mini-index-left strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-index-chg { font-family: var(--font-mono); font-size: 9px; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
  margin-bottom: 17px;
}
.segmented {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}
.segmented button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.filter-spacer { flex: 1; }
.chip-filter {
  height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip-filter:hover { color: var(--text); border-color: var(--line-strong); }
.chip-filter.is-active { color: var(--signal); border-color: rgba(200, 255, 99, 0.25); background: var(--signal-soft); }
.chip-filter svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.filter-search {
  height: 30px;
  width: 165px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--faint);
}
.filter-search:focus-within { border-color: rgba(200, 255, 99, 0.28); }
.filter-search svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.filter-search input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 9.5px; color: var(--text); }
.filter-search input::placeholder { color: var(--faint); }
.results-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: var(--faint); font-size: 9px; }
.results-line strong { color: var(--muted); font-weight: 500; }
.sort-select {
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 9px;
  padding: 0 6px;
  outline: 0;
}
.section-head--markets { margin-top: 31px; }
.resolved-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.018); }
.resolved-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px 100px 70px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 10.5px; }
.resolved-row:first-child { border-top: 0; }
.resolved-head { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; padding-top: 10px; padding-bottom: 10px; }
.resolved-title { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-soft); }
.resolved-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outcome-pill { font-family: var(--font-mono); font-size: 8px; padding: 2px 6px; border-radius: 4px; }
.outcome-pill.yes { color: var(--up); background: rgba(200, 255, 99, 0.08); }
.outcome-pill.no { color: var(--down); background: rgba(255, 122, 112, 0.08); }
.resolved-meta { font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.resolved-volume { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--text-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.18s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.data-table .num.head { text-align: right; }
.table-market { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.table-market-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-mono); font-size: 7px; font-weight: 500; }
.table-market-icon.us { background: var(--ice-soft); color: var(--ice); }
.table-market-icon.cn { background: var(--amber-soft); color: var(--amber); }
.table-market-icon.crypto { background: var(--signal-soft); color: var(--signal); }
.table-market-icon.macro { background: var(--violet-soft); color: var(--violet); }
.table-market-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.table-market-copy strong { font-size: 10.5px; font-weight: 500; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.table-market-copy span { font-size: 7.5px; color: var(--faint); font-family: var(--font-mono); }
.side-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 7.5px; }
.side-pill.yes { color: var(--signal); background: var(--signal-soft); }
.side-pill.no { color: var(--down); background: rgba(255, 122, 112, 0.08); }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-link { font-size: 9px; color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s; }
.table-link:hover { color: var(--signal); }
.table-empty { padding: 30px; text-align: center; color: var(--faint); font-size: 10px; }

/* ---------- Portfolio ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.metric-card { padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); position: relative; overflow: hidden; }
.metric-card--primary { border-color: rgba(200, 255, 99, 0.13); background: radial-gradient(ellipse at 100% 0%, rgba(200, 255, 99, 0.09), transparent 55%), linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.metric-label { font-size: 8.5px; color: var(--faint); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.metric-label svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.metric-value { font-size: 23px; font-weight: 620; letter-spacing: -0.04em; margin-top: 7px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 10px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.metric-delta { font-family: var(--font-mono); font-size: 8.5px; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.metric-delta .up { color: var(--up); }
.metric-delta .down { color: var(--down); }
.metric-spark { position: absolute; right: 11px; bottom: 12px; width: 76px; height: 26px; opacity: 0.6; color: var(--up); }
.metric-spark .spark-svg { width: 100%; height: 26px; }
.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr); gap: 12px; margin-bottom: 22px; }
.chart-panel { padding: 18px 19px 12px; }
.chart-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.chart-panel-head h3 { font-size: 13px; font-weight: 600; }
.chart-panel-head p { font-size: 8.5px; color: var(--faint); margin-top: 2px; }
.chart-value { text-align: right; }
.chart-value strong { font-size: 19px; letter-spacing: -0.03em; font-weight: 620; font-variant-numeric: tabular-nums; }
.chart-value span { display: block; font-family: var(--font-mono); font-size: 8px; margin-top: 2px; }
.chart-host { width: 100%; min-height: 120px; margin-top: 8px; }
.chart-canvas { width: 100%; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--faint); font-family: var(--font-mono); font-size: 8px; }
.chart-baseline { stroke: rgba(232, 244, 232, 0.22); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-baseline-label { fill: var(--faint); font-family: var(--font-mono); font-size: 7.5px; }
.chart-crosshair { stroke: rgba(232, 244, 232, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 108px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 11, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-radius: 7px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.chart-tooltip span { display: block; font-family: var(--font-mono); font-size: 7px; color: var(--faint); white-space: nowrap; }
.chart-tooltip strong { display: block; font-size: 12px; margin-top: 2px; font-weight: 600; }
.range-tabs { display: flex; align-items: center; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, 0.16); }
.range-tabs button { height: 21px; min-width: 27px; border-radius: 4px; font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); transition: color 0.18s, background 0.18s; }
.range-tabs button:hover { color: var(--text-soft); }
.range-tabs button.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.allocation-panel { padding: 18px 19px; display: flex; flex-direction: column; }
.allocation-donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.allocation-donut { width: 108px; height: 108px; flex: 0 0 auto; position: relative; }
.allocation-donut svg { transform: rotate(-90deg); }
.allocation-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.allocation-donut-center strong { font-size: 15px; letter-spacing: -0.03em; font-weight: 620; }
.allocation-donut-center span { font-size: 7px; color: var(--faint); }
.allocation-legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.allocation-row { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); }
.allocation-row i { width: 5px; height: 5px; border-radius: 1.5px; flex: 0 0 auto; }
.allocation-row span { flex: 1; }
.allocation-row strong { font-family: var(--font-mono); font-size: 8px; color: var(--text-soft); font-weight: 400; }
.allocation-note { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); font-size: 8px; color: var(--faint); display: flex; justify-content: space-between; gap: 9px; }
.allocation-note strong { color: var(--muted); font-weight: 500; font-family: var(--font-mono); }
.positions-panel { padding: 0; overflow: hidden; }
.positions-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px 12px; }
.positions-head h3 { font-size: 13px; font-weight: 600; }
.positions-head .badge { margin-left: 7px; }
.activity-panel { padding: 18px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-icon { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-mono); font-size: 8px; }
.activity-icon.buy { background: var(--signal-soft); color: var(--signal); }
.activity-icon.sell { background: var(--coral-soft); color: var(--coral); }
.activity-icon.deposit { background: var(--ice-soft); color: var(--ice); }
.activity-icon.settle { background: var(--amber-soft); color: var(--amber); }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { display: block; font-size: 9.5px; font-weight: 500; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy span { display: block; font-size: 8px; color: var(--faint); margin-top: 1px; }
.activity-amount { font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); text-align: right; flex: 0 0 auto; }
.activity-amount small { display: block; font-size: 7.5px; color: var(--faint); }
.portfolio-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr); gap: 12px; }

/* ---------- Leaderboard ---------- */
.leaderboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-items: end; margin-bottom: 20px; }
.podium-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 17px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.podium-card--1 { border-color: rgba(200, 255, 99, 0.2); background: radial-gradient(ellipse at 50% 0%, rgba(200, 255, 99, 0.1), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); padding-top: 28px; order: 2; }
.podium-card--2 { order: 1; }
.podium-card--3 { order: 3; }
.podium-rank { position: absolute; top: 13px; right: 16px; font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.podium-card--1 .podium-rank { color: var(--signal); }
.podium-avatar { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 18px; font-weight: 700; position: relative; border: 1px solid rgba(255, 255, 255, 0.16); }
.podium-avatar::after { content: ""; position: absolute; inset: -5px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 19px; }
.podium-name { margin-top: 15px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.podium-handle { font-family: var(--font-mono); font-size: 8px; color: var(--faint); margin-top: 1px; }
.podium-pnl { font-size: 22px; letter-spacing: -0.03em; font-weight: 650; margin-top: 15px; font-variant-numeric: tabular-nums; }
.podium-pnl span { font-size: 8px; color: var(--faint); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.podium-stats { display: flex; gap: 16px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.podium-stats span { display: block; font-size: 7.5px; color: var(--faint); }
.podium-stats strong { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-soft); font-weight: 400; margin-top: 1px; }
.crown { width: 15px; height: 15px; color: var(--signal); fill: none; stroke: currentColor; stroke-width: 1.6; }
.leaderboard-table-panel { padding: 0; overflow: hidden; }
.leaderboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.leaderboard-toolbar h3 { font-size: 13px; font-weight: 600; }
.rank-cell { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.rank-cell.is-top { color: var(--signal); }
.trader-cell { display: flex; align-items: center; gap: 9px; }
.trader-avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 650; border: 1px solid rgba(255, 255, 255, 0.12); flex: 0 0 auto; }
.trader-copy strong { display: block; font-size: 10px; font-weight: 500; color: var(--text-soft); }
.trader-copy span { display: block; font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); }
.you-row { background: rgba(200, 255, 99, 0.035) !important; }
.you-row td { border-top: 1px solid rgba(200, 255, 99, 0.13); border-bottom: 1px solid rgba(200, 255, 99, 0.13); }
.you-tag { font-family: var(--font-mono); font-size: 7px; color: var(--signal); border: 1px solid rgba(200, 255, 99, 0.25); border-radius: 3px; padding: 1px 4px; margin-left: 5px; }
.user-rank-card { margin-top: 12px; border: 1px solid rgba(200, 255, 99, 0.16); border-radius: 14px; background: linear-gradient(120deg, rgba(200, 255, 99, 0.06), rgba(255, 255, 255, 0.018)); padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.user-rank-left { display: flex; align-items: center; gap: 12px; }
.user-rank-number { font-family: var(--font-mono); font-size: 22px; color: var(--signal); font-weight: 500; }
.user-rank-copy strong { display: block; font-size: 11px; font-weight: 600; }
.user-rank-copy span { display: block; font-size: 8.5px; color: var(--faint); }
.user-rank-stats { display: flex; gap: 24px; }
.user-rank-stats span { display: block; font-size: 7.5px; color: var(--faint); }
.user-rank-stats strong { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-soft); font-weight: 400; }

/* ---------- Insights ---------- */
.insights-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: 12px; margin-bottom: 13px; }
.sim-panel { padding: 20px 22px; overflow: hidden; }
.sim-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 26px; margin-top: 17px; }
.sim-controls { display: flex; flex-direction: column; gap: 16px; }
.sim-control-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sim-control-label span { font-size: 9.5px; color: var(--muted); }
.sim-control-label strong { font-family: var(--font-mono); font-size: 9px; color: var(--signal); font-weight: 500; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--signal) var(--fill, 50%), rgba(255, 255, 255, 0.08) var(--fill, 50%));
  outline: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--signal);
  box-shadow: 0 0 0 3px rgba(200, 255, 99, 0.1), 0 0 12px rgba(200, 255, 99, 0.18);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sim-scale { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.sim-results { border-left: 1px solid var(--line); padding-left: 24px; }
.sim-forecast-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sim-forecast-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.09em; color: var(--faint); }
.sim-forecast-value { font-size: 33px; letter-spacing: -0.04em; font-weight: 650; margin-top: 3px; line-height: 1.1; }
.sim-forecast-value span { font-size: 11px; color: var(--faint); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.sim-range { font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); margin-top: 4px; }
.confidence-ring-sm { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.confidence-ring-sm strong { font-family: var(--font-mono); font-size: 15px; color: var(--signal); font-weight: 500; }
.confidence-ring-sm span { font-size: 7px; color: var(--faint); }
.dist-chart { margin-top: 5px; height: 150px; }
.dist-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); margin-top: 2px; }
.dist-legend span { display: flex; align-items: center; gap: 4px; }
.dist-legend i { width: 5px; height: 5px; border-radius: 1px; }
.sim-callout { margin-top: 11px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); line-height: 1.5; }
.sim-callout svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: var(--signal); stroke-width: 1.7; }
.insight-side { display: flex; flex-direction: column; gap: 12px; }
.regime-card { padding: 19px; }
.regime-card .macro-regime { margin-top: 10px; }
.regime-card h2 { font-size: 20px; }
.regime-meter { margin-top: 15px; }
.regime-meter-head { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; color: var(--faint); margin-bottom: 6px; }
.regime-meter-head strong { color: var(--signal); font-family: var(--font-mono); font-weight: 500; }
.regime-meter-track { height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--down), var(--amber), var(--signal)); position: relative; opacity: 0.65; }
.regime-meter-track i { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--text); border: 2px solid var(--bg); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--line-strong); }
.regime-meter-scale { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--font-mono); font-size: 6.5px; color: var(--faint); }
.insight-mini-card { padding: 16px 18px; display: flex; align-items: center; gap: 13px; }
.insight-mini-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ice-soft); color: var(--ice); display: grid; place-items: center; flex: 0 0 auto; }
.insight-mini-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.insight-mini-copy { min-width: 0; }
.insight-mini-copy strong { display: block; font-size: 10.5px; font-weight: 550; }
.insight-mini-copy span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; }
.insight-mini-value { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--signal); }
.insight-mini-value small { display: block; font-size: 7px; color: var(--faint); }
.macro-metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 13px; }
.macro-metric { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.022); min-width: 0; }
.macro-metric span { font-size: 8px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.macro-metric strong { display: block; font-size: 15px; font-weight: 600; margin-top: 3px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.macro-metric small { display: block; font-family: var(--font-mono); font-size: 7.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insights-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.corr-panel { padding: 19px; overflow: hidden; }
.corr-grid { display: grid; grid-template-columns: 64px repeat(6, 1fr); gap: 4px; margin-top: 16px; }
.corr-label { font-size: 7.5px; color: var(--faint); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corr-label--top { justify-content: center; font-family: var(--font-mono); font-size: 6.5px; text-align: center; writing-mode: horizontal-tb; line-height: 1.2; }
.corr-cell { height: 36px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 8px; color: var(--text-soft); border: 1px solid transparent; }
.corr-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 7.5px; color: var(--faint); }
.corr-scale { display: flex; align-items: center; gap: 4px; }
.corr-scale i { width: 12px; height: 5px; border-radius: 1px; }
.eco-panel { padding: 19px; display: flex; flex-direction: column; }
.eco-list { margin-top: 10px; }
.eco-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.eco-row:first-child { border-top: 0; }
.eco-date { font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); }
.eco-copy strong { display: block; font-size: 9.5px; color: var(--text-soft); font-weight: 500; }
.eco-copy span { display: block; font-size: 7.5px; color: var(--faint); margin-top: 1px; }
.eco-impact { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.eco-impact .impact-dots i { width: 5px; height: 5px; }
.eco-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 7px; color: var(--faint); }

/* ---------- Modal ---------- */
.overlay-root { position: relative; z-index: 100; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 4, 0.72);
  backdrop-filter: blur(9px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  overflow-y: auto;
  z-index: 100;
  animation: overlay-in 0.25s ease both;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.overlay.is-closing { animation: overlay-out 0.2s ease both; }
@keyframes overlay-out { to { opacity: 0; } }
.modal {
  width: min(680px, 100%);
  background: linear-gradient(165deg, #101611, #0a0e0b 60%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: auto 0;
  animation: modal-in 0.35s var(--ease) both;
  position: relative;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal--market { width: min(1220px, 100%); max-height: calc(100vh - 52px); display: flex; flex-direction: column; overflow: hidden; }
.modal--palette { width: min(620px, 100%); margin-top: 13vh; }
.modal--wallet { width: min(520px, 100%); }
.modal--settings { width: min(580px, 100%); }
.modal--docs { width: min(720px, 100%); }
.modal--create { width: min(660px, 100%); }
.modal--disclaimer { width: min(620px, 100%); }
.modal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: rgba(13, 18, 14, 0.86);
  backdrop-filter: blur(16px);
  z-index: 5;
}
.modal-topbar-copy { min-width: 0; }
.modal-eyebrow { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 3px; }
.modal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
  transition: background 0.18s, color 0.18s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal--market .modal-body { padding: 22px; }

/* market modal */
.market-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.market-modal-title-wrap { min-width: 0; }
.market-modal-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.market-modal-title { font-size: 23px; line-height: 1.3; letter-spacing: -0.03em; font-weight: 600; margin-top: 9px; max-width: 760px; }
.market-modal-sub { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 8px; font-size: 9px; color: var(--faint); }
.market-modal-sub span { display: flex; align-items: center; gap: 4px; }
.market-modal-sub svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.market-modal-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.circle-btn { width: 31px; height: 31px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.circle-btn:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.circle-btn.is-active { color: var(--signal); border-color: rgba(200, 255, 99, 0.24); background: var(--signal-soft); }
.circle-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.market-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: 20px; align-items: start; }
.market-detail-main { min-width: 0; }
.prob-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 3px 1px 14px; }
.prob-hero-left { display: flex; align-items: baseline; gap: 10px; }
.prob-big { font-size: 42px; line-height: 0.95; letter-spacing: -0.055em; font-weight: 650; font-variant-numeric: tabular-nums; }
.prob-big sup { font-size: 12px; vertical-align: super; letter-spacing: 0; color: var(--faint); font-weight: 400; margin-left: 2px; }
.prob-hero-meta { display: flex; flex-direction: column; gap: 2px; }
.prob-hero-meta span { font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.prob-hero-meta strong { font-size: 10px; font-weight: 500; }
.prob-hero-right { display: flex; align-items: center; gap: 12px; }
.prob-hero-right .spark-wrap { width: 104px; height: 38px; color: var(--signal); }
.prob-hero-right .spark-wrap .spark-svg { width: 100%; height: 38px; }
.chart-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.018); padding: 13px 14px 8px; }
.chart-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-card-head h3 { font-size: 11px; font-weight: 550; color: var(--text-soft); }
.detail-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 17px; }
.detail-tab { position: relative; height: 34px; padding: 0 10px; font-size: 9.5px; color: var(--muted); transition: color 0.18s; }
.detail-tab:hover { color: var(--text-soft); }
.detail-tab.is-active { color: var(--text); }
.detail-tab.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 1.5px; background: var(--signal); }
.detail-tab-panel { padding-top: 14px; }
.detail-panel-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.detail-panel-sub h4 { font-size: 10px; font-weight: 550; color: var(--text-soft); }
.detail-panel-sub span { font-size: 8px; color: var(--faint); }
.ladder { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ladder-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; padding: 8px 11px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); }
.ladder-row:first-child { border-top: 0; background: rgba(255, 255, 255, 0.025); font-size: 7.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.ladder-row b { color: var(--text-soft); font-weight: 400; }
.ladder-side { display: flex; flex-direction: column; gap: 5px; }
.ladder-head { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; color: var(--faint); padding: 0 2px 6px; }
.ladder-head strong { font-size: 9px; font-weight: 500; color: var(--text-soft); }
.rule-box { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: rgba(255, 255, 255, 0.018); }
.rule-box h4 { font-size: 9.5px; color: var(--text-soft); font-weight: 550; margin-bottom: 5px; }
.rule-box p { font-size: 9.5px; line-height: 1.72; color: var(--muted); }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rule-meta { border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: rgba(255, 255, 255, 0.018); }
.rule-meta span { font-size: 7.5px; color: var(--faint); display: block; }
.rule-meta strong { display: block; font-size: 9px; color: var(--text-soft); font-weight: 500; margin-top: 3px; }
.rule-meta code { font-family: var(--font-mono); font-size: 8px; color: var(--muted); word-break: break-all; }
.rule-footer { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; font-size: 8.5px; color: var(--faint); line-height: 1.6; }
.rule-footer svg { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.demo-resolve-box { margin-top: 14px; border: 1px dashed rgba(255, 198, 92, 0.25); background: rgba(255, 198, 92, 0.035); border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-resolve-box span { font-size: 8px; color: var(--amber); display: flex; align-items: center; gap: 5px; }
.demo-resolve-box span svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.demo-resolve-actions { display: flex; gap: 5px; }
.mini-trade-list { display: flex; flex-direction: column; }
.mini-trade-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 8.5px; }
.mini-trade-row:first-child { border-top: 0; }
.mini-trade-row .time { font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); }
.mini-trade-row .addr { font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); }
.mini-trade-row .amt { font-family: var(--font-mono); font-size: 8px; color: var(--text-soft); text-align: right; }
.mini-trade-row .px { font-family: var(--font-mono); font-size: 8px; text-align: right; }

/* trade ticket */
.trade-ticket {
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(165deg, rgba(20, 27, 21, 0.96), rgba(12, 17, 13, 0.98));
  padding: 14px;
  position: sticky;
  top: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.ticket-head strong { font-size: 11px; font-weight: 600; }
.ticket-balance { font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); }
.ticket-balance b { color: var(--text-soft); font-weight: 400; }
.ticket-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.ticket-tab {
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  transition: background 0.18s, color 0.18s;
}
.ticket-tab b { font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.ticket-tab.is-yes { background: rgba(200, 255, 99, 0.13); color: var(--signal); border: 1px solid rgba(200, 255, 99, 0.18); }
.ticket-tab.is-no { background: rgba(255, 122, 112, 0.12); color: var(--down); border: 1px solid rgba(255, 122, 112, 0.18); }
.ticket-mode { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.ticket-mode span { font-size: 8.5px; color: var(--faint); }
.ticket-mode button { font-size: 8px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.amount-field {
  height: 59px;
  margin-top: 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  transition: border-color 0.18s;
}
.amount-field:focus-within { border-color: rgba(200, 255, 99, 0.32); }
.amount-field .prefix { font-size: 22px; color: var(--faint); font-weight: 400; }
.amount-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 30px; font-weight: 560; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.amount-field input::placeholder { color: rgba(255, 255, 255, 0.16); }
.amount-field .suffix { font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.quick-amounts { display: flex; gap: 4px; margin-top: 6px; }
.quick-amounts button { flex: 1; height: 24px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--font-mono); font-size: 7.5px; color: var(--faint); transition: color 0.18s, border-color 0.18s, background 0.18s; }
.quick-amounts button:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.quote-box { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.quote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 8.5px; color: var(--faint); }
.quote-row strong { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-soft); font-weight: 400; }
.quote-row .positive { color: var(--up); }
.quote-row .negative { color: var(--down); }
.ticket-cta {
  width: 100%;
  height: 43px;
  margin-top: 11px;
  border-radius: 9px;
  background: var(--signal);
  color: #081006;
  font-size: 11.5px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.18s, transform 0.18s;
}
.ticket-cta:hover { background: #d4ff83; }
.ticket-cta:active { transform: scale(0.992); }
.ticket-cta.is-no { background: var(--coral); color: #1e0a08; }
.ticket-cta.is-no:hover { background: #ff948c; }
.ticket-cta.is-sell { background: rgba(255, 255, 255, 0.1); color: var(--text); border: 1px solid var(--line-strong); }
.ticket-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.ticket-disclaimer { margin-top: 8px; text-align: center; font-size: 7px; color: var(--faint); line-height: 1.5; }
.position-mini { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 9px; }
.position-mini-head { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--faint); }
.position-mini-head strong { color: var(--text-soft); font-family: var(--font-mono); font-size: 8px; font-weight: 400; }
.position-mini-row { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; font-size: 8.5px; color: var(--muted); }
.position-mini-row b { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-soft); font-weight: 400; }
.ticket-success { padding: 9px 10px; border-radius: 7px; background: var(--signal-soft); border: 1px solid rgba(200, 255, 99, 0.16); color: var(--signal); font-size: 8.5px; margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.ticket-success svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.market-side-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 8px; color: var(--faint); }
.market-side-note svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* create market form */
.create-form { padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.field label em { font-style: normal; font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.field label output { font-family: var(--font-mono); font-size: 9px; color: var(--signal); }
.field input[type="text"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 10.5px;
  padding: 9px 10px;
  outline: 0;
  transition: border-color 0.2s, background 0.2s;
  color-scheme: dark;
}
.field input[type="text"]::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: rgba(200, 255, 99, 0.32); background: rgba(0, 0, 0, 0.26); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a978c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.field textarea { resize: vertical; min-height: 70px; line-height: 1.6; }
.field input[type="range"] { margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-form .wallet-note { margin-top: 0; }

/* wallet / settings / docs modal */
.modal-section { padding: 20px 22px; }
.modal-section + .modal-section { border-top: 1px solid var(--line); }
.modal-section h3 { font-size: 11px; font-weight: 600; }
.modal-section p { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.wallet-options { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.wallet-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.wallet-option:hover { border-color: rgba(200, 255, 99, 0.25); background: rgba(200, 255, 99, 0.035); }
.wallet-option-icon { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; font-size: 15px; }
.wallet-option-copy { flex: 1; min-width: 0; }
.wallet-option-copy strong { display: block; font-size: 10.5px; font-weight: 550; }
.wallet-option-copy span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 1px; }
.wallet-option > svg { width: 13px; height: 13px; fill: none; stroke: var(--faint); stroke-width: 1.7; }
.wallet-connected-card { border: 1px solid rgba(200, 255, 99, 0.17); background: var(--signal-soft); border-radius: 11px; padding: 14px; display: flex; align-items: center; gap: 11px; }
.wallet-connected-card .wallet-orb { width: 34px; height: 34px; border-radius: 10px; }
.wallet-connected-copy strong { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.wallet-connected-copy span { display: block; font-size: 8px; color: var(--muted); }
.wallet-connected-card .badge { margin-left: auto; }
.wallet-address-full { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-family: var(--font-mono); font-size: 8px; color: var(--muted); word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-address-full button { color: var(--faint); font-size: 8px; flex: 0 0 auto; }
.wallet-address-full button:hover { color: var(--signal); }
.wallet-note { display: flex; align-items: flex-start; gap: 7px; font-size: 8.5px; color: var(--faint); line-height: 1.6; margin-top: 13px; }
.wallet-note svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; margin-top: 1px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.settings-row:first-of-type { border-top: 0; }
.settings-copy strong { display: block; font-size: 10px; font-weight: 500; }
.settings-copy span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; line-height: 1.5; }
.segmented--small button { height: 24px; padding: 0 8px; font-size: 8.5px; }
.toggle { width: 33px; height: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); position: relative; transition: background 0.2s; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #b7c1b8; top: 3px; left: 3px; transition: transform 0.2s var(--ease), background 0.2s; }
.toggle.is-on { background: rgba(200, 255, 99, 0.28); }
.toggle.is-on::after { transform: translateX(15px); background: var(--signal); }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; border-top: 1px solid var(--line); }
.danger-btn { color: var(--coral); font-size: 9px; display: flex; align-items: center; gap: 5px; }
.danger-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.danger-btn:hover { text-decoration: underline; }
.doc-block { border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.2); padding: 13px; margin-top: 11px; }
.doc-block h4 { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.doc-block p { font-size: 9px; color: var(--faint); line-height: 1.7; }
.doc-code { font-family: var(--font-mono); font-size: 8px; line-height: 1.8; color: var(--text-soft); white-space: pre-wrap; word-break: break-word; }
.doc-code .k { color: var(--violet); }
.doc-code .s { color: var(--signal); }
.doc-code .c { color: var(--faint); }
.contract-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255, 198, 92, 0.18); border-radius: 9px; background: rgba(255, 198, 92, 0.04); margin-top: 12px; }
.contract-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; }
.contract-status span { font-size: 9px; color: var(--amber); }
.contract-status small { margin-left: auto; font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.news-art-meta { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.news-art-meta .news-dot { margin-top: 0; }
.news-art-title { font-size: 20px !important; line-height: 1.4; letter-spacing: -0.025em; color: var(--text); margin-top: 12px; font-weight: 600; }
.news-art-body { font-size: 10.5px !important; line-height: 1.85 !important; color: var(--muted) !important; margin-top: 9px !important; }
.disclaimer-list { margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }.disclaimer-item { display: flex; gap: 9px; }
.disclaimer-item span { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.disclaimer-item p { font-size: 9.5px; line-height: 1.7; color: var(--muted); }

/* palette */
.palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.palette-input-wrap svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; flex: 0 0 auto; }
.palette-input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
.palette-input::placeholder { color: var(--faint); }
.palette-input-wrap kbd { margin-left: auto; }
.palette-results { max-height: 390px; overflow-y: auto; padding: 8px; }
.palette-group-label { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.12em; color: var(--faint); padding: 8px 9px 5px; }
.palette-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px; border-radius: 8px; text-align: left; transition: background 0.15s; }
.palette-item:hover, .palette-item.is-active { background: rgba(255, 255, 255, 0.055); }
.palette-item-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); }
.palette-item-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.palette-item-copy { min-width: 0; flex: 1; }
.palette-item-copy strong { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item-copy span { display: block; font-size: 8px; color: var(--faint); margin-top: 1px; }
.palette-item-meta { font-family: var(--font-mono); font-size: 8.5px; color: var(--signal); flex: 0 0 auto; }
.palette-footer { display: flex; align-items: center; gap: 15px; padding: 10px 15px; border-top: 1px solid var(--line); font-size: 7.5px; color: var(--faint); }
.palette-footer span { display: flex; align-items: center; gap: 4px; }
.palette-empty { padding: 30px 18px; text-align: center; font-size: 10px; color: var(--faint); }
.palette-empty strong { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }

/* notification popover */
.notif-popover {
  position: fixed;
  top: 66px;
  right: 24px;
  width: 370px;
  max-height: min(520px, calc(100vh - 90px));
  background: #0d120e;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  overflow: hidden;
  animation: pop-in 0.22s var(--ease) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.99); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.notif-head strong { font-size: 11px; font-weight: 600; }
.notif-head button { font-size: 8px; color: var(--faint); }
.notif-head button:hover { color: var(--signal); }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 15px; border-top: 1px solid var(--line); cursor: pointer; transition: background 0.18s; }
.notif-item:first-child { border-top: 0; }
.notif-item:hover { background: rgba(255, 255, 255, 0.03); }
.notif-unread { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); flex: 0 0 auto; margin-top: 6px; }
.notif-item.is-read .notif-unread { background: transparent; }
.notif-copy { min-width: 0; }
.notif-copy strong { display: block; font-size: 9.5px; font-weight: 500; color: var(--text-soft); }
.notif-copy span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; line-height: 1.5; }
.notif-copy time { display: block; font-family: var(--font-mono); font-size: 7px; color: var(--faint); margin-top: 4px; }

/* toasts */
.toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(330px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--signal);
  border-radius: 9px;
  background: rgba(12, 17, 13, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  animation: toast-in 0.35s var(--ease) both;
  pointer-events: auto;
}
.toast.is-out { animation: toast-out 0.25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(14px); } }
.toast.is-error { border-left-color: var(--coral); }
.toast.is-info { border-left-color: var(--ice); }
.toast-icon { width: 18px; height: 18px; border-radius: 5px; background: var(--signal-soft); color: var(--signal); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.toast.is-error .toast-icon { background: var(--coral-soft); color: var(--coral); }
.toast.is-info .toast-icon { background: var(--ice-soft); color: var(--ice); }
.toast-icon svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.toast-copy strong { display: block; font-size: 9.5px; font-weight: 550; color: var(--text-soft); }
.toast-copy span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; line-height: 1.5; }

/* empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 24px; gap: 7px; }
.empty-icon { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); margin-bottom: 3px; }
.empty-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state h3 { font-size: 12px; font-weight: 550; }
.empty-state p { font-size: 9.5px; color: var(--faint); max-width: 280px; line-height: 1.6; }
.empty-state .btn { margin-top: 7px; }

/* skeleton states */
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)); background-size: 200% 100%; animation: shimmer 1.8s infinite; border-radius: 5px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  :root { --sidebar-w: 232px; }
  .view { padding: 24px 24px 56px; }
  .topbar { padding: 0 24px; gap: 18px; }
  .hero-orbit { right: 18px; transform: translateY(-50%) scale(0.9); }
  .hero-card { padding: 32px 30px 28px; }
  .hero-title { max-width: 470px; }
  .search-trigger { width: min(300px, 26vw); }
  .market-title { font-size: 13.5px; }
  .resolved-row { grid-template-columns: minmax(0, 1fr) 80px 90px 80px 62px; gap: 10px; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(275px, 0.65fr); }
  .hero-orbit { transform: translateY(-50%) scale(0.78); right: -8px; }
  .hero-title { font-size: 39px; }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .sentiment-body { gap: 12px; }
  .gauge { transform: scale(0.9); transform-origin: left center; }
  .sim-layout { grid-template-columns: 1fr; gap: 20px; }
  .sim-results { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
  .macro-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .insights-top { grid-template-columns: 1fr; }
  .insight-side { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
  .regime-card { grid-row: auto; }
  .portfolio-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); }
  .portfolio-lower { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
  .hero-card { min-height: 320px; }
  .hero-copy { max-width: 620px; }
  .hero-title { max-width: 560px; }
  .hero-sub { max-width: 520px; }
  .sentiment-card { min-height: unset; }
}

@media (max-width: 1020px) {
  :root { --sidebar-w: 216px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand-type span { font-size: 6.5px; }
  .topbar { gap: 13px; }
  .search-trigger { width: 210px; }
  .wallet-copy { display: none; }
  .wallet-pill { padding: 0 8px 0 6px; }
  .wallet-chevron { display: none; }
  .session-pill { display: none; }
  .hero-card { min-height: 330px; }
  .hero-orbit { opacity: 0.75; transform: translateY(-50%) scale(0.68); right: -28px; }
  .hero-title { font-size: 35px; max-width: 390px; }
  .hero-sub { max-width: 350px; }
  .hero-stats { margin-top: 23px; }
  .sentiment-card { min-height: 330px; }
  .macro-factors { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
  .market-overview-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .podium-card--1 { padding-top: 20px; }
  .insight-side { grid-template-columns: 1fr 1fr; }
  .regime-card { grid-column: span 2; }
  .insights-lower { grid-template-columns: 1fr; }
  .market-detail-grid { grid-template-columns: 1fr; }
  .trade-ticket { position: static; }
  .page-header h2 { font-size: 27px; }
  .header-stats { gap: 16px; }
  .header-stat strong { font-size: 13px; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 64px; --ticker-h: 38px; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-102%);
    transition: transform 0.35s var(--ease);
    width: 264px;
    flex-basis: 264px;
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.55);
    background: #090d0a;
  }
  .sidebar.is-open { transform: none; }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar-scrim.is-open { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; width: 30px; height: 30px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; flex: 0 0 auto; }
  .mobile-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .topbar { padding: 0 17px; }
  .page-ident { min-width: 0; flex: 1; }
  .page-eyebrow { font-size: 7px; }
  .page-title { font-size: 16px; }
  .search-trigger { width: 34px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 17px; height: 17px; }
  .top-actions { margin-left: 0; }
  .wallet-pill { height: 34px; }
  .wallet-orb { width: 24px; height: 24px; }
  .top-actions .icon-btn[data-open-settings] { display: none; }
  .view { padding: 18px 16px 46px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 340px; padding: 26px 23px; }
  .hero-title { font-size: 36px; max-width: 420px; }
  .hero-sub { max-width: 380px; }
  .hero-orbit { opacity: 0.44; transform: translateY(-50%) scale(0.74); right: -55px; }
  .sentiment-card { min-height: unset; }
  .sentiment-body { gap: 20px; }
  .gauge { transform: none; }
  .sentiment-bars { margin-top: 16px; }
  .index-grid { gap: 9px; }
  .market-grid { gap: 9px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-header-actions { width: 100%; justify-content: space-between; }
  .header-stats { gap: 18px; }
  .market-overview-strip { gap: 8px; }
  .filter-bar { gap: 7px; }
  .filter-spacer { flex-basis: 100%; height: 0; }
  .filter-search { width: 100%; flex: 1; }
  .resolved-row { grid-template-columns: minmax(0, 1fr) 68px 72px; }
  .resolved-row > :nth-child(3), .resolved-row > :nth-child(4) { display: none; }
  .podium-grid { grid-template-columns: 1fr; gap: 9px; }
  .podium-card--1, .podium-card--2, .podium-card--3 { order: initial; }
  .podium-grid { display: flex; flex-direction: column; }
  .podium-card { padding: 15px; }
  .podium-card--1 { padding-top: 15px; }
  .podium-avatar { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
  .podium-name { margin-top: 10px; }
  .podium-pnl { margin-top: 9px; font-size: 19px; }
  .podium-stats { margin-top: 9px; }
  .podium-rank { top: 15px; }
  .modal { width: 100%; }
  .overlay { padding: 0; }
  .modal--market { max-height: 100vh; min-height: 100vh; border-radius: 0; border: 0; }
  .modal--market .modal-body { padding: 16px; }
  .modal-topbar { padding: 15px 16px; }
  .market-modal-title { font-size: 20px; }
  .modal--palette { margin-top: 8vh; border-radius: 14px; }
  .overlay:has(.modal--palette) { padding: 16px; }
  .modal--wallet, .modal--settings, .modal--docs, .modal--disclaimer, .modal--create { margin-top: 6vh; margin-bottom: 6vh; }
  .overlay:has(.modal--wallet), .overlay:has(.modal--settings), .overlay:has(.modal--docs), .overlay:has(.modal--disclaimer), .overlay:has(.modal--create) { padding: 16px; }
  .site-footer { padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .insights-top, .insights-lower { grid-template-columns: 1fr; }
  .insight-side { grid-template-columns: 1fr 1fr; }
  .regime-card { grid-column: span 2; }
  .macro-metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 12px; }
  .metric-value { font-size: 20px; }
  .notif-popover { top: 58px; right: 12px; left: 12px; width: auto; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-card { min-height: 355px; padding: 24px 20px; }
  .hero-orbit { display: none; }
  .hero-stats { width: 100%; justify-content: space-between; gap: 0; }
  .hero-stat { padding-right: 14px; margin-right: 14px; }
  .hero-stat strong { font-size: 12px; }
  .index-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .market-title { min-height: unset; }
  .sentiment-body { gap: 12px; }
  .gauge { width: 118px !important; height: 118px !important; }
  .gauge svg { width: 118px !important; height: 118px !important; }
  .gauge-center strong { font-size: 26px; }
  .sentiment-copy p { font-size: 9.5px; }
  .macro-factors { gap: 9px; }
  .scenario-seg span { font-size: 8px; }
  .pulse-grid { gap: 6px; }
  .pulse-tile { padding: 9px; }
  .market-overview-strip { grid-template-columns: 1fr 1fr; }
  .mini-index { padding: 9px 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .mini-index-left strong { font-size: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header-actions { flex-wrap: wrap; gap: 12px; }
  .page-header-actions .header-stats { width: 100%; }
  .page-header-actions .btn { height: 34px; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; padding: 0 7px; }
  .header-stats { width: 100%; justify-content: space-between; }
  .page-header h2 { font-size: 25px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 18px; }
  .metric-spark { display: none; }
  .podium-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 1px 11px; }
  .podium-avatar { grid-row: span 3; width: 42px; height: 42px; }
  .podium-name { margin-top: 0; }
  .podium-handle { grid-column: 2; }
  .podium-pnl { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; font-size: 17px; }
  .podium-stats { grid-column: 2 / span 2; padding-top: 7px; margin-top: 7px; }
  .podium-rank { display: none; }
  .insight-side { grid-template-columns: 1fr; }
  .regime-card { grid-column: auto; }
  .corr-grid { grid-template-columns: 54px repeat(6, 1fr); gap: 3px; }
  .corr-cell { font-size: 6.5px; border-radius: 3px; height: 30px; }
  .corr-label { font-size: 6.5px; }
  .corr-label--top { font-size: 5.8px; }
  .sim-panel { padding: 17px 15px; }
  .sim-forecast-value { font-size: 28px; }
  .dist-chart { height: 130px; }
  .detail-panel-sub { flex-direction: column; align-items: flex-start; gap: 3px; }
  .rule-grid { grid-template-columns: 1fr; }
  .ladder-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: 7.5px; padding: 7px 8px; }
  .market-modal-actions .btn span { display: none; }
  .market-modal-sub { gap: 9px; }
  .prob-big { font-size: 36px; }
  .modal-section { padding: 17px 16px; }
  .settings-footer { padding: 14px 16px; }
  .toast-root { bottom: 14px; right: 14px; width: calc(100vw - 28px); }
  .filter-bar .segmented { overflow-x: auto; }
  .filter-bar .segmented button { white-space: nowrap; }
  .market-overview-strip .mini-index:last-child { display: none; }
  .hero-actions .btn { padding: 0 13px; font-size: 10.5px; }
  .site-footer { font-size: 8px; }
  .portfolio-lower { gap: 9px; }
  .activity-panel { padding: 15px; }
  .user-rank-stats { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html[data-motion="off"] .ticker-track { animation: none; }
