:root {
  --bg-0: #06101d;
  --bg-1: #09192e;
  --bg-2: #0d2240;
  --panel: rgba(8, 17, 31, 0.84);
  --panel-soft: rgba(10, 21, 39, 0.64);
  --panel-grad-start: rgba(11, 24, 44, 0.92);
  --panel-grad-end: rgba(8, 17, 31, 0.86);
  --surface-soft: rgba(8, 18, 34, 0.7);
  --input-bg: rgba(7, 16, 30, 0.94);
  --button-ghost-bg: rgba(255, 255, 255, 0.02);
  --line: rgba(94, 232, 255, 0.16);
  --line-strong: rgba(94, 232, 255, 0.4);
  --text: #e8f7ff;
  --muted: #8aa8c5;
  --accent: #5ee8ff;
  --accent-2: #7d8cff;
  --bullish: #39f0b1;
  --bearish: #ff6e92;
  --sideways: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  --bg-0: #f4f8ff;
  --bg-1: #e7f0ff;
  --bg-2: #dce7fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.82);
  --panel-grad-start: rgba(255, 255, 255, 0.98);
  --panel-grad-end: rgba(238, 244, 255, 0.96);
  --surface-soft: rgba(246, 250, 255, 0.96);
  --input-bg: rgba(255, 255, 255, 0.98);
  --button-ghost-bg: rgba(255, 255, 255, 0.74);
  --line: rgba(34, 84, 140, 0.16);
  --line-strong: rgba(34, 84, 140, 0.34);
  --text: #12243a;
  --muted: #5b7088;
  --accent: #0e88c7;
  --accent-2: #486dd9;
  --bullish: #0d8b62;
  --bearish: #c14669;
  --sideways: #9f6f00;
  --shadow: 0 24px 60px rgba(36, 77, 120, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 232, 255, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(125, 140, 255, 0.14), transparent 20%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.screen-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(94, 232, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 232, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.page-shell {
  width: min(100vw - 8px, 1780px);
  margin: 0 auto;
  padding: 20px 0 28px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.18), rgba(125, 140, 255, 0.18));
  box-shadow: var(--shadow);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand {
  display: grid;
  gap: 4px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.76rem;
}

.brand strong,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.brand strong {
  font-size: 1.2rem;
}

.nav-actions,
.inline-actions,
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
button {
  border: 1px solid var(--line);
  color: var(--text);
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.14), rgba(125, 140, 255, 0.18));
  padding: 11px 16px;
  border-radius: 14px;
  cursor: pointer;
}

.button.ghost {
  background: var(--button-ghost-bg);
}

.utility-button {
  min-width: 118px;
  justify-content: center;
}

.utility-button-strong {
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.22), rgba(125, 140, 255, 0.26));
}

.chip-toggle.active {
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.2), rgba(125, 140, 255, 0.24));
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(94, 232, 255, 0.12);
}

.hero-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-grid-public {
  grid-template-columns: 1fr;
}

.hero-banner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  padding: 0;
}

.hero-banner-full {
  position: relative;
  min-height: 420px;
  grid-template-columns: 1fr;
}

.hero-media {
  min-height: 320px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-banner-full .hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, 0.88) 0%, rgba(6, 16, 29, 0.68) 34%, rgba(6, 16, 29, 0.48) 60%, rgba(6, 16, 29, 0.75) 100%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.12) 0%, rgba(4, 10, 20, 0.52) 100%);
  z-index: 1;
}

html[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(249, 252, 255, 0.88) 0%, rgba(249, 252, 255, 0.78) 34%, rgba(249, 252, 255, 0.45) 60%, rgba(245, 249, 255, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(226, 236, 252, 0.4) 100%);
}

.hero-media.image-fallback,
.news-card.image-fallback {
  background:
    radial-gradient(circle at 70% 30%, rgba(94, 232, 255, 0.22), transparent 0 18%),
    linear-gradient(135deg, rgba(16, 40, 71, 0.95), rgba(10, 140, 168, 0.65));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.hero-copy-full {
  position: relative;
  z-index: 2;
  min-height: 420px;
  align-content: end;
  padding: 34px;
}

.hero-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 12px;
  margin-top: 6px;
}

.hero-stat {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 34, 0.48);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .hero-stat {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .hero-media {
  background: rgba(255, 255, 255, 0.72);
}

.hero-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat strong {
  font-size: 1.1rem;
}

.hero-helper {
  max-width: 52rem;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
  padding: 0;
}

.hero-dot.active {
  background: var(--accent);
}

.hero-card,
.panel,
.card,
.news-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-grad-start), var(--panel-grad-end));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card,
.panel,
.login-card {
  padding: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.92;
  max-width: 10ch;
}

.hero-title-compact {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  max-width: 8ch;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-lede {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.55;
}

.lede,
.muted,
.helper {
  color: var(--muted);
}

.status-stack,
.metric-grid,
.analysis-grid,
.signal-stack,
.news-stack,
.form-grid,
.card-grid,
.news-grid {
  display: grid;
  gap: 12px;
}

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

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

.public-news-grid {
  grid-template-columns: 1.45fr 0.75fr;
}

.layout-dashboard {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2fr) minmax(240px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.dashboard-two-column {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2.8fr);
}

.sidebar,
.workspace,
.newsbar {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.module-sidebar {
  position: sticky;
  top: 18px;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(220px, 1fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: stretch;
}

.home-command-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(260px, 1fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: stretch;
}

.home-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(94, 232, 255, 0.16), transparent 0 34%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.95), rgba(8, 17, 31, 0.88));
  display: grid;
  gap: 18px;
}

html[data-theme="light"] .home-hero-card {
  background:
    radial-gradient(circle at top right, rgba(14, 136, 199, 0.08), transparent 0 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 245, 255, 0.96));
  border-color: rgba(34, 84, 140, 0.18);
}

.home-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.home-hero-heading {
  align-items: start;
}

.home-hero-heading h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  max-width: 12ch;
}

.home-hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-status-card,
.home-diagnostics-card {
  align-content: start;
}

.home-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-metric-grid .metric-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.home-metric-grid .metric-card strong {
  font-size: 2rem;
}

.diagnostics-list {
  gap: 14px;
}

.diagnostic-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.7), rgba(8, 17, 31, 0.5));
}

html[data-theme="light"] .diagnostic-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  border-color: rgba(34, 84, 140, 0.18);
}

.diagnostic-card p {
  font-size: 1.02rem;
  line-height: 1.45;
}

.diagnostic-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(94, 232, 255, 0.08);
}

html[data-theme="light"] .diagnostic-index {
  background: rgba(14, 136, 199, 0.08);
  border-color: rgba(34, 84, 140, 0.18);
}

.overview-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.overview-card-wide {
  align-content: start;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.module-nav {
  display: grid;
  gap: 10px;
}

.module-nav-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
}

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

.panel-heading-subtle {
  align-items: flex-start;
  margin-bottom: 10px;
}

.metric-card,
.analysis-card,
.signal-card,
.news-card,
.login-hint {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 14px;
}

.metric-card strong {
  display: block;
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card .metric-subtext {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-note {
  font-size: 0.85rem;
  color: var(--muted);
}

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

.analysis-card {
  padding: 18px;
}

.analysis-card h3 {
  font-size: 1.15rem;
}

.level-row,
.key-values,
.checkbox-row {
  display: grid;
  gap: 10px;
}

.metric-block {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.key-values {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.analysis-key-values {
  gap: 14px 18px;
  padding-top: 4px;
}

.key-values strong {
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
  font-size: 0.82rem;
}

.bid-ask-pair {
  line-height: 1.55;
}

.badge,
.tiny-chip,
.level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
}

.badge.bullish,
.level-pill.positive {
  color: var(--bullish);
  background: rgba(57, 240, 177, 0.1);
  border-color: rgba(57, 240, 177, 0.24);
}

.badge.bearish,
.level-pill.negative {
  color: var(--bearish);
  background: rgba(255, 110, 146, 0.1);
  border-color: rgba(255, 110, 146, 0.24);
}

.badge.sideways,
.level-pill.sideways {
  color: var(--sideways);
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.24);
}

.level-bars {
  display: flex;
  gap: 6px;
}

.level-bars span {
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .level-bars span {
  background: rgba(34, 84, 140, 0.12);
}

.level-bars span.active.positive {
  background: linear-gradient(90deg, rgba(57, 240, 177, 0.7), rgba(94, 232, 255, 0.95));
}

.level-bars span.active.negative {
  background: linear-gradient(90deg, rgba(255, 110, 146, 0.7), rgba(255, 209, 102, 0.9));
}

.level-bars span.active.sideways {
  background: rgba(255, 209, 102, 0.7);
}

.toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.9fr) minmax(110px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid rgba(94, 232, 255, 0.28);
  border-color: var(--line-strong);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.checkbox-row {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.checkbox-row-tight {
  gap: 8px;
}

.check-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 38px;
}

html[data-theme="light"] .check-chip {
  background: rgba(255, 255, 255, 0.84);
}

.check-chip input {
  width: auto;
  margin: 0;
}

.news-card a:hover {
  color: var(--accent);
}

.news-card-visual {
  overflow: hidden;
  padding: 0;
}

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

.news-card-copy {
  padding: 14px;
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
}

.oauth-logo {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.oauth-logo svg {
  width: 20px;
  height: 20px;
  display: block;
}

.oauth-google,
.oauth-facebook {
  background: var(--button-ghost-bg);
}

.news-feature {
  align-content: start;
}

.coming-soon-card {
  display: grid;
  gap: 14px;
}

.coming-soon-visual {
  height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 30%, rgba(94, 232, 255, 0.32), transparent 0 22%),
    radial-gradient(circle at 35% 60%, rgba(125, 140, 255, 0.28), transparent 0 24%),
    linear-gradient(135deg, rgba(15, 53, 83, 0.9), rgba(18, 25, 60, 0.96));
  border: 1px solid var(--line);
}

.news-time,
.error-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.error-text {
  color: var(--bearish);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-topbar {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 5;
}

.login-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.login-layout-single {
  width: min(460px, 100%);
  grid-template-columns: 1fr;
}

html[data-theme="light"] .login-shell {
  background:
    radial-gradient(circle at 20% 18%, rgba(94, 232, 255, 0.12), transparent 0 20%),
    radial-gradient(circle at 80% 12%, rgba(125, 140, 255, 0.12), transparent 0 18%),
    linear-gradient(160deg, #f6f9ff, #ecf3ff 52%, #dde8fb);
}

.login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
}

.login-card-focused {
  padding: 28px;
}

.login-layout .login-card {
  width: 100%;
}

html[data-theme="light"] .login-card {
  border-color: rgba(34, 84, 140, 0.18);
}

.login-form {
  display: grid;
  gap: 14px;
}

.oauth-row {
  display: grid;
  gap: 10px;
}

.login-actions {
  justify-content: space-between;
}

.hidden {
  display: none;
}

.panel-compact {
  padding: 16px 18px;
}

.inline-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-select select {
  width: auto;
  min-width: 180px;
}

.tab-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-button {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .tab-button {
  background: rgba(255, 255, 255, 0.86);
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.18), rgba(125, 140, 255, 0.24));
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 rgba(94, 232, 255, 0.8);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.news-reader {
  display: grid;
}

.news-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.news-load-status {
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
}

.calendar-date-filter {
  align-items: center;
  justify-items: end;
  gap: 8px;
}

.calendar-date-filter input {
  min-width: 180px;
}

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

.indicator-hub-layout {
  display: grid;
  gap: 16px;
}

.heatmap-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.heatmap-control-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(94, 232, 255, 0.14), transparent 0 30%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.94), rgba(8, 17, 31, 0.82));
}

html[data-theme="light"] .heatmap-control-card {
  background:
    radial-gradient(circle at top right, rgba(14, 136, 199, 0.08), transparent 0 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 255, 0.96));
  border-color: rgba(34, 84, 140, 0.18);
}

.heatmap-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(180px, 0.7fr));
  gap: 12px;
  align-items: end;
}

.heatmap-control-wide {
  grid-column: span 1;
}

.symbol-picker {
  position: relative;
}

.symbol-picker-toggle {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--input-bg);
}

.symbol-picker-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.symbol-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-grad-start), var(--panel-grad-end));
  box-shadow: var(--shadow);
  padding: 12px;
}

html[data-theme="light"] .symbol-picker-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
}

.symbol-picker-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.symbol-picker-actions button {
  padding: 8px 12px;
}

.symbol-picker-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.symbol-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .symbol-check {
  background: rgba(255, 255, 255, 0.82);
}

.symbol-check input {
  width: auto;
  margin: 0;
}

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

.legend-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.legend-chip strong {
  font-size: 0.98rem;
}

.legend-chip span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-table th,
.calendar-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.calendar-table td:nth-child(5) {
  white-space: normal;
  min-width: 220px;
}

.layout-admin {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.admin-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-nav {
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .admin-nav {
  background: rgba(255, 255, 255, 0.86);
}

.admin-nav.active {
  background: linear-gradient(135deg, rgba(94, 232, 255, 0.18), rgba(125, 140, 255, 0.24));
  border-color: var(--line-strong);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.heatmap-cell {
  font-weight: 600;
  border-radius: 12px;
}

.heatmap-table th,
.heatmap-table td {
  text-align: center;
}

.heatmap-table-rich th,
.heatmap-table-rich td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.heatmap-symbol-cell {
  text-align: left !important;
  min-width: 150px;
}

.heatmap-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .heatmap-swatch {
  border-color: rgba(34, 84, 140, 0.18);
  background: rgba(34, 84, 140, 0.12);
}

html[data-theme="light"] .heatmap-swatch.positive {
  background: linear-gradient(135deg, #53e2b0, #17b889);
  border-color: rgba(20, 132, 99, 0.35);
}

html[data-theme="light"] .heatmap-swatch.negative {
  background: linear-gradient(135deg, #ff8aa7, #ea5f89);
  border-color: rgba(194, 70, 105, 0.34);
}

html[data-theme="light"] .heatmap-swatch.neutral {
  background: linear-gradient(135deg, #ffe08a, #f3bf4d);
  border-color: rgba(180, 128, 16, 0.3);
}

.heatmap-swatch.positive {
  background: rgba(57, 240, 177, 0.85);
}

.heatmap-swatch.negative {
  background: rgba(255, 110, 146, 0.85);
}

.heatmap-swatch.neutral {
  background: rgba(255, 209, 102, 0.7);
}

.heatmap-swatch.wide {
  width: 36px;
  height: 18px;
  border-radius: 999px;
}

.heatmap-swatch.confluence {
  background: linear-gradient(135deg, #ffb347, #ff8c42);
  border-color: rgba(214, 114, 35, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.2);
}

.heatmap-rich-cell {
  min-width: 112px;
}

.heatmap-cell-label {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-theme="light"] .heatmap-rich-cell .heatmap-cell-label {
  color: #59718d;
}

.heatmap-confluence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

html[data-theme="light"] .heatmap-confluence-pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(34, 84, 140, 0.18);
}

.heatmap-confluence-pill.aligned {
  color: #b85a18;
  background: rgba(255, 179, 71, 0.16);
  border-color: rgba(214, 114, 35, 0.34);
}

html[data-theme="dark"] .heatmap-confluence-pill.aligned {
  color: #ffd3a5;
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.32);
}

.heatmap-cell.positive {
  color: var(--bullish);
  background: rgba(57, 240, 177, 0.08);
}

.heatmap-cell.negative {
  color: var(--bearish);
  background: rgba(255, 110, 146, 0.08);
}

.heatmap-cell.neutral {
  color: var(--sideways);
  background: rgba(255, 209, 102, 0.08);
}

@media (max-width: 1180px) {
  .layout-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-overview,
  .home-command-grid,
  .heatmap-legend-grid {
    grid-template-columns: 1fr;
  }

  .newsbar {
    order: 3;
  }

  .layout-admin {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .analysis-grid,
  .toolbar,
  .home-metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-copy-full {
    min-height: 460px;
    padding: 26px;
  }

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

  .control-bar {
    grid-template-columns: 1fr;
  }

  .heatmap-control-grid {
    grid-template-columns: 1fr;
  }

  .symbol-picker-panel {
    position: static;
    margin-top: 8px;
  }

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

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-topbar {
    top: 16px;
    right: 16px;
  }

  .hero-title-compact {
    max-width: 12ch;
  }
}
