:root {
  --void: #0a0514;
  --deep: #12081f;
  --panel: #1a0d29;
  --panel-edge: #291442;
  --neon-cyan: #40faec;
  --neon-magenta: #ff389e;
  --neon-amber: #ffc71f;
  --neon-violet: #9e61ff;
  --text-primary: #ebf0fa;
  --text-muted: #8c85ad;
  --text-dim: #615a7a;
  --up: #33ffb8;
  --down: #ff4773;
  --surface-card: #1c0f2c;
  --surface-selected: #24143a;
  --surface-muted: #170d24;
  --page-floor: #0e0818;
  --border: rgba(64, 250, 236, 0.22);
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sidebar-width: 320px;
  --strip-height: 52px;
  --radius: 10px;
  --radius-sm: 6px;
  --chart-glow-cyan: rgba(64, 250, 236, 0.55);
  --chart-glow-magenta: rgba(255, 56, 158, 0.5);
  --chart-glow-violet: rgba(158, 97, 255, 0.48);
  --chart-glow-amber: rgba(255, 199, 31, 0.45);
  --chart-glow-up: rgba(51, 255, 184, 0.52);
  --chart-glow-down: rgba(255, 71, 115, 0.52);
  --chart-bar-up: linear-gradient(180deg, rgba(64, 250, 236, 0.95), rgba(158, 97, 255, 0.72), rgba(255, 56, 158, 0.55));
  --chart-bar-down: linear-gradient(180deg, rgba(255, 107, 131, 0.95), rgba(255, 63, 174, 0.72), rgba(126, 113, 142, 0.55));
  --chart-fill-up: linear-gradient(180deg, rgba(51, 255, 184, 0.34), rgba(64, 250, 236, 0.08), transparent);
  --chart-fill-down: linear-gradient(180deg, rgba(255, 71, 115, 0.34), rgba(255, 56, 158, 0.08), transparent);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text-primary);
  background: var(--void);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

a {
  color: var(--neon-cyan);
}

button,
input,
select {
  font: inherit;
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--void), var(--deep), #0d051f, var(--void));
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
  overflow: hidden;
}

.splash.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.splash-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
  animation: scanDrift 8s linear infinite;
}

@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

.splash-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 97, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 97, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridPulse 3s ease-in-out infinite;
}

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

.splash-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: glowFloat 6s ease-in-out infinite;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -6px) scale(1.05); }
}

.splash-glow--magenta {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 25%;
  left: 20%;
  background: rgba(255, 56, 158, 0.22);
}

.splash-glow--cyan {
  width: min(45vw, 340px);
  height: min(45vw, 340px);
  bottom: 20%;
  right: 18%;
  background: rgba(64, 250, 236, 0.12);
  animation-delay: -2s;
}

.splash-ticker {
  position: absolute;
  top: clamp(12px, 3vh, 28px);
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  opacity: 0.85;
}

.splash-ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: tickerScroll 28s linear infinite;
}

.splash-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.splash-ticker__item .up { color: var(--up); }
.splash-ticker__item .down { color: var(--down); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.splash-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
}

.splash-logo-wrap {
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  animation: logoReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.6) translateY(12px); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.splash-icon {
  width: 56px;
  height: 56px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 16px rgba(64, 250, 236, 0.45));
}

.splash-title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  animation: titleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-title__word {
  display: inline-block;
}

.splash-neon,
.brand-neon {
  color: var(--neon-cyan);
  text-shadow:
    0 0 24px rgba(64, 250, 236, 0.45),
    0 0 48px rgba(64, 250, 236, 0.15);
  animation: neonPulse 2.4s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; text-shadow: 0 0 32px rgba(64, 250, 236, 0.55), 0 0 64px rgba(64, 250, 236, 0.2); }
}

.splash-tagline {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: titleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.splash-loader {
  margin-top: 2rem;
  animation: titleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.splash-loader__bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(158, 97, 255, 0.15);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.splash-loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  box-shadow: 0 0 12px rgba(64, 250, 236, 0.45);
  transition: width 0.35s ease;
}

.splash-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  min-height: 1.2em;
}

.splash-version {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .splash-scanlines,
  .splash-grid,
  .splash-glow,
  .splash-ticker__track,
  .splash-neon,
  .splash-logo-wrap,
  .splash-title,
  .splash-tagline,
  .splash-loader {
    animation: none !important;
  }

  .splash.is-dismissed {
    transform: none;
  }
}

@keyframes marketTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Bottom market ticker */
:root {
  --ticker-height: 36px;
}

.market-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 27;
  height: var(--ticker-height);
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(158, 97, 255, 0.28);
  background: rgba(5, 2, 12, 0.94);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
}

.market-ticker__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.market-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  min-height: var(--ticker-height);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  animation: marketTickerScroll 52s linear infinite;
}

.market-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  min-width: 0;
  max-width: min(280px, 42vw);
}

.market-ticker__item:hover,
.market-ticker__item:focus-visible {
  color: var(--neon-cyan);
  outline: none;
}

.market-ticker__tag {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-ticker__item.is-up .market-ticker__tag { color: var(--up); }
.market-ticker__item.is-down .market-ticker__tag { color: var(--down); }
.market-ticker__item.is-up strong { color: var(--up); }
.market-ticker__item.is-down strong { color: var(--down); }

.market-ticker__item strong {
  color: var(--neon-cyan);
  font-weight: 800;
}

.market-ticker__meta {
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.market-ticker__sep {
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker__track {
    animation: marketTickerScroll 240s linear infinite;
  }
}

/* App shell */
.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, var(--void), var(--deep), var(--void));
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 97, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 97, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.command-strip {
  position: relative;
  z-index: 2;
  min-height: var(--strip-height);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: rgba(18, 8, 31, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.command-strip__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.command-strip__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.session-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 199, 31, 0.35);
  color: var(--neon-amber);
  background: rgba(255, 199, 31, 0.08);
}

.session-badge.is-open {
  border-color: rgba(51, 255, 184, 0.35);
  color: var(--up);
  background: rgba(51, 255, 184, 0.08);
}

.session-badge.is-closed {
  border-color: rgba(140, 133, 173, 0.35);
  color: var(--text-muted);
  background: rgba(140, 133, 173, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: rgba(64, 250, 236, 0.08);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: rgba(64, 250, 236, 0.12);
  border-color: rgba(64, 250, 236, 0.45);
  color: var(--neon-cyan);
}

.btn--primary:hover:not(:disabled) {
  background: rgba(64, 250, 236, 0.2);
}

.btn--ghost {
  border-color: rgba(64, 250, 236, 0.18);
  color: var(--neon-cyan);
}

.btn--icon {
  padding: 0.45rem;
}

.layout {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.main-column {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-pane[data-pane="portfolio"] {
  display: grid;
  grid-template-rows: minmax(180px, 38%) 1fr;
}

.scroll-pane {
  overflow: auto;
  padding: 0.85rem 1rem 1.25rem;
}

.movers-panel {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 8, 24, 0.6);
}

.detail-pane {
  background: var(--page-floor);
}

.command-strip__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: var(--strip-height);
  padding: 0 1rem;
}

.buzz-scan-countdown {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-magenta);
  white-space: nowrap;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 63, 174, 0.28);
  background: rgba(255, 63, 174, 0.08);
}

.buzz-scan-countdown.hidden {
  display: none;
}

.buzz-add-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.45rem 1rem;
  border-top: 1px solid rgba(255, 63, 174, 0.22);
  background: linear-gradient(90deg, rgba(255, 63, 174, 0.12), rgba(0, 229, 255, 0.08));
}

.buzz-add-banner.hidden {
  display: none;
}

.buzz-add-banner__content {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.buzz-add-banner__content strong {
  color: var(--text);
  font-size: 0.78rem;
}

.buzz-add-banner__content span {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-size: 0.76rem;
}

.buzz-add-banner__content small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.buzz-add-banner__dismiss {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.buzz-add-banner__dismiss:hover {
  color: var(--text);
}

.context-line {
  margin: 0;
  padding: 0 1rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.session-detail {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 120px;
}

.pane-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(23, 13, 36, 0.9);
  border: 1px solid var(--border);
}

.pane-tab {
  border: none;
  border-radius: 9px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  background: rgba(26, 13, 41, 0.6);
}

.pane-tab.is-active {
  background: rgba(64, 250, 236, 0.94);
  color: var(--void);
}

.sidebar-controls, .sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.5rem;
}

.sidebar-search {
  margin: 0 0.75rem 0.5rem;
  width: calc(100% - 1.5rem);
}

.search-results {
  margin: 0 0.75rem 0.5rem;
  display: grid;
  gap: 0.25rem;
  max-height: 120px;
  overflow: auto;
}

.search-hit {
  text-align: left;
  border: 1px solid rgba(64, 250, 236, 0.15);
  background: var(--surface-card);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.panel-section {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(158, 97, 255, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.muted { color: var(--text-dim); font-size: 0.82rem; }

.spotlight-card, .mover-btn, .calendar-row {
  border: 1px solid rgba(64, 250, 236, 0.15);
  background: var(--surface-card);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  color: var(--text-primary);
}

.mover-btn, .calendar-row {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.35rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 199, 31, 0.15);
  color: var(--neon-amber);
  margin-right: 0.25rem;
}

.pf-badge { font-size: 0.75rem; margin-left: 0.25rem; }

/* macOS-style two-column stock rows */
.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.stock-row__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.stock-row__symbol {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stock-row__name {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.stock-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.change-with-arrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}

.change-with-arrow.is-up { color: var(--up); }
.change-with-arrow.is-down { color: var(--down); }
.change-with-arrow.is-flat { color: var(--text-dim); }

.change-arrow {
  display: inline-block;
  margin-right: 2px;
}

.stock-row__buzz,
.buzz-line {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.buzz-line--up { color: var(--up); }
.buzz-line--down { color: var(--down); }

.correlation-readout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(41, 244, 232, 0.14);
}

.correlation-readout__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.correlation-readout__value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.correlation-readout__sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.correlation-readout--is-up .correlation-readout__value { color: var(--up); }
.correlation-readout--is-down .correlation-readout__value { color: var(--down); }
.correlation-readout--is-cyan .correlation-readout__value { color: var(--neon-cyan); }
.correlation-readout--is-flat .correlation-readout__value { color: var(--text-dim); }

.watchlist-row__meta, .watchlist-row__sector {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.watchlist--heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}

.hm-tile {
  border-radius: 8px;
  padding: 0.45rem 0.35rem;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hm-tile span,
.hm-tile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-tile strong {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hm-up,
.hm-up-strong {
  color: #d8ffea;
}

.hm-down,
.hm-down-strong {
  color: #ffe0e8;
}

.hm-flat {
  color: var(--text-muted);
}

.hm-up { background: rgba(51, 255, 184, 0.15); }
.hm-up-strong { background: rgba(51, 255, 184, 0.35); }
.hm-down { background: rgba(255, 71, 115, 0.15); }
.hm-down-strong { background: rgba(255, 71, 115, 0.35); }
.hm-flat { background: rgba(140, 133, 173, 0.12); }
.hm-tile.is-selected { border-color: var(--neon-cyan); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.radar-canvas, #price-chart {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.radar-canvas {
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 154, 60, 0.05) 0 24%, transparent 25%),
    rgba(7, 2, 15, 0.48);
  box-shadow: inset 0 0 40px rgba(158, 97, 255, 0.06);
}

.radar-detail, .detail-background, .reddit-panel, .earnings-body {
  padding: 0.75rem 1rem 1.25rem;
}

.ape-row { font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 0.35rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th, td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(140, 133, 173, 0.15);
  text-align: left;
}

.reddit-post {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 133, 173, 0.12);
}

.btn--sm { font-size: 0.72rem; padding: 0.3rem 0.5rem; }

.dialog__body--scroll {
  max-height: 60vh;
  overflow: auto;
}

.dialog__body section {
  margin-bottom: 1rem;
}

.glass-mode .sidebar,
.glass-mode .command-strip,
.glass-mode .movers-panel {
  backdrop-filter: blur(14px);
  background: rgba(18, 8, 31, 0.72);
}

.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.chart-ranges,
.chart-modes { display: flex; gap: 0.35rem; }

.chart-section {
  padding: 0.75rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(64, 250, 236, 0.06), transparent 58%),
    rgba(7, 2, 15, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#price-chart {
  width: 100%;
  border-radius: 12px;
  background: rgba(7, 2, 15, 0.55);
  box-shadow: inset 0 0 32px rgba(64, 250, 236, 0.04);
}

.cal-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-right: 0.5rem; }
.cal-kind { font-size: 0.68rem; color: var(--neon-amber); margin-right: 0.5rem; }

.btn.is-active { background: rgba(64, 250, 236, 0.2); }


.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(18, 8, 31, 0.88);
  border-right: 1px solid var(--border);
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.5rem;
}

.section-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--neon-cyan);
}

.select,
.input {
  width: 100%;
  border: 1px solid rgba(64, 250, 236, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(26, 13, 41, 0.95);
  color: var(--text-primary);
  padding: 0.55rem 0.65rem;
  outline: none;
}

.select:focus,
.input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(64, 250, 236, 0.12);
}

.add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0 0.85rem 0.75rem;
}

#symbol-input {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.status-strip {
  margin: 0 0.85rem 0.5rem;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-amber);
  background: rgba(255, 199, 31, 0.08);
  border: 1px solid rgba(255, 199, 31, 0.25);
  border-radius: var(--radius-sm);
}

.watchlist {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.55rem 0.85rem;
  overflow: auto;
  flex: 1;
}

.watchlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  min-width: 0;
}

.watchlist-row:hover {
  background: rgba(28, 15, 44, 0.85);
}

.watchlist-row.is-selected {
  background: var(--surface-selected);
  border-color: rgba(64, 250, 236, 0.35);
}

.watchlist-row__symbol {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.watchlist-row__price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.watchlist-row__change {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 4.25rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.watchlist-row .sparkline {
  display: block;
  width: 64px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px var(--chart-glow-up));
}

.watchlist-row__change.is-up { color: var(--up); }
.watchlist-row__change.is-down { color: var(--down); }
.watchlist-row__change.is-flat { color: var(--text-dim); }

.watchlist-row__remove {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0.15rem 0.35rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease, color 0.12s ease;
}

.watchlist-row:hover .watchlist-row__remove,
.watchlist-row:focus-within .watchlist-row__remove {
  opacity: 1;
}

.watchlist-row__remove:hover {
  color: var(--down);
}

.sidebar-empty {
  margin: 1rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 2rem;
  color: var(--text-dim);
  text-align: center;
}

.detail-content {
  padding: 1.25rem 1.5rem 2rem;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.detail-symbol {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
}

.detail-company {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.detail-price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  text-align: right;
}

.detail-change {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: right;
}

.detail-change.is-up { color: var(--up); }
.detail-change.is-down { color: var(--down); }
.detail-change.is-flat { color: var(--text-dim); }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(41, 244, 232, 0.22);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(41, 244, 232, 0.08);
  font: 800 0.76rem var(--font-ui);
  text-decoration: none;
  cursor: pointer;
}

.detail-actions a:first-child {
  color: #061414;
  background: linear-gradient(180deg, rgba(92, 255, 244, 0.95), rgba(41, 244, 232, 0.78));
  border-color: rgba(41, 244, 232, 0.55);
}

.why-card {
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(41, 244, 232, 0.055);
  border: 1px solid rgba(41, 244, 232, 0.16);
}

.why-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.why-card h3 {
  margin: 0;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.why-card header span,
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.why-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.quote-stat {
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid rgba(158, 97, 255, 0.18);
}

.quote-stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.quote-stat strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.news-section {
  margin-top: 0.5rem;
}

.news-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.news-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid rgba(64, 250, 236, 0.12);
}

.news-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-item a:hover {
  color: var(--neon-cyan);
}

.news-item__headline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.news-item__meta {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.news-empty {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(480px, calc(100vw - 2rem));
}

.dialog::backdrop {
  background: rgba(4, 2, 8, 0.72);
  backdrop-filter: blur(4px);
}

.dialog__panel {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(64, 250, 236, 0.28);
  background: linear-gradient(180deg, var(--panel), var(--deep));
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.dialog__header,
.dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.dialog__header {
  border-bottom: 1px solid rgba(64, 250, 236, 0.12);
}

.dialog__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.dialog__body {
  padding: 1rem 1.1rem;
}

.dialog__footer {
  border-top: 1px solid rgba(64, 250, 236, 0.12);
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.field-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.settings-message {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-amber);
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38vh) 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .detail-header {
    flex-direction: column;
  }

  .detail-price,
  .detail-change {
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --sidebar-width: 100%;
  }

  .command-strip__actions .btn--ghost:not(.btn--icon) span,
  .command-strip__actions .btn--ghost:not(.btn--icon) {
    font-size: 0;
    gap: 0;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

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

.public-mode .owner-only { display: none !important; }

.watchlist-caption {
  margin: 0 0.75rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

body:not(.public-mode) .watchlist-caption { display: none; }

/* MarketNeon web glass refresh */
:root {
  --void: #07020f;
  --deep: #10051f;
  --panel: rgba(20, 16, 34, 0.72);
  --panel-edge: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(26, 24, 42, 0.72);
  --surface-selected: rgba(41, 244, 232, 0.12);
  --surface-muted: rgba(12, 8, 20, 0.74);
  --neon-cyan: #29f4e8;
  --neon-magenta: #ff3fae;
  --neon-amber: #ffc536;
  --up: #65f58a;
  --down: #ff6b83;
  --text-primary: #f7f4ff;
  --text-muted: #b8adc9;
  --text-dim: #9a8fad;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 344px;
  --strip-height: 52px;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(41, 244, 232, 0.12), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(255, 63, 174, 0.12), transparent 32%),
    linear-gradient(135deg, #07020f 0%, #10051f 48%, #06020d 100%);
}

.app::before {
  opacity: 0.26;
  background-size: 42px 42px;
}

.command-strip {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: auto;
  min-height: var(--strip-height);
  padding: 10px 16px 9px;
  background: rgba(9, 5, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px) saturate(145%);
}

.command-strip__top {
  width: 100%;
  gap: 12px;
  flex-wrap: nowrap;
}

.window-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0;
}

.window-brand strong {
  font-size: 0.92rem;
}

.window-brand strong span {
  color: var(--neon-cyan);
}

.pane-tabs {
  flex: 1;
  min-width: 0;
  gap: 7px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(22, 18, 34, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pane-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.pane-tab__icon {
  color: var(--text-dim);
  font-weight: 900;
}

.pane-tab.is-active {
  color: #051213;
  background: linear-gradient(180deg, rgba(92, 255, 244, 0.96), rgba(41, 244, 232, 0.82));
  border-color: rgba(41, 244, 232, 0.72);
  box-shadow: 0 0 30px rgba(41, 244, 232, 0.16);
}

.pane-tab.is-active .pane-tab__icon {
  color: #051213;
}

.session-badge {
  border-color: rgba(158, 97, 255, 0.52);
  color: var(--text-muted);
  background: rgba(34, 18, 58, 0.72);
}

.session-detail {
  flex: 0 1 auto;
  min-width: 150px;
}

.context-line {
  padding: 6px 2px 0;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-actions button,
.quick-actions a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  font: 800 0.75rem var(--font-ui);
  text-decoration: none;
  cursor: pointer;
}

.quick-actions button:hover,
.quick-actions a:hover,
.quick-actions button.is-active {
  color: var(--neon-cyan);
  border-color: rgba(41, 244, 232, 0.3);
  background: rgba(41, 244, 232, 0.1);
}

.quick-actions strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.quote-legend {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  font: 800 0.7rem var(--font-ui);
}

.quote-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.quote-legend .is-live { background: var(--neon-cyan); }
.quote-legend .is-cached { background: var(--neon-amber); }
.quote-legend .is-stale { background: var(--down); }

.layout {
  gap: 18px;
  padding: 18px;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar-collapsed .layout {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
  display: none;
}

.sidebar,
.movers-panel,
.detail-pane,
.toolbar,
.reddit-panel,
.earnings-body,
.radar-detail {
  background: rgba(18, 16, 32, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.sidebar {
  overflow: hidden;
  border-radius: 24px;
}

.main-pane[data-pane="portfolio"] {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.82fr);
  grid-template-rows: 1fr;
  gap: 18px;
}

.movers-panel,
.detail-pane {
  border-radius: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scroll-pane {
  padding: 22px;
}

.sidebar__header {
  padding: 22px 22px 12px;
}

.sidebar-controls,
.sidebar-actions {
  padding: 0 18px 10px;
}

.select,
.input {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 6, 18, 0.62);
}

.watchlist-caption {
  margin: 0 18px 12px;
}

.watchlist {
  padding: 4px 12px 18px;
}

.watchlist-row {
  gap: 6px 12px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.045);
}

.watchlist-row:hover {
  background: rgba(38, 28, 58, 0.78);
  border-color: rgba(41, 244, 232, 0.18);
}

.watchlist-row.is-selected {
  background: rgba(41, 244, 232, 0.12);
  border-color: rgba(41, 244, 232, 0.56);
  box-shadow: inset 3px 0 0 var(--neon-cyan), 0 0 32px rgba(41, 244, 232, 0.08);
}

.watchlist-row .stock-row__symbol,
.watchlist-row__symbol {
  color: var(--neon-cyan);
  font-size: 1.02rem;
}

.watchlist-row__meta,
.watchlist-row__sector {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(41, 244, 232, 0.11);
}

.buy-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.buy-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.quote-health {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(41, 244, 232, 0.1);
  border: 1px solid rgba(41, 244, 232, 0.28);
}

.quote-health.has-error {
  background: rgba(255, 197, 54, 0.1);
  border-color: rgba(255, 197, 54, 0.3);
}

.pulse-dot {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(41, 244, 232, 0.62);
}

.quote-health small {
  grid-column: 2;
  color: var(--text-muted);
}

.market-pulse-hero,
.section-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pulse-tile,
.section-summary article {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.pulse-tile span,
.section-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.pulse-tile strong,
.section-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.08rem;
}

.pulse-tile b,
.section-summary b {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pulse-tile--up { border-color: rgba(101, 245, 138, 0.2); }
.pulse-tile--up b,
.section-summary .is-up { color: var(--up); }
.pulse-tile--down { border-color: rgba(255, 107, 131, 0.2); }
.pulse-tile--down b,
.section-summary .is-down { color: var(--down); }
.pulse-tile--buzz { border-color: rgba(255, 63, 174, 0.24); }
.pulse-tile--buzz b { color: var(--neon-magenta); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.kpi-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 116px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: var(--neon-cyan);
  background: rgba(41, 244, 232, 0.12);
}

.kpi-card--magenta .kpi-icon { color: var(--neon-magenta); background: rgba(255, 63, 174, 0.14); }
.kpi-card--green .kpi-icon { color: var(--up); background: rgba(101, 245, 138, 0.12); }
.kpi-card--blue .kpi-icon { color: #8db7ff; background: rgba(141, 183, 255, 0.12); }

.kpi-card span,
.kpi-card small {
  display: block;
  color: var(--text-muted);
}

.kpi-card strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 1.26rem;
  color: var(--text-primary);
}

.ideas-section {
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0;
  font-size: 1.18rem;
}

.section-heading p {
  margin: 4px 0 0;
}

.section-heading > span {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

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

.idea-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  min-height: 220px;
  text-align: left;
  color: var(--text-primary);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(28, 26, 44, 0.72);
  cursor: pointer;
}

.idea-card:hover {
  border-color: rgba(41, 244, 232, 0.42);
  background: rgba(38, 28, 58, 0.82);
}

.idea-card.is-up { box-shadow: inset 0 2px 0 rgba(101, 245, 138, 0.44); }
.idea-card.is-down { box-shadow: inset 0 2px 0 rgba(255, 107, 131, 0.44); }

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(41, 244, 232, 0.12);
  border: 1px solid rgba(41, 244, 232, 0.2);
  font-weight: 900;
}

.idea-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.idea-card .avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.idea-card__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.idea-card__title strong {
  color: var(--text-primary);
  font-size: 1.06rem;
}

.idea-card__score {
  flex-shrink: 0;
  color: var(--neon-cyan);
  font-style: normal;
  font-weight: 900;
  font-family: var(--font-mono);
}

.idea-card__name {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.idea-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
}

.idea-card__chart {
  min-height: 36px;
  width: 100%;
}

.idea-card__buzz,
.idea-card__reason {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
}

.idea-card__reason {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idea-card__buzz {
  color: var(--neon-magenta);
}

.idea-card__metrics span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.idea-card__metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
}

.idea-card.is-up .idea-card__metrics span:last-child strong { color: var(--up); }
.idea-card.is-down .idea-card__metrics span:last-child strong { color: var(--down); }

.idea-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-chip {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.signal-chip--cyan { color: var(--neon-cyan); background: rgba(41, 244, 232, 0.09); }
.signal-chip--magenta { color: var(--neon-magenta); background: rgba(255, 63, 174, 0.1); }
.signal-chip--green { color: var(--up); background: rgba(101, 245, 138, 0.09); }
.signal-chip--gold { color: var(--neon-amber); background: rgba(255, 197, 54, 0.1); }

.compare-action {
  color: var(--neon-cyan);
  cursor: pointer;
}

.compare-action:hover {
  text-decoration: underline;
}

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

.trend-baskets-section {
  scroll-margin-top: 140px;
  margin-bottom: 24px;
}

.trend-basket-chart {
  min-height: 0;
}

.trend-basket-chart__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trend-basket-chart__header h3 {
  margin: 0;
}

.trend-basket-chart__header p {
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.trend-basket-chart__menu {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.trend-basket-chart__menu:hover {
  color: var(--neon-cyan);
  border-color: rgba(41, 244, 232, 0.22);
}

.trend-vbars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 210px;
  padding: 10px 8px 6px;
  border-radius: 16px;
  background: rgba(7, 2, 15, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trend-vbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: var(--h);
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 12px 12px 5px 5px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trend-vbar:hover {
  box-shadow: 0 0 18px var(--chart-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.trend-vbar__stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.trend-vbar__seg {
  min-height: 0;
}

.trend-vbar__seg--price {
  flex: var(--price);
  background: var(--chart-bar-up);
  box-shadow: 0 -2px 14px var(--chart-glow-cyan);
}

.trend-vbar__seg--buzz {
  flex: var(--buzz);
  background: linear-gradient(180deg, rgba(158, 97, 255, 0.96), rgba(255, 63, 174, 0.72));
  box-shadow: 0 -2px 14px var(--chart-glow-violet);
}

.trend-vbar.is-down .trend-vbar__seg--price {
  background: var(--chart-bar-down);
  box-shadow: 0 -2px 14px var(--chart-glow-down);
}

.trend-vbar__label {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: calc(100% - 10px);
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.62);
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-vbar__label--compact {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

.trend-basket-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.trend-basket-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trend-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.trend-legend-dot--price {
  background: rgba(41, 244, 232, 0.88);
  box-shadow: 0 0 8px rgba(41, 244, 232, 0.35);
}

.trend-legend-dot--buzz {
  background: rgba(158, 97, 255, 0.92);
  box-shadow: 0 0 8px rgba(158, 97, 255, 0.35);
}

.dialog--wide {
  max-width: min(920px, calc(100vw - 1.5rem));
}

.dialog__subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.sector-explore-body {
  display: grid;
  gap: 16px;
}

.sector-explore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.sector-chip strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.sector-chip span {
  font-size: 0.72rem;
  font-weight: 700;
}

.sector-chip.is-active {
  border-color: rgba(64, 250, 236, 0.42);
  background: rgba(64, 250, 236, 0.1);
  box-shadow: 0 0 18px rgba(64, 250, 236, 0.12);
}

.sector-explore-hero {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 154, 60, 0.06), transparent 42%),
    rgba(7, 2, 15, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sector-explore-legend h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.sector-explore-legend .muted {
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.sector-legend-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sector-legend-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-legend-list li.is-active {
  border-color: rgba(64, 250, 236, 0.28);
  background: rgba(64, 250, 236, 0.06);
}

.sector-legend-list i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot);
  box-shadow: 0 0 10px color-mix(in srgb, var(--dot) 55%, transparent);
}

.sector-legend-list strong {
  display: block;
  font-size: 0.82rem;
}

.sector-legend-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sector-legend-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sector-legend-metrics article {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-legend-metrics span {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sector-legend-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.sector-explore-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.sector-radar-canvas {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 154, 60, 0.05) 0 24%, transparent 25%),
    rgba(7, 2, 15, 0.55);
  box-shadow: inset 0 0 40px rgba(158, 97, 255, 0.06);
}

.sector-explore-detail {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sector-explore-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sector-explore-detail__header h3 {
  margin: 0;
}

.sector-explore-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-explore-kpis article {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-explore-kpis span {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
}

.sector-explore-kpis strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.sector-stock-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-stock-table {
  margin: 0;
  font-size: 0.76rem;
}

.sector-stock-table th {
  position: sticky;
  top: 0;
  background: rgba(10, 5, 20, 0.92);
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sector-stock-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--neon-cyan);
  font-weight: 700;
  cursor: pointer;
}

.sector-stock-link:hover {
  text-decoration: underline;
}

.sector-private-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .sector-explore-hero {
    grid-template-columns: 1fr;
  }

  .sector-explore-chart-wrap {
    min-height: 220px;
  }

  .sector-explore-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sector-chip {
    flex: 0 0 auto;
  }
}

.glass-list {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-list--up { border-color: rgba(101, 245, 138, 0.18); }
.glass-list--down { border-color: rgba(255, 107, 131, 0.18); }

.mover-btn,
.calendar-row,
.spotlight-card {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.detail-content {
  padding: 22px;
}

.detail-header,
.quote-grid,
.chart-section,
.news-section,
.detail-background {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header {
  margin-bottom: 14px;
}

.detail-symbol,
.detail-price {
  letter-spacing: 0;
}

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

.quote-stat {
  background: transparent;
}

.toolbar {
  margin: 0 0 14px;
  border-radius: 20px;
}

#social-table table {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(18, 16, 32, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--text-muted);
}

td button {
  border: none;
  color: var(--neon-cyan);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.page-shell {
  border-radius: 24px;
  background: rgba(18, 16, 32, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 0.96;
}

.page-hero p {
  margin: 8px 0 0;
}

.hero-metric {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(41, 244, 232, 0.1);
  border: 1px solid rgba(41, 244, 232, 0.22);
}

.hero-metric span,
.portfolio-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.hero-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  color: var(--neon-cyan);
}

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

.mover-scanner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(41, 244, 232, 0.09), rgba(255, 63, 174, 0.04));
  border: 1px solid rgba(41, 244, 232, 0.16);
}

.scanner-chips,
.scanner-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.scanner-chips button {
  min-height: 32px;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 900;
  cursor: pointer;
}

.scanner-chips button.is-active {
  color: #061414;
  background: var(--neon-cyan);
}

.scanner-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.scanner-controls select {
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 10px;
}

.mover-range-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.range-tab {
  display: grid;
  gap: 4px;
  min-height: 54px;
  border: none;
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.range-tab strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.range-tab span {
  font-size: 0.66rem;
}

.range-tab.is-active {
  background: var(--neon-magenta);
  color: #16030f;
  box-shadow: 0 0 26px rgba(255, 63, 174, 0.24);
}

.range-tab.is-active strong,
.range-tab.is-active span {
  color: #16030f;
}

.mover-feature {
  min-height: 430px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.07), transparent 40%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mover-feature--up {
  border-color: rgba(101, 245, 138, 0.24);
}

.mover-feature--down {
  border-color: rgba(255, 107, 131, 0.24);
}

.mover-feature header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mover-feature h2 {
  margin: 0;
  flex: 1;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.mover-feature header strong {
  color: var(--up);
  font-size: 0.95rem;
}

.mover-feature--down header strong {
  color: var(--down);
}

.mover-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--up);
  box-shadow: 0 0 18px rgba(101, 245, 138, 0.42);
}

.mover-feature--down .mover-dot {
  background: var(--down);
  box-shadow: 0 0 18px rgba(255, 107, 131, 0.38);
}

.mover-orbit {
  position: relative;
  min-height: 250px;
  margin: 4px auto 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 26%, transparent 27%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(255, 255, 255, 0.035) 43% 44%, transparent 45%),
    rgba(7, 2, 15, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mover-orbit::before,
.mover-orbit::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.mover-orbit::after {
  inset: 70px;
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(7, 2, 15, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 45px rgba(0, 0, 0, 0.38);
}

.orbit-core strong {
  align-self: end;
  color: var(--text-primary);
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  line-height: 1;
}

.orbit-core span {
  align-self: start;
  color: var(--text-muted);
  font-weight: 900;
}

.orbit-segment {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: calc(88px * var(--scale));
  min-width: 34px;
  height: 28px;
  border: none;
  border-radius: 999px 8px 8px 999px;
  background: linear-gradient(90deg, rgba(101, 245, 138, 0.9), rgba(41, 244, 232, 0.5));
  transform-origin: left center;
  transform: rotate(var(--angle)) translateX(52px);
  cursor: pointer;
}

.mover-feature--down .orbit-segment {
  background: linear-gradient(90deg, rgba(255, 107, 131, 0.92), rgba(255, 63, 174, 0.48));
}

.orbit-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  border: 1px solid rgba(41, 244, 232, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--neon-cyan);
  background: rgba(7, 2, 15, 0.78);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-104px) rotate(var(--angle-neg));
  cursor: pointer;
}

.mover-feature--up .orbit-chip {
  color: var(--up);
  border-color: rgba(101, 245, 138, 0.28);
}

.mover-feature--down .orbit-chip {
  color: var(--down);
  border-color: rgba(255, 107, 131, 0.3);
}

.mover-feature__range {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.radial-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  align-items: end;
  gap: 9px;
  min-height: 190px;
  padding: 28px 10px 10px;
  border-radius: 22px;
  background: rgba(7, 2, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.radial-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--h);
  min-height: 28px;
  border: none;
  border-radius: 16px 16px 7px 7px;
  color: #061414;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(101, 245, 138, 0.96), rgba(41, 244, 232, 0.72));
}

.mover-feature--down .radial-bar {
  align-items: flex-start;
  border-radius: 7px 7px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 107, 131, 0.96), rgba(255, 63, 174, 0.58));
}

.radial-bar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 0;
  font-size: 0.64rem;
  font-weight: 900;
}

.mover-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mover-row,
.mover-list-row,
.direction-bar-row,
.alignment-row,
.alpha-row,
.social-mover-row {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 9px 10px;
  margin-top: 6px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mover-row:hover,
.mover-list-row:hover,
.direction-bar-row:hover,
.alignment-row:hover,
.alpha-row:hover,
.social-mover-row:hover,
.social-divergence-list .stock-row:hover {
  background: rgba(41, 244, 232, 0.09);
}

.mover-stack button,
.mover-row,
.holding-card {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.mover-stack button {
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.82rem;
}

.mover-stack span,
.mover-row b,
.holding-card__change {
  color: var(--up);
  font-weight: 900;
  font-size: 0.88rem;
}

.mover-feature--down .mover-stack span,
.mover-row--down b,
.holding-card.is-down .holding-card__change {
  color: var(--down);
}

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

.mover-row {
  padding: 11px 12px;
  margin-top: 8px;
  border-radius: 16px;
  font-size: 0.82rem;
}

.direction-bars button,
.alignment-list button,
.alpha-column button,
.social-divergence-list .stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.alignment-list {
  display: grid;
  gap: 6px;
}

.alignment-row {
  box-shadow: inset 3px 0 0 rgba(41, 244, 232, 0.72);
}

.social-divergence-list {
  display: grid;
  gap: 6px;
}

.social-divergence-list .is-divergent {
  box-shadow: inset 3px 0 0 rgba(255, 180, 80, 0.72);
}

.social-divergence-list .is-aligned {
  box-shadow: inset 3px 0 0 rgba(101, 245, 138, 0.72);
}

.mover-row small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 10px;
  min-width: min(440px, 100%);
}

.portfolio-summary div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 1rem;
}

.portfolio-summary .is-up,
.holding-card.is-up .holding-card__change {
  color: var(--up);
}

.portfolio-summary .is-down {
  color: var(--down);
}

.portfolio-hero {
  margin-bottom: 14px;
}

.portfolio-accordion {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.78rem;
}

.portfolio-accordion summary strong {
  color: var(--neon-amber);
}

.portfolio-accordion p {
  margin: 10px 0 0;
}

.portfolio-lift-drag {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.portfolio-spotlight {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-spotlight--up {
  border-color: rgba(101, 245, 138, 0.44);
  box-shadow: inset 2px 0 0 rgba(101, 245, 138, 0.68);
}

.portfolio-spotlight--down {
  border-color: rgba(255, 107, 131, 0.44);
  box-shadow: inset 2px 0 0 rgba(255, 107, 131, 0.68);
}

.portfolio-spotlight h3,
.portfolio-social-strip h3,
.portfolio-move-brief h3,
.portfolio-rank-grid h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.portfolio-spotlight--up h3 { color: var(--up); }
.portfolio-spotlight--down h3 { color: var(--down); }

.portfolio-spotlight p,
.portfolio-social-strip p {
  margin: 6px 0 12px;
  color: var(--text-muted);
}

.portfolio-spotlight button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  background: rgba(7, 2, 15, 0.44);
  cursor: pointer;
  font-size: 0.82rem;
}

.portfolio-spotlight strong {
  color: var(--text-primary);
}

.portfolio-spotlight em,
.portfolio-rank-table em,
.portfolio-why-row em {
  color: var(--neon-amber);
  font-style: normal;
}

.portfolio-spotlight--up b { color: var(--up); }
.portfolio-spotlight--down b { color: var(--down); }

.portfolio-social-strip,
.portfolio-move-brief,
.portfolio-rank-grid > div {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-social-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) 1fr;
  gap: 14px;
}

.portfolio-social-strip h3 {
  color: var(--neon-magenta);
}

.portfolio-social-strip h3 span {
  display: inline-block;
  width: 5px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--neon-magenta);
}

.portfolio-social-strip__rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.portfolio-social-strip__rows button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  color: var(--text-primary);
  background: rgba(255, 63, 174, 0.08);
  cursor: pointer;
  font-size: 0.82rem;
}

.portfolio-social-strip__rows span {
  color: var(--up);
  font-weight: 900;
}

.portfolio-social-strip__rows small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.portfolio-move-brief {
  border-color: rgba(255, 197, 54, 0.26);
  box-shadow: inset 2px 0 0 rgba(255, 197, 54, 0.72);
}

.portfolio-move-brief header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.portfolio-move-brief h3 {
  color: var(--neon-amber);
}

.portfolio-move-brief header span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.portfolio-why-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  background: rgba(7, 2, 15, 0.38);
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
}

.portfolio-why-row strong {
  display: grid;
  gap: 3px;
}

.portfolio-why-row span {
  color: var(--up);
}

.portfolio-why-row.is-down span {
  color: var(--down);
}

.portfolio-why-row small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

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

.portfolio-rank-grid h3 {
  margin-bottom: 10px;
}

.portfolio-rank-table {
  display: grid;
  gap: 6px;
}

.portfolio-rank-table button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
}

.portfolio-rank-table button:hover {
  background: rgba(255, 255, 255, 0.045);
}

.portfolio-rank-table span {
  color: var(--text-muted);
}

.portfolio-rank-table--up b {
  color: var(--up);
}

.portfolio-rank-table--down b {
  color: var(--down);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.portfolio-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.holding-card {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.holding-card:hover {
  border-color: rgba(41, 244, 232, 0.32);
  background: rgba(38, 28, 58, 0.82);
}

.holding-card__main strong {
  display: block;
  color: var(--neon-cyan);
  font-size: 0.88rem;
}

.holding-card__main em {
  color: var(--neon-amber);
  font-style: normal;
}

.holding-card__main small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holding-card__price {
  font-weight: 900;
  font-size: 0.85rem;
}

.holding-card__tag {
  grid-column: 2 / -1;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--neon-magenta);
  background: rgba(255, 63, 174, 0.12);
  font-size: 0.66rem;
}

@media (max-width: 1180px) {
  .main-pane[data-pane="portfolio"] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(500px, 1fr) minmax(420px, 0.86fr);
  }

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

  .mover-command-grid,
  .mover-table-grid,
  .portfolio-lift-drag,
  .portfolio-rank-grid,
  .portfolio-social-strip {
    grid-template-columns: 1fr;
  }

  .mover-scanner-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .layout {
    padding: 12px;
    gap: 12px;
  }

  .command-strip__top {
    flex-wrap: wrap;
  }

  .window-brand {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .kpi-grid,
  .idea-grid,
  .market-split {
    grid-template-columns: 1fr;
  }

  .buy-hero {
    flex-direction: column;
  }

  .page-hero {
    flex-direction: column;
  }

  .portfolio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .mover-range-tabs {
    grid-template-columns: 1fr;
  }

  .mover-orbit {
    min-height: 220px;
  }

  .orbit-chip {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-90px) rotate(var(--angle-neg));
  }
}

/* Web density pass: keep the glass identity, but fit more app on screen. */
:root {
  --sidebar-width: 300px;
  --strip-height: 48px;
}

.command-strip {
  min-height: var(--strip-height);
  padding: 8px 12px 7px;
}

.command-strip__top {
  gap: 8px;
}

.window-brand {
  min-width: 124px;
  gap: 7px;
}

.window-brand strong {
  font-size: 0.84rem;
}

.pane-tabs {
  gap: 5px;
  padding: 4px;
  border-radius: 14px;
}

.pane-tab {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.session-detail {
  min-width: 118px;
  font-size: 0.74rem;
}

.context-line {
  padding-top: 3px;
  font-size: 0.66rem;
}

.layout {
  gap: 12px;
  padding: 12px;
}

.sidebar {
  border-radius: 18px;
}

.sidebar__header {
  padding: 14px 14px 8px;
}

.sidebar-controls,
.sidebar-actions {
  padding: 0 12px 8px;
}

.watchlist-caption {
  margin: 0 12px 8px;
}

.watchlist {
  padding: 2px 8px 12px;
}

.watchlist-row {
  gap: 6px 8px;
  margin-bottom: 6px;
  padding: 9px 10px;
  border-radius: 14px;
}

.watchlist-row__symbol {
  font-size: 0.9rem;
}

.watchlist-row__price {
  font-size: 0.78rem;
}

.watchlist-row__change {
  font-size: 0.72rem;
}

.watchlist-row__meta,
.watchlist-row__sector {
  font-size: 0.64rem;
}

.badge {
  padding: 0.08rem 0.32rem;
  font-size: 0.58rem;
}

.main-pane[data-pane="portfolio"] {
  grid-template-columns: minmax(0, 1.5fr) minmax(285px, 0.72fr);
  gap: 12px;
}

.scroll-pane {
  padding: 14px;
}

.movers-panel,
.detail-pane,
.page-shell {
  border-radius: 18px;
}

.buy-hero,
.page-hero {
  gap: 14px;
  margin-bottom: 14px;
}

.buy-hero h1,
.page-hero h1 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.muted {
  font-size: 0.68rem;
}

.quote-health {
  min-width: 150px;
  padding: 9px 10px;
  border-radius: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-card {
  gap: 10px;
  min-height: 86px;
  padding: 13px;
  border-radius: 16px;
}

.kpi-icon,
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
}

.kpi-card strong {
  font-size: 1.05rem;
}

.section-heading {
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h3 {
  font-size: 1.02rem;
}

.idea-grid {
  gap: 12px;
}

.idea-card {
  min-height: 200px;
  padding: 14px 16px;
  border-radius: 16px;
}

.idea-card__title strong {
  font-size: 0.94rem;
}

.idea-card__metrics {
  gap: 8px;
}

.idea-card__footer {
  padding-top: 8px;
}

.detail-content,
.detail-header,
.quote-grid,
.chart-section,
.news-section,
.detail-background,
.glass-list {
  padding: 12px;
  border-radius: 16px;
}

.mover-scanner-bar {
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px;
  border-radius: 16px;
}

.scanner-chips button {
  min-height: 28px;
  padding: 6px 10px;
  font-size: 0.6rem;
}

.scanner-controls label,
.scanner-controls select {
  font-size: 0.66rem;
}

.mover-range-tabs {
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 16px;
}

.range-tab {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
}

.range-tab strong {
  font-size: 0.66rem;
}

.range-tab span {
  font-size: 0.6rem;
}

.mover-command-grid,
.mover-table-grid,
.portfolio-rank-grid {
  gap: 12px;
}

.mover-feature {
  min-height: 330px;
  padding: 15px;
  border-radius: 18px;
}

.mover-feature header {
  gap: 8px;
  margin-bottom: 10px;
}

.mover-feature h2 {
  font-size: 0.88rem;
}

.mover-feature header strong {
  font-size: 0.85rem;
}

.mover-orbit {
  min-height: 190px;
  margin-bottom: 8px;
  border-radius: 18px;
}

.mover-orbit::before {
  inset: 32px;
}

.mover-orbit::after {
  inset: 55px;
}

.orbit-core {
  width: 88px;
  height: 88px;
}

.orbit-core strong {
  font-size: clamp(0.92rem, 2.2vw, 1.2rem);
}

.orbit-segment {
  width: calc(68px * var(--scale));
  height: 22px;
  min-width: 28px;
  transform: rotate(var(--angle)) translateX(42px);
}

.orbit-chip {
  padding: 3px 7px;
  font-size: 0.58rem;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-82px) rotate(var(--angle-neg));
}

.mover-feature__range {
  margin-bottom: 9px;
  font-size: 0.64rem;
}

.mover-stack {
  gap: 7px;
  margin-top: 10px;
}

.mover-stack button,
.mover-row {
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.mover-stack span,
.mover-row b,
.holding-card__change {
  font-size: 0.82rem;
}

.mover-row small {
  font-size: 0.66rem;
}

.portfolio-summary {
  min-width: min(360px, 100%);
  gap: 8px;
}

.portfolio-summary div,
.portfolio-accordion,
.portfolio-spotlight,
.portfolio-social-strip,
.portfolio-move-brief,
.portfolio-rank-grid > div {
  padding: 10px;
  border-radius: 14px;
}

.portfolio-summary strong {
  font-size: 0.88rem;
}

.portfolio-spotlight h3,
.portfolio-social-strip h3,
.portfolio-move-brief h3,
.portfolio-rank-grid h3 {
  font-size: 0.72rem;
}

.portfolio-lift-drag {
  gap: 10px;
  margin: 10px 0 12px;
}

.portfolio-spotlight button,
.portfolio-social-strip__rows button,
.portfolio-why-row,
.portfolio-rank-table button {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.portfolio-social-strip,
.portfolio-move-brief,
.portfolio-rank-grid > div {
  margin-bottom: 12px;
}

.portfolio-social-strip__rows {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.portfolio-grid,
.portfolio-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.holding-card {
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: 8px;
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
}

.holding-card__main strong {
  font-size: 0.82rem;
}

.holding-card__price {
  font-size: 0.8rem;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 280px;
  }

  .main-pane[data-pane="portfolio"] {
    grid-template-rows: minmax(420px, 1fr) minmax(340px, 0.8fr);
  }
}

/* Mobile app shell: favor vertical reading, native scrolling, and compact controls. */
@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow: auto;
  }

  body {
    overflow-x: hidden;
  }

  .app {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .command-strip {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 0;
    padding: 8px;
  }

  .command-strip__top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px;
  }

  .window-brand {
    min-width: 0;
  }

  .pane-tabs {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pane-tabs::-webkit-scrollbar {
    display: none;
  }

  .pane-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .session-badge {
    justify-self: end;
    max-width: 134px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .session-detail,
  .context-line {
    display: none;
  }

  .layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    padding: 8px;
    gap: 8px;
  }

  .sidebar,
  .main-column,
  .main-pane {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    border-radius: 16px;
    max-height: none;
  }

  .sidebar__header {
    padding: 10px 10px 4px;
  }

  .sidebar-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 8px 7px;
  }

  .sidebar-controls + .sidebar-controls {
    grid-template-columns: 1fr 1fr;
  }

  .select,
  .input {
    min-width: 0;
    width: 100%;
    font-size: 0.72rem;
  }

  .toggle {
    min-width: 0;
    font-size: 0.72rem;
  }

  .watchlist-caption {
    margin: 0 9px 7px;
    font-size: 0.64rem;
  }

  .watchlist {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(155px, 48vw);
    gap: 7px;
    max-height: 128px;
    padding: 0 8px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .watchlist::-webkit-scrollbar {
    display: none;
  }

  .watchlist-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 88px;
    margin: 0;
    padding: 9px;
  }

  .watchlist-row .stock-row__left,
  .watchlist-row .stock-row__right {
    width: 100%;
  }

  .watchlist-row .stock-row__right {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4px;
  }

  .watchlist-row .sparkline {
    display: none;
  }

  .badge:nth-of-type(n + 2) {
    display: none;
  }

  .main-pane[data-pane="portfolio"] {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .scroll-pane {
    overflow: visible;
    padding: 10px;
  }

  .movers-panel,
  .detail-pane,
  .page-shell {
    border-radius: 16px;
  }

  .buy-hero,
  .page-hero {
    align-items: stretch;
  }

  .buy-hero h1,
  .page-hero h1 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .quote-health,
  .hero-metric {
    min-width: 0;
    width: 100%;
  }

  .kpi-grid,
  .idea-grid,
  .market-split,
  .mover-command-grid,
  .mover-table-grid,
  .portfolio-lift-drag,
  .portfolio-rank-grid,
  .portfolio-social-strip,
  .portfolio-grid,
  .portfolio-grid--compact {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 72px;
  }

  .idea-card {
    min-height: 118px;
  }

  .detail-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-grid,
  .idea-card__metrics,
  .portfolio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-section canvas,
  .radar-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .mover-range-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mover-range-tabs::-webkit-scrollbar {
    display: none;
  }

  .range-tab {
    flex: 0 0 138px;
  }

  .mover-scanner-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .scanner-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .scanner-chips::-webkit-scrollbar {
    display: none;
  }

  .scanner-chips button {
    flex: 0 0 auto;
  }

  .scanner-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mover-feature {
    min-height: 300px;
  }

  .mover-orbit {
    min-height: 168px;
  }

  .mover-orbit::before {
    inset: 26px;
  }

  .mover-orbit::after {
    inset: 46px;
  }

  .orbit-core {
    width: 74px;
    height: 74px;
  }

  .orbit-segment {
    width: calc(52px * var(--scale));
    min-width: 24px;
    height: 18px;
    transform: rotate(var(--angle)) translateX(35px);
  }

  .orbit-chip {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-70px) rotate(var(--angle-neg));
  }

  .portfolio-social-strip {
    gap: 8px;
  }

  .portfolio-spotlight button,
  .portfolio-rank-table button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .portfolio-spotlight button b,
  .portfolio-rank-table button b {
    grid-column: 2;
  }

  .portfolio-why-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .holding-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .holding-card__change {
    grid-column: 3;
  }
}

@media (max-width: 420px) {
  .sidebar-controls {
    grid-template-columns: 1fr;
  }

  .watchlist {
    grid-auto-columns: minmax(142px, 74vw);
  }

  .kpi-card,
  .idea-card,
  .holding-card {
    padding: 9px;
  }

  .portfolio-summary {
    grid-template-columns: 1fr 1fr;
  }

  .scanner-controls {
    grid-template-columns: 1fr;
  }
}

/* Quote refresh visibility */
.quote-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(41, 244, 232, 0.08);
  border: 1px solid rgba(41, 244, 232, 0.22);
  white-space: nowrap;
}

.quote-sync__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(41, 244, 232, 0.55);
  flex-shrink: 0;
}

.quote-sync__label {
  color: var(--neon-cyan);
  font-weight: 800;
}

.quote-sync__time {
  color: var(--text-primary);
}

.quote-sync.is-refreshing {
  border-color: rgba(41, 244, 232, 0.45);
  background: rgba(41, 244, 232, 0.12);
}

.quote-sync.is-refreshing .quote-sync__dot {
  animation: quoteSyncSpin 0.85s linear infinite;
  box-shadow: 0 0 14px rgba(41, 244, 232, 0.75);
}

.quote-sync.is-stale {
  border-color: rgba(255, 197, 54, 0.42);
  background: rgba(255, 197, 54, 0.1);
}

.quote-sync.is-stale .quote-sync__dot {
  background: var(--neon-amber);
  box-shadow: 0 0 10px rgba(255, 197, 54, 0.55);
}

.quote-sync.is-stale .quote-sync__label {
  color: var(--neon-amber);
}

.quote-sync.has-error {
  border-color: rgba(255, 107, 131, 0.42);
  background: rgba(255, 107, 131, 0.1);
}

.quote-sync.has-error .quote-sync__dot {
  background: var(--down);
  box-shadow: 0 0 10px rgba(255, 107, 131, 0.55);
}

.quote-sync.has-changes .quote-sync__dot {
  animation: quoteSyncPulse 1.1s ease-out;
}

@keyframes quoteSyncSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.85); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes quoteSyncPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.35); opacity: 0.85; }
}

.watchlist-sync {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.watchlist-sync.is-refreshing {
  color: var(--neon-cyan);
}

.watchlist-sync.is-stale {
  color: var(--neon-amber);
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ticker-height) + 14px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(920px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 22px;
  background: rgba(12, 8, 22, 0.9);
  border: 1px solid rgba(41, 244, 232, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(140%);
  transform: translateX(-50%);
}

.compare-tray > div:first-child {
  min-width: 92px;
}

.compare-tray strong {
  display: block;
  color: var(--text-primary);
}

.compare-tray span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.compare-tray__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}

.compare-pill {
  display: grid;
  grid-template-columns: minmax(42px, auto) 1fr auto;
  gap: 4px 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
}

.compare-pill small {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.compare-pill.is-up b { color: var(--up); }
.compare-pill.is-down b { color: var(--down); }

.compare-tray > button {
  padding: 8px 10px;
  border: 1px solid rgba(255, 107, 131, 0.25);
  border-radius: 12px;
  color: var(--down);
  background: rgba(255, 107, 131, 0.08);
  cursor: pointer;
}

.mobile-tabbar {
  display: none;
}

.customer-disclosure {
  padding: 8px 18px calc(12px + var(--ticker-height));
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
}

.sidebar__header {
  flex-wrap: wrap;
}

.sidebar__header .watchlist-sync {
  margin-left: auto;
}

.badge--stale {
  color: var(--neon-amber) !important;
  background: rgba(255, 197, 54, 0.16) !important;
  border: 1px solid rgba(255, 197, 54, 0.35);
  box-shadow: 0 0 10px rgba(255, 197, 54, 0.12);
}

.badge--unavailable {
  color: var(--text-dim) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.watchlist-row.is-unavailable .watchlist-row__price,
.watchlist-row.is-unavailable .watchlist-row__change {
  opacity: 0.55;
}

.status-strip.is-refreshing::before {
  content: "◌ ";
  animation: quoteSyncSpin 0.85s linear infinite;
  display: inline-block;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 999px;
  vertical-align: middle;
  animation: liveDotFade 1.2s ease-out forwards;
}

.live-dot--up {
  background: var(--up);
  box-shadow: 0 0 8px rgba(101, 245, 138, 0.65);
}

.live-dot--down {
  background: var(--down);
  box-shadow: 0 0 8px rgba(255, 107, 131, 0.65);
}

@keyframes liveDotFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}

.price-flash-up {
  animation: priceFlashUp 0.95s ease-out;
}

.price-flash-down {
  animation: priceFlashDown 0.95s ease-out;
}

@keyframes priceFlashUp {
  0%, 100% { background: transparent; }
  35% {
    background: rgba(101, 245, 138, 0.22);
    box-shadow: 0 0 14px rgba(101, 245, 138, 0.28);
  }
}

@keyframes priceFlashDown {
  0%, 100% { background: transparent; }
  35% {
    background: rgba(255, 107, 131, 0.22);
    box-shadow: 0 0 14px rgba(255, 107, 131, 0.28);
  }
}

.quote-health.is-refreshing .pulse-dot {
  animation: quoteSyncPulse 0.9s ease-in-out infinite;
}

.detail-price.price-flash-up,
.detail-price.price-flash-down,
.detail-change.price-flash-up,
.detail-change.price-flash-down {
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 760px) {
  .quote-sync {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__header .watchlist-sync {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-sync.is-refreshing .quote-sync__dot,
  .quote-sync.has-changes .quote-sync__dot,
  .price-flash-up,
  .price-flash-down,
  .live-dot,
  .quote-health.is-refreshing .pulse-dot,
  .status-strip.is-refreshing::before {
    animation: none !important;
  }
}

/* Feature parity surfaces: earnings month grid, radar detail, social buzz charts. */
.toolbar-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.toolbar-select select {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  padding: 7px 9px;
}

.earnings-month {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.earnings-month header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.earnings-month h3 {
  margin: 0;
  color: var(--text-primary);
}

.earnings-month header span {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.earnings-weekdays,
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.earnings-weekdays {
  margin-bottom: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.earnings-day {
  min-height: 92px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(7, 2, 15, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.earnings-day.is-empty {
  opacity: 0.35;
}

.earnings-day.has-events {
  border-color: rgba(41, 244, 232, 0.24);
  background: rgba(41, 244, 232, 0.055);
}

.earnings-day > span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.earnings-day button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 5px 6px;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(255, 197, 54, 0.13);
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 900;
  cursor: pointer;
}

.earnings-day button small {
  display: block;
  color: var(--text-muted);
  font-size: 0.58rem;
}

.earnings-day em {
  display: block;
  margin-top: 4px;
  color: var(--neon-cyan);
  font-style: normal;
  font-size: 0.7rem;
}

.radar-kpis,
.radar-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.radar-kpis article,
.radar-sector,
.radar-axis-detail {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.radar-kpis span,
.radar-axis-detail span {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.radar-kpis strong,
.radar-axis-detail strong {
  display: block;
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.radar-kpis small,
.radar-sector small,
.radar-axis-detail p {
  margin: 0;
  color: var(--text-muted);
}

.radar-sector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  width: 100%;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.radar-sector span {
  color: var(--up);
  font-weight: 900;
}

.radar-sector.is-down span {
  color: var(--down);
}

.radar-sector small {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.buy-chart {
  min-height: 218px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(18, 16, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.buy-chart header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.buy-chart h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.buy-chart header span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.pulse-split,
.alpha-columns {
  display: grid;
  gap: 10px;
}

.direction-bars,
.alpha-column {
  display: grid;
  gap: 7px;
}

.direction-bars > strong,
.alpha-column > strong {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.direction-bars button:hover,
.alignment-list button:hover,
.alpha-column button:hover {
  background: rgba(41, 244, 232, 0.09);
}

.pulse-micro-bar {
  display: block;
  width: 12px;
  height: 28px;
  flex-shrink: 0;
}

.idea-card__spark {
  display: block;
  width: 100%;
  max-width: none;
  height: 32px;
  margin: 0;
  filter: drop-shadow(0 0 5px var(--chart-glow-cyan));
}

.mover-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.direction-bars--down .direction-bar-row .change-with-arrow {
  color: var(--down);
}

.alignment-list {
  display: grid;
  gap: 6px;
}

.alignment-row {
  box-shadow: inset 3px 0 0 rgba(41, 244, 232, 0.72);
}

.social-divergence-list {
  display: grid;
  gap: 6px;
}

.social-divergence-list .is-divergent {
  box-shadow: inset 3px 0 0 rgba(255, 180, 80, 0.72);
}

.social-divergence-list .is-aligned {
  box-shadow: inset 3px 0 0 rgba(101, 245, 138, 0.72);
}

.buy-chart--social footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.buy-chart--social footer button {
  padding: 3px 7px;
  border: 1px solid rgba(255, 197, 54, 0.26);
  border-radius: 999px;
  color: var(--neon-amber);
  background: rgba(255, 197, 54, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
}

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

.alpha-column button {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

.alpha-column--active b {
  color: var(--neon-cyan);
}

.coverage-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 8px auto 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(7, 2, 15, 0.95) 0 48%, transparent 49%),
    conic-gradient(var(--neon-cyan) 0 var(--quoted-deg), rgba(255, 197, 54, 0.75) var(--quoted-deg) var(--stale-deg), rgba(255, 107, 131, 0.58) var(--stale-deg) 360deg);
  border: 1px solid rgba(41, 244, 232, 0.18);
  box-shadow: 0 0 24px rgba(41, 244, 232, 0.08);
}

.coverage-ring strong {
  align-self: end;
  color: var(--text-primary);
  font-size: 1.45rem;
}

.coverage-ring span {
  align-self: start;
  color: var(--text-muted);
  font-size: 0.72rem;
}

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

.coverage-stats span {
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
}

.coverage-stats b {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.social-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.social-mover-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.social-mover-cards article {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.social-mover-cards header {
  margin-bottom: 9px;
}

.social-mover-cards h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.social-mover-cards header span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.social-mover-cards button {
  display: grid;
  grid-template-columns: minmax(48px, auto) auto minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  margin-top: 7px;
  padding: 8px 9px;
  border: 0;
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.social-mover-cards strong {
  font-family: var(--font-mono);
}

.mini-sparkline {
  width: 70px;
  height: 20px;
  filter: drop-shadow(0 0 4px var(--chart-glow-cyan));
}

.social-chart {
  min-height: 300px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.social-chart header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.social-chart h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-chart header span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

.social-chart--up {
  border-color: rgba(101, 245, 138, 0.22);
}

.social-chart--down {
  border-color: rgba(255, 107, 131, 0.22);
}

.social-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 220px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.social-bars button {
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  align-items: end;
  justify-items: center;
  gap: 7px;
  flex: 0 0 78px;
  min-width: 78px;
  height: 220px;
  border: none;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}

.social-bars button > span,
.social-bars__bar {
  width: 100%;
  height: var(--bar);
  min-height: 28px;
  border-radius: 999px 999px 7px 7px;
  background: var(--chart-bar-up);
  box-shadow:
    0 0 16px var(--chart-glow-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.social-chart--down .social-bars button > span,
.social-chart--down .social-bars__bar {
  border-radius: 7px 7px 999px 999px;
  background: var(--chart-bar-down);
  box-shadow:
    0 0 16px var(--chart-glow-down),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.social-bars strong {
  max-width: 100%;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-bars__metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  line-height: 1.3;
  font-size: 0.72rem;
  text-align: center;
}

.social-bars__metrics .buzz-metrics {
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.social-bars__metrics .buzz-metric-pill {
  font-size: 0.68rem;
  padding: 2px 6px;
}

.social-bars__line1,
.social-bars__line2 {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-bars__line2 {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.social-bars small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.social-bars small.is-up,
.social-bars__metrics.is-up,
.signed-value.is-up,
.social-divergence-list span.is-up {
  color: var(--up);
}

.social-bars small.is-down,
.social-bars__metrics.is-down,
.signed-value.is-down,
.social-divergence-list span.is-down {
  color: var(--down);
}

.social-bars em {
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.buzz-corr {
  display: block;
  margin-top: 2px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

/* Buzz metric pills — compact display app-wide */
.buzz-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.buzz-metrics--compact {
  flex-wrap: nowrap;
}

.buzz-metric-pill {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
}

.buzz-metric-pill--up {
  color: var(--up);
  background: rgba(101, 245, 138, 0.12);
}

.buzz-metric-pill--down {
  color: var(--down);
  background: rgba(255, 107, 131, 0.12);
}

.buzz-metric-pill--aligned {
  color: var(--neon-cyan);
  background: rgba(41, 244, 232, 0.1);
}

.buzz-metric-pill--divergent {
  color: var(--neon-magenta);
  background: rgba(255, 63, 174, 0.1);
}

.buzz-metric-pill--flat {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.buzz-metrics-slot {
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.idea-card__buzz .buzz-metrics {
  gap: 4px;
}

.idea-card__buzz .buzz-metric-pill {
  font-size: 0.68rem;
}

.alignment-list .buzz-metrics {
  justify-content: flex-start;
}

.social-bars em.is-up {
  color: rgba(101, 245, 138, 0.78);
}

.social-bars em.is-down {
  color: rgba(255, 107, 131, 0.78);
}

.social-orbit {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 28%, transparent 29%),
    rgba(7, 2, 15, 0.32);
}

.social-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(7, 2, 15, 0.88);
}

.social-orbit__core strong {
  align-self: end;
  font-size: 1.28rem;
}

.social-orbit__core span {
  align-self: start;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.social-orbit__seg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(64px * var(--scale));
  min-width: 26px;
  height: 22px;
  border: none;
  border-radius: 999px 8px 8px 999px;
  background: linear-gradient(90deg, rgba(41, 244, 232, 0.9), rgba(255, 63, 174, 0.58));
  transform-origin: left center;
  transform: rotate(var(--angle)) translateX(40px);
  cursor: pointer;
}

.social-orbit__seg.is-down {
  background: linear-gradient(90deg, rgba(255, 107, 131, 0.9), rgba(126, 113, 142, 0.62));
}

.social-orbit__chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 3px 7px;
  border: 1px solid rgba(41, 244, 232, 0.3);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(7, 2, 15, 0.78);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-78px) rotate(var(--angle-neg));
  cursor: pointer;
}

.social-orbit__chip.is-down {
  color: var(--down);
  border-color: rgba(255, 107, 131, 0.28);
}

.social-divergence-list {
  display: grid;
  gap: 8px;
}

.social-divergence-list button {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.social-divergence-list .is-aligned {
  box-shadow: inset 3px 0 0 rgba(101, 245, 138, 0.72);
}

.social-divergence-list .is-divergent {
  box-shadow: inset 3px 0 0 rgba(255, 197, 54, 0.78);
}

.social-divergence-list span {
  color: var(--text-muted);
}

.social-divergence-list b {
  color: var(--up);
}

@media (max-width: 900px) {
  .buy-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-vbars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 170px;
  }

  .social-mover-cards {
    grid-template-columns: 1fr;
  }

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

  .earnings-weekdays {
    display: none;
  }

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

  .earnings-day {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .buy-chart-grid,
  .alpha-columns {
    grid-template-columns: 1fr;
  }

  .buy-chart {
    min-height: 0;
  }

  .trend-vbars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 140px;
    padding: 8px 6px 4px;
  }

  .trend-vbar__label {
    font-size: 0.5rem;
  }

  .social-bars {
    gap: 10px;
    min-height: 200px;
  }

  .social-bars button {
    flex: 0 0 68px;
    min-width: 68px;
    height: 200px;
  }

  .social-bars strong {
    font-size: 0.78rem;
  }

  .social-bars__metrics {
    font-size: 0.66rem;
  }

  .social-bars__line2 {
    font-size: 0.62rem;
  }

  .social-bars em {
    font-size: 0.7rem;
  }

  .social-chart h3 {
    font-size: 0.92rem;
  }

  .social-chart header span {
    font-size: 0.74rem;
  }

  .social-divergence-list button {
    grid-template-columns: 1fr auto;
  }

  .social-divergence-list span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .market-ticker {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar {
    position: sticky;
    bottom: 0;
    z-index: 28;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(7, 2, 15, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(140%);
  }

  .mobile-tabbar button {
    display: grid;
    gap: 2px;
    place-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    color: var(--text-muted);
    background: transparent;
    font-size: 0.62rem;
    cursor: pointer;
  }

  .mobile-tabbar button.is-active {
    color: var(--neon-cyan);
    background: rgba(41, 244, 232, 0.1);
  }

  .mobile-tabbar span {
    font-size: 0.9rem;
  }

  .compare-tray {
    bottom: calc(56px + var(--ticker-height) + 14px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    flex-direction: column;
  }

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

  .customer-disclosure {
    padding-bottom: calc(76px + var(--ticker-height));
  }
}

/* UI polish pass — layout, density, touch targets, readability */
.main-pane:not([data-pane="portfolio"]) {
  overflow: auto;
  min-height: 0;
  padding-bottom: 4px;
}

.main-pane[data-pane="socialBuzz"] .section-label {
  margin: 0 1rem 0.5rem;
  flex-shrink: 0;
}

.main-pane[data-pane="socialBuzz"] #reddit-panel {
  max-height: 240px;
}

.btn,
.pane-tab,
.select,
.input,
.toggle {
  min-height: 36px;
}

.btn--sm {
  min-height: 32px;
}

.btn--icon {
  min-width: 36px;
  min-height: 36px;
}

.toolbar .btn {
  min-height: 36px;
  padding: 8px 12px;
}

.sidebar-empty {
  margin: 0.75rem 12px 1rem;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.detail-empty p {
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-header {
  margin-bottom: 0;
}

.detail-header > div:last-child {
  flex-shrink: 0;
}

.detail-background p,
.detail-background a {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  word-break: break-word;
}

.detail-background a {
  color: var(--neon-cyan);
}

#social-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#social-table table {
  min-width: 640px;
}

#social-table td,
#social-table th {
  white-space: nowrap;
}

#social-table td:nth-child(3) {
  white-space: normal;
}

.muted {
  color: var(--text-muted);
}

.public-mode .sidebar-controls:first-of-type {
  padding-top: 4px;
}

.public-mode .sidebar-search {
  margin-top: 2px;
}

.command-strip__top {
  min-width: 0;
}

.pane-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pane-tabs::-webkit-scrollbar {
  display: none;
}

#refresh-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.quick-actions .quote-legend {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .session-detail {
    display: none;
  }

  .command-strip__top {
    flex-wrap: wrap;
  }

  .pane-tabs {
    order: 10;
    flex: 1 1 100%;
  }

  .quick-actions .quote-legend {
    display: none;
  }
}

@media (max-width: 760px) {
  .pane-tabs {
    display: none;
  }

  .command-strip__top {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "brand sync badge actions"
      "quote quote quote quote";
  }

  .window-brand {
    grid-area: brand;
  }

  #sidebar-toggle {
    display: none;
  }

  .quote-sync {
    grid-area: sync;
    max-width: none;
    padding: 6px 9px;
    font-size: 0.64rem;
  }

  .session-badge {
    grid-area: badge;
    max-width: none;
    font-size: 0.62rem;
    padding: 5px 8px;
  }

  #refresh-btn {
    grid-area: actions;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    font-size: 0;
  }

  #refresh-btn::before {
    content: "↻";
    font-size: 1.05rem;
    color: var(--neon-cyan);
  }

  .context-line {
    display: block;
    padding: 4px 0 0;
    font-size: 0.64rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-actions {
    padding-top: 6px;
    gap: 6px;
  }

  .quick-actions button,
  .quick-actions a {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .watchlist--heatmap {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 5px;
    max-height: 148px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 9px;
  }

  .watchlist:not(.watchlist--heatmap) {
    grid-auto-columns: minmax(148px, 44vw);
    max-height: 118px;
  }

  .watchlist-row {
    min-height: 96px;
    padding: 8px;
  }

  .watchlist-row__price,
  .watchlist-row__change {
    font-size: 0.72rem;
  }

  .detail-content {
    padding: 10px;
    gap: 10px;
  }

  .detail-header,
  .quote-grid,
  .chart-section,
  .news-section,
  .detail-background {
    padding: 10px;
  }

  .detail-symbol {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .detail-price {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .chart-ranges .btn--sm {
    min-height: 36px;
    min-width: 36px;
    padding: 6px 10px;
  }

  .earnings-body,
  .radar-detail {
    padding-bottom: 1rem;
  }

  .radar-canvas {
    max-width: calc(100vw - 32px);
    height: auto;
  }
}

@media (max-width: 420px) {
  .command-strip__top {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand badge actions"
      "sync sync sync"
      "quote quote quote";
  }

  .quote-sync__label {
    max-width: 8ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
