@font-face {
  font-family: "Prima Sans Mono Std";
  src:
    local("Prima Sans Mono Std"),
    local("Prima Sans Mono"),
    local("Prima Sans Mono Std Regular");
  font-display: swap;
}

:root {
  --page-bg: #14171d;
  --page-bg-soft: #1a1e26;
  --panel-bg: rgba(24, 28, 37, 0.94);
  --panel-bg-strong: rgba(20, 24, 32, 0.98);
  --panel-edge: rgba(88, 103, 125, 0.34);
  --panel-edge-soft: rgba(100, 116, 139, 0.2);
  --text-main: #eef2f7;
  --text-soft: #a5afbf;
  --text-dim: #768195;
  --orange: #eef2f7;
  --orange-soft: rgba(34, 211, 238, 0.08);
  --orange-glow: rgba(34, 211, 238, 0.1);
  --tab-accent: #22d3ee;
  --tab-accent-soft: rgba(34, 211, 238, 0.12);
  --tab-accent-edge: rgba(34, 211, 238, 0.26);
  --tab-accent-glow: rgba(34, 211, 238, 0.1);
  --green: #5ee59b;
  --green-soft: rgba(94, 229, 155, 0.12);
  --green-edge: rgba(94, 229, 155, 0.18);
  --red: #ff7878;
  --red-soft: rgba(255, 120, 120, 0.12);
  --red-edge: rgba(255, 120, 120, 0.18);
  --neutral: #b7c0cb;
  --neutral-soft: rgba(183, 192, 203, 0.12);
  --neutral-edge: rgba(183, 192, 203, 0.16);
  --font-stack:
    "IBM Plex Mono",
    "Prima Sans Mono Std",
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  --ui-font: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  --display-font: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font, var(--font-stack));
  color: var(--text-main);
  background:
    radial-gradient(circle at 14% -6%, rgba(34, 211, 238, 0.06), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(148, 163, 184, 0.06), transparent 22%),
    linear-gradient(180deg, #161920 0%, #14171d 48%, #12151b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 18%),
    radial-gradient(circle at 76% 16%, rgba(34, 211, 238, 0.03), transparent 18%);
  opacity: 0.68;
}

body::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
  background-size: 100% 56px, 56px 100%;
  opacity: 0.018;
}

body.dashboard-home {
  --body-font: var(--ui-font);
}

body.paper-trader-page {
  --body-font: var(--font-stack);
}

body.arena-page {
  --body-font: var(--font-stack);
}

body.tradez-page {
  --body-font: var(--ui-font);
}

body.signals-page {
  --body-font: var(--ui-font);
}

body.paper-trader-page .dashboard-grid {
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 0.78fr);
}

body.paper-trader-page .panel-monitor-large {
  min-width: 0;
}

body.paper-trader-page .panel-engine-compact {
  min-width: 0;
}

body.paper-trader-page .panel-engine-compact .analysis-grid {
  grid-template-columns: 1fr;
}

body.paper-trader-page .strategy-sleeve-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 12px;
}

body.paper-trader-page .panel-engine-compact .analysis-card {
  padding: 12px 13px;
}

body.paper-trader-page .panel-engine-compact .analysis-card strong {
  font-size: 0.88rem;
}

body.paper-trader-page .panel-engine-compact .analysis-card small {
  font-size: 0.76rem;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.app-header {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  position: sticky;
  top: 10px;
  z-index: 20;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(35, 38, 48, 0.98), rgba(24, 26, 33, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(34, 211, 238, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
}

.brand-block {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    radial-gradient(circle at 50% 18%, rgba(34, 211, 238, 0.12), transparent 58%),
    rgba(14, 16, 24, 0.97);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(34, 211, 238, 0.04),
    0 10px 24px rgba(3, 8, 18, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.16));
}

.brand-copy {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.brand-copy strong {
  font-family: var(--display-font);
  font-size: 2.08rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: transparent;
  background: linear-gradient(180deg, #f8fafc 0%, #dbeafe 42%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.brand-copy small {
  display: block;
  margin-top: -8px;
  margin-left: 6px;
  font-family: "Satisfy", cursive;
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(149, 226, 239, 0.82);
  transform: rotate(-2deg);
}

.page-tabs {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    linear-gradient(180deg, rgba(27, 31, 40, 0.96), rgba(22, 26, 35, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.015);
}

.page-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #a5b0c0;
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.page-tab:hover {
  color: var(--text-main);
  transform: none;
  border-color: rgba(34, 211, 238, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(28, 31, 40, 0.88);
}

.page-tab.is-current {
  border-color: var(--tab-accent-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(180deg, rgba(27, 42, 54, 0.98), rgba(22, 30, 40, 0.96));
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(34, 211, 238, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.2);
  transform: none;
}

.app-pill {
  justify-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    linear-gradient(180deg, rgba(28, 31, 40, 0.98), rgba(23, 27, 35, 0.95));
  color: #bfeaf1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.95fr);
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(88, 103, 125, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 76%, rgba(34, 211, 238, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(180deg, rgba(19, 23, 31, 0.98), rgba(16, 20, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--ui-font);
  font-size: clamp(1.42rem, 2.8vw, 2.05rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-form {
  align-self: stretch;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.05), transparent 62%),
    rgba(8, 10, 8, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 18px rgba(216, 255, 77, 0.04);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow,
.panel-label {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  color: #79dceb;
}

.topbar h1,
.panel-head h2,
.panel h3 {
  margin: 0;
}

.panel-head h2 {
  font-size: 1.34rem;
}

.panel h3 {
  font-size: 1rem;
}

.topbar h1 {
  font-family: var(--display-font);
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(216, 255, 77, 0.1);
}

.subtitle {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.92rem;
}

.subtitle-inline {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.nav-link {
  text-decoration: none;
}

.nav-links .mini-button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(216, 255, 77, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(216, 255, 77, 0.08);
}

.nav-links .mini-button:hover {
  transform: translateY(-2px);
}

.nav-links .mini-button.is-current {
  border-color: var(--tab-accent-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.18), rgba(31, 41, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(216, 255, 77, 0.08),
    0 14px 26px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(216, 255, 77, 0.12);
}

body.dashboard-home .topbar h1 {
  font-size: clamp(1.72rem, 3.4vw, 2.55rem);
}

body.dashboard-home .subtitle,
body.dashboard-home .subtitle-inline,
body.dashboard-home .token-form label,
body.dashboard-home .headline-chip span,
body.dashboard-home .metric-label,
body.dashboard-home .analysis-card span,
body.dashboard-home .signal-item span,
body.dashboard-home .table-row span,
body.dashboard-home .chart-hud-item span,
body.dashboard-home .stack-label,
body.dashboard-home .outlook-copy,
body.dashboard-home .trade-copy,
body.dashboard-home .timeframe-copy,
body.dashboard-home .status-banner {
  font-family: var(--ui-font);
}

body.dashboard-home .panel-head h2 {
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

body.dashboard-home .subtitle {
  font-size: 0.9rem;
  line-height: 1.7;
}

body.dashboard-home .headline-chip strong,
body.dashboard-home .metric-card strong,
body.dashboard-home .analysis-card strong,
body.dashboard-home .signal-item strong,
body.dashboard-home .trade-idea-stat strong,
body.dashboard-home .chart-hud-item strong,
body.dashboard-home .score-badge {
  font-size: 0.92rem;
}

body.dashboard-home .token-form label,
body.dashboard-home .token-form input,
body.dashboard-home .token-form select,
body.dashboard-home .token-form button,
body.dashboard-home .mini-button {
  font-family: var(--ui-font);
}

.token-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 10px;
  align-items: end;
}

.token-form-wide {
  grid-template-columns: repeat(4, minmax(0, auto));
}

.token-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.token-form input,
.token-form select,
.token-form button {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 14px;
}

.token-form input,
.token-form select {
  border: 1px solid rgba(88, 103, 125, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 44%),
    rgba(22, 26, 35, 0.96);
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.token-form input:focus,
.token-form select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.07);
}

.token-form button {
  border: 1px solid var(--tab-accent-edge);
  font-weight: 800;
  color: #effaff;
  background:
    linear-gradient(180deg, #52d7ee 0%, #1fbfd7 54%, #0d7b92 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.token-form button:hover {
  transform: none;
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.status-banner {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 45%),
    rgba(18, 22, 30, 0.9);
  color: var(--text-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.status-banner.up {
  color: var(--green);
  border-color: var(--green-edge);
  background:
    linear-gradient(90deg, rgba(53, 194, 130, 0.09), transparent 50%),
    rgba(18, 22, 30, 0.9);
}

.status-banner.down {
  color: var(--red);
  border-color: var(--red-edge);
  background:
    linear-gradient(90deg, rgba(224, 76, 76, 0.1), transparent 50%),
    rgba(18, 22, 30, 0.9);
}

.status-banner.neutral {
  color: var(--text-soft);
}

.status-banner.status-banner-flash {
  border-color: rgba(34, 211, 238, 0.34);
  color: #ecfeff;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.16), transparent 52%),
    rgba(18, 22, 30, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.06),
    0 0 20px rgba(34, 211, 238, 0.12);
  animation: status-prime-pulse 1.5s ease-in-out 3;
}

@keyframes status-prime-pulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.panel,
.metric-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 28%),
    linear-gradient(180deg, rgba(20, 24, 32, 0.98), rgba(16, 20, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.028),
    0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel::before,
.metric-strip::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -12%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.026), transparent 72%);
  pointer-events: none;
  opacity: 0.16;
}

.panel::after,
.metric-strip::after {
  content: "";
  position: absolute;
  inset: auto -14% -28% auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 74%);
  pointer-events: none;
  opacity: 0.18;
}

.panel > *,
.metric-strip > * {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 18px;
}

.workspace-panel {
  grid-column: 1 / -1;
}

.panel-hero {
  min-height: 0;
}

.panel-outlook {
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.panel-head .feed-tabs {
  margin-bottom: 0;
  justify-content: flex-end;
}

.headline-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.headline-chip,
.metric-card,
.analysis-card,
.setup-card,
.news-item,
.signal-item,
.table-row,
.chart-hud-item,
.timeframe-inline,
.trade-idea-card,
.trade-idea-stat {
  border: 1px solid rgba(88, 103, 125, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 32%),
    rgba(18, 22, 30, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022);
}

.headline-chip {
  min-width: 126px;
  padding: 11px 13px;
  border-radius: 14px;
}

.headline-chip span,
.metric-label,
.analysis-card span,
.setup-card span,
.signal-item span,
.table-row span,
.chart-hud-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.analysis-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analysis-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  white-space: nowrap;
}

.headline-chip strong,
.metric-card strong,
.analysis-card strong,
.setup-card strong,
.signal-item strong,
.chart-hud-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.analysis-card small,
.signal-item small,
.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.74rem;
}

.setup-card p,
.timeframe-copy {
  margin: 10px 0 12px;
  color: var(--text-main);
  line-height: 1.55;
  font-size: 0.84rem;
}

.setup-meta {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.chart-shell {
  position: relative;
}

.chart-frame {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.03), transparent 48%),
    #040503;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 20px rgba(216, 255, 77, 0.02);
}

.chart-series-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.chart-series-label {
  position: absolute;
  left: 0;
  transform: translate(-100%, -118%);
  min-width: auto;
  padding: 0;
  border: none;
  font-family: var(--font-stack);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: right;
  color: var(--text-main);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  opacity: 0.74;
  text-shadow:
    0 0 8px rgba(3, 6, 12, 0.95),
    0 0 18px rgba(3, 6, 12, 0.92);
}

.chart-series-label[hidden] {
  display: none;
}

.chart-series-label-ema20 {
  color: rgba(228, 255, 125, 0.92);
}

.chart-series-label-ema50 {
  color: rgba(208, 220, 202, 0.9);
}

.chart-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  width: min(300px, calc(100% - 32px));
  pointer-events: none;
}

.chart-hud-item {
  padding: 10px 12px;
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

.chart-hud-item strong {
  font-size: 0.84rem;
}

.level-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.timeframe-inline {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}

.trade-idea-card {
  margin-top: 14px;
  padding: 15px;
  border-radius: 18px;
  border-color: var(--tab-accent-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.1), transparent 52%),
    rgba(16, 21, 29, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.trade-idea-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.trade-idea-card .stack-label {
  color: #8be3ee;
}

.trade-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trade-refresh-note {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  color: #93a6ba;
}

.trade-refresh-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tab-accent-edge);
  background:
    linear-gradient(180deg, #52d7ee 0%, #1fbfd7 54%, #0d7b92 100%);
  color: #effaff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.trade-refresh-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.trade-idea-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trade-idea-stat {
  padding: 12px;
  border-radius: 14px;
}

.trade-idea-stat span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.trade-idea-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
}

.trade-copy {
  margin: 12px 0 0;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.82rem;
}

.timeframe-copy {
  margin: 8px 0 0;
}

.level-stack {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 103, 125, 0.18);
  background: rgba(18, 22, 30, 0.72);
}

.stack-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-values {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
.score-badge,
.stream-status {
  border: 1px solid var(--neutral-edge);
  background: var(--neutral-soft);
  color: var(--neutral);
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.neutral {
  color: var(--neutral);
}

.pill.up,
.score-badge.up,
.stream-status.up {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green-edge);
}

.pill.down,
.score-badge.down,
.stream-status.down {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-edge);
}

.pill.neutral,
.score-badge.neutral,
.stream-status.neutral {
  background: var(--neutral-soft);
  color: var(--neutral);
  border-color: var(--neutral-edge);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.score-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 156px;
}

.score-badge {
  min-width: 72px;
  min-height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.04rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(16, 18, 15, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.quality-meter-block {
  display: grid;
  gap: 6px;
  width: min(170px, 100%);
}

.quality-meter-copy {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.quality-meter-copy strong {
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
}

.quality-meter {
  --quality-progress: 0%;
  position: relative;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%),
    rgba(12, 14, 11, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.quality-meter::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #ff874d 0%,
      #ffb44d 22%,
      #ffd94a 48%,
      #dfff57 70%,
      #62ef8d 100%
    );
  opacity: 0.94;
}

.quality-meter::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: var(--quality-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 72%);
  mix-blend-mode: screen;
}

.quality-meter-thumb {
  position: absolute;
  top: 50%;
  left: var(--quality-progress);
  width: 14px;
  height: 20px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(22, 24, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 18px rgba(216, 255, 77, 0.18),
    0 0 0 2px rgba(0, 0, 0, 0.28);
}

.quality-meter-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stream-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.outlook-copy {
  line-height: 1.7;
  color: var(--text-main);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.signal-item {
  border-radius: 18px;
  padding: 14px;
}

.disclaimer {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.metric-card {
  padding: 12px;
  border-radius: 16px;
}

.control-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.analysis-grid,
.setup-grid {
  display: grid;
  gap: 12px;
}

.analysis-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.setup-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analysis-card,
.setup-card {
  padding: 14px;
  border-radius: 18px;
}

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

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

.workspace-grid-overview {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.85fr));
}

.workspace-span-2 {
  grid-column: span 2;
}

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

.subpanel {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--panel-edge-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.04), transparent 52%),
    rgba(8, 10, 8, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 18px rgba(216, 255, 77, 0.03);
}

.subpanel .panel-label {
  margin-bottom: 4px;
}

.subpanel .panel-head,
.subpanel .panel-head-inline {
  margin-bottom: 14px;
}

.arena-layout {
  display: grid;
  gap: 18px;
}

.arena-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.conviction-columns {
  align-items: start;
}

.conviction-columns > div {
  display: grid;
  gap: 12px;
}

.arena-table table {
  min-width: 1420px;
}

.arena-table td,
.arena-table th {
  padding: 13px 15px;
}

.arena-table td:nth-child(5),
.arena-table td:nth-child(6) {
  min-width: 220px;
}

.arena-table td:nth-child(9) {
  min-width: 220px;
}

.arena-framework-grid {
  margin-bottom: 14px;
}

.arena-summary {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.table-card {
  display: grid;
  gap: 10px;
}

.monitor-table-shell {
  max-height: 760px;
  overflow: auto;
  border: 1px solid rgba(88, 103, 125, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(18, 22, 30, 0.84);
}

.monitor-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

body.paper-trader-page .panel-monitor-large .monitor-table table {
  min-width: 1120px;
}

body.paper-trader-page .panel-monitor-large .monitor-table th,
body.paper-trader-page .panel-monitor-large .monitor-table td {
  padding: 13px 15px;
}

body.paper-trader-page .panel-monitor-large .monitor-table td:nth-child(5) {
  min-width: 420px;
}

body.paper-trader-page .panel-monitor-large .monitor-symbol {
  font-size: 0.88rem;
}

.strategy-column {
  text-align: center;
  vertical-align: middle;
}

.strategy-cell-stack {
  display: inline-grid;
  gap: 5px;
  justify-items: center;
}

.strategy-column .quality-chip {
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.monitor-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(18, 22, 30, 0.96);
}

.monitor-table th,
.monitor-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(88, 103, 125, 0.16);
  vertical-align: top;
}

.monitor-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fd7e5;
}

.monitor-table td {
  font-size: 0.82rem;
  color: var(--text-main);
}

.monitor-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.04);
}

.monitor-symbol {
  font-weight: 700;
  color: var(--text-main);
}

.monitor-subtle {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.monitor-parameter-stack {
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.monitor-quality {
  font-weight: 800;
  color: var(--text-soft);
}

.monitor-quality.qualified {
  color: #e6ff8e;
}

.quality-column,
.quality-column-heading {
  text-align: center;
}

.quality-column-centered {
  vertical-align: middle;
}

.quality-column-heading {
  display: block;
  width: 100%;
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.quality-tier-red {
  color: #ffd1c7;
  border-color: rgba(255, 110, 83, 0.36);
  background: linear-gradient(180deg, rgba(255, 110, 83, 0.24), rgba(43, 16, 11, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 110, 83, 0.08),
    0 0 18px rgba(255, 110, 83, 0.14);
}

.quality-tier-orange {
  color: #ffe2bf;
  border-color: rgba(255, 151, 71, 0.38);
  background: linear-gradient(180deg, rgba(255, 151, 71, 0.24), rgba(60, 33, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 151, 71, 0.08),
    0 0 18px rgba(255, 151, 71, 0.14);
}

.quality-tier-light-orange {
  color: #fff0c2;
  border-color: rgba(255, 207, 83, 0.36);
  background: linear-gradient(180deg, rgba(255, 207, 83, 0.22), rgba(64, 48, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 207, 83, 0.08),
    0 0 18px rgba(255, 207, 83, 0.14);
}

.quality-tier-green {
  color: #efffd0;
  border-color: rgba(137, 255, 90, 0.38);
  background: linear-gradient(180deg, rgba(137, 255, 90, 0.2), rgba(18, 50, 16, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(137, 255, 90, 0.08),
    0 0 18px rgba(137, 255, 90, 0.16);
}

.quality-tier-gold {
  color: #faffc8;
  border-color: rgba(216, 255, 77, 0.44);
  background: linear-gradient(180deg, rgba(216, 255, 77, 0.24), rgba(60, 76, 13, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(216, 255, 77, 0.08),
    0 0 20px rgba(216, 255, 77, 0.18);
}

.quality-tier-shining-gold {
  color: #fcffd8;
  border-color: rgba(244, 255, 141, 0.6);
  background: linear-gradient(180deg, rgba(244, 255, 141, 0.3), rgba(82, 98, 18, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 141, 0.12),
    0 0 22px rgba(244, 255, 141, 0.24),
    0 0 38px rgba(244, 255, 141, 0.14);
  animation: quality-shimmer 2.6s ease-in-out infinite;
}

.quality-tier-neutral {
  color: #c8d8f5;
  border-color: rgba(152, 179, 227, 0.26);
  background: linear-gradient(180deg, rgba(152, 179, 227, 0.16), rgba(19, 29, 49, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(152, 179, 227, 0.06),
    0 0 16px rgba(152, 179, 227, 0.08);
}

@keyframes quality-shimmer {
  0%,
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }

  50% {
    filter: brightness(1.12);
    transform: translateY(-1px);
  }
}

.monitor-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--panel-edge-soft);
  border-radius: 18px;
  color: var(--text-soft);
  background: rgba(9, 8, 6, 0.6);
}

.tradez-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.98fr);
  align-items: start;
}

.tradez-stage,
.tradez-side-stack {
  display: contents;
}

.tradez-chart-panel {
  min-height: 0;
  grid-column: 1 / -1;
  grid-row: 1;
}

.tradez-trade-card {
  margin-top: 18px;
}

.tradez-feed-panel {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  align-self: stretch;
}

.tradez-feed-panel .panel-head {
  display: grid;
  gap: 12px;
}

.tradez-feed-panel .panel-head .feed-tabs {
  width: 100%;
  justify-content: stretch;
}

.tradez-pulse-panel {
  grid-column: 1;
  grid-row: 2;
}

.tradez-control-panel {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.tradez-workspace-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.tradez-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 16px;
  align-items: start;
  margin-bottom: 0;
}

.tradez-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.tradez-workspace-stack {
  display: grid;
  gap: 18px;
}

.tradez-workspace-stack .tradez-feed-panel {
  grid-column: 1;
  grid-row: auto;
}

.tradez-compare-panel,
.tradez-auto2-panel {
  grid-column: 1 / -1;
}

.tradez-compare-grid {
  align-items: stretch;
}

.tradez-compare-card {
  display: grid;
  gap: 14px;
}

.tradez-compare-card.is-overall-leader {
  border-color: rgba(203, 255, 81, 0.26);
  background:
    linear-gradient(180deg, rgba(203, 255, 81, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(203, 255, 81, 0.06),
    0 0 28px rgba(203, 255, 81, 0.06);
}

.tradez-compare-chip-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.tradez-compare-overall-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(203, 255, 81, 0.28);
  background:
    linear-gradient(180deg, rgba(203, 255, 81, 0.22), rgba(42, 58, 13, 0.92));
  color: #f5ffd0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(203, 255, 81, 0.08);
}

.tradez-compare-leader-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tradez-compare-leader-tag,
.tradez-compare-stat-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(203, 255, 81, 0.22);
  background: rgba(203, 255, 81, 0.1);
  color: #e9f7b2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tradez-compare-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tradez-compare-stat {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.tradez-compare-stat.is-leader {
  border-color: rgba(203, 255, 81, 0.24);
  background:
    linear-gradient(180deg, rgba(203, 255, 81, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(203, 255, 81, 0.05);
}

.tradez-compare-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 5px;
}

.tradez-compare-stat strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.tradez-compare-overall-note {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.tradez-auto2-controls {
  justify-content: flex-end;
  align-items: center;
}

.tradez-auto2-config {
  margin-top: 18px;
}

.tradez-delivery-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  align-items: end;
}

.tradez-delivery-form .checkbox-card {
  align-self: stretch;
}

.tradez-delivery-form .checkbox-inline {
  min-height: 48px;
  justify-content: flex-start;
}

.tradez-delivery-form button {
  align-self: end;
  justify-self: start;
}

.tradez-auto2-metrics {
  margin-top: 18px;
}

.tradez-auto2-workspace {
  margin-top: 18px;
}

.tradez-auto2-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
}

.tradez-pulse-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tradez-pulse-score {
  min-width: min(260px, 100%);
}

.tradez-pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.94fr);
  gap: 16px;
  align-items: start;
}

.tradez-pulse-copy {
  display: grid;
  gap: 14px;
}

.tradez-pulse-copy .signal-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tradez-pulse-card {
  margin-top: 0;
}

.tradez-notes-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tradez-symbol-button {
  min-width: 112px;
  justify-content: center;
}

.tradez-feed-token-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tradez-feed-tab-new {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d7fb7b;
}

.tradez-feed-board {
  display: grid;
  gap: 12px;
}

.tradez-feed-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.025), transparent 58%),
    rgba(8, 10, 8, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 16px rgba(216, 255, 77, 0.02);
}

.tradez-feed-card.is-long {
  border-color: rgba(53, 194, 130, 0.24);
}

.tradez-feed-card.is-short {
  border-color: rgba(255, 92, 92, 0.2);
}

.tradez-feed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tradez-feed-symbol-block {
  display: grid;
  gap: 8px;
}

.tradez-feed-symbol-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tradez-feed-stamp-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.tradez-feed-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 77, 0.34);
  background:
    linear-gradient(180deg, rgba(216, 255, 77, 0.22), rgba(50, 72, 15, 0.9));
  color: #f7ffd1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  animation: tradez-new-flash 1.1s ease-in-out infinite;
}

.tradez-feed-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.tradez-feed-meta-item,
.tradez-feed-plan-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.tradez-feed-meta-item-right {
  text-align: right;
}

.tradez-feed-meta-item span,
.tradez-feed-plan-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 5px;
}

.tradez-feed-meta-item strong,
.tradez-feed-plan-item strong {
  display: block;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.tradez-feed-quality-center {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-width: 124px;
}

.tradez-feed-quality-caption,
.tradez-feed-quality-tier {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.tradez-feed-quality-badge {
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tradez-feed-quality-badge.is-long {
  border-color: rgba(53, 194, 130, 0.28);
  background:
    linear-gradient(180deg, rgba(53, 194, 130, 0.2), rgba(11, 49, 29, 0.92));
  color: #8df7bb;
}

.tradez-feed-quality-badge.is-short {
  border-color: rgba(255, 92, 92, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 92, 92, 0.2), rgba(58, 17, 17, 0.94));
  color: #ff9b9b;
}

.tradez-feed-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tradez-feed-qualifiers {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.signals-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.92fr);
}

.signals-chart-panel {
  min-height: 0;
}

.signals-trade-card {
  margin-top: 18px;
}

.signals-feed-panel {
  grid-column: 1 / -1;
}

.signals-strategy-panel {
  grid-column: 1 / -1;
}

.signals-strategy-sleeves {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}

.signals-notes-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.signals-side-tabs {
  width: 100%;
  justify-content: stretch;
}

.signals-side-tabs .feed-tab {
  flex: 1 1 0;
  min-width: 0;
}

.signals-side-feed {
  gap: 12px;
}

.signals-side-feed .table-row {
  grid-template-columns: 1.05fr 1.1fr 0.88fr;
}

.signals-side-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.signals-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signals-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.signals-page .monitor-table td:nth-child(8) {
  min-width: 220px;
}

body.signals-page .quality-chip {
  min-width: 78px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
}

.table-row strong {
  font-size: 0.95rem;
}

.news-feed {
  display: grid;
  gap: 12px;
}

.feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  padding: 6px;
  width: 100%;
  border: 1px solid rgba(88, 103, 125, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(16, 20, 28, 0.78);
}

.feed-tab {
  min-width: 0;
  width: 100%;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.feed-tab.is-active {
  border-color: var(--tab-accent-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(20, 28, 38, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

@keyframes tradez-new-flash {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(216, 255, 77, 0),
      0 0 12px rgba(216, 255, 77, 0.18);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(216, 255, 77, 0.1),
      0 0 18px rgba(216, 255, 77, 0.34);
    transform: translateY(-1px);
  }
}

.news-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
}

.news-item.upbit-market-support {
  border-color: rgba(53, 194, 130, 0.28);
  background:
    linear-gradient(180deg, rgba(53, 194, 130, 0.12), transparent 52%),
    rgba(9, 8, 6, 0.88);
}

.news-item a {
  color: inherit;
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.replay-controls,
.trade-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mini-button,
.mini-form button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tab-accent-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(18, 24, 33, 0.94));
  color: var(--text-main);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.mini-button:hover,
.mini-form button:hover {
  transform: none;
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.replay-meta,
.subsection-meta {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.panel-head-inline {
  margin-bottom: 12px;
  align-items: center;
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mini-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mini-form input,
.mini-form select {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  border: 1px solid rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 44%),
    rgba(18, 22, 30, 0.96);
  color: var(--text-main);
}

.mini-form button {
  align-self: end;
}

.delivery-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-card {
  justify-content: end;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 44%),
    rgba(18, 22, 30, 0.96);
  color: var(--text-main);
}

.checkbox-inline input {
  width: 16px;
  height: 16px;
  accent-color: #22d3ee;
}

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

.stack-card {
  border: 1px solid var(--panel-edge-soft);
  border-radius: 16px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 32%),
    rgba(18, 22, 30, 0.86);
}

.stack-card strong,
.stack-card span {
  display: block;
}

.stack-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.5;
}

.stack-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.heatmap-card {
  display: grid;
  gap: 10px;
  min-height: 260px;
}

.heatmap-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--panel-edge-soft);
  border-radius: 18px;
  color: var(--text-soft);
  text-align: center;
  padding: 18px;
  background: rgba(9, 8, 6, 0.6);
}

.heatmap-row {
  border: 1px solid var(--panel-edge-soft);
  border-radius: 16px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    linear-gradient(180deg, rgba(216, 255, 77, 0.04), transparent 50%),
    rgba(8, 10, 8, 0.74);
}

.heatmap-row-head,
.heatmap-row-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.heatmap-row-head span,
.heatmap-row-foot small,
.heatmap-row-foot span {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.heatmap-track {
  height: 10px;
  margin: 10px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.heatmap-fill {
  height: 100%;
  border-radius: 999px;
}

.heatmap-fill.up {
  background: linear-gradient(90deg, rgba(53, 194, 130, 0.28), rgba(53, 194, 130, 0.82));
}

.heatmap-fill.down {
  background: linear-gradient(90deg, rgba(224, 76, 76, 0.3), rgba(224, 76, 76, 0.84));
}

.heatmap-fill.neutral {
  background: linear-gradient(90deg, rgba(216, 255, 77, 0.18), rgba(216, 255, 77, 0.7));
}

@media (max-width: 1180px) {
  .app-bar,
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .page-tabs {
    justify-self: start;
    flex-wrap: wrap;
  }

  .app-pill {
    justify-self: start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tradez-grid {
    grid-template-columns: 1fr;
  }

  .tradez-chart-panel,
  .tradez-feed-panel,
  .tradez-pulse-panel {
    grid-column: auto;
  }

  .tradez-pulse-grid {
    grid-template-columns: 1fr;
  }

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

  .tradez-feed-summary-row,
  .tradez-feed-plan-grid {
    grid-template-columns: 1fr;
  }

  .tradez-feed-meta-item-right {
    text-align: left;
  }

  .signals-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace-grid,
  .workspace-grid-overview {
    grid-template-columns: 1fr;
  }

  .workspace-span-2,
  .workspace-span-full {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 16px;
  }

  .app-bar {
    padding: 12px;
  }

  .page-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .page-tab {
    flex: 1 1 100%;
  }

  .hero-shell {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .token-form {
    grid-template-columns: 1fr;
  }

  .token-form-wide {
    grid-template-columns: 1fr;
  }

  .mini-form {
    grid-template-columns: 1fr;
  }

  .delivery-form {
    grid-template-columns: 1fr;
  }

  .headline-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .score-stack {
    justify-items: start;
    width: 100%;
  }

  .tradez-pulse-head {
    flex-direction: column;
  }

  .tradez-compare-stats {
    grid-template-columns: 1fr;
  }

  .quality-meter-block {
    width: 100%;
  }

  .level-badges,
  .split-grid,
  .metric-strip,
  .trade-idea-grid,
  .chart-hud {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    display: grid;
  }

  .chart-hud {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .chart-series-label {
    min-width: auto;
    padding: 0;
    font-size: 0.52rem;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}

/* Shared shell redesign for Main / Auto Trade / Signals Arena */
body.shell-page:not(.tradez-page) {
  --page-bg: #17181d;
  --page-bg-soft: #1d1f26;
  --panel-bg: rgba(31, 33, 43, 0.92);
  --panel-bg-strong: rgba(26, 28, 36, 0.98);
  --panel-edge: rgba(51, 65, 85, 0.82);
  --panel-edge-soft: rgba(100, 116, 139, 0.32);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-dim: #6b7280;
  background:
    radial-gradient(circle at 15% -4%, rgba(34, 211, 238, 0.08), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(148, 163, 184, 0.08), transparent 20%),
    linear-gradient(180deg, #18191f 0%, #17181d 100%);
}

body.shell-page:not(.tradez-page)::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.05), transparent 22%);
  opacity: 0.9;
}

body.shell-page:not(.tradez-page)::after {
  background:
    linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px);
  background-size: 100% 54px, 54px 100%;
  opacity: 0.04;
}

body.shell-page:not(.tradez-page) .page-shell.shell-layout {
  width: min(1600px, calc(100% - 32px));
  padding: 20px 0 28px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
}

body.shell-page:not(.tradez-page) .shell-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  min-height: calc(100vh - 36px);
  padding: 16px 14px;
  border: 1px solid rgba(88, 103, 125, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(180deg, rgba(23, 27, 35, 0.98), rgba(18, 22, 30, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(6, 8, 14, 0.28);
}

body.shell-page:not(.tradez-page) .brand-block-sidebar {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 14px;
}

body.shell-page:not(.tradez-page) .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    radial-gradient(circle at 50% 18%, rgba(34, 211, 238, 0.14), transparent 58%),
    rgba(26, 28, 36, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(4, 7, 14, 0.28),
    0 0 0 1px rgba(34, 211, 238, 0.06);
}

body.shell-page:not(.tradez-page) .brand-mark img {
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.18));
}

body.shell-page:not(.tradez-page) .brand-copy {
  gap: 6px;
  min-width: 0;
  align-items: start;
}

body.shell-page:not(.tradez-page) .brand-copy strong {
  font-size: 1.94rem;
  line-height: 0.98;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #f8fafc 0%, #dbeafe 42%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

body.shell-page:not(.tradez-page) .brand-copy small {
  color: rgba(143, 225, 236, 0.82);
  letter-spacing: 0.01em;
  font-size: 0.96rem;
}

body.shell-page:not(.tradez-page) .shell-sidebar-nav {
  display: grid;
  gap: 10px;
}

body.shell-page:not(.tradez-page) .shell-page-tabs {
  display: grid;
  justify-self: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .page-tab {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 14px;
  border-color: transparent;
  color: #94a3b8;
  background: transparent;
}

body.shell-page:not(.tradez-page) .page-tab:hover {
  color: #e2e8f0;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    rgba(29, 32, 41, 0.94);
}

body.shell-page:not(.tradez-page) .page-tab.is-current {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(36, 40, 51, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.08),
    0 8px 18px rgba(4, 8, 14, 0.16),
    -2px 0 0 rgba(34, 211, 238, 0.92);
}

body.shell-page:not(.tradez-page) .shell-sidebar-foot {
  display: grid;
  align-content: end;
  gap: 10px;
}

body.shell-page:not(.tradez-page) .app-pill {
  justify-self: stretch;
  justify-content: center;
  min-height: 32px;
  border-radius: 12px;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    rgba(29, 32, 41, 0.96);
  color: #bfeaf1;
  box-shadow: 0 8px 16px rgba(4, 8, 14, 0.14);
}

body.shell-page:not(.tradez-page) .shell-sidebar-card {
  display: grid;
  gap: 6px;
  padding: 12px 11px;
  border: 1px solid rgba(88, 103, 125, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(22, 26, 35, 0.9);
  color: var(--text-soft);
}

body.shell-page:not(.tradez-page) .shell-sidebar-card strong {
  color: var(--text-main);
  font-size: 0.84rem;
}

body.shell-page:not(.tradez-page) .shell-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

body.shell-page:not(.tradez-page) .shell-top-shell {
  display: grid;
  gap: 20px;
}

body.shell-page:not(.tradez-page) .shell-hero-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.88fr);
  padding: 22px;
  border-radius: 28px;
}

body.shell-page:not(.tradez-page) .hero-form {
  align-self: stretch;
  min-width: 0;
}

body.shell-page:not(.tradez-page) .panel,
body.shell-page:not(.tradez-page) .metric-strip,
body.shell-page:not(.tradez-page) .subpanel {
  border-color: rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 24%),
    linear-gradient(180deg, rgba(24, 28, 37, 0.98), rgba(18, 22, 30, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(4, 8, 14, 0.24);
}

body.shell-page:not(.tradez-page) .panel::before,
body.shell-page:not(.tradez-page) .metric-strip::before {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06), transparent 72%);
  opacity: 0.18;
}

body.shell-page:not(.tradez-page) .panel::after,
body.shell-page:not(.tradez-page) .metric-strip::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04), transparent 74%);
}

body.shell-page:not(.tradez-page) .headline-chip,
body.shell-page:not(.tradez-page) .metric-card,
body.shell-page:not(.tradez-page) .analysis-card,
body.shell-page:not(.tradez-page) .setup-card,
body.shell-page:not(.tradez-page) .news-item,
body.shell-page:not(.tradez-page) .signal-item,
body.shell-page:not(.tradez-page) .table-row,
body.shell-page:not(.tradez-page) .chart-hud-item,
body.shell-page:not(.tradez-page) .timeframe-inline,
body.shell-page:not(.tradez-page) .trade-idea-card,
body.shell-page:not(.tradez-page) .trade-idea-stat,
body.shell-page:not(.tradez-page) .stack-card {
  border-color: rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(29, 32, 41, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 14px 32px rgba(4, 8, 14, 0.18);
}

body.shell-page:not(.tradez-page) .panel-label,
body.shell-page:not(.tradez-page) .eyebrow {
  color: #67e8f9;
}

body.shell-page:not(.tradez-page) .hero-copy h1,
body.shell-page:not(.tradez-page) .panel-head h2,
body.shell-page:not(.tradez-page) .panel h3 {
  color: #f8fafc;
}

body.shell-page:not(.tradez-page) .subtitle,
body.shell-page:not(.tradez-page) .subtitle-inline,
body.shell-page:not(.tradez-page) .subsection-meta,
body.shell-page:not(.tradez-page) .trade-copy,
body.shell-page:not(.tradez-page) .outlook-copy {
  color: var(--text-soft);
}

body.shell-page:not(.tradez-page) .token-form input,
body.shell-page:not(.tradez-page) .token-form select {
  border-color: rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(24, 26, 33, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(4, 8, 14, 0.14);
}

body.shell-page:not(.tradez-page) .token-form input:focus,
body.shell-page:not(.tradez-page) .token-form select:focus {
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.12),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.shell-page:not(.tradez-page) .token-form button,
body.shell-page:not(.tradez-page) .mini-button {
  border-color: rgba(34, 211, 238, 0.24);
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(29, 32, 41, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(4, 8, 14, 0.18);
}

body.shell-page:not(.tradez-page) .token-form button:hover,
body.shell-page:not(.tradez-page) .mini-button:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(4, 8, 14, 0.22),
    0 0 0 1px rgba(34, 211, 238, 0.08);
  filter: none;
}

body.shell-page:not(.tradez-page) .feed-tab.is-active,
body.shell-page:not(.tradez-page) .mini-button.is-active {
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(29, 32, 41, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 28px rgba(4, 8, 14, 0.2),
    0 0 24px rgba(34, 211, 238, 0.08);
}

body.shell-page:not(.tradez-page) .status-banner {
  margin-bottom: 0;
  border-color: rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(24, 26, 33, 0.94);
  color: #cbd5e1;
}

body.shell-page:not(.tradez-page) .status-banner.up {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.14), transparent 46%),
    rgba(24, 26, 33, 0.94);
}

body.shell-page:not(.tradez-page) .status-banner.down {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.26);
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.14), transparent 46%),
    rgba(24, 26, 33, 0.94);
}

body.shell-page:not(.tradez-page) .shell-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
}

body.shell-page:not(.tradez-page) .metric-card {
  min-height: 98px;
  padding: 14px 15px;
  border-radius: 18px;
}

body.shell-page:not(.tradez-page) .metric-card strong {
  font-size: 1.08rem;
  color: #f8fafc;
}

body.shell-page:not(.tradez-page) .chart-shell {
  border-radius: 24px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    rgba(20, 22, 30, 0.94);
  border: 1px solid rgba(30, 41, 59, 0.9);
}

body.shell-page:not(.tradez-page) .chart-frame {
  border-radius: 20px;
  background: #15171e;
}

body.shell-page:not(.tradez-page) .shell-control-panel {
  padding: 14px 18px;
}

body.shell-page:not(.tradez-page) .shell-control-panel .control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.shell-page:not(.tradez-page) .shell-control-panel .subsection-meta {
  flex: 1;
  min-width: 220px;
}

body.main-shell-page .main-grid {
  grid-template-columns: minmax(0, 1.68fr) minmax(300px, 0.74fr);
  gap: 20px;
  align-items: start;
}

body.main-shell-page .workspace-panel,
body.auto-shell-page .workspace-panel {
  grid-column: 1 / -1;
}

body.auto-shell-page .auto-grid {
  grid-template-columns: minmax(0, 1.82fr) minmax(280px, 0.72fr);
  gap: 20px;
  align-items: start;
}

body.auto-shell-page .panel-engine-compact .analysis-grid {
  grid-template-columns: 1fr;
}

body.arena-shell-page .arena-grid-shell {
  display: grid;
  gap: 20px;
  align-items: start;
}

body.arena-shell-page .conviction-columns {
  gap: 18px;
}

@media (max-width: 1400px) {
  body.shell-page:not(.tradez-page) .page-shell.shell-layout {
    grid-template-columns: 1fr;
  }

  body.shell-page:not(.tradez-page) .shell-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
  }

  body.shell-page:not(.tradez-page) .brand-block-sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  body.shell-page:not(.tradez-page) .shell-page-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }

  body.shell-page:not(.tradez-page) .page-tab {
    width: auto;
    justify-content: center;
  }

  body.shell-page:not(.tradez-page) .shell-sidebar-foot {
    justify-items: end;
    align-content: center;
  }
}

@media (max-width: 900px) {
  .tradez-auto2-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 1240px) {
  body.shell-page:not(.tradez-page) .shell-hero-shell,
  body.main-shell-page .main-grid,
  body.auto-shell-page .auto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.shell-page:not(.tradez-page) .shell-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.shell-page:not(.tradez-page) .page-shell.shell-layout {
    width: min(100% - 20px, 1600px);
  }

  body.shell-page:not(.tradez-page) .shell-sidebar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.shell-page:not(.tradez-page) .brand-block-sidebar {
    justify-content: center;
  }

  body.shell-page:not(.tradez-page) .brand-copy {
    align-items: center;
  }

  body.shell-page:not(.tradez-page) .shell-sidebar-foot {
    justify-items: stretch;
  }

  body.shell-page:not(.tradez-page) .shell-metric-strip,
  body.shell-page:not(.tradez-page) .shell-control-panel .control-row {
    grid-template-columns: 1fr;
  }

  body.shell-page:not(.tradez-page) .shell-control-panel .control-row {
    display: grid;
  }
}

/* EMA Signals UI-only redesign */
body.tradez-page {
  --page-bg: #17181d;
  --page-bg-soft: #1d1f26;
  --panel-bg: rgba(31, 33, 43, 0.92);
  --panel-bg-strong: rgba(26, 28, 36, 0.98);
  --panel-edge: rgba(51, 65, 85, 0.82);
  --panel-edge-soft: rgba(100, 116, 139, 0.32);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-dim: #6b7280;
  --orange: #e5e7eb;
  --orange-soft: rgba(34, 211, 238, 0.08);
  --orange-glow: rgba(34, 211, 238, 0.12);
  --tab-accent: #22d3ee;
  --tab-accent-soft: rgba(34, 211, 238, 0.14);
  --tab-accent-edge: rgba(34, 211, 238, 0.34);
  --tab-accent-glow: rgba(34, 211, 238, 0.18);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --green-edge: rgba(16, 185, 129, 0.3);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --red-edge: rgba(239, 68, 68, 0.28);
  background:
    radial-gradient(circle at 15% -4%, rgba(34, 211, 238, 0.08), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(148, 163, 184, 0.08), transparent 20%),
    linear-gradient(180deg, #18191f 0%, #17181d 100%);
}

body.tradez-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.05), transparent 22%);
  opacity: 0.9;
}

body.tradez-page::after {
  background:
    linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px);
  background-size: 100% 54px, 54px 100%;
  opacity: 0.04;
}

body.tradez-page .page-shell.tradez-layout {
  width: min(1600px, calc(100% - 32px));
  padding: 20px 0 28px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
}

body.tradez-page .tradez-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  min-height: calc(100vh - 36px);
  padding: 16px 14px;
  border: 1px solid rgba(88, 103, 125, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(180deg, rgba(23, 27, 35, 0.98), rgba(18, 22, 30, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(6, 8, 14, 0.28);
}

body.tradez-page .brand-block-sidebar {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 14px;
}

body.tradez-page .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    radial-gradient(circle at 50% 18%, rgba(34, 211, 238, 0.14), transparent 58%),
    rgba(26, 28, 36, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(4, 7, 14, 0.28),
    0 0 0 1px rgba(34, 211, 238, 0.06);
}

body.tradez-page .brand-mark img {
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.18));
}

body.tradez-page .brand-copy {
  gap: 6px;
  min-width: 0;
  align-items: start;
}

body.tradez-page .brand-copy strong {
  font-size: 1.94rem;
  line-height: 0.98;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #f8fafc 0%, #dbeafe 42%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

body.tradez-page .brand-copy small {
  color: rgba(143, 225, 236, 0.82);
  letter-spacing: 0.01em;
  font-size: 0.96rem;
}

body.tradez-page .tradez-sidebar-nav {
  display: grid;
  gap: 10px;
}

body.tradez-page .tradez-page-tabs {
  display: grid;
  justify-self: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.tradez-page .page-tab {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 14px;
  border-color: transparent;
  color: #94a3b8;
  background: transparent;
}

body.tradez-page .page-tab:hover {
  color: #e2e8f0;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    rgba(29, 32, 41, 0.94);
}

body.tradez-page .page-tab.is-current {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(36, 40, 51, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.08),
    0 8px 18px rgba(4, 8, 14, 0.16),
    -2px 0 0 rgba(34, 211, 238, 0.92);
  transform: none;
}

body.tradez-page .tradez-sidebar-foot {
  display: grid;
  align-content: end;
  gap: 10px;
}

body.tradez-page .app-pill,
body.tradez-page .tradez-mini-pill {
  justify-self: stretch;
  justify-content: center;
  min-height: 32px;
  border-radius: 12px;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    rgba(29, 32, 41, 0.96);
  color: #bfeaf1;
  box-shadow: 0 8px 16px rgba(4, 8, 14, 0.14);
}

body.tradez-page .tradez-sidebar-card {
  display: grid;
  gap: 6px;
  padding: 12px 11px;
  border: 1px solid rgba(88, 103, 125, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(22, 26, 35, 0.9);
  color: var(--text-soft);
}

body.tradez-page .tradez-sidebar-card strong {
  color: var(--text-main);
  font-size: 0.84rem;
}

body.tradez-page .tradez-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

body.tradez-page .tradez-top-shell {
  display: grid;
  gap: 20px;
}

body.tradez-page .tradez-hero-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.88fr);
  padding: 22px;
  border-radius: 28px;
}

body.tradez-page .tradez-hero-form {
  align-self: stretch;
  min-width: 0;
}

body.tradez-page .tradez-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

body.tradez-page .tradez-stage {
  display: contents;
}

body.tradez-page .tradez-side-stack {
  display: contents;
  min-width: 0;
}

body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel {
  border-color: rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 24%),
    linear-gradient(180deg, rgba(24, 28, 37, 0.98), rgba(18, 22, 30, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(4, 8, 14, 0.24);
}

body.tradez-page .panel::before,
body.tradez-page .metric-strip::before {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06), transparent 72%);
  opacity: 0.18;
}

body.tradez-page .panel::after,
body.tradez-page .metric-strip::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04), transparent 74%);
}

body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card {
  border-color: rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(29, 32, 41, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 14px 32px rgba(4, 8, 14, 0.18);
}

body.tradez-page .panel-label,
body.tradez-page .eyebrow {
  color: #67e8f9;
}

body.tradez-page .analysis-card-badge.recent {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(16, 185, 129, 0.08),
    0 8px 18px rgba(16, 185, 129, 0.12);
}

body.tradez-page .hero-copy h1,
body.tradez-page .panel-head h2,
body.tradez-page .panel h3 {
  color: #f8fafc;
}

body.tradez-page .subtitle,
body.tradez-page .subtitle-inline,
body.tradez-page .subsection-meta,
body.tradez-page .trade-copy,
body.tradez-page .outlook-copy {
  color: var(--text-soft);
}

body.tradez-page .token-form label,
body.tradez-page .token-form input,
body.tradez-page .token-form button,
body.tradez-page .mini-button,
body.tradez-page .headline-chip span,
body.tradez-page .metric-label {
  font-family: var(--ui-font);
}

body.tradez-page .token-form input,
body.tradez-page .token-form select {
  border-color: rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(24, 26, 33, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(4, 8, 14, 0.14);
}

body.tradez-page .token-form input:focus,
body.tradez-page .token-form select:focus {
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.12),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.tradez-page .token-form button,
body.tradez-page .mini-button {
  border-color: rgba(34, 211, 238, 0.24);
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(23, 29, 39, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(4, 8, 14, 0.14);
}

body.tradez-page .token-form button:hover,
body.tradez-page .mini-button:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 20px rgba(4, 8, 14, 0.18);
  filter: none;
}

body.tradez-page .feed-tab.is-active,
body.tradez-page .page-tab.is-current,
body.tradez-page .mini-button.is-active {
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(23, 29, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 20px rgba(4, 8, 14, 0.16);
}

body.tradez-page .status-banner {
  margin-bottom: 0;
  border-color: rgba(88, 103, 125, 0.24);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
    rgba(18, 22, 30, 0.94);
  color: #cbd5e1;
}

body.tradez-page .status-banner.up {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.14), transparent 46%),
    rgba(24, 26, 33, 0.94);
}

body.tradez-page .status-banner.down {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.26);
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.14), transparent 46%),
    rgba(24, 26, 33, 0.94);
}

body.tradez-page .tradez-metric-strip,
body.tradez-page .tradez-auto2-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
}

body.tradez-page .metric-card {
  min-height: 88px;
  padding: 12px 13px;
  border-radius: 16px;
}

body.tradez-page .metric-card strong {
  font-size: 1.08rem;
  color: #f8fafc;
}

body.tradez-page .tradez-chart-panel {
  padding-bottom: 18px;
}

body.tradez-page .tradez-workspace-panel {
  padding-top: 18px;
}

body.tradez-page .tradez-workspace-head h2 {
  max-width: 22ch;
  line-height: 1.12;
}

body.tradez-page .tradez-workspace-tabs {
  align-self: center;
}

body.tradez-page .tradez-workspace-stack > .panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(4, 8, 14, 0.18);
}

body.tradez-page .panel-hero {
  min-height: 0;
}

body.tradez-page .headline-metrics {
  gap: 12px;
}

body.tradez-page .headline-chip {
  min-width: 150px;
  border-radius: 18px;
}

body.tradez-page .chart-shell {
  border-radius: 24px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    rgba(20, 22, 30, 0.94);
  border: 1px solid rgba(30, 41, 59, 0.9);
}

body.tradez-page .chart-frame {
  height: 500px;
  border-radius: 20px;
  background: #15171e;
}

body.tradez-page .chart-hud {
  gap: 10px;
}

body.tradez-page .chart-hud-item {
  min-width: 92px;
}

body.tradez-page .tradez-pulse-panel {
  padding-top: 18px;
  height: fit-content;
}

body.tradez-page .tradez-pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.86fr);
  gap: 18px;
  align-items: start;
}

body.tradez-page .tradez-pulse-head {
  margin-bottom: 16px;
}

body.tradez-page .tradez-pulse-score {
  align-items: center;
}

body.tradez-page .tradez-control-panel {
  padding: 18px;
  height: fit-content;
}

body.tradez-page .tradez-control-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.tradez-page .tradez-control-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 41, 59, 0.92);
  background: rgba(20, 22, 30, 0.78);
}

body.tradez-page .tradez-feed-panel {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

body.tradez-page .tradez-feed-panel .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

body.tradez-page .tradez-feed-panel .panel-head > div:first-child {
  min-width: 0;
}

body.tradez-page .tradez-feed-panel .panel-head h2 {
  max-width: 16ch;
  line-height: 1.12;
}

body.tradez-page .tradez-feed-panel .feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

body.tradez-page .tradez-feed-panel .feed-tab {
  min-height: 42px;
}

body.tradez-page .tradez-feed-panel #tradez-panel-signals,
body.tradez-page .tradez-feed-panel #tradez-panel-alerts,
body.tradez-page .tradez-feed-panel #tradez-panel-notes {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

body.tradez-page .monitor-table,
body.tradez-page .table-card {
  border-radius: 20px;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(20, 22, 30, 0.84);
  min-height: 100%;
}

body.tradez-page .tradez-feed-board {
  align-content: start;
  gap: 14px;
}

body.tradez-page .tradez-symbol-button {
  min-width: 0;
  padding-inline: 12px;
}

body.tradez-page .tradez-feed-token-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

body.tradez-page .tradez-feed-token-tabs .tradez-symbol-button {
  min-width: 0;
  padding-inline: 14px;
}

body.tradez-page .tradez-feed-token-tabs .tradez-symbol-button.is-active {
  border-color: rgba(34, 211, 238, 0.72);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(14, 22, 38, 0.92)),
    rgba(20, 22, 30, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 12px 28px rgba(34, 211, 238, 0.12);
}

body.tradez-page .tradez-feed-card {
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}

body.tradez-page .tradez-feed-panel .monitor-table {
  min-height: 0;
}

body.tradez-page .tradez-feed-card-head {
  gap: 10px;
  flex-wrap: wrap;
}

body.tradez-page .tradez-feed-stamp-block {
  gap: 6px;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.76rem;
}

body.tradez-page .tradez-feed-summary-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.tradez-page .tradez-feed-quality-center {
  min-width: 0;
}

body.tradez-page .tradez-feed-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tradez-page .tradez-feed-meta-item strong,
body.tradez-page .tradez-feed-plan-item strong {
  font-size: 0.88rem;
}

body.tradez-page .tradez-feed-qualifiers {
  font-size: 0.79rem;
  color: #8fa3bf;
}

body.tradez-page .tradez-compare-panel,
body.tradez-page .tradez-auto2-panel {
  padding-top: 18px;
}

body.tradez-page .tradez-compare-grid {
  gap: 18px;
}

body.tradez-page .tradez-compare-card,
body.tradez-page .tradez-auto2-panel .subpanel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(14, 22, 38, 0.9);
}

body.tradez-page .tradez-template-field {
  grid-column: 1 / -1;
}

body.tradez-page .mini-form textarea {
  min-height: 136px;
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(24, 26, 33, 0.98);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
}

body.tradez-page .mini-form textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.12),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.tradez-page .tradez-template-help {
  display: block;
  color: var(--text-soft);
  line-height: 1.45;
}

body.tradez-page .tradez-delivery-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.tradez-page .quality-meter {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 34%, #84cc16 70%, #10b981 100%);
}

body.tradez-page .quality-meter::before {
  background: rgba(9, 17, 32, 0.52);
}

body.tradez-page .score-badge,
body.tradez-page .quality-tier-q200,
body.tradez-page .quality-tier-q100,
body.tradez-page .quality-tier-q80,
body.tradez-page .quality-tier-q60,
body.tradez-page .quality-tier-q40,
body.tradez-page .quality-tier-q0 {
  box-shadow: 0 12px 26px rgba(2, 8, 23, 0.24);
}

@media (max-width: 1400px) {
  body.tradez-page .page-shell.tradez-layout {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
  }

  body.tradez-page .brand-block-sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  body.tradez-page .tradez-page-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }

  body.tradez-page .page-tab {
    width: auto;
    justify-content: center;
  }

  body.tradez-page .tradez-sidebar-foot {
    justify-items: end;
    align-content: center;
  }
}

@media (max-width: 1240px) {
  body.tradez-page .tradez-hero-shell,
  body.tradez-page .tradez-grid {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-stage,
  body.tradez-page .tradez-side-stack {
    display: contents;
  }

  body.tradez-page .tradez-chart-panel,
  body.tradez-page .tradez-feed-panel,
  body.tradez-page .tradez-pulse-panel,
  body.tradez-page .tradez-control-panel,
  body.tradez-page .tradez-workspace-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.tradez-page .tradez-pulse-grid {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-feed-panel {
    height: auto;
    min-height: 860px;
  }

  body.tradez-page .tradez-feed-panel .panel-head {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-workspace-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.tradez-page .tradez-metric-strip,
  body.tradez-page .tradez-auto2-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.tradez-page .page-shell.tradez-layout {
    width: min(100% - 20px, 1600px);
  }

  body.tradez-page .tradez-sidebar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.tradez-page .tradez-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tradez-page .brand-block-sidebar {
    justify-content: center;
  }

  body.tradez-page .brand-copy {
    align-items: center;
  }

  body.tradez-page .tradez-sidebar-foot {
    justify-items: stretch;
  }

  body.tradez-page .tradez-metric-strip,
  body.tradez-page .tradez-auto2-metrics,
  body.tradez-page .tradez-control-row,
  body.tradez-page .tradez-feed-panel .feed-tabs {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-feed-summary-row,
  body.tradez-page .tradez-feed-plan-grid {
    grid-template-columns: 1fr;
  }

  body.tradez-page .tradez-feed-card {
    min-height: 0;
  }

  body.tradez-page .tradez-feed-panel {
    min-height: 0;
  }

  body.tradez-page .chart-frame {
    height: 420px;
  }
}

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

body.token-analysis-page .hero-form {
  align-items: end;
}

body.token-analysis-page .main-grid {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.74fr);
  gap: 22px;
  align-items: start;
}

body.token-analysis-page .shell-top-shell {
  gap: 24px;
}

body.token-analysis-page .shell-hero-shell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 32px 36px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.14), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(16, 23, 38, 0.98), rgba(10, 16, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(2, 6, 23, 0.48);
}

body.token-analysis-page .shell-hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -8% -34% 34%;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

body.token-analysis-page .shell-hero-shell > * {
  position: relative;
  z-index: 1;
}

body.token-analysis-page .hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: center;
}

body.token-analysis-page .hero-copy h1 {
  max-width: none;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

body.token-analysis-page .hero-copy .subtitle {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.62;
}

body.token-analysis-page .token-analysis-hero-copy {
  margin-bottom: 22px;
}

body.token-analysis-page .timeframe-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.token-analysis-page .hero-form {
  align-self: center;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%),
    rgba(8, 15, 28, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(2, 6, 23, 0.24);
}

body.token-analysis-page .token-analysis-center-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

body.token-analysis-page .token-analysis-token-input {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 64px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    rgba(11, 18, 30, 0.95);
  border: 1px solid rgba(30, 41, 59, 0.86);
  padding: 0 18px;
  font-size: 1.02rem;
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.token-analysis-page .token-analysis-submit {
  flex: 0 0 auto;
  min-width: 170px;
  min-height: 64px;
  border-radius: 18px;
  font-size: 1.02rem;
}

body.token-analysis-page .timeframe-button {
  min-width: 68px;
  min-height: 52px;
  border-radius: 16px;
}

body.token-analysis-page .timeframe-button.is-active {
  border-color: rgba(34, 211, 238, 0.38);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.08)),
    rgba(17, 28, 48, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 10px 28px rgba(34, 211, 238, 0.14);
  color: #d9fbff;
}

body.token-analysis-page .token-analysis-brief-panel {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.96));
}

body.token-analysis-page .analysis-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.token-analysis-page .token-analysis-brief-panel .subpanel {
  position: relative;
  min-height: 0;
  padding: 18px 18px 20px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    rgba(13, 20, 36, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(2, 6, 23, 0.18);
}

body.token-analysis-page .token-analysis-brief-panel .subpanel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.88), rgba(14, 165, 233, 0.18));
  opacity: 0.9;
}

body.token-analysis-page .token-analysis-brief-panel .subpanel:nth-child(2)::before,
body.token-analysis-page .token-analysis-brief-panel .subpanel:nth-child(5)::before {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.9), rgba(34, 211, 238, 0.18));
}

body.token-analysis-page .token-analysis-brief-panel .subpanel:nth-child(3)::before,
body.token-analysis-page .token-analysis-brief-panel .subpanel:nth-child(6)::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(125, 211, 252, 0.16));
}

body.token-analysis-page .token-analysis-brief-panel .panel-head-inline {
  margin-bottom: 14px;
}

body.token-analysis-page .token-analysis-brief-panel .panel-head-inline h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.3;
}

body.token-analysis-page .research-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

body.token-analysis-page .panel-hero {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.96));
}

body.token-analysis-page .panel-hero .panel-head {
  margin-bottom: 22px;
}

body.token-analysis-page .panel-hero .panel-head h2 {
  max-width: 13ch;
  line-height: 1;
}

body.token-analysis-page .headline-metrics {
  gap: 12px;
  justify-content: flex-end;
}

body.token-analysis-page .headline-chip {
  min-width: 146px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
    rgba(12, 19, 33, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(2, 6, 23, 0.18);
}

body.token-analysis-page .chart-shell {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.06), transparent 22%),
    rgba(8, 13, 23, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(2, 6, 23, 0.24);
}

body.token-analysis-page .chart-frame {
  height: clamp(340px, 42vh, 420px);
  min-height: 340px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 16%),
    #08101d;
}

body.token-analysis-page .token-analysis-summary-tabs {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

body.token-analysis-page .token-analysis-summary-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1.08;
}

body.token-analysis-page .token-analysis-summary-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(7, 13, 24, 0.84);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.token-analysis-page .token-analysis-summary-tab {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 14px;
  border: 1px solid rgba(30, 41, 59, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(11, 18, 30, 0.82);
  color: #cbd5e1;
}

body.token-analysis-page .token-analysis-summary-tab.is-active {
  border-color: rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.07)),
    rgba(14, 24, 38, 0.96);
  color: #ecfeff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(34, 211, 238, 0.12);
}

body.token-analysis-page .token-analysis-summary-panel {
  min-width: 0;
}

body.token-analysis-page .chart-hud {
  top: 18px;
  left: 18px;
  gap: 10px;
}

body.token-analysis-page .chart-hud-item {
  min-width: 112px;
  padding: 10px 12px;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    rgba(9, 15, 26, 0.78);
}

body.token-analysis-page .chart-series-label {
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.token-analysis-page .level-badges {
  margin-top: 18px;
  gap: 18px;
}

body.token-analysis-page .token-analysis-level-badges {
  display: none;
}

body.token-analysis-page .timeframe-inline,
body.token-analysis-page .trade-idea-card {
  margin-top: 18px;
}

body.token-analysis-page .timeframe-inline,
body.token-analysis-page .token-analysis-trade-card {
  display: none;
}

body.token-analysis-page .panel-outlook {
  grid-column: 2;
  grid-row: 1;
  position: static;
  align-self: start;
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(14, 22, 37, 0.98), rgba(10, 16, 28, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 42px rgba(2, 6, 23, 0.2);
}

body.token-analysis-page .panel-outlook .panel-head {
  align-items: start;
  margin-bottom: 0;
}

body.token-analysis-page .panel-outlook .panel-head h2 {
  line-height: 1.05;
}

body.token-analysis-page .score-stack {
  min-width: 170px;
  gap: 10px;
}

body.token-analysis-page .score-badge {
  min-width: 84px;
  min-height: 84px;
  border-radius: 24px;
  font-size: 1.18rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%),
    rgba(13, 20, 35, 0.98);
}

body.token-analysis-page .quality-meter-block {
  width: min(188px, 100%);
}

body.token-analysis-page .stream-status {
  width: fit-content;
  margin-bottom: 0;
}

body.token-analysis-page .outlook-copy {
  padding: 16px 18px;
  border: 1px solid rgba(30, 41, 59, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(9, 15, 26, 0.82);
}

body.token-analysis-page .panel-outlook .signal-list {
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

body.token-analysis-page .panel-outlook .signal-item {
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    rgba(11, 18, 30, 0.9);
}

body.token-analysis-page .disclaimer {
  margin-top: 4px;
  padding: 16px 2px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.72);
}

body.token-analysis-page .workspace-panel {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(14, 22, 37, 0.98), rgba(10, 16, 28, 0.97));
}

body.token-analysis-page .workspace-panel .panel-head {
  margin-bottom: 18px;
}

body.token-analysis-page .workspace-panel .panel-head h2 {
  max-width: 14ch;
  line-height: 1.08;
}

body.token-analysis-page .workspace-panel .subsection-meta {
  margin-bottom: 18px;
}

body.token-analysis-page .workspace-grid,
body.token-analysis-page .workspace-grid-overview {
  gap: 18px;
}

body.token-analysis-page .workspace-grid-overview,
body.token-analysis-page .workspace-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.token-analysis-page .subpanel {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    rgba(12, 19, 33, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(2, 6, 23, 0.16);
}

body.token-analysis-page .subpanel .panel-head-inline h3,
body.token-analysis-page .subpanel .panel-head h3 {
  margin: 0;
  color: #f8fafc;
}

body.token-analysis-page .analysis-grid,
body.token-analysis-page .setup-grid {
  gap: 14px;
}

body.token-analysis-page .analysis-card,
body.token-analysis-page .setup-card,
body.token-analysis-page .news-item,
body.token-analysis-page .table-row {
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(9, 15, 26, 0.78);
}

body.token-analysis-page .heatmap-card,
body.token-analysis-page .table-card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    rgba(8, 14, 25, 0.86);
}

body.token-analysis-page .workspace-panel .feed-tabs {
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.84);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

body.token-analysis-page .panel-outlook .signal-list::-webkit-scrollbar {
  width: 8px;
}

body.token-analysis-page .panel-outlook .signal-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
}

body.token-analysis-page .workspace-panel .feed-tab {
  min-width: 144px;
}

body.token-analysis-page .shell-sidebar-foot {
  display: none;
}

body.token-analysis-page .token-analysis-hidden-metrics,
body.token-analysis-page .token-analysis-advanced-panel {
  display: none !important;
}

@media (max-width: 1180px) {
  body.token-analysis-page .main-grid {
    grid-template-columns: 1fr;
  }

  body.token-analysis-page .shell-hero-shell {
    display: flex;
  }

  body.token-analysis-page .hero-copy h1 {
    max-width: none;
  }

  body.token-analysis-page .panel-outlook {
    position: static;
  }

  body.token-analysis-page .analysis-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.token-analysis-page .shell-hero-shell {
    padding: 20px;
  }

  body.token-analysis-page .panel-hero,
  body.token-analysis-page .panel-outlook,
  body.token-analysis-page .workspace-panel,
  body.token-analysis-page .token-analysis-brief-panel {
    padding: 18px;
  }

  body.token-analysis-page .token-analysis-center-form {
    flex-direction: column;
    align-items: stretch;
  }

  body.token-analysis-page .headline-metrics {
    justify-content: stretch;
  }

  body.token-analysis-page .headline-chip {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }

  body.token-analysis-page .chart-frame {
    height: 320px;
    min-height: 320px;
  }

  body.token-analysis-page .token-analysis-summary-tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.token-analysis-page .token-analysis-summary-tab {
    width: 100%;
  }

  body.token-analysis-page .timeframe-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.token-analysis-page .analysis-brief-grid {
    grid-template-columns: 1fr;
  }

  body.token-analysis-page .workspace-grid-overview {
    grid-template-columns: 1fr;
  }

  body.token-analysis-page .workspace-panel .feed-tabs {
    width: 100%;
  }

  body.token-analysis-page .workspace-panel .feed-tab {
    min-width: 0;
    flex: 1 1 0;
  }
}

/* Premium terminal shell redesign */
body.shell-page,
body.tradez-page {
  font-family: var(--ui-font);
}

body.shell-page::before,
body.tradez-page::before {
  opacity: 0.6;
}

body.shell-page::after,
body.tradez-page::after {
  background-size: 100% 64px, 64px 100%;
  opacity: 0.012;
}

body.shell-page:not(.tradez-page) .page-shell.shell-layout,
body.tradez-page .page-shell.tradez-layout {
  width: min(1720px, calc(100% - 40px));
  padding: 16px 0 32px;
  display: block;
  min-height: auto;
}

body.shell-page:not(.tradez-page) .shell-app-header,
body.tradez-page .shell-app-header {
  margin-bottom: 24px;
}

body.shell-page:not(.tradez-page) .shell-main,
body.tradez-page .tradez-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

body.shell-page:not(.tradez-page) .shell-top-shell,
body.tradez-page .tradez-top-shell {
  display: grid;
  gap: 24px;
}

body.shell-page:not(.tradez-page) .app-bar,
body.tradez-page .app-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 16px;
  top: 12px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 20px;
  background: rgba(16, 20, 28, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

body.shell-page:not(.tradez-page) .app-brand,
body.tradez-page .app-brand {
  align-items: center;
  gap: 12px;
}

body.shell-page:not(.tradez-page) .app-brand .brand-mark,
body.tradez-page .app-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(17, 21, 29, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(2, 6, 23, 0.16);
}

body.shell-page:not(.tradez-page) .app-brand .brand-mark img,
body.tradez-page .app-brand .brand-mark img {
  filter: none;
}

body.shell-page:not(.tradez-page) .app-brand .brand-copy,
body.tradez-page .app-brand .brand-copy {
  gap: 2px;
  padding-top: 0;
}

body.shell-page:not(.tradez-page) .app-brand .brand-copy strong,
body.tradez-page .app-brand .brand-copy strong {
  font-size: 1.78rem;
  line-height: 0.96;
}

body.shell-page:not(.tradez-page) .app-brand .brand-copy small,
body.tradez-page .app-brand .brand-copy small {
  margin-top: -6px;
  margin-left: 5px;
  font-size: 0.92rem;
}

body.shell-page:not(.tradez-page) .shell-page-tabs,
body.tradez-page .tradez-page-tabs {
  display: inline-flex;
  justify-self: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.58);
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .page-tab,
body.tradez-page .page-tab {
  width: auto;
  min-height: 38px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #95a3b8;
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .page-tab:hover,
body.tradez-page .page-tab:hover {
  border-color: rgba(34, 211, 238, 0.14);
  background: rgba(19, 24, 32, 0.9);
  color: #dbe7f4;
}

body.shell-page:not(.tradez-page) .page-tab.is-current,
body.tradez-page .page-tab.is-current {
  border-color: rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04)),
    rgba(15, 22, 31, 0.98);
  color: #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(34, 211, 238, 0.04);
}

body.shell-page:not(.tradez-page) .header-actions,
body.tradez-page .header-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

body.shell-page:not(.tradez-page) .header-feed,
body.tradez-page .header-feed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.64);
  color: #cdd8e5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.shell-page:not(.tradez-page) .header-feed-dot,
body.tradez-page .header-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

body.shell-page:not(.tradez-page) .app-pill,
body.tradez-page .app-pill {
  justify-self: auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(13, 18, 26, 0.72);
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .header-icon-button,
body.tradez-page .header-icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.64);
  color: #cdd8e5;
  text-decoration: none;
}

body.shell-page:not(.tradez-page) .header-icon-button svg,
body.tradez-page .header-icon-button svg {
  width: 16px;
  height: 16px;
}

body.shell-page:not(.tradez-page) .hero-shell,
body.tradez-page .tradez-hero-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.9fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 28%),
    rgba(18, 22, 30, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(2, 6, 23, 0.16);
}

body.shell-page:not(.tradez-page) .hero-copy,
body.tradez-page .hero-copy {
  gap: 8px;
}

body.shell-page:not(.tradez-page) .hero-copy .subtitle,
body.tradez-page .hero-copy .subtitle {
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9eaab9;
}

body.shell-page:not(.tradez-page) .status-banner,
body.tradez-page .status-banner {
  margin-bottom: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 36%),
    rgba(16, 20, 28, 0.82);
  color: #b7c3d4;
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .status-banner.up,
body.tradez-page .status-banner.up {
  border-color: rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent 40%),
    rgba(16, 20, 28, 0.82);
}

body.shell-page:not(.tradez-page) .status-banner.down,
body.tradez-page .status-banner.down {
  border-color: rgba(239, 68, 68, 0.22);
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent 40%),
    rgba(16, 20, 28, 0.82);
}

body.shell-page:not(.tradez-page) .panel,
body.shell-page:not(.tradez-page) .metric-strip,
body.shell-page:not(.tradez-page) .subpanel,
body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel {
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    rgba(18, 22, 30, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 30px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(16px);
}

body.shell-page:not(.tradez-page) .panel::before,
body.shell-page:not(.tradez-page) .panel::after,
body.shell-page:not(.tradez-page) .metric-strip::before,
body.shell-page:not(.tradez-page) .metric-strip::after,
body.tradez-page .panel::before,
body.tradez-page .panel::after,
body.tradez-page .metric-strip::before,
body.tradez-page .metric-strip::after {
  display: none;
}

body.shell-page:not(.tradez-page) .panel,
body.tradez-page .panel {
  padding: 16px;
}

body.shell-page:not(.tradez-page) .metric-strip,
body.tradez-page .metric-strip,
body.tradez-page .tradez-auto2-metrics {
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}

body.shell-page:not(.tradez-page) .headline-chip,
body.shell-page:not(.tradez-page) .metric-card,
body.shell-page:not(.tradez-page) .analysis-card,
body.shell-page:not(.tradez-page) .setup-card,
body.shell-page:not(.tradez-page) .news-item,
body.shell-page:not(.tradez-page) .signal-item,
body.shell-page:not(.tradez-page) .table-row,
body.shell-page:not(.tradez-page) .chart-hud-item,
body.shell-page:not(.tradez-page) .timeframe-inline,
body.shell-page:not(.tradez-page) .trade-idea-card,
body.shell-page:not(.tradez-page) .trade-idea-stat,
body.shell-page:not(.tradez-page) .stack-card,
body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card {
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 30%),
    rgba(12, 16, 23, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.shell-page:not(.tradez-page) .metric-card,
body.tradez-page .metric-card {
  min-height: 88px;
  padding: 12px 13px;
}

body.shell-page:not(.tradez-page) .headline-chip,
body.tradez-page .headline-chip {
  min-width: 118px;
  padding: 10px 12px;
}

body.shell-page:not(.tradez-page) .metric-card strong,
body.shell-page:not(.tradez-page) .headline-chip strong,
body.shell-page:not(.tradez-page) .chart-hud-item strong,
body.shell-page:not(.tradez-page) .score-badge,
body.tradez-page .metric-card strong,
body.tradez-page .headline-chip strong,
body.tradez-page .chart-hud-item strong,
body.tradez-page .score-badge {
  font-family: var(--font-stack);
}

body.shell-page:not(.tradez-page) .panel-label,
body.shell-page:not(.tradez-page) .eyebrow,
body.tradez-page .panel-label,
body.tradez-page .eyebrow {
  color: #77dff0;
  letter-spacing: 0.18em;
}

body.shell-page:not(.tradez-page) .subtitle,
body.shell-page:not(.tradez-page) .subtitle-inline,
body.shell-page:not(.tradez-page) .subsection-meta,
body.shell-page:not(.tradez-page) .trade-copy,
body.shell-page:not(.tradez-page) .outlook-copy,
body.tradez-page .subtitle,
body.tradez-page .subtitle-inline,
body.tradez-page .subsection-meta,
body.tradez-page .trade-copy,
body.tradez-page .outlook-copy {
  color: #97a4b6;
}

body.shell-page:not(.tradez-page) .token-form input,
body.shell-page:not(.tradez-page) .token-form select,
body.tradez-page .token-form input,
body.tradez-page .token-form select {
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: rgba(11, 15, 22, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.shell-page:not(.tradez-page) .token-form button,
body.tradez-page .token-form button {
  border: 1px solid rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.08)),
    rgba(12, 16, 23, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(2, 6, 23, 0.12);
}

body.shell-page:not(.tradez-page) .mini-button,
body.tradez-page .mini-button {
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: rgba(12, 16, 23, 0.78);
  color: #d7e0eb;
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .mini-button.is-active,
body.shell-page:not(.tradez-page) .feed-tab.is-active,
body.tradez-page .mini-button.is-active,
body.tradez-page .feed-tab.is-active {
  border-color: rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.04)),
    rgba(13, 18, 26, 0.98);
  color: #effbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.shell-page:not(.tradez-page) .dashboard-grid,
body.tradez-page .dashboard-grid {
  gap: 24px;
}

body.main-shell-page .main-grid {
  grid-template-columns: minmax(0, 1.92fr) minmax(300px, 0.72fr);
}

body.auto-shell-page .auto-grid {
  grid-template-columns: minmax(0, 1.78fr) minmax(280px, 0.72fr);
  gap: 24px;
}

body.arena-shell-page .arena-grid-shell {
  gap: 24px;
}

body.shell-page:not(.tradez-page) .chart-shell,
body.tradez-page .chart-shell {
  padding: 10px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 20px;
  background: rgba(9, 13, 19, 0.84);
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .chart-frame,
body.tradez-page .chart-frame {
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 16%),
    #06090f;
  box-shadow: none;
}

body.tradez-page .tradez-grid {
  gap: 24px;
}

body.tradez-page .tradez-stage,
body.tradez-page .tradez-side-stack {
  gap: 24px;
}

body.tradez-page .tradez-chart-panel,
body.tradez-page .tradez-pulse-panel,
body.tradez-page .tradez-control-panel,
body.tradez-page .tradez-workspace-panel {
  border-radius: 20px;
}

body.tradez-page .tradez-chart-panel .chart-frame {
  height: clamp(420px, 50vh, 560px);
}

body.tradez-page .tradez-feed-panel .feed-tabs,
body.tradez-page .tradez-workspace-tabs {
  gap: 8px;
}

body.token-analysis-page .shell-top-shell {
  gap: 20px;
}

body.token-analysis-page .main-grid {
  grid-template-columns: minmax(0, 2.08fr) minmax(280px, 0.7fr);
  gap: 24px;
}

body.token-analysis-page .shell-hero-shell {
  padding: 24px 24px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    rgba(18, 22, 30, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(2, 6, 23, 0.16);
}

body.token-analysis-page .shell-hero-shell::before {
  display: none;
}

body.token-analysis-page .hero-copy {
  gap: 8px;
}

body.token-analysis-page .hero-copy h1 {
  letter-spacing: -0.03em;
}

body.token-analysis-page .hero-copy .subtitle {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

body.token-analysis-page .token-analysis-hero-copy {
  margin-bottom: 14px;
}

body.token-analysis-page .hero-form {
  max-width: 820px;
  padding: 12px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 24px;
  background: rgba(10, 14, 22, 0.72);
  box-shadow: none;
}

body.token-analysis-page .token-analysis-center-form {
  gap: 12px;
}

body.token-analysis-page .token-analysis-token-input {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 0.98rem;
}

body.token-analysis-page .timeframe-switcher {
  gap: 6px;
  padding: 4px;
  background: rgba(7, 11, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.16);
}

body.token-analysis-page .timeframe-button {
  min-width: 56px;
  min-height: 44px;
  border-radius: 999px;
}

body.token-analysis-page .token-analysis-submit {
  min-width: 148px;
  min-height: 56px;
  border-radius: 16px;
  font-size: 0.98rem;
}

body.token-analysis-page .panel-hero {
  padding: 18px;
  border-radius: 20px;
}

body.token-analysis-page .panel-hero .panel-head {
  margin-bottom: 16px;
}

body.token-analysis-page .panel-hero .panel-head h2 {
  max-width: none;
}

body.token-analysis-page .headline-metrics {
  gap: 8px;
}

body.token-analysis-page .headline-chip {
  min-width: 124px;
  border-radius: 14px;
}

body.token-analysis-page .chart-shell {
  padding: 8px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.9);
}

body.token-analysis-page .chart-frame {
  height: clamp(430px, 52vh, 580px);
  min-height: 430px;
  border-radius: 16px;
}

body.token-analysis-page .chart-hud {
  top: 12px;
  left: 12px;
  gap: 8px;
}

body.token-analysis-page .chart-hud-item {
  min-width: 104px;
  padding: 9px 10px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

body.token-analysis-page .token-analysis-summary-tabs {
  gap: 12px;
  margin-top: 14px;
}

body.token-analysis-page .token-analysis-summary-head h3 {
  font-size: 1.05rem;
  line-height: 1.12;
}

body.token-analysis-page .token-analysis-summary-tablist {
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.86);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.14);
}

body.token-analysis-page .token-analysis-summary-tab {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  background: transparent;
}

body.token-analysis-page .token-analysis-summary-tab.is-active {
  box-shadow: none;
}

body.token-analysis-page .panel-outlook {
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 26%),
    rgba(17, 21, 29, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 28px rgba(2, 6, 23, 0.12);
}

body.token-analysis-page .panel-outlook .signal-item {
  padding: 12px;
  border-radius: 14px;
}

body.token-analysis-page .score-badge {
  min-width: 72px;
  min-height: 72px;
  border-radius: 18px;
}

body.token-analysis-page .outlook-copy {
  padding: 14px;
  border-radius: 14px;
}

body.token-analysis-page .panel-outlook .signal-list {
  max-height: 500px;
}

body.token-analysis-page .workspace-panel {
  padding: 18px;
  border-radius: 20px;
}

body.token-analysis-page .subpanel,
body.token-analysis-page .analysis-card,
body.token-analysis-page .setup-card,
body.token-analysis-page .news-item,
body.token-analysis-page .table-row {
  border-radius: 14px;
}

@media (max-width: 1280px) {
  body.shell-page:not(.tradez-page) .app-bar,
  body.tradez-page .app-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.shell-page:not(.tradez-page) .app-brand,
  body.tradez-page .app-brand {
    justify-content: center;
  }

  body.shell-page:not(.tradez-page) .shell-page-tabs,
  body.tradez-page .tradez-page-tabs {
    justify-self: stretch;
  }

  body.shell-page:not(.tradez-page) .header-actions,
  body.tradez-page .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1180px) {
  body.shell-page:not(.tradez-page) .hero-shell,
  body.tradez-page .tradez-hero-shell,
  body.token-analysis-page .main-grid,
  body.auto-shell-page .auto-grid,
  body.main-shell-page .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.shell-page:not(.tradez-page) .page-shell.shell-layout,
  body.tradez-page .page-shell.tradez-layout {
    width: min(1720px, calc(100% - 24px));
  }

  body.shell-page:not(.tradez-page) .metric-strip,
  body.tradez-page .metric-strip,
  body.tradez-page .tradez-auto2-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.shell-page:not(.tradez-page) .shell-page-tabs,
  body.tradez-page .tradez-page-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  body.shell-page:not(.tradez-page) .page-tab,
  body.tradez-page .page-tab {
    width: 100%;
  }

  body.shell-page:not(.tradez-page) .header-actions,
  body.tradez-page .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    width: 100%;
  }

  body.token-analysis-page .hero-form {
    width: 100%;
  }

  body.token-analysis-page .token-analysis-center-form {
    flex-direction: column;
    align-items: stretch;
  }

  body.token-analysis-page .token-analysis-summary-tablist {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  body.token-analysis-page .chart-frame {
    height: 360px;
    min-height: 360px;
  }
}

/* Premium polish pass */
:root {
  --surface-shadow-soft: 0 12px 24px rgba(2, 6, 23, 0.1);
  --surface-shadow-card: 0 8px 18px rgba(2, 6, 23, 0.08);
  --surface-edge-light: rgba(255, 255, 255, 0.035);
}

body.shell-page .app-bar,
body.tradez-page .app-bar,
body.shell-page .panel,
body.shell-page .metric-strip,
body.shell-page .subpanel,
body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel,
body.shell-page .headline-chip,
body.shell-page .metric-card,
body.shell-page .analysis-card,
body.shell-page .setup-card,
body.shell-page .news-item,
body.shell-page .signal-item,
body.shell-page .table-row,
body.shell-page .chart-hud-item,
body.shell-page .timeframe-inline,
body.shell-page .trade-idea-card,
body.shell-page .trade-idea-stat,
body.shell-page .stack-card,
body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card,
body.shell-page .page-tab,
body.tradez-page .page-tab,
body.shell-page .mini-button,
body.tradez-page .mini-button,
body.shell-page .token-form button,
body.tradez-page .token-form button,
body.shell-page .token-form input,
body.shell-page .token-form select,
body.tradez-page .token-form input,
body.tradez-page .token-form select,
body.token-analysis-page .token-analysis-summary-tab {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

body.shell-page:not(.tradez-page) .app-bar,
body.tradez-page .app-bar {
  padding: 10px 16px;
  border-color: rgba(100, 116, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 34%),
    rgba(15, 19, 27, 0.76);
  box-shadow:
    inset 0 1px 0 var(--surface-edge-light),
    0 10px 26px rgba(2, 6, 23, 0.14);
}

body.shell-page:not(.tradez-page) .shell-page-tabs,
body.tradez-page .tradez-page-tabs {
  padding: 3px;
  gap: 4px;
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(8, 12, 18, 0.46);
}

body.shell-page:not(.tradez-page) .page-tab,
body.tradez-page .page-tab {
  min-height: 36px;
  padding: 0 13px;
  color: #9aa7b7;
}

body.shell-page:not(.tradez-page) .page-tab:hover,
body.tradez-page .page-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.1);
  background: rgba(18, 24, 33, 0.8);
  color: #dde6f0;
}

body.shell-page:not(.tradez-page) .page-tab.is-current,
body.tradez-page .page-tab.is-current {
  border-color: rgba(34, 211, 238, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 40%),
    rgba(18, 25, 34, 0.96);
  color: #f6fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(34, 211, 238, 0.12);
}

body.shell-page:not(.tradez-page) .header-feed,
body.tradez-page .header-feed,
body.shell-page:not(.tradez-page) .app-pill,
body.tradez-page .app-pill,
body.shell-page:not(.tradez-page) .header-icon-button,
body.tradez-page .header-icon-button {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(9, 13, 19, 0.54);
}

body.shell-page:not(.tradez-page) .header-icon-button:hover,
body.tradez-page .header-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.14);
  color: #eef8ff;
}

body.shell-page:not(.tradez-page) .hero-shell,
body.tradez-page .tradez-hero-shell {
  gap: 18px;
  padding: 18px 20px;
  border-color: rgba(100, 116, 139, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 30%),
    rgba(17, 21, 29, 0.84);
  box-shadow:
    inset 0 1px 0 var(--surface-edge-light),
    0 14px 28px rgba(2, 6, 23, 0.12);
}

body.shell-page:not(.tradez-page) .hero-copy h1,
body.tradez-page .hero-copy h1 {
  letter-spacing: -0.035em;
}

body.shell-page:not(.tradez-page) .hero-copy .subtitle,
body.tradez-page .hero-copy .subtitle {
  color: #a8b4c3;
}

body.shell-page:not(.tradez-page) .status-banner,
body.tradez-page .status-banner {
  padding: 9px 13px;
  border-color: rgba(100, 116, 139, 0.12);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.055), transparent 34%),
    rgba(15, 19, 27, 0.74);
}

body.shell-page:not(.tradez-page) .panel,
body.shell-page:not(.tradez-page) .metric-strip,
body.shell-page:not(.tradez-page) .subpanel,
body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel {
  border-color: rgba(100, 116, 139, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%),
    rgba(17, 21, 29, 0.84);
  box-shadow:
    inset 0 1px 0 var(--surface-edge-light),
    var(--surface-shadow-soft);
}

body.shell-page:not(.tradez-page) .metric-strip,
body.tradez-page .metric-strip,
body.tradez-page .tradez-auto2-metrics {
  gap: 10px;
  padding: 10px;
}

body.shell-page:not(.tradez-page) .headline-chip,
body.shell-page:not(.tradez-page) .metric-card,
body.shell-page:not(.tradez-page) .analysis-card,
body.shell-page:not(.tradez-page) .setup-card,
body.shell-page:not(.tradez-page) .news-item,
body.shell-page:not(.tradez-page) .signal-item,
body.shell-page:not(.tradez-page) .table-row,
body.shell-page:not(.tradez-page) .chart-hud-item,
body.shell-page:not(.tradez-page) .timeframe-inline,
body.shell-page:not(.tradez-page) .trade-idea-card,
body.shell-page:not(.tradez-page) .trade-idea-stat,
body.shell-page:not(.tradez-page) .stack-card,
body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card {
  border-color: rgba(100, 116, 139, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 36%),
    rgba(11, 15, 22, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    var(--surface-shadow-card);
}

body.shell-page:not(.tradez-page) .metric-card:hover,
body.shell-page:not(.tradez-page) .analysis-card:hover,
body.shell-page:not(.tradez-page) .setup-card:hover,
body.tradez-page .metric-card:hover,
body.tradez-page .analysis-card:hover,
body.tradez-page .setup-card:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.16);
}

body.shell-page:not(.tradez-page) .panel-head,
body.tradez-page .panel-head {
  margin-bottom: 14px;
}

body.shell-page:not(.tradez-page) .panel-label,
body.shell-page:not(.tradez-page) .eyebrow,
body.tradez-page .panel-label,
body.tradez-page .eyebrow {
  color: #7edceb;
  font-size: 0.72rem;
}

body.shell-page:not(.tradez-page) .panel-head h2,
body.tradez-page .panel-head h2 {
  letter-spacing: -0.025em;
}

body.shell-page:not(.tradez-page) .subtitle,
body.shell-page:not(.tradez-page) .subtitle-inline,
body.shell-page:not(.tradez-page) .subsection-meta,
body.shell-page:not(.tradez-page) .trade-copy,
body.shell-page:not(.tradez-page) .outlook-copy,
body.tradez-page .subtitle,
body.tradez-page .subtitle-inline,
body.tradez-page .subsection-meta,
body.tradez-page .trade-copy,
body.tradez-page .outlook-copy {
  color: #a7b2c0;
}

body.shell-page:not(.tradez-page) .token-form input,
body.shell-page:not(.tradez-page) .token-form select,
body.tradez-page .token-form input,
body.tradez-page .token-form select {
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(9, 13, 19, 0.66);
}

body.shell-page:not(.tradez-page) .token-form input:hover,
body.shell-page:not(.tradez-page) .token-form select:hover,
body.tradez-page .token-form input:hover,
body.tradez-page .token-form select:hover {
  border-color: rgba(100, 116, 139, 0.22);
}

body.shell-page:not(.tradez-page) .token-form input:focus,
body.shell-page:not(.tradez-page) .token-form select:focus,
body.tradez-page .token-form input:focus,
body.tradez-page .token-form select:focus {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.shell-page:not(.tradez-page) .token-form button,
body.tradez-page .token-form button {
  border-color: rgba(34, 211, 238, 0.16);
  background:
    linear-gradient(180deg, rgba(54, 200, 224, 0.22), rgba(28, 131, 149, 0.16)),
    rgba(11, 16, 23, 0.98);
}

body.shell-page:not(.tradez-page) .token-form button:hover,
body.tradez-page .token-form button:hover,
body.shell-page:not(.tradez-page) .mini-button:hover,
body.tradez-page .mini-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 20px rgba(2, 6, 23, 0.12);
}

body.shell-page:not(.tradez-page) .mini-button,
body.tradez-page .mini-button {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(10, 14, 20, 0.72);
  color: #d5dee8;
}

body.shell-page:not(.tradez-page) .mini-button.is-active,
body.shell-page:not(.tradez-page) .feed-tab.is-active,
body.tradez-page .mini-button.is-active,
body.tradez-page .feed-tab.is-active {
  border-color: rgba(34, 211, 238, 0.16);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.03)),
    rgba(12, 17, 24, 0.94);
}

body.shell-page:not(.tradez-page) .chart-shell,
body.tradez-page .chart-shell {
  padding: 8px;
  border-color: rgba(100, 116, 139, 0.1);
  background: rgba(7, 10, 15, 0.74);
}

body.shell-page:not(.tradez-page) .chart-frame,
body.tradez-page .chart-frame {
  border-color: rgba(148, 163, 184, 0.06);
}

body.shell-page:not(.tradez-page) .chart-hud-item,
body.tradez-page .chart-hud-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%),
    rgba(8, 12, 18, 0.72);
}

body.token-analysis-page .shell-hero-shell {
  padding: 22px 22px 18px;
}

body.token-analysis-page .hero-copy {
  gap: 6px;
}

body.token-analysis-page .hero-copy h1 {
  line-height: 0.98;
}

body.token-analysis-page .token-analysis-hero-copy {
  margin-bottom: 12px;
}

body.token-analysis-page .hero-form {
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%),
    rgba(8, 12, 18, 0.62);
}

body.token-analysis-page .token-analysis-center-form {
  justify-content: center;
}

body.token-analysis-page .token-analysis-token-input {
  font-family: var(--ui-font);
}

body.token-analysis-page .timeframe-switcher {
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
}

body.token-analysis-page .timeframe-button {
  min-width: 58px;
  min-height: 42px;
  font-size: 0.8rem;
}

body.token-analysis-page .timeframe-button:hover {
  transform: translateY(-1px);
}

body.token-analysis-page .timeframe-button.is-active {
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.03)),
    rgba(13, 19, 26, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 14px rgba(2, 6, 23, 0.1);
}

body.token-analysis-page .token-analysis-submit {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(2, 6, 23, 0.12);
}

body.token-analysis-page .panel-hero {
  padding: 16px;
}

body.token-analysis-page .chart-shell {
  padding: 6px;
}

body.token-analysis-page .chart-frame {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.012);
}

body.token-analysis-page .token-analysis-summary-head h3 {
  color: #f1f6fb;
}

body.token-analysis-page .token-analysis-summary-tablist {
  gap: 4px;
  padding: 3px;
}

body.token-analysis-page .token-analysis-summary-tab {
  min-height: 34px;
  border-color: transparent;
  color: #9ca9b8;
}

body.token-analysis-page .token-analysis-summary-tab:hover {
  transform: translateY(-1px);
  background: rgba(18, 24, 33, 0.78);
  color: #deebf5;
}

body.token-analysis-page .token-analysis-summary-tab.is-active {
  border-color: rgba(34, 211, 238, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    rgba(17, 23, 32, 0.96);
  color: #f5fbff;
}

body.token-analysis-page .panel-outlook {
  gap: 10px;
  padding: 14px;
  border-color: rgba(100, 116, 139, 0.1);
}

body.token-analysis-page .panel-outlook .panel-head {
  margin-bottom: 2px;
}

body.token-analysis-page .score-stack {
  gap: 8px;
}

body.token-analysis-page .score-badge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 38%),
    rgba(10, 14, 20, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    0 8px 18px rgba(2, 6, 23, 0.08);
}

body.token-analysis-page .outlook-copy,
body.token-analysis-page .panel-outlook .signal-item {
  border-color: rgba(100, 116, 139, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 36%),
    rgba(9, 13, 19, 0.68);
  box-shadow: none;
}

body.token-analysis-page .panel-outlook .signal-item + .signal-item {
  margin-top: 2px;
}

/* Final premium refinement */
body.shell-page:not(.tradez-page) .app-bar,
body.tradez-page .app-bar {
  border-color: rgba(100, 116, 139, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%),
    rgba(15, 19, 27, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.028),
    0 8px 20px rgba(2, 6, 23, 0.1);
}

body.shell-page:not(.tradez-page) .shell-top-shell,
body.tradez-page .tradez-top-shell {
  gap: 20px;
}

body.shell-page:not(.tradez-page) .hero-shell,
body.tradez-page .tradez-hero-shell {
  gap: 16px;
  padding: 15px 18px;
}

body.shell-page:not(.tradez-page) .hero-copy,
body.tradez-page .hero-copy,
body.token-analysis-page .hero-copy {
  gap: 4px;
}

body.shell-page:not(.tradez-page) .hero-copy h1,
body.tradez-page .hero-copy h1 {
  line-height: 1;
}

body.shell-page:not(.tradez-page) .hero-copy .subtitle,
body.tradez-page .hero-copy .subtitle,
body.token-analysis-page .hero-copy .subtitle {
  margin-top: 2px;
}

body.token-analysis-page .shell-hero-shell {
  padding: 18px 20px 14px;
}

body.token-analysis-page .token-analysis-hero-copy {
  margin-bottom: 10px;
}

body.token-analysis-page .hero-form {
  padding: 8px;
}

body.shell-page:not(.tradez-page) .panel,
body.shell-page:not(.tradez-page) .metric-strip,
body.shell-page:not(.tradez-page) .subpanel,
body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel {
  border-color: rgba(100, 116, 139, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 34%),
    rgba(17, 21, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(2, 6, 23, 0.08);
}

body.shell-page:not(.tradez-page) .headline-chip,
body.shell-page:not(.tradez-page) .metric-card,
body.shell-page:not(.tradez-page) .analysis-card,
body.shell-page:not(.tradez-page) .setup-card,
body.shell-page:not(.tradez-page) .news-item,
body.shell-page:not(.tradez-page) .signal-item,
body.shell-page:not(.tradez-page) .table-row,
body.shell-page:not(.tradez-page) .chart-hud-item,
body.shell-page:not(.tradez-page) .timeframe-inline,
body.shell-page:not(.tradez-page) .trade-idea-card,
body.shell-page:not(.tradez-page) .trade-idea-stat,
body.shell-page:not(.tradez-page) .stack-card,
body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card,
body.token-analysis-page .outlook-copy,
body.token-analysis-page .panel-outlook .signal-item {
  border-color: rgba(100, 116, 139, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.008), transparent 38%),
    rgba(10, 14, 20, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    0 6px 14px rgba(2, 6, 23, 0.06);
}

body.token-analysis-page .panel-outlook,
body.tradez-page .tradez-side-stack,
body.main-shell-page .panel-outlook,
body.auto-shell-page .panel-engine-compact {
  gap: 8px;
}

body.token-analysis-page .panel-outlook {
  padding: 13px;
}

body.token-analysis-page .panel-outlook .signal-list {
  gap: 8px;
}

body.shell-page:not(.tradez-page) .token-form button,
body.tradez-page .token-form button {
  border-color: rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(70, 216, 239, 0.26), rgba(28, 136, 154, 0.18)),
    rgba(11, 16, 23, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(2, 6, 23, 0.1);
}

body.shell-page:not(.tradez-page) .token-form button:hover,
body.tradez-page .token-form button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 22px rgba(2, 6, 23, 0.12);
}

body.shell-page:not(.tradez-page) .status-banner,
body.tradez-page .status-banner,
body.shell-page:not(.tradez-page) .chart-shell,
body.tradez-page .chart-shell {
  box-shadow: none;
}

/* Premium motion and interaction polish */
:root {
  --motion-duration-fast: 140ms;
  --motion-duration-base: 180ms;
  --motion-duration-slow: 280ms;
  --motion-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-shadow-soft: 0 10px 20px rgba(2, 6, 23, 0.09);
  --hover-shadow-panel: 0 14px 26px rgba(2, 6, 23, 0.11);
  --focus-ring-soft: 0 0 0 3px rgba(34, 211, 238, 0.055);
}

@keyframes premium-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes premium-shimmer {
  0% {
    background-position: -220% 0;
  }

  100% {
    background-position: 220% 0;
  }
}

body.shell-page .app-header,
body.tradez-page .app-header,
body.shell-page .shell-top-shell,
body.tradez-page .tradez-top-shell,
body.main-shell-page .main-grid,
body.auto-shell-page .auto-grid,
body.arena-shell-page .arena-grid-shell,
body.tradez-page .tradez-grid,
body.token-analysis-page .main-grid {
  animation: premium-fade-up var(--motion-duration-slow) var(--motion-ease-premium) both;
}

body.shell-page .shell-top-shell,
body.tradez-page .tradez-top-shell {
  animation-delay: 40ms;
}

body.main-shell-page .main-grid,
body.auto-shell-page .auto-grid,
body.arena-shell-page .arena-grid-shell,
body.tradez-page .tradez-grid,
body.token-analysis-page .main-grid {
  animation-delay: 80ms;
}

body.shell-page .page-tab,
body.tradez-page .page-tab,
body.shell-page .mini-button,
body.tradez-page .mini-button,
body.shell-page .token-form button,
body.tradez-page .token-form button,
body.shell-page .token-form input,
body.shell-page .token-form select,
body.tradez-page .token-form input,
body.tradez-page .token-form select,
body.token-analysis-page .timeframe-button,
body.token-analysis-page .token-analysis-summary-tab,
body.shell-page .header-icon-button,
body.tradez-page .header-icon-button,
body.shell-page .feed-tab,
body.tradez-page .feed-tab,
body.tradez-page .tradez-symbol-button,
body.shell-page .nav-link,
body.tradez-page .nav-link,
body.shell-page .metric-card,
body.shell-page .analysis-card,
body.shell-page .signal-item,
body.shell-page .setup-card,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .signal-item,
body.tradez-page .setup-card,
body.token-analysis-page .panel-outlook .signal-item,
body.shell-page .chart-shell,
body.tradez-page .chart-shell,
body.shell-page .status-banner,
body.tradez-page .status-banner {
  transition:
    background-color var(--motion-duration-base) var(--motion-ease-premium),
    background var(--motion-duration-base) var(--motion-ease-premium),
    border-color var(--motion-duration-base) var(--motion-ease-premium),
    box-shadow var(--motion-duration-base) var(--motion-ease-premium),
    transform var(--motion-duration-fast) var(--motion-ease-premium),
    opacity var(--motion-duration-base) var(--motion-ease-premium),
    color var(--motion-duration-fast) var(--motion-ease-premium),
    filter var(--motion-duration-fast) var(--motion-ease-premium);
  will-change: transform, opacity;
}

body.shell-page:not(.tradez-page) .page-tab:hover,
body.tradez-page .page-tab:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.shell-page:not(.tradez-page) .page-tab.is-current,
body.tradez-page .page-tab.is-current {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(34, 211, 238, 0.035),
    0 1px 0 rgba(34, 211, 238, 0.08);
}

body.shell-page:not(.tradez-page) .token-form button:hover,
body.tradez-page .token-form button:hover,
body.shell-page:not(.tradez-page) .mini-button:hover,
body.tradez-page .mini-button:hover,
body.shell-page:not(.tradez-page) .header-icon-button:hover,
body.tradez-page .header-icon-button:hover,
body.token-analysis-page .timeframe-button:hover,
body.token-analysis-page .token-analysis-summary-tab:hover,
body.shell-page:not(.tradez-page) .feed-tab:hover,
body.tradez-page .feed-tab:hover,
body.tradez-page .tradez-symbol-button:hover {
  transform: translate3d(0, -1px, 0);
  filter: brightness(1.03);
}

body.shell-page:not(.tradez-page) .token-form button:active,
body.tradez-page .token-form button:active,
body.shell-page:not(.tradez-page) .mini-button:active,
body.tradez-page .mini-button:active,
body.shell-page:not(.tradez-page) .header-icon-button:active,
body.tradez-page .header-icon-button:active,
body.token-analysis-page .timeframe-button:active,
body.token-analysis-page .token-analysis-summary-tab:active,
body.shell-page:not(.tradez-page) .feed-tab:active,
body.tradez-page .feed-tab:active,
body.tradez-page .tradez-symbol-button:active {
  transform: translate3d(0, 0, 0);
  filter: brightness(0.985);
}

body.shell-page:not(.tradez-page) .token-form button:disabled,
body.tradez-page .token-form button:disabled,
body.shell-page:not(.tradez-page) .mini-button:disabled,
body.tradez-page .mini-button:disabled,
body.shell-page:not(.tradez-page) .feed-tab:disabled,
body.tradez-page .feed-tab:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: saturate(0.72);
  box-shadow: none;
}

body.shell-page:not(.tradez-page) .token-form input:hover,
body.shell-page:not(.tradez-page) .token-form select:hover,
body.tradez-page .token-form input:hover,
body.tradez-page .token-form select:hover {
  background-color: rgba(12, 16, 23, 0.76);
}

body.shell-page:not(.tradez-page) .token-form input:focus,
body.shell-page:not(.tradez-page) .token-form select:focus,
body.tradez-page .token-form input:focus,
body.tradez-page .token-form select:focus {
  box-shadow:
    var(--focus-ring-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.shell-page:not(.tradez-page) .metric-card:hover,
body.shell-page:not(.tradez-page) .analysis-card:hover,
body.shell-page:not(.tradez-page) .signal-item:hover,
body.shell-page:not(.tradez-page) .setup-card:hover,
body.tradez-page .metric-card:hover,
body.tradez-page .analysis-card:hover,
body.tradez-page .signal-item:hover,
body.tradez-page .setup-card:hover,
body.token-analysis-page .panel-outlook .signal-item:hover {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(100, 116, 139, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    var(--hover-shadow-soft);
}

body.shell-page:not(.tradez-page) .panel:hover,
body.tradez-page .panel:hover {
  border-color: rgba(100, 116, 139, 0.12);
}

body.shell-page:not(.tradez-page) .app-bar,
body.tradez-page .app-bar {
  padding: 8px 14px;
  border-color: rgba(100, 116, 139, 0.1);
}

body.shell-page:not(.tradez-page) .shell-page-tabs,
body.tradez-page .tradez-page-tabs {
  padding: 2px;
  gap: 3px;
}

body.shell-page:not(.tradez-page) .page-tab,
body.tradez-page .page-tab {
  min-height: 34px;
  padding: 0 12px;
}

body.shell-page:not(.tradez-page) .hero-shell,
body.tradez-page .tradez-hero-shell {
  padding: 13px 16px;
}

body.shell-page:not(.tradez-page) .hero-copy .subtitle,
body.tradez-page .hero-copy .subtitle,
body.token-analysis-page .hero-copy .subtitle {
  margin-top: 1px;
}

body.token-analysis-page .shell-hero-shell {
  padding: 16px 18px 12px;
}

body.token-analysis-page .token-analysis-hero-copy {
  margin-bottom: 8px;
}

body.token-analysis-page .hero-form {
  padding: 7px;
}

body.token-analysis-page .timeframe-button {
  min-height: 40px;
}

body.shell-page:not(.tradez-page) .panel,
body.shell-page:not(.tradez-page) .metric-strip,
body.shell-page:not(.tradez-page) .subpanel,
body.tradez-page .panel,
body.tradez-page .metric-strip,
body.tradez-page .subpanel {
  border-color: rgba(100, 116, 139, 0.08);
}

body.shell-page:not(.tradez-page) .headline-chip,
body.shell-page:not(.tradez-page) .metric-card,
body.shell-page:not(.tradez-page) .analysis-card,
body.shell-page:not(.tradez-page) .setup-card,
body.shell-page:not(.tradez-page) .news-item,
body.shell-page:not(.tradez-page) .signal-item,
body.shell-page:not(.tradez-page) .table-row,
body.shell-page:not(.tradez-page) .chart-hud-item,
body.shell-page:not(.tradez-page) .timeframe-inline,
body.shell-page:not(.tradez-page) .trade-idea-card,
body.shell-page:not(.tradez-page) .trade-idea-stat,
body.shell-page:not(.tradez-page) .stack-card,
body.tradez-page .headline-chip,
body.tradez-page .metric-card,
body.tradez-page .analysis-card,
body.tradez-page .setup-card,
body.tradez-page .news-item,
body.tradez-page .signal-item,
body.tradez-page .table-row,
body.tradez-page .chart-hud-item,
body.tradez-page .timeframe-inline,
body.tradez-page .trade-idea-card,
body.tradez-page .trade-idea-stat,
body.tradez-page .stack-card,
body.token-analysis-page .outlook-copy,
body.token-analysis-page .panel-outlook .signal-item,
body.shell-page .score-badge,
body.tradez-page .score-badge {
  border-color: rgba(100, 116, 139, 0.075);
}

body.shell-page .score-badge,
body.tradez-page .score-badge {
  font-size: 1.26rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 6px 14px rgba(2, 6, 23, 0.06);
}

body.shell-page:not(.tradez-page) .token-form button,
body.tradez-page .token-form button {
  border-color: rgba(34, 211, 238, 0.2);
  background:
    linear-gradient(180deg, rgba(84, 223, 243, 0.32), rgba(31, 150, 170, 0.22)),
    rgba(11, 16, 23, 0.98);
}

body.shell-page:not(.tradez-page) .token-form button:hover,
body.tradez-page .token-form button:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 14px 24px rgba(2, 6, 23, 0.14);
}

body.token-analysis-page .timeframe-button.is-active,
body.token-analysis-page .token-analysis-summary-tab.is-active,
body.shell-page:not(.tradez-page) .feed-tab.is-active,
body.tradez-page .feed-tab.is-active,
body.shell-page:not(.tradez-page) .mini-button.is-active,
body.tradez-page .mini-button.is-active {
  transition:
    background var(--motion-duration-base) var(--motion-ease-premium),
    border-color var(--motion-duration-base) var(--motion-ease-premium),
    box-shadow var(--motion-duration-base) var(--motion-ease-premium),
    color var(--motion-duration-fast) var(--motion-ease-premium);
}

body.shell-page:not(.tradez-page) .chart-shell,
body.tradez-page .chart-shell {
  position: relative;
}

body.shell-page:not(.tradez-page) .chart-shell::after,
body.tradez-page .chart-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.012);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--motion-duration-base) var(--motion-ease-premium),
    border-color var(--motion-duration-base) var(--motion-ease-premium);
}

body.shell-page:not(.tradez-page) .chart-shell:hover::after,
body.tradez-page .chart-shell:hover::after {
  opacity: 1;
  border-color: rgba(34, 211, 238, 0.05);
}

body.shell-page:not(.tradez-page) .status-banner.status-banner-flash,
body.tradez-page .status-banner.status-banner-flash {
  transition:
    background var(--motion-duration-base) var(--motion-ease-premium),
    border-color var(--motion-duration-base) var(--motion-ease-premium),
    color var(--motion-duration-base) var(--motion-ease-premium),
    box-shadow var(--motion-duration-base) var(--motion-ease-premium);
}

body.shell-page :where(.metric-card strong, .headline-chip strong, .chart-hud-item strong, .score-badge),
body.tradez-page :where(.metric-card strong, .headline-chip strong, .chart-hud-item strong, .score-badge) {
  transition:
    color var(--motion-duration-base) var(--motion-ease-premium),
    opacity var(--motion-duration-base) var(--motion-ease-premium),
    filter var(--motion-duration-base) var(--motion-ease-premium);
}

body.shell-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item, .panel-outlook .signal-item):has(strong:empty),
body.tradez-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item):has(strong:empty) {
  position: relative;
  overflow: hidden;
}

body.shell-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item, .panel-outlook .signal-item):has(strong:empty)::after,
body.tradez-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item):has(strong:empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: premium-shimmer 1.8s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

body.shell-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner),
body.tradez-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner) {
  position: relative;
  overflow: hidden;
}

body.shell-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner)::after,
body.tradez-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 100%);
  background-size: 220% 100%;
  animation: premium-shimmer 2.4s linear infinite;
  opacity: 0.28;
  pointer-events: none;
}

body.analysis-hub-page .shell-hero-shell {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

body.analysis-hub-page .hero-copy {
  max-width: 760px;
  align-items: center;
  text-align: center;
}

body.analysis-hub-page .hero-copy h1 {
  max-width: none;
}

body.analysis-hub-page .hero-form {
  width: min(100%, 820px);
  margin-inline: auto;
}

.token-analysis-center-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    rgba(9, 15, 25, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
}

.token-analysis-token-input {
  min-width: 0;
}

.timeframe-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.timeframe-button {
  min-height: 40px;
  min-width: 56px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
}

.timeframe-button.is-active {
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.06)),
    rgba(12, 22, 35, 0.94);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.1);
}

.token-analysis-submit {
  min-width: 132px;
}

.token-analysis-summary-tabs {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.token-analysis-summary-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.12rem;
  line-height: 1.08;
}

.token-analysis-summary-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(7, 13, 24, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.token-analysis-summary-tab {
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
}

.token-analysis-summary-tab.is-active {
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.06)),
    rgba(12, 22, 35, 0.94);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.1);
}

.token-analysis-summary-panels {
  display: grid;
}

.token-analysis-summary-panel {
  min-width: 0;
}

.research-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

@media (prefers-reduced-motion: reduce) {
  body.shell-page .app-header,
  body.tradez-page .app-header,
  body.shell-page .shell-top-shell,
  body.tradez-page .tradez-top-shell,
  body.main-shell-page .main-grid,
  body.auto-shell-page .auto-grid,
  body.arena-shell-page .arena-grid-shell,
  body.tradez-page .tradez-grid,
  body.token-analysis-page .main-grid {
    animation: none;
  }

  body.shell-page .page-tab,
  body.tradez-page .page-tab,
  body.shell-page .mini-button,
  body.tradez-page .mini-button,
  body.shell-page .token-form button,
  body.tradez-page .token-form button,
  body.shell-page .token-form input,
  body.shell-page .token-form select,
  body.tradez-page .token-form input,
  body.tradez-page .token-form select,
  .timeframe-button,
  .token-analysis-summary-tab,
  body.token-analysis-page .timeframe-button,
  body.token-analysis-page .token-analysis-summary-tab,
  body.shell-page .header-icon-button,
  body.tradez-page .header-icon-button,
  body.shell-page .feed-tab,
  body.tradez-page .feed-tab,
  body.tradez-page .tradez-symbol-button,
  body.shell-page .nav-link,
  body.tradez-page .nav-link,
  body.shell-page .metric-card,
  body.shell-page .analysis-card,
  body.shell-page .signal-item,
  body.shell-page .setup-card,
  body.tradez-page .metric-card,
  body.tradez-page .analysis-card,
  body.tradez-page .signal-item,
  body.tradez-page .setup-card,
  body.token-analysis-page .panel-outlook .signal-item,
  body.shell-page .chart-shell,
  body.tradez-page .chart-shell,
  body.shell-page .status-banner,
  body.tradez-page .status-banner {
    transition: none;
  }

  body.shell-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner)::after,
  body.tradez-page :where(#status-banner, #paper-status-banner, #arena-status-banner, #tradez-status-banner)::after,
  body.shell-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item, .panel-outlook .signal-item):has(strong:empty)::after,
  body.tradez-page :where(.metric-card, .headline-chip, .analysis-card, .signal-item, .chart-hud-item):has(strong:empty)::after {
    animation: none;
  }
}

@media (max-width: 860px) {
  .token-analysis-center-form {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .timeframe-switcher {
    justify-content: center;
  }
}

body.playground-page .playground-main {
  gap: 24px;
}

body.playground-page .playground-grid {
  display: grid;
  gap: 24px;
}

body.playground-page .playground-hero-shell,
body.playground-page .playground-panel {
  border-radius: 24px;
}

body.playground-page .playground-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: end;
}

body.playground-page .playground-hero-actions {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

body.playground-page .playground-inline-field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

body.playground-page .playground-inline-field select,
body.playground-page .playground-input {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 24, 0.86);
  color: #e2e8f0;
  padding: 0 16px;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

body.playground-page .playground-inline-field select:focus,
body.playground-page .playground-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

body.playground-page .playground-input--compact {
  min-height: 42px;
}

body.playground-page .playground-primary-button,
body.playground-page .playground-secondary-button,
body.playground-page .playground-tab,
body.playground-page .playground-icon-button {
  font: inherit;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

body.playground-page .playground-primary-button,
body.playground-page .playground-secondary-button {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}

body.playground-page .playground-primary-button {
  border: 1px solid rgba(34, 211, 238, 0.24);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.06)),
    rgba(10, 22, 34, 0.92);
  color: #ecfeff;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.14);
}

body.playground-page .playground-primary-button:hover,
body.playground-page .playground-primary-button.is-enabled {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.16);
}

body.playground-page .playground-secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 24, 0.82);
  color: #cbd5e1;
}

body.playground-page .playground-secondary-button:hover,
body.playground-page .playground-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 36, 0.94);
}

body.playground-page .playground-panel-head h2 {
  margin: 0;
}

body.playground-page .playground-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

body.playground-page .playground-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

body.playground-page .playground-tab:hover {
  color: #e2e8f0;
  background: rgba(15, 23, 36, 0.78);
}

body.playground-page .playground-tab.is-active {
  color: #ecfeff;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.04)),
    rgba(11, 22, 35, 0.94);
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 10px 22px rgba(34, 211, 238, 0.08);
}

body.playground-page .playground-content,
body.playground-page .playground-panel-stack,
body.playground-page .playground-combined-grid {
  display: grid;
  gap: 16px;
}

body.playground-page .playground-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.playground-page .playground-label,
body.playground-page .playground-inline-note,
body.playground-page .playground-dim-note,
body.playground-page .playground-position-meta span,
body.playground-page .playground-metric-label,
body.playground-page .playground-combined-label,
body.playground-page .playground-rule-title,
body.playground-page .playground-rsi-title,
body.playground-page .playground-add-title {
  color: var(--text-soft);
}

body.playground-page .playground-label,
body.playground-page .playground-metric-label,
body.playground-page .playground-combined-label,
body.playground-page .playground-rule-title,
body.playground-page .playground-rsi-title,
body.playground-page .playground-add-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.playground-page .playground-inline-note,
body.playground-page .playground-dim-note,
body.playground-page .playground-position-shape,
body.playground-page .playground-range-labels,
body.playground-page .playground-rsi-ticks {
  font-size: 0.82rem;
}

body.playground-page .playground-card-grid,
body.playground-page .playground-metric-grid {
  display: grid;
  gap: 16px;
}

body.playground-page .playground-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.playground-page .playground-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.playground-page .playground-card,
body.playground-page .playground-metric-card,
body.playground-page .playground-signal-hero,
body.playground-page .playground-rsi-card,
body.playground-page .playground-rule-card,
body.playground-page .playground-position-card,
body.playground-page .playground-add-card,
body.playground-page .playground-combined-card,
body.playground-page .playground-api-note,
body.playground-page .playground-note-card,
body.playground-page .playground-empty-state {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  background:
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(8, 14, 24, 0.95));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.18);
}

body.playground-page .playground-card,
body.playground-page .playground-signal-hero,
body.playground-page .playground-rsi-card,
body.playground-page .playground-rule-card,
body.playground-page .playground-position-card,
body.playground-page .playground-add-card,
body.playground-page .playground-combined-card,
body.playground-page .playground-api-note,
body.playground-page .playground-note-card,
body.playground-page .playground-empty-state {
  padding: 18px;
}

body.playground-page .playground-metric-card {
  padding: 16px;
}

body.playground-page .playground-card.is-hot {
  border-color: rgba(74, 222, 128, 0.22);
}

body.playground-page .playground-card-top,
body.playground-page .playground-position-head,
body.playground-page .playground-dlmm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.playground-page .playground-asset-title,
body.playground-page .playground-position-pair {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
}

body.playground-page .playground-asset-title small {
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 4px;
}

body.playground-page .playground-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 36, 0.88);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.playground-page .playground-rate-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

body.playground-page .playground-rate-line strong,
body.playground-page .playground-combined-signal,
body.playground-page .playground-signal-value,
body.playground-page .playground-dlmm-shape,
body.playground-page .playground-position-meta strong,
body.playground-page .playground-metric-card strong {
  font-family: "IBM Plex Mono", monospace;
}

body.playground-page .playground-rate-line strong {
  font-size: 1.55rem;
}

body.playground-page .playground-rate-line span,
body.playground-page .playground-meta-row,
body.playground-page .playground-combined-copy,
body.playground-page .playground-note-card,
body.playground-page .playground-api-note,
body.playground-page .playground-signal-copy {
  color: var(--text-soft);
}

body.playground-page .playground-meta-row {
  display: flex;
  gap: 12px;
  margin: 6px 0 14px;
  font-size: 0.86rem;
}

body.playground-page .playground-hist-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
}

body.playground-page .playground-hist-bar {
  flex: 1;
  min-height: 4px;
  border-radius: 4px 4px 2px 2px;
}

body.playground-page .playground-signal-hero {
  text-align: center;
}

body.playground-page .playground-signal-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.playground-page .playground-signal-copy,
body.playground-page .playground-combined-copy {
  margin: 8px 0 0;
  line-height: 1.7;
}

body.playground-page .playground-rsi-track,
body.playground-page .playground-range-track {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 36, 0.9);
}

body.playground-page .playground-rsi-track {
  height: 10px;
  border-radius: 999px;
}

body.playground-page .playground-rsi-zone {
  position: absolute;
  top: 0;
  bottom: 0;
}

body.playground-page .playground-rsi-zone.is-low {
  left: 0;
  width: 30%;
  background: rgba(74, 222, 128, 0.12);
}

body.playground-page .playground-rsi-zone.is-high {
  right: 0;
  width: 30%;
  background: rgba(248, 113, 113, 0.12);
}

body.playground-page .playground-rsi-dot,
body.playground-page .playground-range-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

body.playground-page .playground-rsi-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 23, 36, 0.94);
  background: rgba(34, 211, 238, 0.94);
}

body.playground-page .playground-rsi-ticks,
body.playground-page .playground-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.76);
}

body.playground-page .playground-rule-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #d7e2f0;
  line-height: 1.7;
}

body.playground-page .playground-position-card {
  display: grid;
  gap: 14px;
}

body.playground-page .playground-position-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.playground-page .playground-icon-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 24, 0.82);
  color: #cbd5e1;
  cursor: pointer;
}

body.playground-page .playground-range-wrap {
  display: grid;
  gap: 8px;
}

body.playground-page .playground-range-track {
  height: 10px;
  border-radius: 999px;
}

body.playground-page .playground-range-danger {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  background: rgba(248, 113, 113, 0.16);
}

body.playground-page .playground-range-danger.is-left {
  left: 0;
}

body.playground-page .playground-range-danger.is-right {
  right: 0;
}

body.playground-page .playground-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8, 14, 24, 0.9);
  background: rgba(74, 222, 128, 0.94);
}

body.playground-page .playground-position-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

body.playground-page .playground-position-meta div {
  display: grid;
  gap: 4px;
}

body.playground-page .playground-alert-copy {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: #fecaca;
  line-height: 1.6;
}

body.playground-page .playground-add-card {
  border-style: dashed;
}

body.playground-page .playground-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

body.playground-page .playground-range-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.playground-page .playground-combined-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.playground-page .playground-combined-card {
  display: grid;
  gap: 14px;
}

body.playground-page .playground-combined-signal {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.playground-page .playground-checklist {
  display: grid;
  gap: 10px;
}

body.playground-page .playground-check-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: #d7e2f0;
}

body.playground-page .playground-dlmm-head {
  align-items: center;
}

body.playground-page .playground-dlmm-range,
body.playground-page .playground-vol-pill {
  color: var(--text-soft);
}

body.playground-page .playground-vol-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 24, 0.8);
}

body.playground-page .playground-api-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
}

body.playground-page .playground-api-note span {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  align-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.playground-page .playground-empty-state {
  text-align: center;
  color: var(--text-soft);
  border-style: dashed;
}

body.playground-page .is-green {
  color: #4ade80;
}

body.playground-page .is-red {
  color: #f87171;
}

body.playground-page .is-amber {
  color: #fbbf24;
}

body.playground-page .is-muted {
  color: rgba(148, 163, 184, 0.8);
}

body.playground-page .playground-pill.is-safe,
body.playground-page .playground-range-thumb.is-safe {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.12);
}

body.playground-page .playground-pill.is-warning,
body.playground-page .playground-range-thumb.is-warning {
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.12);
}

body.playground-page .playground-pill.is-danger,
body.playground-page .playground-range-thumb.is-danger {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.12);
}

body.playground-page .playground-range-thumb.is-safe,
body.playground-page .playground-range-thumb.is-warning,
body.playground-page .playground-range-thumb.is-danger {
  color: transparent;
}

@media (max-width: 1024px) {
  body.playground-page .playground-hero-shell {
    grid-template-columns: 1fr;
  }

  body.playground-page .playground-combined-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.playground-page .playground-control-row,
  body.playground-page .playground-form-grid {
    grid-template-columns: 1fr;
  }

  body.playground-page .playground-range-field,
  body.playground-page .playground-position-head,
  body.playground-page .playground-dlmm-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.playground-page .playground-position-actions {
    justify-content: space-between;
  }
}

body.playground-page .playground-hero-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.playground-page .playground-mini-health-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(180deg, rgba(13, 23, 36, 0.96), rgba(8, 14, 24, 0.92));
}

body.playground-page .playground-mini-health-card span,
body.playground-page .playground-health-card span,
body.playground-page .playground-control-label,
body.playground-page .playground-control-note,
body.playground-page .playground-preview-grid span,
body.playground-page .playground-row-detail-body p strong,
body.playground-page .playground-preview-copy,
body.playground-page .playground-empty-card span {
  color: rgba(148, 163, 184, 0.82);
}

body.playground-page .playground-mini-health-card strong,
body.playground-page .playground-health-card strong {
  color: #f8fafc;
  font-size: 1.15rem;
}

body.playground-page .playground-mini-health-card small,
body.playground-page .playground-health-card small {
  color: rgba(148, 163, 184, 0.76);
  line-height: 1.5;
}

body.playground-page .playground-module-stack {
  display: grid;
  gap: 18px;
}

body.playground-page .playground-ops-controls,
body.playground-page .playground-section-card,
body.playground-page .playground-preview-card,
body.playground-page .playground-health-card,
body.playground-page .playground-log-item,
body.playground-page .playground-selector-results,
body.playground-page .playground-empty-card,
body.playground-page .playground-table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(8, 14, 24, 0.96));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.16);
}

body.playground-page .playground-ops-controls,
body.playground-page .playground-section-card,
body.playground-page .playground-preview-card,
body.playground-page .playground-empty-card {
  padding: 18px;
}

body.playground-page .playground-ops-controls {
  display: grid;
  gap: 14px;
}

body.playground-page .playground-field-group {
  display: grid;
  gap: 8px;
}

body.playground-page .playground-field-group--compact {
  max-width: 420px;
}

body.playground-page .playground-control-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.playground-page .playground-selector-results {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
}

body.playground-page .playground-selector-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.88);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

body.playground-page .playground-selector-option:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(11, 22, 35, 0.94);
}

body.playground-page .playground-selector-option span,
body.playground-page .playground-selector-empty,
body.playground-page .playground-control-note {
  font-size: 0.88rem;
}

body.playground-page .playground-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.playground-page .playground-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.playground-page .playground-health-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

body.playground-page .playground-performance-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

body.playground-page .playground-performance-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(9, 16, 30, 0.98), rgba(6, 11, 22, 0.96));
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(2, 8, 20, 0.28);
}

body.playground-page .playground-performance-card span {
  color: #8fa6bf;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.playground-page .playground-performance-card strong {
  color: #f8fafc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.55rem;
  line-height: 1.1;
}

body.playground-page .playground-performance-card small {
  color: #a9bacd;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.playground-page .playground-performance-card--summary {
  background:
    radial-gradient(circle at top right, rgba(84, 226, 151, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(9, 16, 30, 0.98), rgba(6, 11, 22, 0.96));
  border-color: rgba(84, 226, 151, 0.16);
}

body.playground-page .playground-metric-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.playground-page .playground-op-metric strong {
  font-family: "IBM Plex Mono", monospace;
}

body.playground-page .playground-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

body.playground-page .playground-column-stack {
  display: grid;
  gap: 18px;
}

body.playground-page .playground-preview-card {
  display: grid;
  gap: 14px;
}

body.playground-page .playground-preview-head,
body.playground-page .playground-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.playground-page .playground-preview-head h3,
body.playground-page .playground-section-head h3 {
  margin: 0;
  color: #f8fafc;
}

body.playground-page .playground-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

body.playground-page .playground-preview-grid div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

body.playground-page .playground-preview-grid strong,
body.playground-page .playground-chip,
body.playground-page .playground-pill {
  font-family: "IBM Plex Mono", monospace;
}

body.playground-page .playground-payload-preview {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.08);
  color: #d9e4f2;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow: auto;
}

body.playground-page .playground-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.playground-page .playground-chip {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(10, 22, 34, 0.82);
  color: #d8fbff;
  font-size: 0.76rem;
}

body.playground-page .playground-detail-block {
  display: grid;
  gap: 8px;
}

body.playground-page .playground-detail-block h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.92rem;
}

body.playground-page .playground-detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: #d7e2f0;
  line-height: 1.6;
}

body.playground-page .playground-table-wrap {
  overflow: auto;
}

body.playground-page .playground-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

body.playground-page .playground-table th,
body.playground-page .playground-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  text-align: left;
  vertical-align: top;
}

body.playground-page .playground-table th {
  color: rgba(148, 163, 184, 0.84);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.playground-page .playground-table td {
  color: #d7e2f0;
}

body.playground-page .playground-row-detail summary {
  cursor: pointer;
  color: #7dd3fc;
}

body.playground-page .playground-row-detail-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: #d7e2f0;
}

body.playground-page .playground-row-detail-body p {
  margin: 0;
  line-height: 1.6;
}

body.playground-page .playground-log-list {
  display: grid;
  gap: 10px;
}

body.playground-page .playground-log-item {
  display: grid;
  gap: 8px;
  padding: 14px;
}

body.playground-page .playground-log-item span {
  color: rgba(148, 163, 184, 0.84);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

body.playground-page .playground-log-item p {
  margin: 0;
  color: #d7e2f0;
  line-height: 1.6;
}

body.playground-page .playground-log-item.is-up {
  border-color: rgba(74, 222, 128, 0.18);
}

body.playground-page .playground-log-item.is-down {
  border-color: rgba(248, 113, 113, 0.18);
}

body.playground-page .playground-empty-card {
  display: grid;
  gap: 8px;
  text-align: center;
}

@media (max-width: 1180px) {
  body.playground-page .playground-module-grid {
    grid-template-columns: 1fr;
  }

  body.playground-page .playground-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.playground-page .playground-hero-health,
  body.playground-page .playground-health-grid {
    grid-template-columns: 1fr;
  }

  body.playground-page .playground-button-row {
    flex-direction: column;
  }

  body.playground-page .playground-button-row > * {
    width: 100%;
  }
}
