/* style.css — Earnings Preview Dashboard
   Design tokens + all component styles
   ====================================== */

/* =============================================
   DESIGN TOKENS — DARK TERMINAL FINANCE
   Dark-mode-only. No light mode needed.
   ============================================= */
:root {
  /* --- Type Scale (fluid, compact for data density) --- */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.18vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-lg:   clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);

  /* --- 4px Spacing System --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Surfaces (Dark Slate) --- */
  --color-bg:              #0d1117;
  --color-surface:         #161b22;
  --color-surface-2:       #1c2128;
  --color-surface-offset:  #21262d;
  --color-surface-offset-2:#2d333b;
  --color-surface-dynamic: #373e47;
  --color-divider:         #30363d;
  --color-border:          #3d444d;

  /* --- Text --- */
  --color-text:            #e6edf3;
  --color-text-muted:      #8b949e;
  --color-text-faint:      #545d68;
  --color-text-inverse:    #0d1117;

  /* --- Primary: Blue (Info/Neutral) --- */
  --color-primary:         #58a6ff;
  --color-primary-hover:   #79b8ff;
  --color-primary-active:  #388bfd;
  --color-primary-highlight:rgba(88, 166, 255, 0.1);

  /* --- Semantic: Bullish/Green --- */
  --color-success:         #3fb950;
  --color-success-hover:   #56d364;
  --color-success-active:  #2ea043;
  --color-success-highlight:rgba(63, 185, 80, 0.12);

  /* --- Semantic: Bearish/Red --- */
  --color-error:           #f85149;
  --color-error-hover:     #ff7b72;
  --color-error-active:    #da3633;
  --color-error-highlight: rgba(248, 81, 73, 0.12);

  /* --- Semantic: Warning/Amber --- */
  --color-warning:         #d29922;
  --color-warning-hover:   #e3b341;
  --color-warning-active:  #bb8009;
  --color-warning-highlight:rgba(210, 153, 34, 0.12);

  /* --- Accent: Purple (sector badges) --- */
  --color-purple:          #bc8cff;
  --color-purple-highlight:rgba(188, 140, 255, 0.12);

  /* --- Radius --- */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows (dark mode) --- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1400px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}


/* =============================================
   LOGIN GATE
   ============================================= */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 300ms ease, transform 300ms ease;
}

.login-gate-exit {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6);
  width: 100%;
  max-width: 360px;
}

.login-logo {
  width: 48px;
  height: 48px;
}

.login-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.login-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0;
  margin-top: calc(-1 * var(--space-2));
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.login-input-wrap {
  position: relative;
  width: 100%;
}

.login-lock-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: calc(var(--space-3) + 16px + var(--space-3));
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  box-sizing: border-box;
}

.login-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
}

.login-input::placeholder {
  color: var(--color-text-faint);
}

.login-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}

.login-btn:hover {
  opacity: 0.9;
}

.login-btn:active {
  transform: scale(0.98);
}

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

.login-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  text-align: center;
  margin: 0;
  min-height: 1.2em;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 400ms ease;
}


/* =============================================
   DASHBOARD LAYOUT
   Full-viewport, single scroll region
   ============================================= */
html, body {
  height: 100%;
  overflow: hidden;
}

.dashboard {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100dvh;
}

/* --- Top Bar --- */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 20;
  flex-shrink: 0;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.topbar-logo svg {
  width: 32px;
  height: 32px;
}

.topbar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar-title span {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- Ticker Search --- */
.ticker-search-wrap {
  position: relative;
  flex: 0 1 380px;
  margin-left: auto;
}

.ticker-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  padding-left: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.ticker-search-input::placeholder {
  color: var(--color-text-faint);
}

.ticker-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.ticker-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.ticker-search-kbd {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  line-height: 1;
  pointer-events: none;
}

/* --- Autocomplete Dropdown --- */
.ticker-dropdown {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.ticker-dropdown.open {
  display: block;
}

.ticker-dropdown-group {
  padding: var(--space-1) 0;
}

.ticker-dropdown-group-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-4);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.ticker-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: background var(--transition-interactive);
  font-size: var(--text-sm);
}

.ticker-dropdown-item:hover,
.ticker-dropdown-item.active {
  background: var(--color-surface-offset);
}

.ticker-dropdown-item .ticker-symbol {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text);
  min-width: 56px;
  font-variant-numeric: tabular-nums;
}

.ticker-dropdown-item .ticker-dash {
  color: var(--color-text-faint);
}

.ticker-dropdown-item .ticker-sector {
  color: var(--color-text-faint);
  margin-left: auto;
  font-size: var(--text-xs);
}

/* --- Tab Bar --- */
.tab-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 19;
  flex-shrink: 0;
}

.tab {
  position: relative;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-interactive);
  white-space: nowrap;
}

.tab:hover {
  color: var(--color-text);
}

.tab.active {
  color: var(--color-text);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

/* --- Main Scroll Region --- */
.main-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5);
}

.main-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}


/* =============================================
   EMPTY / WELCOME STATE
   ============================================= */
.welcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  color: var(--color-text-muted);
  min-height: 60vh;
}

.welcome-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.welcome-state h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.welcome-state p {
  max-width: 38ch;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.welcome-state .hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.welcome-state .hint kbd {
  background: var(--color-surface-offset);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}


/* =============================================
   SKELETON LOADER
   ============================================= */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-offset) 25%,
    var(--color-surface-dynamic) 50%,
    var(--color-surface-offset) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-heading {
  height: 1.5em;
  width: 40%;
  margin-bottom: var(--space-4);
}

.skeleton-box {
  height: 48px;
  margin-bottom: var(--space-3);
}

.skeleton-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 0.8fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.skeleton-table-row .skeleton {
  height: 1em;
}


/* =============================================
   COMPANY HEADER
   ============================================= */
.company-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.company-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.company-ticker {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
}

.company-price {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
  margin-left: auto;
}

.company-change {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

.company-change.positive { color: var(--color-success); }
.company-change.negative { color: var(--color-error); }

.company-mcap {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.badge-sector   { background: var(--color-purple-highlight); color: var(--color-purple); }
.badge-bullish  { background: var(--color-success-highlight); color: var(--color-success); }
.badge-bearish  { background: var(--color-error-highlight); color: var(--color-error); }
.badge-mixed    { background: var(--color-primary-highlight); color: var(--color-primary); }
.badge-neutral  { background: var(--color-primary-highlight); color: var(--color-primary); }
.badge-pending  { background: rgba(84, 93, 104, 0.2); color: var(--color-text-faint); }
.badge-high     { background: var(--color-error-highlight); color: var(--color-error); }
.badge-moderate { background: var(--color-warning-highlight); color: var(--color-warning); }
.badge-low      { background: var(--color-success-highlight); color: var(--color-success); }
.badge-live     { background: rgba(63, 185, 80, 0.15); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); }
.badge-mock     { background: rgba(139, 148, 158, 0.12); color: var(--color-text-faint); border: 1px solid rgba(139, 148, 158, 0.2); }
.badge-conservative { background: var(--color-success-highlight); color: var(--color-success); }
.badge-inline   { background: var(--color-warning-highlight); color: var(--color-warning); }
.badge-aggressive { background: var(--color-error-highlight); color: var(--color-error); }

/* Earnings countdown */
.earnings-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.earnings-countdown .days-num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums lining-nums;
}

.earnings-countdown .days-label {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.earnings-countdown .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-faint);
}

.earnings-countdown .date-info {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.earnings-countdown .time-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}


/* =============================================
   SECTION PANELS
   ============================================= */
.section-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
}

.section-badge {
  margin-left: auto;
}

.section-body {
  padding: var(--space-4);
}


/* =============================================
   KPI TABLE (Section A)
   ============================================= */
.kpi-table {
  width: 100%;
  font-size: var(--text-sm);
}

.kpi-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.kpi-table th:not(:first-child) {
  text-align: right;
}

.kpi-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-variant-numeric: tabular-nums lining-nums;
}

.kpi-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.kpi-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.kpi-table .val-consensus {
  color: var(--color-text);
  font-weight: 500;
}

.kpi-table .val-whisper {
  color: var(--color-primary);
}

.kpi-table .val-positive { color: var(--color-success); }
.kpi-table .val-negative { color: var(--color-error); }
.kpi-table .val-neutral  { color: var(--color-text-muted); }

.beat-rate-high    { color: var(--color-success); }
.beat-rate-mid     { color: var(--color-warning); }
.beat-rate-low     { color: var(--color-error); }

.kpi-table tbody tr {
  transition: background var(--transition-interactive);
}

.kpi-table tbody tr:hover {
  background: var(--color-surface-offset);
}

.kpi-table tbody tr:last-child td {
  border-bottom: none;
}


/* =============================================
   GRID LAYOUT (Sections B + C)
   ============================================= */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   HURDLE ASSESSMENT (Section B)
   ============================================= */
.hurdle-difficulty {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hurdle-difficulty .difficulty-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hurdle-difficulty .difficulty-value.high     { color: var(--color-error); }
.hurdle-difficulty .difficulty-value.moderate  { color: var(--color-warning); }
.hurdle-difficulty .difficulty-value.low       { color: var(--color-success); }

.hurdle-explanation {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.comps-table {
  width: 100%;
  font-size: var(--text-sm);
}

.comps-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.comps-table th:not(:first-child) {
  text-align: right;
}

.comps-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-variant-numeric: tabular-nums lining-nums;
}

.comps-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
}

.comps-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.comps-table tbody tr:last-child td {
  border-bottom: none;
}


/* =============================================
   PEER CROSS-READS (Section C)
   ============================================= */
.peer-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.peer-winds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .peer-winds {
    grid-template-columns: 1fr;
  }
}

.peer-wind-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.peer-wind-col h4.tailwind-label { color: var(--color-success); }
.peer-wind-col h4.headwind-label { color: var(--color-error); }

.peer-wind-col ul {
  list-style: none;
  padding: 0;
}

.peer-wind-col li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.peer-wind-col li::before {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.peer-wind-col .tailwind-list li::before {
  background: var(--color-success);
  opacity: 0.5;
}

.peer-wind-col .headwind-list li::before {
  background: var(--color-error);
  opacity: 0.5;
}

.peer-table {
  width: 100%;
  font-size: var(--text-sm);
}

.peer-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.peer-table th:not(:first-child) {
  text-align: right;
}

.peer-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-variant-numeric: tabular-nums lining-nums;
}

.peer-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
}

.peer-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text);
}

.peer-table tbody tr:last-child td {
  border-bottom: none;
}

.peer-table tbody tr {
  transition: background var(--transition-interactive);
}

.peer-table tbody tr:hover {
  background: var(--color-surface-offset);
}


/* =============================================
   GUIDANCE PREVIEW (Section D)
   ============================================= */
.guidance-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 1000px) {
  .guidance-grid {
    grid-template-columns: 1fr;
  }
}

.guidance-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.guidance-pattern-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.guidance-pattern-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Tendency Meter */
.tendency-meter {
  margin-top: var(--space-2);
}

.tendency-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.tendency-bar {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-2);
}

.tendency-bar .bar-segment {
  flex: 1;
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: 2px;
  transition: background var(--transition-interactive);
}

.tendency-bar .bar-segment.filled {
  background: var(--color-success);
}

.tendency-bar .bar-segment.filled.amber {
  background: var(--color-warning);
}

.tendency-bar .bar-segment.filled.red {
  background: var(--color-error);
}

.tendency-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.tendency-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--space-2);
}

/* Guidance History */
.guidance-history-table {
  width: 100%;
  font-size: var(--text-sm);
}

.guidance-history-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.guidance-history-table th:not(:first-child) {
  text-align: right;
}

.guidance-history-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-variant-numeric: tabular-nums lining-nums;
}

.guidance-history-table td:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
}

.guidance-history-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.guidance-history-table tbody tr:last-child td {
  border-bottom: none;
}

/* Guidance Outlook */
.guidance-outlook {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.guidance-outlook-winds {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guidance-outlook-winds h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.guidance-outlook-winds h4.tailwind-label { color: var(--color-success); }
.guidance-outlook-winds h4.headwind-label { color: var(--color-error); }

.guidance-outlook-winds ul {
  list-style: none;
  padding: 0;
}

.guidance-outlook-winds li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.guidance-outlook-winds li::before {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.guidance-outlook-winds .tailwind-list li::before {
  background: var(--color-success);
  opacity: 0.5;
}

.guidance-outlook-winds .headwind-list li::before {
  background: var(--color-error);
  opacity: 0.5;
}

.outlook-badge-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.outlook-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.outlook-badge-large {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
}

.outlook-badge-large.bullish  { color: var(--color-success); }
.outlook-badge-large.bearish  { color: var(--color-error); }
.outlook-badge-large.neutral  { color: var(--color-warning); }


/* =============================================
   SECTION E: RECENT PRESENTATIONS
   ============================================= */

.presentations-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-divider);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.presentation-row {
  display: grid;
  grid-template-columns: 90px 20px auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.presentation-row:hover {
  background: oklch(0.25 0 0);
}

.pres-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pres-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
}

.pres-type-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 80px;
}

.pres-conf {
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pres-assets {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.pres-asset-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-faint);
  background: oklch(0.22 0 0);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.pres-asset-tag svg {
  opacity: 0.7;
}

.pres-quartr-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 180ms;
}

.presentation-row:hover .pres-quartr-link {
  opacity: 1;
}

.quartr-full-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: opacity 180ms;
}

.quartr-full-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.pres-empty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.badge-info {
  background: oklch(0.55 0.15 230 / 0.15);
  color: var(--color-accent);
}


/* =============================================
   LAST UPDATED / FOOTER
   ============================================= */
.dashboard-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.dashboard-footer .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-faint);
}

.topbar-last-updated {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
}


/* =============================================
   UTILITIES
   ============================================= */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
}

.text-positive { color: var(--color-success); }
.text-negative { color: var(--color-error); }
.text-warning  { color: var(--color-warning); }
.text-muted    { color: var(--color-text-muted); }
.text-faint    { color: var(--color-text-faint); }

/* Fade-in animation for content */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  animation: fadeIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 50ms; }
.stagger-3 { animation-delay: 100ms; }
.stagger-4 { animation-delay: 150ms; }

/* =============================================
   POST EARNINGS COMPONENTS
   ============================================= */

/* Reported date banner */
.reported-date-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.reported-date-banner .reported-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reported-date-banner .reported-date {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.reported-date-banner .time-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* Results summary */
.results-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

/* Verdict badges (BEAT, MISS, INLINE) */
.verdict-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.verdict-badge.beat    { background: var(--color-success-highlight); color: var(--color-success); }
.verdict-badge.miss    { background: var(--color-error-highlight); color: var(--color-error); }
.verdict-badge.inline  { background: var(--color-warning-highlight); color: var(--color-warning); }

/* Stock reaction row */
.stock-reaction-row {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
}

.stock-reaction-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stock-reaction-item .reaction-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stock-reaction-item .reaction-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Assessment badges (large, prominent) */
.assessment-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.assessment-badge.improving     { background: var(--color-success-highlight); color: var(--color-success); }
.assessment-badge.stable        { background: var(--color-warning-highlight); color: var(--color-warning); }
.assessment-badge.deteriorating { background: var(--color-error-highlight); color: var(--color-error); }

/* Trend badges */
.trend-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trend-badge.accelerating { background: var(--color-success-highlight); color: var(--color-success); }
.trend-badge.stable       { background: var(--color-warning-highlight); color: var(--color-warning); }
.trend-badge.decelerating { background: var(--color-error-highlight); color: var(--color-error); }
.trend-badge.new          { background: var(--color-primary-highlight); color: var(--color-primary); }

/* Tone badge */
.tone-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tone-badge.confident { background: var(--color-success-highlight); color: var(--color-success); }
.tone-badge.cautious  { background: var(--color-warning-highlight); color: var(--color-warning); }
.tone-badge.defensive { background: var(--color-error-highlight); color: var(--color-error); }
.tone-badge.neutral   { background: var(--color-primary-highlight); color: var(--color-primary); }

/* Business trend item */
.business-trend-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.business-trend-item:last-child {
  border-bottom: none;
}

.business-trend-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.business-trend-area {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.significance-dots {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.significance-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-surface-offset-2);
}

.significance-dot.filled {
  background: var(--color-primary);
}

.business-trend-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Quote blocks */
.quote-block {
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border-left: 2px solid var(--color-primary);
  background: var(--color-surface-offset);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block:last-child {
  margin-bottom: 0;
}

.quote-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-1);
}

.quote-context {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Q&A highlights */
.qa-highlights {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}

.qa-highlights li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-divider);
}

.qa-highlights li:last-child {
  border-bottom: none;
}

.qa-highlights li::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
}

/* Category tags */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-tag.new-product      { background: var(--color-primary-highlight); color: var(--color-primary); }
.category-tag.market-expansion  { background: var(--color-success-highlight); color: var(--color-success); }
.category-tag.risk-factor       { background: var(--color-error-highlight); color: var(--color-error); }
.category-tag.strategic-shift   { background: var(--color-purple-highlight); color: var(--color-purple); }
.category-tag.financial         { background: var(--color-warning-highlight); color: var(--color-warning); }
.category-tag.competitive       { background: rgba(255, 166, 87, 0.12); color: #ffa657; }

/* New info item */
.new-info-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.new-info-item:last-child {
  border-bottom: none;
}

.new-info-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.new-info-headline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.new-info-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.impact-badge.positive { background: var(--color-success-highlight); color: var(--color-success); }
.impact-badge.negative { background: var(--color-error-highlight); color: var(--color-error); }
.impact-badge.neutral  { background: rgba(84, 93, 104, 0.2); color: var(--color-text-faint); }

/* Large verdict */
.verdict-large {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.verdict-large-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.verdict-large-badge.positive { color: var(--color-success); }
.verdict-large-badge.negative { color: var(--color-error); }
.verdict-large-badge.mixed    { color: var(--color-warning); }

.verdict-explanation {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Positive/Negative factor columns */
.factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .factors-grid {
    grid-template-columns: 1fr;
  }
}

.factor-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.factor-col h4.positive-label { color: var(--color-success); }
.factor-col h4.negative-label { color: var(--color-error); }

.factor-col ul {
  list-style: none;
  padding: 0;
}

.factor-col li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.factor-col li::before {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.factor-col .positive-list li::before {
  background: var(--color-success);
  opacity: 0.5;
}

.factor-col .negative-list li::before {
  background: var(--color-error);
  opacity: 0.5;
}

/* vs Preview subsection */
.vs-preview {
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.vs-preview-header {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.guidance-vs-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}

.guidance-vs-badge.above  { background: var(--color-success-highlight); color: var(--color-success); }
.guidance-vs-badge.inline { background: var(--color-warning-highlight); color: var(--color-warning); }
.guidance-vs-badge.below  { background: var(--color-error-highlight); color: var(--color-error); }

.vs-preview-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.vs-preview-text:last-child {
  margin-bottom: 0;
}

.vs-preview-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Management commentary section */
.commentary-section {
  margin-top: var(--space-4);
}

.commentary-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

/* Yes/No badge for new info */
.yes-no-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}

.yes-no-badge.yes { background: var(--color-success-highlight); color: var(--color-success); }
.yes-no-badge.no  { background: rgba(84, 93, 104, 0.2); color: var(--color-text-faint); }

/* =============================================
   FORWARD ESTIMATE REVISIONS (Section D.5)
   ============================================= */
.estimate-rev-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.estimate-rev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.estimate-rev-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.estimate-rev-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}

.estimate-rev-period-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.estimate-rev-period-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
}

.estimate-rev-metrics {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.estimate-rev-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.estimate-rev-metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.estimate-rev-metric-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.estimate-rev-prior {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-faint);
}

.estimate-rev-arrow {
  flex-shrink: 0;
}

.estimate-rev-current {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
}

.estimate-rev-change {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
}

.estimate-rev-direction {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.estimate-rev-direction.raised {
  color: var(--color-success);
  background: var(--color-success-highlight);
}

.estimate-rev-direction.cut {
  color: var(--color-error);
  background: var(--color-error-highlight);
}

.estimate-rev-direction.unchanged {
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.estimate-rev-analyst-actions {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
}

.estimate-rev-analyst-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.estimate-rev-analyst-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.estimate-rev-analyst-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-3);
  position: relative;
  line-height: 1.5;
}

.estimate-rev-analyst-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}


/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .topbar {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .topbar-title {
    font-size: var(--text-sm);
  }

  .topbar-title span {
    display: none;
  }

  .ticker-search-wrap {
    flex: 1 1 200px;
  }

  .ticker-search-kbd {
    display: none;
  }

  .main-content {
    padding: var(--space-3);
  }

  .company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .company-price {
    margin-left: 0;
  }

  .earnings-countdown {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

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

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

  .kpi-table,
  .comps-table,
  .peer-table,
  .guidance-history-table {
    font-size: var(--text-xs);
  }

  .section-body {
    padding: var(--space-3);
  }

  .peer-winds {
    grid-template-columns: 1fr;
  }

  .topbar-last-updated {
    display: none;
  }

  .tab-bar {
    padding: 0 var(--space-3);
  }

  .tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .stock-reaction-row {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

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

  .estimate-rev-grid {
    grid-template-columns: 1fr;
  }
}

/* Active states for mobile */
@media (hover: none) {
  .ticker-dropdown-item:active {
    background: var(--color-surface-offset-2);
  }

  .btn:active {
    opacity: 0.8;
  }
}
