/* Stock Analyzer experience system
   Shared visual language for every non-home route. The home command center has
   its own composition, but it inherits the same semantic roles and controls. */

body:not(.home-redesign) {
  --exp-bg: oklch(0.965 0.008 250);
  --exp-surface: oklch(0.995 0.003 250);
  --exp-surface-soft: oklch(0.945 0.012 250);
  --exp-surface-strong: oklch(0.925 0.018 250);
  --exp-ink: oklch(0.24 0.03 250);
  --exp-muted: oklch(0.48 0.03 250);
  --exp-subtle: oklch(0.62 0.025 250);
  --exp-line: oklch(0.875 0.02 250);
  --exp-line-strong: oklch(0.79 0.035 250);
  --exp-accent: oklch(0.56 0.17 230);
  --exp-accent-strong: oklch(0.46 0.17 230);
  --exp-accent-soft: oklch(0.93 0.035 230);
  --exp-positive: oklch(0.53 0.14 165);
  --exp-positive-soft: oklch(0.93 0.045 165);
  --exp-negative: oklch(0.56 0.17 28);
  --exp-negative-soft: oklch(0.94 0.04 28);
  --exp-warning: oklch(0.58 0.14 72);
  --exp-focus: oklch(0.56 0.17 230 / 0.26);
  --exp-radius-sm: 8px;
  --exp-radius-md: 12px;
  --exp-radius-lg: 14px;
  --exp-shadow: none;
  --exp-control-height: 40px;
  color: var(--exp-ink);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--exp-bg);
}

body:not(.home-redesign)[data-theme="dark"] {
  --exp-bg: oklch(0.17 0.025 250);
  --exp-surface: oklch(0.215 0.028 250);
  --exp-surface-soft: oklch(0.245 0.032 250);
  --exp-surface-strong: oklch(0.285 0.038 250);
  --exp-ink: oklch(0.95 0.015 250);
  --exp-muted: oklch(0.74 0.03 250);
  --exp-subtle: oklch(0.61 0.028 250);
  --exp-line: oklch(0.32 0.03 250);
  --exp-line-strong: oklch(0.42 0.04 250);
  --exp-accent: oklch(0.73 0.14 225);
  --exp-accent-strong: oklch(0.81 0.12 225);
  --exp-accent-soft: oklch(0.28 0.045 230);
  --exp-positive: oklch(0.76 0.13 165);
  --exp-positive-soft: oklch(0.28 0.045 165);
  --exp-negative: oklch(0.75 0.15 28);
  --exp-negative-soft: oklch(0.29 0.045 28);
  --exp-warning: oklch(0.8 0.12 82);
  --exp-focus: oklch(0.73 0.14 225 / 0.3);
}

body:not(.home-redesign)::before {
  display: none !important;
}

body:not(.home-redesign) .page-shell {
  width: min(100%, 1240px);
  max-width: 1240px;
  padding: 24px 28px 64px;
}

body:not(.home-redesign) .top-nav {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px 12px;
  overflow: visible;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface);
  box-shadow: var(--exp-shadow);
}

body:not(.home-redesign) .top-nav .logo {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 8px;
  color: var(--exp-ink);
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.home-redesign) .top-nav .logo-word {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

body:not(.home-redesign) .global-search,
body:not(.home-redesign) .top-search {
  display: flex;
  flex: 1 1 320px;
  min-width: 180px;
  height: var(--exp-control-height);
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-sm);
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .global-search input,
body:not(.home-redesign) .top-search input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  border: 0;
  border-radius: var(--exp-radius-sm) 0 0 var(--exp-radius-sm);
  color: var(--exp-ink);
  background: transparent;
  box-shadow: none;
}

body:not(.home-redesign) .global-search .btn,
body:not(.home-redesign) .top-search .btn {
  flex: 0 0 auto;
  min-height: 100%;
  border-radius: 0 var(--exp-radius-sm) var(--exp-radius-sm) 0;
}

body:not(.home-redesign) .top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body:not(.home-redesign) .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  width: auto;
}

body:not(.home-redesign) .nav-links > a,
body:not(.home-redesign) .account-menu summary,
body:not(.home-redesign) .market-menu summary,
body:not(.home-redesign) .learn-menu summary,
body:not(.home-redesign) .theme-toggle {
  min-height: 38px;
  padding-inline: 11px;
  border: 1px solid transparent;
  border-radius: var(--exp-radius-sm);
  color: var(--exp-muted);
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
}

body:not(.home-redesign) .nav-links > a:hover,
body:not(.home-redesign) .account-menu summary:hover,
body:not(.home-redesign) .market-menu summary:hover,
body:not(.home-redesign) .learn-menu summary:hover,
body:not(.home-redesign) .theme-toggle:hover,
body:not(.home-redesign) .account-menu[open] summary,
body:not(.home-redesign) .market-menu[open] summary,
body:not(.home-redesign) .learn-menu[open] summary {
  color: var(--exp-ink);
  border-color: var(--exp-line);
  background: var(--exp-surface-soft);
  transform: none;
}

body:not(.home-redesign) .nav-links > a.active,
body:not(.home-redesign) .market-menu.active summary,
body:not(.home-redesign) .learn-menu.active summary {
  color: var(--exp-accent-strong);
  border-color: color-mix(in srgb, var(--exp-accent) 35%, var(--exp-line));
  background: var(--exp-accent-soft);
  box-shadow: none;
}

body:not(.home-redesign) .theme-toggle {
  width: 38px;
  padding: 0;
  font-size: 1rem;
}

body:not(.home-redesign) .learn-menu-panel,
body:not(.home-redesign) .market-menu-panel,
body:not(.home-redesign) .account-menu-panel {
  min-width: 220px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--exp-ink) 12%, transparent);
}

body:not(.home-redesign) .learn-menu-panel a,
body:not(.home-redesign) .market-menu-panel a,
body:not(.home-redesign) .account-menu-panel a,
body:not(.home-redesign) .account-menu-panel button {
  min-height: 36px;
  border-radius: var(--exp-radius-sm);
  color: var(--exp-muted);
  background: transparent;
}

body:not(.home-redesign) .learn-menu-panel a:hover,
body:not(.home-redesign) .market-menu-panel a:hover,
body:not(.home-redesign) .account-menu-panel a:hover,
body:not(.home-redesign) .account-menu-panel button:hover,
body:not(.home-redesign) .learn-menu-panel a.active,
body:not(.home-redesign) .market-menu-panel a.active {
  color: var(--exp-ink);
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .site-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 4px 0;
  color: var(--exp-subtle);
  font-size: 0.76rem;
}

body:not(.home-redesign) .site-breadcrumbs a {
  color: var(--exp-muted);
}

body:not(.home-redesign) .site-breadcrumbs [aria-current="page"] {
  color: var(--exp-ink);
  font-weight: 700;
}

body:not(.home-redesign) main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

body:not(.home-redesign) main > .card,
body:not(.home-redesign) main > section.card,
body:not(.home-redesign) .page-shell > section.card,
body:not(.home-redesign) .page-shell > article.card {
  margin-top: 0 !important;
}

body:not(.home-redesign) h1,
body:not(.home-redesign) h2,
body:not(.home-redesign) h3,
body:not(.home-redesign) h4 {
  color: var(--exp-ink);
  text-wrap: balance;
}

body:not(.home-redesign) h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

body:not(.home-redesign) h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body:not(.home-redesign) h3 {
  font-size: 1rem;
  line-height: 1.25;
}

body:not(.home-redesign) p,
body:not(.home-redesign) li {
  color: var(--exp-muted);
  line-height: 1.62;
}

body:not(.home-redesign) a {
  color: var(--exp-accent-strong);
  text-underline-offset: 3px;
}

body:not(.home-redesign) a:hover {
  color: var(--exp-accent);
}

body:not(.home-redesign) .eyebrow,
body:not(.home-redesign) .hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--exp-accent-strong);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

body:not(.home-redesign) .card,
body:not(.home-redesign) .page-hero,
body:not(.home-redesign) .metric,
body:not(.home-redesign) .metric-card,
body:not(.home-redesign) .research-card,
body:not(.home-redesign) .research-hub-card,
body:not(.home-redesign) .directory-stock-card,
body:not(.home-redesign) .market-directory-card,
body:not(.home-redesign) .calendar-panel,
body:not(.home-redesign) .movers-panel,
body:not(.home-redesign) .screener-toolbar,
body:not(.home-redesign) .results-panel,
body:not(.home-redesign) .ops-panel,
body:not(.home-redesign) .adsense-shell,
body:not(.home-redesign) .summary-card,
body:not(.home-redesign) .technical-card,
body:not(.home-redesign) .financial-change-card,
body:not(.home-redesign) .watchlist-item {
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .card,
body:not(.home-redesign) .page-hero {
  padding: 24px;
}

body:not(.home-redesign) .card:hover,
body:not(.home-redesign) .metric:hover,
body:not(.home-redesign) .research-card:hover,
body:not(.home-redesign) .directory-stock-card:hover,
body:not(.home-redesign) .market-directory-card:hover {
  transform: none;
  box-shadow: none;
}

body:not(.home-redesign) .page-hero,
body:not(.home-redesign) .market-hero,
body:not(.home-redesign) .calendar-hero,
body:not(.home-redesign) .research-hero,
body:not(.home-redesign) .directory-hero,
body:not(.home-redesign) .metric-hero,
body:not(.home-redesign) .movers-hero,
body:not(.home-redesign) .metrics-guide-hero,
body:not(.home-redesign) .market-guide-hero {
  display: grid;
  gap: 10px;
  min-height: 0;
  background: var(--exp-surface);
}

body:not(.home-redesign) .page-hero p,
body:not(.home-redesign) .market-hero p,
body:not(.home-redesign) .calendar-hero p,
body:not(.home-redesign) .research-hero p,
body:not(.home-redesign) .directory-hero p {
  max-width: 72ch;
  margin: 0;
  color: var(--exp-muted);
}

body:not(.home-redesign) .btn,
body:not(.home-redesign) button,
body:not(.home-redesign) input,
body:not(.home-redesign) textarea,
body:not(.home-redesign) select,
body:not(.home-redesign) .market-tab,
body:not(.home-redesign) .event-tab,
body:not(.home-redesign) .type-tab,
body:not(.home-redesign) .range-tab,
body:not(.home-redesign) .mover-range-tab,
body:not(.home-redesign) .research-tab,
body:not(.home-redesign) .directory-market-tab,
body:not(.home-redesign) .timeframe-btn,
body:not(.home-redesign) .watchlist-country-tab {
  border-radius: var(--exp-radius-sm);
}

body:not(.home-redesign) .btn,
body:not(.home-redesign) button.btn,
body:not(.home-redesign) a.btn {
  min-height: var(--exp-control-height);
  padding-inline: 14px;
  border: 1px solid var(--exp-line-strong);
  color: var(--exp-ink);
  background: var(--exp-surface);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body:not(.home-redesign) .btn:hover,
body:not(.home-redesign) button.btn:hover,
body:not(.home-redesign) a.btn:hover {
  border-color: var(--exp-accent);
  color: var(--exp-accent-strong);
  background: var(--exp-accent-soft);
  transform: none;
}

body:not(.home-redesign) .btn-primary,
body:not(.home-redesign) button.btn-primary,
body:not(.home-redesign) a.btn-primary {
  border-color: var(--exp-accent);
  color: oklch(0.99 0.005 250);
  background: var(--exp-accent);
  box-shadow: none;
}

body:not(.home-redesign) .btn-primary:hover,
body:not(.home-redesign) button.btn-primary:hover,
body:not(.home-redesign) a.btn-primary:hover {
  border-color: var(--exp-accent-strong);
  color: oklch(0.99 0.005 250);
  background: var(--exp-accent-strong);
}

body:not(.home-redesign) .btn-danger,
body:not(.home-redesign) button.btn-danger,
body:not(.home-redesign) a.btn-danger {
  border-color: var(--exp-negative);
  color: oklch(0.99 0.005 250);
  background: var(--exp-negative);
}

body:not(.home-redesign) .btn-primary::after,
body:not(.home-redesign) .btn-danger::after {
  display: none !important;
}

body:not(.home-redesign) input,
body:not(.home-redesign) textarea,
body:not(.home-redesign) select {
  min-height: var(--exp-control-height);
  border: 1px solid var(--exp-line-strong);
  color: var(--exp-ink);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) input::placeholder,
body:not(.home-redesign) textarea::placeholder {
  color: var(--exp-subtle);
  opacity: 1;
}

body:not(.home-redesign) input:focus,
body:not(.home-redesign) textarea:focus,
body:not(.home-redesign) select:focus,
body:not(.home-redesign) button:focus-visible,
body:not(.home-redesign) a:focus-visible,
body:not(.home-redesign) summary:focus-visible {
  outline: 3px solid var(--exp-focus);
  outline-offset: 2px;
  border-color: var(--exp-accent);
  box-shadow: none;
}

body:not(.home-redesign) label,
body:not(.home-redesign) .label {
  color: var(--exp-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

body:not(.home-redesign) .table-wrap,
body:not(.home-redesign) .quick-table-wrap,
body:not(.home-redesign) .financial-history-table-wrap,
body:not(.home-redesign) .chart-wrap,
body:not(.home-redesign) .price-chart-section {
  overflow: auto;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .table,
body:not(.home-redesign) .compare-table,
body:not(.home-redesign) .stock-analysis-table,
body:not(.home-redesign) .quick-table,
body:not(.home-redesign) .financial-history-table {
  color: var(--exp-ink);
  background: transparent;
}

body:not(.home-redesign) .table th,
body:not(.home-redesign) .compare-table th,
body:not(.home-redesign) .stock-analysis-table th,
body:not(.home-redesign) .quick-table th,
body:not(.home-redesign) .financial-history-table th {
  color: var(--exp-muted);
  background: var(--exp-surface-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

body:not(.home-redesign) .table td,
body:not(.home-redesign) .compare-table td,
body:not(.home-redesign) .stock-analysis-table td,
body:not(.home-redesign) .quick-table td,
body:not(.home-redesign) .financial-history-table td {
  border-color: var(--exp-line);
  color: var(--exp-ink);
}

body:not(.home-redesign) .table tbody tr:hover,
body:not(.home-redesign) .compare-table tbody tr:hover,
body:not(.home-redesign) .stock-analysis-table tbody tr:hover,
body:not(.home-redesign) .quick-table tbody tr:hover,
body:not(.home-redesign) .financial-history-table tbody tr:hover {
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .status,
body:not(.home-redesign) .empty-state,
body:not(.home-redesign) .empty-watchlist,
body:not(.home-redesign) .technical-empty,
body:not(.home-redesign) .financial-change-empty,
body:not(.home-redesign) .research-status,
body:not(.home-redesign) .directory-status,
body:not(.home-redesign) .status-row {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-sm);
  color: var(--exp-muted);
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .status.error,
body:not(.home-redesign) .status.is-error {
  color: var(--exp-negative);
  border-color: color-mix(in srgb, var(--exp-negative) 32%, var(--exp-line));
  background: var(--exp-negative-soft);
}

body:not(.home-redesign) .positive,
body:not(.home-redesign) .rise,
body:not(.home-redesign) .change-positive {
  color: var(--exp-positive);
}

body:not(.home-redesign) .negative,
body:not(.home-redesign) .loss,
body:not(.home-redesign) .change-negative {
  color: var(--exp-negative);
}

body:not(.home-redesign) .metric-grid,
body:not(.home-redesign) .research-grid,
body:not(.home-redesign) .research-hub-grid,
body:not(.home-redesign) .directory-stock-grid,
body:not(.home-redesign) .market-directory-grid,
body:not(.home-redesign) .public-note-grid,
body:not(.home-redesign) .ops-grid,
body:not(.home-redesign) .about-grid,
body:not(.home-redesign) .content-grid {
  gap: 12px;
}

body:not(.home-redesign) .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body:not(.home-redesign) .metric {
  min-height: 116px;
  padding: 16px;
}

body:not(.home-redesign) .metric .label,
body:not(.home-redesign) .metric-card .label {
  color: var(--exp-muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

body:not(.home-redesign) .metric .value,
body:not(.home-redesign) .metric-card .value {
  margin-top: 9px;
  color: var(--exp-ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body:not(.home-redesign) .score-legend,
body:not(.home-redesign) .legend-pill,
body:not(.home-redesign) .chip-line,
body:not(.home-redesign) .suggestion-chip,
body:not(.home-redesign) .research-public-badge,
body:not(.home-redesign) .directory-pill,
body:not(.home-redesign) .current-market-pill {
  border-radius: 999px;
}

body:not(.home-redesign) .legend-pill,
body:not(.home-redesign) .research-public-badge,
body:not(.home-redesign) .directory-pill,
body:not(.home-redesign) .current-market-pill {
  border: 1px solid var(--exp-line);
  color: var(--exp-muted);
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .research-page,
body:not(.home-redesign) .market-guide-page,
body:not(.home-redesign) .trust-page,
body:not(.home-redesign) .contact-shell,
body:not(.home-redesign) .coming-soon-card,
body:not(.home-redesign) .content-card {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

body:not(.home-redesign) .research-page,
body:not(.home-redesign) .trust-page {
  gap: 28px;
}

body:not(.home-redesign) .research-content,
body:not(.home-redesign) .trust-content,
body:not(.home-redesign) .detail-body,
body:not(.home-redesign) .content-card {
  max-width: 76ch;
}

body:not(.home-redesign) .research-content h2,
body:not(.home-redesign) .research-content h3,
body:not(.home-redesign) .trust-content h2,
body:not(.home-redesign) .trust-content h3,
body:not(.home-redesign) .detail-body h2,
body:not(.home-redesign) .detail-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

body:not(.home-redesign) .research-grid,
body:not(.home-redesign) .research-hub-grid,
body:not(.home-redesign) .about-grid,
body:not(.home-redesign) .content-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

body:not(.home-redesign) .research-card,
body:not(.home-redesign) .research-hub-card,
body:not(.home-redesign) .about-panel,
body:not(.home-redesign) .about-callout,
body:not(.home-redesign) .research-note,
body:not(.home-redesign) .research-section,
body:not(.home-redesign) .research-panel {
  padding: 18px;
}

body:not(.home-redesign) .research-card h2,
body:not(.home-redesign) .research-card h3,
body:not(.home-redesign) .research-hub-card h2,
body:not(.home-redesign) .research-hub-card h3 {
  margin-top: 0;
}

body:not(.home-redesign) .trust-page .trust-hero,
body:not(.home-redesign) .contact-shell .page-hero,
body:not(.home-redesign) .content-card {
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-lg);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .trust-page .trust-hero {
  padding: 28px;
}

body:not(.home-redesign) .trust-page .trust-hero p,
body:not(.home-redesign) .contact-shell .page-hero p {
  max-width: 68ch;
}

body:not(.home-redesign) .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: stretch;
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 0;
}

body:not(.home-redesign) .auth-intro,
body:not(.home-redesign) .auth-panel,
body:not(.home-redesign) .auth-layout > * {
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-lg);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

body:not(.home-redesign) .auth-panel {
  padding: 28px;
}

body:not(.home-redesign) .auth-form,
body:not(.home-redesign) .contact-form {
  display: grid;
  gap: 14px;
}

body:not(.home-redesign) .auth-tabs,
body:not(.home-redesign) .auth-actions,
body:not(.home-redesign) .contact-actions,
body:not(.home-redesign) .compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.home-redesign) .stock-loader,
body:not(.home-redesign) .stock-loader-wrap {
  border-radius: var(--exp-radius-md);
}

body:not(.home-redesign) .stock-loader {
  border: 1px solid var(--exp-line);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .stock-title-row,
body:not(.home-redesign) .analysis-heading,
body:not(.home-redesign) .technical-heading,
body:not(.home-redesign) .financial-change-title,
body:not(.home-redesign) .metrics-heading-row,
body:not(.home-redesign) .movers-panel-heading,
body:not(.home-redesign) .research-results-head,
body:not(.home-redesign) .directory-results-head,
body:not(.home-redesign) .events-head-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body:not(.home-redesign) .stock-title-row h1 {
  font-size: 1.75rem;
}

body:not(.home-redesign) .stock-trust-panel,
body:not(.home-redesign) .public-note-grid,
body:not(.home-redesign) .summary-card,
body:not(.home-redesign) .technical-card,
body:not(.home-redesign) .financial-change-card {
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .compare-controls,
body:not(.home-redesign) .screener-toolbar,
body:not(.home-redesign) .calendar-controls-bar,
body:not(.home-redesign) .market-controls,
body:not(.home-redesign) .directory-controls,
body:not(.home-redesign) .watchlist-toolbar {
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface-soft);
  box-shadow: none;
}

body:not(.home-redesign) .compare-form,
body:not(.home-redesign) .filter-grid,
body:not(.home-redesign) .calendar-filters,
body:not(.home-redesign) .market-controls,
body:not(.home-redesign) .directory-controls,
body:not(.home-redesign) .watchlist-add-form {
  gap: 10px;
}

body:not(.home-redesign) .compare-table-card,
body:not(.home-redesign) .summary-card,
body:not(.home-redesign) .screener-page .results-panel,
body:not(.home-redesign) .market-page .market-list,
body:not(.home-redesign) .movers-panel,
body:not(.home-redesign) .calendar-panel {
  min-width: 0;
}

body:not(.home-redesign) .chat-shell,
body:not(.home-redesign) .chat-layout {
  min-width: 0;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius-lg);
  background: var(--exp-surface);
  box-shadow: none;
}

body:not(.home-redesign) .chat-list,
body:not(.home-redesign) .composer {
  background: var(--exp-surface-soft);
}

body:not(.home-redesign) .site-footer {
  margin-top: 48px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--exp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.home-redesign) .footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

body:not(.home-redesign) .footer-brand {
  margin: 0 0 6px;
  color: var(--exp-ink);
  font-weight: 800;
}

body:not(.home-redesign) .footer-note,
body:not(.home-redesign) .footer-meta {
  color: var(--exp-subtle);
  font-size: 0.76rem;
}

body:not(.home-redesign) .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: 620px;
}

body:not(.home-redesign) .footer-links a {
  color: var(--exp-muted);
  font-size: 0.78rem;
}

body:not(.home-redesign) .footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--exp-line);
}

body:not(.home-redesign) .reveal {
  animation: none;
}

@media (max-width: 980px) {
  body:not(.home-redesign) .top-nav {
    flex-wrap: wrap;
  }

  body:not(.home-redesign) .top-nav .global-search,
  body:not(.home-redesign) .top-nav .top-search {
    order: 3;
    flex-basis: 100%;
  }

  body:not(.home-redesign) .top-actions {
    margin-left: auto;
  }

  body:not(.home-redesign) .auth-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  body:not(.home-redesign) .page-shell {
    padding: 12px 14px 44px;
  }

  body:not(.home-redesign) .top-nav {
    top: 8px;
    gap: 8px;
    padding: 8px;
  }

  body:not(.home-redesign) .top-nav .logo {
    min-height: 40px;
  }

  body:not(.home-redesign) .global-search input,
  body:not(.home-redesign) .top-search input {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body:not(.home-redesign) .global-search .btn,
  body:not(.home-redesign) .top-search .btn {
    width: auto !important;
    min-width: 88px !important;
    flex: 0 0 auto !important;
  }

  body:not(.home-redesign) .top-actions {
    width: 100%;
    margin-left: 0;
  }

  body:not(.home-redesign) .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.home-redesign) .nav-links > a,
  body:not(.home-redesign) .market-menu,
  body:not(.home-redesign) .learn-menu,
  body:not(.home-redesign) .account-menu,
  body:not(.home-redesign) .market-menu summary,
  body:not(.home-redesign) .learn-menu summary,
  body:not(.home-redesign) .account-menu summary {
    width: 100%;
  }

  body:not(.home-redesign) .theme-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  body:not(.home-redesign) .nav-links {
    padding-right: 46px;
  }

  body:not(.home-redesign) main {
    gap: 16px;
    margin-top: 18px;
  }

  body:not(.home-redesign) h1 {
    font-size: 1.62rem;
  }

  body:not(.home-redesign) h2 {
    font-size: 1.12rem;
  }

  body:not(.home-redesign) .card,
  body:not(.home-redesign) .page-hero {
    padding: 18px;
  }

  body:not(.home-redesign) .stock-title-row,
  body:not(.home-redesign) .analysis-heading,
  body:not(.home-redesign) .technical-heading,
  body:not(.home-redesign) .financial-change-title,
  body:not(.home-redesign) .metrics-heading-row,
  body:not(.home-redesign) .movers-panel-heading,
  body:not(.home-redesign) .research-results-head,
  body:not(.home-redesign) .directory-results-head,
  body:not(.home-redesign) .events-head-bar,
  body:not(.home-redesign) .footer-top {
    display: grid;
  }

  body:not(.home-redesign) .footer-links {
    justify-content: flex-start;
  }

  body:not(.home-redesign) .footer-meta {
    display: grid;
  }

  body:not(.home-redesign) .table,
  body:not(.home-redesign) .compare-table,
  body:not(.home-redesign) .stock-analysis-table,
  body:not(.home-redesign) .quick-table,
  body:not(.home-redesign) .financial-history-table {
    min-width: 620px;
  }
}

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

/* Late-cascade cleanup for route-specific legacy rules. */
body:not(.home-redesign) .global-search .btn,
body:not(.home-redesign) .top-search .btn {
  border-color: var(--exp-accent) !important;
  color: oklch(0.99 0.005 250) !important;
  background: var(--exp-accent) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .nav-links > a,
body:not(.home-redesign) .account-menu summary,
body:not(.home-redesign) .market-menu summary,
body:not(.home-redesign) .learn-menu summary,
body:not(.home-redesign) .theme-toggle {
  border-color: var(--exp-line) !important;
  color: var(--exp-muted) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .nav-links > a:hover,
body:not(.home-redesign) .account-menu summary:hover,
body:not(.home-redesign) .market-menu summary:hover,
body:not(.home-redesign) .learn-menu summary:hover,
body:not(.home-redesign) .theme-toggle:hover,
body:not(.home-redesign) .account-menu[open] summary,
body:not(.home-redesign) .market-menu[open] summary,
body:not(.home-redesign) .learn-menu[open] summary {
  background: var(--exp-surface-soft) !important;
  background-image: none !important;
}

body:not(.home-redesign) .nav-links > a.active,
body:not(.home-redesign) .market-menu.active summary,
body:not(.home-redesign) .learn-menu.active summary {
  color: var(--exp-accent-strong) !important;
  border-color: color-mix(in srgb, var(--exp-accent) 35%, var(--exp-line)) !important;
  background: var(--exp-accent-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .market-tab,
body:not(.home-redesign) .research-tab,
body:not(.home-redesign) .event-tab,
body:not(.home-redesign) .type-tab,
body:not(.home-redesign) .range-tab,
body:not(.home-redesign) .mover-range-tab,
body:not(.home-redesign) .directory-market-tab,
body:not(.home-redesign) .timeframe-btn,
body:not(.home-redesign) .market-option,
body:not(.home-redesign) .watchlist-country-tab {
  border: 1px solid var(--exp-line) !important;
  color: var(--exp-muted) !important;
  background: var(--exp-surface-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .market-tab:hover,
body:not(.home-redesign) .research-tab:hover,
body:not(.home-redesign) .event-tab:hover,
body:not(.home-redesign) .type-tab:hover,
body:not(.home-redesign) .range-tab:hover,
body:not(.home-redesign) .mover-range-tab:hover,
body:not(.home-redesign) .directory-market-tab:hover,
body:not(.home-redesign) .timeframe-btn:hover,
body:not(.home-redesign) .market-option:hover,
body:not(.home-redesign) .watchlist-country-tab:hover {
  color: var(--exp-ink) !important;
  border-color: var(--exp-accent) !important;
  background: var(--exp-accent-soft) !important;
}

body:not(.home-redesign) .market-tab[aria-pressed="true"],
body:not(.home-redesign) .research-tab[aria-pressed="true"],
body:not(.home-redesign) .event-tab[aria-selected="true"],
body:not(.home-redesign) .type-tab[aria-selected="true"],
body:not(.home-redesign) .range-tab.active,
body:not(.home-redesign) .mover-range-tab.active,
body:not(.home-redesign) .directory-market-tab[aria-pressed="true"],
body:not(.home-redesign) .timeframe-btn.active,
body:not(.home-redesign) .market-option[aria-pressed="true"],
body:not(.home-redesign) .watchlist-country-tab.active {
  color: var(--exp-accent-strong) !important;
  border-color: var(--exp-accent) !important;
  background: var(--exp-accent-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .market-guide-link,
body:not(.home-redesign) .research-card,
body:not(.home-redesign) .research-hub-card,
body:not(.home-redesign) .directory-stock-card,
body:not(.home-redesign) .market-directory-card,
body:not(.home-redesign) .research-grid > *,
body:not(.home-redesign) .directory-stock-grid > *,
body:not(.home-redesign) .market-directory-grid > * {
  border-color: var(--exp-line) !important;
  background: var(--exp-surface-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not(.home-redesign) .market-guide-link:hover,
body:not(.home-redesign) .research-card:hover,
body:not(.home-redesign) .research-hub-card:hover,
body:not(.home-redesign) .directory-stock-card:hover,
body:not(.home-redesign) .market-directory-card:hover {
  border-color: var(--exp-accent) !important;
  background: var(--exp-accent-soft) !important;
  transform: none !important;
}

body:not(.home-redesign) .btn-primary,
body:not(.home-redesign) .btn-danger {
  background-image: none !important;
  box-shadow: none !important;
}
