:root {
  --bg-primary: #06090e;
  --bg-secondary: #0b1017;
  --bg-card: #0f1622;
  --bg-card-hover: #141d2d;
  --bg-elevated: #172235;
  --border-subtle: #1c283c;
  --border-focus: #2e4366;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-bg: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.12);
  --accent-rose: #f43f5e;
  --accent-rose-bg: rgba(244, 63, 94, 0.12);
  --accent-purple: #a855f7;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.06), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(16, 185, 129, 0.05), transparent 38%),
    var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Top Market Ticker Tape */
.ticker-tape {
  background: #04070b;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.ticker-tape::-webkit-scrollbar {
  height: 3px;
}
.ticker-tape::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
}

.tape-index-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-blue);
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-size: 12px;
}

.tape-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
}

.tape-item.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-blue);
}

.tape-symbol {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.tape-price {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Sticky App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 16, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 20px;
}

.header-inner {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: #041019;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.35);
}

.brand-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Navigation Pills */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nav-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

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

.company-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.company-select-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.company-select {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.company-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-action {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-action:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* App Layout with Fixed Left Sidebar */
.app-layout {
  max-width: 1720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 20px 64px;
  align-items: start;
}

.left-sidebar {
  position: sticky;
  top: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar-section-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.35);
}

.sidebar-company-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-company-btn {
  background: rgba(10, 15, 24, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.14s ease;
}

.sidebar-company-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.sidebar-company-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--accent-blue);
  color: var(--text-primary);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    display: none;
  }
}

/* Company Quick Selector Bar */
.company-pill-bar {
  display: grid;
  grid-template-columns: repeat(10, minmax(105px, 1fr));
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 6px;
}

.company-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.company-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.company-pill.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(15, 22, 34, 0.95));
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill-ticker {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
}

.pill-weight {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.pill-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Main Content Area */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.module-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  scroll-margin-top: 78px;
}

.module-section.hidden {
  display: none;
}

.module-section.collapsed .module-body {
  display: none;
}

.module-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  font-weight: 700;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  font-size: 12.2px;
  color: var(--text-secondary);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 11.3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Cards & Grid Layouts */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 11.8px;
  color: var(--text-secondary);
}

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

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

.grid-sidebar {
  display: grid;
  grid-template-columns: 375px minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 1150px) {
  .grid-2, .grid-3, .grid-sidebar {
    grid-template-columns: 1fr;
  }
  .company-pill-bar {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 8px 12px;
  }
  .header-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .company-select-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .company-select {
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .company-pill-bar {
    grid-template-columns: repeat(3, minmax(95px, 1fr));
    gap: 6px;
  }
}

.est-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9.8px;
  font-weight: 700;
  text-transform: lowercase;
  padding: 1px 5px;
  margin-left: 4px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
  text-decoration: none;
  cursor: help;
  vertical-align: middle;
}

.capex-warning-banner {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Semantic Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.2px;
  font-weight: 600;
}

.badge-emerald {
  background: var(--accent-emerald-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: var(--accent-amber-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-rose {
  background: var(--accent-rose-bg);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.text-emerald { color: #34d399; }
.text-amber { color: #fbbf24; }
.text-rose { color: #fb7185; }
.text-blue { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }

/* Data Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.2px;
  white-space: nowrap;
}

.data-table th {
  background: #0a0f18;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 9px 11px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #0c121c;
  z-index: 2;
  border-right: 1px solid var(--border-subtle);
}

.data-table th:first-child {
  z-index: 3;
  background: #090d15;
}

.data-table td {
  padding: 8px 11px;
  text-align: right;
  border-bottom: 1px solid rgba(28, 40, 60, 0.65);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.data-table td.label-cell {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
}

.data-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

.data-table tr.highlight-row td {
  background: rgba(56, 189, 248, 0.09);
  font-weight: 700;
}

.data-table tr.section-divider td {
  background: #090e17;
  color: var(--accent-blue);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  text-align: left;
}

/* Chart Containers */
.chart-box {
  width: 100%;
  height: 320px;
  position: relative;
}

.chart-box-sm {
  width: 100%;
  height: 250px;
  position: relative;
}

/* Company Hero Banner */
.company-hero {
  background: linear-gradient(135deg, rgba(15, 22, 34, 0.96), rgba(20, 30, 48, 0.92));
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1024px) {
  .company-hero {
    grid-template-columns: 1fr;
  }
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-ticker {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 800;
  color: var(--accent-blue);
}

.hero-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-thesis {
  font-size: 12.8px;
  color: var(--text-secondary);
  line-height: 1.58;
  margin-bottom: 10px;
}

.interim-banner {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 12.2px;
  color: var(--text-primary);
}

/* Simulator Controls */
.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(10, 15, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}

.sim-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-label {
  font-size: 11.8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sim-num-input {
  width: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: right;
}

.sim-slider {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.sim-hint {
  font-size: 10.8px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.preset-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.preset-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.15);
}

/* Valuation Result Banner */
.val-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .val-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.val-box {
  background: rgba(11, 16, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.val-box.primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.12));
  border-color: var(--accent-emerald);
}

/* Sensitivity Matrix */
.sens-cell-undervalued {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  font-weight: 700;
}

.sens-cell-fair {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fbbf24 !important;
}

.sens-cell-overvalued {
  background: rgba(244, 63, 94, 0.13) !important;
  color: #fb7185 !important;
}

.sens-cell-active {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
  font-weight: 800 !important;
}

/* Range Bar for 10Y Min-Max Position */
.range-bar-wrap {
  width: 130px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  vertical-align: middle;
}

.range-track {
  height: 7px;
  width: 100%;
  background: #1a2436;
  border-radius: 4px;
  position: relative;
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #10b981, #38bdf8, #f43f5e);
}

.range-marker {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 13px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* BII Pillar Bars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.2px;
  color: var(--text-secondary);
}

.pillar-track {
  height: 6px;
  background: #182234;
  border-radius: 3px;
  overflow: hidden;
}

.pillar-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 3px;
}

/* Latest Published Results Cards Grid */
.results-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

@media (max-width: 1280px) {
  .results-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .results-cards-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: all 0.16s ease;
  cursor: pointer;
}

.result-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.result-card.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3), var(--shadow-card);
}

.result-metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px;
}

.result-metric-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-metric-lbl {
  font-size: 10.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.result-metric-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-bullets {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.result-guidance-box {
  background: rgba(56, 189, 248, 0.07);
  border-left: 3px solid var(--accent-blue);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11.6px;
  color: var(--text-primary);
  line-height: 1.42;
}

.portfolio-input {
  width: 90px;
  background: var(--bg-primary);
  border: 1px solid var(--border-focus);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 7px;
  border-radius: 4px;
  text-align: right;
}

.footer {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* 1-Page Print Tear Sheet CSS */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11px !important;
  }
  .ticker-tape,
  .app-header,
  .left-sidebar,
  .company-pill-bar,
  #sec-index,
  #sec-latest-results,
  #sec-peers,
  #sec-portfolio,
  .footer {
    display: none !important;
  }
  .app-layout {
    display: block !important;
    padding: 0 !important;
  }
  .module-section {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 12px !important;
  }
  .card, .kpi-card, .company-hero, .val-box {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }
}
