:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --paper: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #fbfcfb;
  --panel-muted: #f8faf7;
  --ink: #111614;
  --muted: #68736d;
  --line: #d8e0da;
  --line-strong: #b8c4bc;
  --green: #087a4d;
  --red: #c23b3b;
  --blue: #2458d3;
  --amber: #9a5d00;
  --circuit-chip-bg: linear-gradient(145deg, #07090d, #151b27 54%, #090b10);
  --circuit-chip-ink: #f8fafc;
  --circuit-chip-accent: #d99b55;
  --circuit-chip-border: rgba(217, 155, 85, 0.42);
  --circuit-chip-glow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(217, 155, 85, 0.2),
    0 0 18px rgba(141, 234, 255, 0.18),
    0 12px 28px rgba(6, 9, 14, 0.18);
  --chart-bg: #fbfcfb;
  --chart-grid: #d8e0da;
  --chart-text: #68736d;
  --wash-blue: rgba(36, 88, 211, 0.08);
  --wash-green: rgba(8, 122, 77, 0.1);
  --shadow: 0 18px 46px rgba(20, 28, 24, 0.09);
  --glow: 0 0 28px rgba(8, 122, 77, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090c;
  --paper: #111318;
  --panel: rgba(17, 19, 24, 0.92);
  --panel-solid: #101218;
  --panel-muted: #171a22;
  --ink: #f3f6f8;
  --muted: #9aa4b2;
  --line: rgba(190, 202, 216, 0.16);
  --line-strong: rgba(190, 202, 216, 0.26);
  --green: #40d58c;
  --red: #ff6f6f;
  --blue: #8fb4ff;
  --amber: #f0b650;
  --circuit-chip-bg: linear-gradient(145deg, #05070b, #151a26 58%, #080a0f);
  --circuit-chip-ink: #f8fafc;
  --circuit-chip-accent: #f0b650;
  --circuit-chip-border: rgba(240, 182, 80, 0.5);
  --circuit-chip-glow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(240, 182, 80, 0.18),
    0 0 22px rgba(141, 234, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.34);
  --chart-bg: #0c0f14;
  --chart-grid: rgba(190, 202, 216, 0.14);
  --chart-text: #9aa4b2;
  --wash-blue: rgba(80, 118, 190, 0.16);
  --wash-green: rgba(160, 170, 185, 0.06);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --glow: 0 0 30px rgba(143, 180, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, var(--wash-blue), transparent 34rem),
    radial-gradient(circle at 88% 8%, var(--wash-green), transparent 38rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  sans-serif;
  transition:
    background 220ms ease,
    color 220ms ease;
}

body.splash-active {
  overflow: hidden;
}

.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(141, 234, 255, 0.14), transparent 17rem),
    radial-gradient(circle at 38% 28%, rgba(240, 182, 80, 0.18), transparent 22rem),
    linear-gradient(135deg, #05070b, #111722 54%, #07090d);
  color: #f8fafc;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 620ms ease,
    visibility 620ms ease;
}

.launch-screen::before,
.launch-screen::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(240, 182, 80, 0.16);
  pointer-events: none;
}

.launch-screen::after {
  inset: 18%;
  border-color: rgba(141, 234, 255, 0.12);
  filter: blur(0.2px);
}

body.splash-done .launch-screen {
  opacity: 0;
  visibility: hidden;
}

.launch-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(520px, 100%);
  text-align: center;
}

.launch-mark-wrap {
  display: grid;
  place-items: center;
  width: clamp(118px, 20vw, 176px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 182, 80, 0.4);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(6, 9, 14, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 34px rgba(141, 234, 255, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.48);
}

.launch-mark {
  width: 82%;
  height: 82%;
  border-radius: 28px;
}

.launch-wordmark {
  display: grid;
  gap: 8px;
}

.launch-wordmark strong {
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.65rem, 5vw, 3.75rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.launch-wordmark span {
  color: #f0b650;
  font-size: clamp(0.82rem, 1.8vw, 1.24rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.launch-loader {
  display: grid;
  gap: 12px;
  width: min(320px, 82vw);
  color: #aeb8c7;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.launch-loader i {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.launch-loader i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #8deaff, #f0b650);
  box-shadow: 0 0 18px rgba(141, 234, 255, 0.46);
  animation: launchProgress 1.45s ease-in-out infinite;
}

@keyframes launchProgress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

.terminal-layout {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  width: 154px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    color-mix(in srgb, var(--bg) 92%, var(--paper));
}

.rail-brand {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.rail-brand:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  transform: translateY(-1px);
}

.rail-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  filter: drop-shadow(0 0 10px rgba(141, 234, 255, 0.16));
}

.rail-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rail-brand strong,
.rail-brand em {
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

.rail-brand strong {
  color: var(--ink);
  font-size: 0.7rem;
}

.rail-brand em {
  color: #d99b55;
  font-size: 0.54rem;
  font-style: normal;
}

.rail-nav {
  display: grid;
  align-self: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    color-mix(in srgb, var(--panel) 72%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.rail-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.rail-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--circuit-chip-accent);
  opacity: 0.42;
  box-shadow: 0 0 0 transparent;
}

.rail-nav a::after {
  content: "›";
  justify-self: end;
  color: var(--amber);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.58;
}

.rail-nav a:hover,
.rail-nav a.active {
  border-color: var(--circuit-chip-border);
  background: var(--circuit-chip-bg);
  color: var(--circuit-chip-ink);
  box-shadow: var(--circuit-chip-glow);
  transform: translateX(1px);
}

.rail-nav a:hover::before,
.rail-nav a.active::before {
  opacity: 1;
  box-shadow:
    0 0 0 3px rgba(240, 182, 80, 0.12),
    0 0 14px rgba(141, 234, 255, 0.36);
}

.rail-nav a:hover::after,
.rail-nav a.active::after {
  color: var(--circuit-chip-accent);
  opacity: 1;
}

.terminal-main {
  min-width: 0;
  padding: 18px 16px 0;
  grid-column: 2;
}

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

.topbar,
.summary-grid,
.controls,
.stock-grid,
.news-section,
.investor-section,
footer {
  width: 100%;
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 58px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--panel);
  box-shadow:
    inset 0 0 18px rgba(8, 122, 77, 0.08),
    var(--shadow);
}

.theme-option {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-option:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-option.active {
  background: rgba(8, 122, 77, 0.16);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(191, 244, 216, 0.22),
    0 0 18px rgba(8, 122, 77, 0.18);
}

:root[data-theme="dark"] .theme-option.active {
  background: rgba(191, 244, 216, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(191, 244, 216, 0.24),
    0 0 22px rgba(64, 213, 140, 0.2);
}

.brand {
  width: min(720px, 100%);
}

.brand img {
  display: block;
  width: min(450px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(20, 28, 24, 0.08));
}

.terminal-wordmark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 4.1rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-wordmark span,
.terminal-wordmark strong {
  display: block;
  letter-spacing: 0;
}

.terminal-wordmark strong {
  color: var(--blue);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--line);
  box-shadow: none;
}

.summary-grid > div {
  min-height: 78px;
  padding: 16px 18px;
  background: var(--panel);
}

.summary-grid span,
.metric-label,
.data-label,
th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(8, minmax(44px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  overflow-x: auto;
  max-width: 520px;
  width: min(520px, 100%);
}

.segmented button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.segmented button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.segmented button.active {
  border-color: var(--circuit-chip-border);
  background: var(--circuit-chip-bg);
  color: var(--circuit-chip-ink);
  box-shadow: var(--circuit-chip-glow);
}

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

.stock-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  scroll-margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.stock-card:hover {
  border-color: var(--line-strong);
  box-shadow:
    0 20px 50px rgba(20, 28, 24, 0.1),
    var(--glow);
  transform: none;
}

.stock-head {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, auto) minmax(172px, auto);
  gap: 18px;
  align-items: start;
}

.stock-identity {
  min-width: 0;
}

.ticker-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ticker {
  display: inline-grid;
  min-width: 58px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--circuit-chip-border);
  border-radius: 3px;
  background: var(--circuit-chip-bg);
  color: var(--circuit-chip-ink);
  font-weight: 900;
  box-shadow: var(--circuit-chip-glow);
}

:root[data-theme="dark"] .ticker {
  background: var(--circuit-chip-bg);
  color: var(--circuit-chip-ink);
  box-shadow: var(--circuit-chip-glow);
}

.grant-chip {
  color: var(--amber);
  font-weight: 850;
}

.stock-card h3 {
  margin: 10px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.24rem, 1.8vw, 1.72rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.exchange {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.since-news-metric {
  justify-self: center;
  padding-top: 2px;
  text-align: center;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1;
  white-space: nowrap;
}

.quote-stack {
  display: grid;
  justify-self: end;
  min-width: 172px;
  gap: 8px;
  text-align: right;
}

.quote-block {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.quote-price {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.7vw, 1.46rem);
  font-weight: 900;
  line-height: 1;
}

.quote-block.extended .quote-price {
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
}

.quote-change {
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.quote-stamp {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.22;
}

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

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

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 238px;
  border-radius: 2px;
  overflow: hidden;
  background: #fbfcfb;
  background: var(--chart-bg);
  box-shadow:
    inset 0 0 34px rgba(143, 180, 255, 0.035),
    0 0 22px rgba(143, 180, 255, 0.05);
}

canvas {
  display: block;
  width: 100%;
  height: 238px;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 154px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 22, 20, 0.14);
  border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow:
    0 14px 30px rgba(20, 28, 24, 0.16),
    0 0 18px rgba(8, 122, 77, 0.12);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
  pointer-events: none;
  transform: translate(12px, -50%);
}

.chart-tooltip.right {
  transform: translate(calc(-100% - 12px), -50%);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  margin-top: 3px;
  color: var(--muted);
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--line);
}

.data-strip div {
  min-width: 0;
  padding: 12px;
  background: var(--panel-solid);
}

.data-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 0.98rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.news-section,
.investor-section {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.section-heading > div {
  display: inline-grid;
  gap: 4px;
  min-width: 210px;
  padding: 10px 14px;
  border: 1px solid var(--circuit-chip-border);
  border-radius: 3px;
  background: var(--circuit-chip-bg);
  box-shadow: var(--circuit-chip-glow);
}

.section-heading .section-kicker {
  margin: 0;
  color: var(--circuit-chip-accent);
  font-size: 0.74rem;
  font-weight: 900;
}

.section-heading h2 {
  color: var(--circuit-chip-ink);
}

.investor-section .section-heading .section-kicker {
  color: var(--circuit-chip-ink);
  font-size: clamp(1.02rem, 1.5vw, 1.42rem);
  line-height: 1.05;
}

.investor-section .section-heading > div::after {
  content: "";
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--circuit-chip-accent);
  box-shadow: 0 0 16px rgba(141, 234, 255, 0.22);
}

.section-heading time {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(20, 28, 24, 0.06);
}

.news-list a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: 100%;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.news-source {
  color: var(--circuit-chip-accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.22;
}

.news-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

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

th {
  background: var(--panel-muted);
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  font-size: 0.92rem;
}

td strong {
  display: block;
  margin-bottom: 4px;
}

.investor-holding span {
  display: block;
  line-height: 1.28;
}

.empty-cell {
  color: var(--muted);
}

footer {
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.skeleton {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent),
    var(--panel);
  background-size: 300% 100%, auto;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0, 0 0;
  }
  to {
    background-position: -100% 0, 0 0;
  }
}

@media (max-width: 1180px) {
  .terminal-layout {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .side-rail {
    width: 136px;
  }

  .rail-brand {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .terminal-layout {
    display: block;
  }

  .side-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: auto;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand {
    min-height: 42px;
    padding: 0 10px 0 0;
    border-bottom: 0;
  }

  .rail-brand span {
    display: none;
  }

  .rail-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
  }

  .rail-nav a {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .rail-nav a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .launch-wordmark span {
    letter-spacing: 0.12em;
  }

  .topbar,
  .controls,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .stock-head {
    grid-template-columns: 1fr;
  }

  .since-news-metric,
  .quote-stack {
    justify-self: start;
    text-align: left;
  }

  .quote-block {
    justify-items: start;
  }

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

  .data-strip div:last-child {
    grid-column: 1 / -1;
  }

  .segmented {
    width: 100%;
  }

  .terminal-wordmark {
    flex-direction: column;
    gap: 4px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-loader i::after {
    animation: none;
    transform: translateX(70%);
  }
}

@media (max-width: 460px) {
  .topbar,
  .summary-grid,
  .controls,
  .stock-grid,
  .news-section,
  .investor-section,
  footer {
    width: 100%;
  }

  .terminal-main {
    padding-inline: 10px;
  }

  .stock-card {
    padding: 14px;
  }

  .data-strip {
    grid-template-columns: 1fr;
  }

  .data-strip div:last-child {
    grid-column: auto;
  }
}
