:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  background: #020617;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 35%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-card {
  width: min(100%, 42rem);
  padding: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
}

.landing-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 120px;
  height: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #38bdf8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: 1;
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.ticker-search,
.inline-search {
  margin-top: 2rem;
}

.search-label,
.price-label,
.section-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.search-row,
.inline-search {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-row input,
.inline-search input {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

.search-row button,
.inline-search button,
.snapshot-footer button {
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

.snapshot-shell {
  padding: 2rem;
}

.snapshot-content-slot {
  min-height: 32rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.snapshot-content-slot-loading {
  display: grid;
}

.snapshot-content-slot-resolving {
  opacity: 0;
  transform: translateY(6px);
}

.cold-load-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 42%),
    rgba(2, 6, 23, 0.56);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08);
}

.cold-load-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.cold-load-message {
  margin: 0;
  min-height: 1.75rem;
  color: #e2e8f0;
  font-size: 1.06rem;
}

.cold-load-progress {
  position: relative;
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
}

.cold-load-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
  transition: width 380ms ease;
}

.cold-load-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.95rem;
}

.cold-load-percent {
  color: #7dd3fc;
  font-weight: 700;
}

.snapshot-card {
  width: min(100%, 78rem);
  margin: 0 auto;
  padding: 2.25rem;
}

.snapshot-topbar,
.snapshot-header,
.snapshot-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.snapshot-topbar {
  align-items: center;
  margin-bottom: 2rem;
}

.brand-link {
  color: #7dd3fc;
  text-decoration: none;
}

.snapshot-header {
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.header-copy {
  max-width: 44rem;
}

.header-price-panel {
  min-width: 22rem;
  display: grid;
  gap: 1rem;
}

.header-price {
  text-align: right;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.price-value {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.range-value,
.fair-disclaimer,
.snapshot-footer p {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
}

.notice-banner,
.state-block,
.dashboard-panel,
.metric-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  border-radius: 20px;
}

.notice-banner,
.state-block {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.fair-value-meta {
  text-align: right;
}

.dashboard-stack {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.dashboard-panel {
  padding: 1.5rem 1.6rem;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.dashboard-vs {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 500;
}

.business-copy {
  margin: 0.9rem 0 0;
  color: #e2e8f0;
  font-size: 1.06rem;
  line-height: 1.78;
}

.section-footnote,
.dcf-case-assumptions,
.peer-name {
  margin: 0.5rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.dcf-header,
.debt-header,
.dcf-case-meta,
.peer-row,
.peer-label-block,
.insights-grid,
.section-heading {
  display: flex;
  gap: 1rem;
}

.dcf-header,
.debt-header,
.dcf-case-meta,
.peer-row {
  justify-content: space-between;
}

.dcf-header,
.debt-header {
  align-items: flex-start;
}

.dcf-case-list,
.peer-chart {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.verdict-band {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.verdict-item {
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.verdict-item-primary {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 44%),
    rgba(15, 23, 42, 0.82);
}

.verdict-headline,
.verdict-side-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.verdict-copy {
  margin: 0.75rem 0 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.verdict-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dcf-case-label,
.dcf-case-value,
.peer-ticker,
.peer-value {
  margin: 0;
  font-weight: 700;
}

.dcf-case-label,
.peer-ticker {
  font-size: 0.98rem;
}

.dcf-bar-track,
.peer-bar-track {
  position: relative;
  width: 100%;
  min-height: 0.95rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  overflow: hidden;
}

.dcf-bar-fill,
.peer-bar-fill {
  min-height: 0.95rem;
  border-radius: 999px;
}

.dcf-bar-bear {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.dcf-bar-base,
.peer-bar-subject {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.dcf-bar-bull {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.peer-bar-fill {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.8), rgba(100, 116, 139, 0.9));
}

.dcf-price-marker {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  width: 2px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.35);
}

.peer-row {
  align-items: stretch;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.52);
}

.peer-label-block {
  width: 100%;
  flex-direction: column;
}

.peer-name {
  margin-top: 0.2rem;
}

.peer-value {
  min-width: 4rem;
  color: #e2e8f0;
}

.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.metric-label-inline {
  gap: 0.35rem;
}

.metric-help {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.metric-help:hover {
  background: rgba(56, 189, 248, 0.28);
}

.link-button {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3fc;
  font-weight: 700;
  cursor: pointer;
}

.company-detail-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-long-explanation {
  min-height: 12rem;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  overflow-x: hidden;
  resize: vertical;
  scrollbar-width: auto;
  scrollbar-color: rgba(125, 211, 252, 0.45) rgba(15, 23, 42, 0.55);
}

.ai-long-explanation-inline {
  max-height: min(60vh, 480px);
  padding-right: 0.35rem;
}

.ai-long-explanation-modal {
  max-height: min(60vh, 480px);
}

.ai-long-explanation::-webkit-scrollbar {
  width: 0.7rem;
}

.ai-long-explanation::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.ai-long-explanation::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.55);
}

.company-detail-copy {
  margin: 0;
  color: #dbe7f5;
  font-size: 1.02rem;
  line-height: 1.85;
}

.earnings-accordion {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.earnings-quarter {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
  overflow: hidden;
}

.earnings-quarter-toggle {
  width: 100%;
  padding: 1.15rem 1.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.earnings-quarter-head,
.earnings-blurb-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.earnings-quarter-head {
  align-items: flex-start;
}

.earnings-quarter-title,
.earnings-quarter-subtitle,
.earnings-blurb-title,
.earnings-blurb-copy,
.earnings-artifact-copy,
.earnings-paragraphs p {
  margin: 0;
}

.earnings-quarter-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.earnings-quarter-subtitle,
.earnings-metric-label {
  color: #94a3b8;
}

.earnings-chevron {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.earnings-quarter-open .earnings-chevron {
  transform: rotate(180deg);
}

.earnings-metrics-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.earnings-metric-chip,
.earnings-artifact-card {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.45);
}

.earnings-metric-chip {
  display: grid;
  gap: 0.45rem;
}

.earnings-metric-chip strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.earnings-quarter-body {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.earnings-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem;
  color: #cbd5e1;
}

.earnings-loading[hidden] {
  display: none;
}

.earnings-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(125, 211, 252, 0.25);
  border-top-color: #7dd3fc;
  animation: spin 0.8s linear infinite;
}

.earnings-expanded-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.earnings-artifact-copy,
.earnings-paragraphs,
.earnings-blurb-copy {
  color: #e2e8f0;
  line-height: 1.72;
}

.earnings-paragraphs {
  display: grid;
  gap: 0.8rem;
}

.earnings-blurbs-list {
  display: grid;
  gap: 0.85rem;
}

.earnings-blurb-row {
  flex-direction: column;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.earnings-blurb-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.earnings-blurb-title {
  font-weight: 700;
}

.earnings-sources {
  margin-top: 1rem;
}

.earnings-sources[hidden] {
  display: none;
}

.earnings-sources-summary {
  width: fit-content;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.earnings-sources-summary::-webkit-details-marker {
  display: none;
}

.earnings-sources-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.18s ease;
}

.earnings-sources[open] .earnings-sources-summary::before {
  transform: rotate(90deg);
}

.earnings-sources-list {
  margin-top: 0.7rem;
}

.earnings-source-items {
  display: grid;
  gap: 0.55rem;
}

.earnings-source-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #cbd5e1;
  text-decoration: none;
}

.earnings-source-link:hover,
.earnings-source-link:focus-visible {
  color: #f8fafc;
}

.earnings-source-favicon {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #7dd3fc;
  flex: 0 0 auto;
}

.earnings-source-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.earnings-source-domain {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.earnings-source-url {
  color: #94a3b8;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.insights-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.insight-column {
  width: 100%;
}

.insights-header-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.insights-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.insights-count-pill-reward {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.insights-count-pill-risk {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.insight-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: #e2e8f0;
}

.insight-list-reward li::marker {
  color: #4ade80;
}

.insight-list-risk li::marker {
  color: #fb923c;
}

.insight-item {
  min-width: 0;
}

.insight-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
}

.insight-item-copy {
  min-width: 0;
}

.stands-out-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.stands-out-list li {
  min-width: 0;
}

.stands-out-link,
.stands-out-more {
  color: inherit;
  text-decoration: none;
}

.stands-out-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  color: #e2e8f0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.stands-out-link:hover,
.stands-out-link:focus-visible,
.stands-out-more:hover,
.stands-out-more:focus-visible {
  color: #f8fafc;
}

.stands-out-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.9rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stands-out-chip-reward {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.stands-out-chip-risk {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.stands-out-more {
  display: inline-flex;
  margin-top: 0.8rem;
  color: #7dd3fc;
  font-size: 0.9rem;
  font-weight: 700;
}

.verdict-tag {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict-undervalued {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.verdict-fair,
.verdict-unavailable {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.verdict-overvalued {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.verdict-debt-healthy {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.verdict-debt-watch {
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
}

.verdict-debt-stretched {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.verdict-debt-distressed {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.debt-metrics-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.debt-metric-clusters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.75rem;
  margin-top: 1rem;
}

.debt-metric-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.debt-metric-cluster-label {
  color: #cbd5e1;
}

.debt-metric-cluster-value {
  color: #f8fafc;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.metric-card {
  padding: 1.3rem;
  height: 100%;
}

.peer-chart-scale,
.peer-bar-footer,
.peer-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.peer-chart-scale {
  color: #94a3b8;
  font-size: 0.88rem;
}

.peer-row {
  gap: 0.8rem;
}

.peer-row-subject {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 48%),
    rgba(15, 23, 42, 0.6);
}

.peer-baseline-tag,
.peer-delta {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.peer-detail-line {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

.peer-detail-line span + span::before {
  content: "·";
  margin: 0 0.45rem 0 0.35rem;
  color: #64748b;
}

.peer-bar-footer {
  color: #94a3b8;
  font-size: 0.88rem;
}

.numbers-panel {
  margin-top: 0.1rem;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.metric-group-kicker {
  margin: 0 0 0.45rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.metric-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.number-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.metric-card .number-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.number-label {
  color: #cbd5e1;
  font-weight: 500;
}

.metric-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #f8fafc;
}

.snapshot-footer {
  align-items: center;
  margin-top: 1.5rem;
}

.metric-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}

.metric-modal[hidden] {
  display: none;
}

.metric-modal-card {
  width: min(100%, 42rem);
  max-height: min(90vh, 48rem);
  overflow: auto;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #020617;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  position: relative;
  resize: vertical;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.45) rgba(15, 23, 42, 0.55);
}

.metric-modal-card::-webkit-scrollbar {
  width: 0.7rem;
}

.metric-modal-card::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.metric-modal-card::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.55);
}

.metric-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  cursor: pointer;
}

.metric-modal-section + .metric-modal-section {
  margin-top: 1.1rem;
}

.metric-modal-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-modal-section p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.72;
}

.metric-modal-deep-dive {
  margin-top: 1.25rem;
}

.metric-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.55), rgba(56, 189, 248, 0));
}

.metric-modal-deep-dive-copy {
  display: grid;
  gap: 0.95rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.45) rgba(15, 23, 42, 0.55);
}

.metric-modal-deep-dive-copy::-webkit-scrollbar {
  width: 0.65rem;
}

.metric-modal-deep-dive-copy::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.metric-modal-deep-dive-copy::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.55);
}

.metric-modal-deep-dive-copy p {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-card,
  .snapshot-card {
    padding: 1.4rem;
  }

  .snapshot-shell,
  .landing-shell {
    padding: 1rem;
  }

  .search-row,
  .inline-search,
  .snapshot-topbar,
  .snapshot-header,
  .dcf-header,
  .debt-header,
  .section-heading,
  .peer-row,
  .snapshot-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .header-price,
  .fair-value-meta {
    min-width: 0;
    text-align: left;
  }

  .hero-stat-row,
  .verdict-band,
  .numbers-grid,
  .insights-grid,
  .earnings-metrics-grid,
  .earnings-expanded-grid {
    grid-template-columns: 1fr;
  }

  .peer-label-block {
    width: 100%;
  }

  .debt-metric-clusters,
  .peer-row-head,
  .peer-chart-scale,
  .peer-bar-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .peer-detail-line span + span::before {
    content: "";
    margin: 0;
  }

  .peer-detail-line span {
    display: block;
  }

  .insights-grid {
    flex-direction: column;
  }

  .cold-load-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}