/* ===================================================================
   Coorsight AI Snapshot — Global Styles
   Premium dark theme with gold accents
   =================================================================== */

/* ===== CSS Custom Properties ===== */
:root {
  /* Brand */
  --c-navy:        #1e2a3a;
  --c-navy-deep:   #0f1724;
  --c-navy-light:  #2a3a4e;
  --c-gold:        #d4af37;
  --c-gold-dim:    #b8962e;
  --c-gold-glow:   rgba(212, 175, 55, 0.15);

  /* Priority */
  --c-high:    #dc2626;
  --c-medium:  #d97706;
  --c-low:     #059669;

  /* Neutrals */
  --c-white:   #f8f9fa;
  --c-gray-100:#e5e7eb;
  --c-gray-200:#d1d5db;
  --c-gray-400:#9ca3af;
  --c-gray-500:#6b7280;
  --c-gray-700:#374151;
  --c-gray-800:#1f2937;
  --c-gray-900:#111827;

  /* Typography */
  --font: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.85rem;
  --text-base: 0.95rem;
  --text-lg:   1.125rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;

  /* Spacing */
  --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-12: 3rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--c-navy-deep);
  color: var(--c-gray-100);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--c-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.app-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
}

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

.app-header img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
}

.app-header h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

/* ===== AI Chat Bubble ===== */
.ai-container {
  width: 100%;
  max-width: 620px;
}

.ai-message {
  background: var(--c-navy);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--c-gray-200);
  line-height: 1.7;
  min-height: 60px;
  position: relative;
}

.ai-message .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--c-gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Action Buttons ===== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 620px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-md);
  background: var(--c-navy);
  color: var(--c-gray-100);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--c-navy-light);
  border-color: var(--c-gold-dim);
  color: var(--c-white);
  text-decoration: none;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-navy-deep);
  border-color: var(--c-gold);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--c-gold-dim);
  border-color: var(--c-gold-dim);
  color: var(--c-navy-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-gray-700);
  color: var(--c-gray-400);
  font-size: var(--text-sm);
}

.btn-ghost:hover {
  border-color: var(--c-gray-500);
  color: var(--c-gray-200);
}

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

/* ===== Processing Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--c-navy);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 90%;
  max-width: 440px;
}

.modal-card h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--space-6);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--c-gray-500);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.progress-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-step.done {
  color: var(--c-gold);
}

.progress-step .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-gray-700);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.progress-step.done .spinner {
  border-color: var(--c-gold);
  animation: none;
}

.progress-step .check {
  display: none;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.progress-step.done .spinner { display: none; }
.progress-step.done .check   { display: inline; }

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

/* ===== Results Page ===== */
.results-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--c-navy);
  border-bottom: 1px solid var(--c-navy-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-header img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.results-header h1 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-white);
}

.results-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* Hero Risk Badge */
.hero-risk {
  text-align: center;
  padding: var(--space-6) 0 var(--space-2);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.risk-badge.high {
  background: rgba(220,38,38,0.15);
  color: var(--c-high);
  border: 1px solid rgba(220,38,38,0.3);
  box-shadow: 0 0 20px rgba(220,38,38,0.15);
}
.risk-badge.medium {
  background: rgba(217,119,6,0.15);
  color: var(--c-medium);
  border: 1px solid rgba(217,119,6,0.3);
  box-shadow: 0 0 20px rgba(217,119,6,0.15);
}
.risk-badge.low {
  background: rgba(5,150,105,0.15);
  color: var(--c-low);
  border: 1px solid rgba(5,150,105,0.3);
  box-shadow: 0 0 20px rgba(5,150,105,0.15);
}

.risk-subtitle {
  font-size: var(--text-sm);
  color: var(--c-gray-400);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

/* Risk explanation (above fold) */
.risk-explanation {
  font-size: var(--text-base);
  color: var(--c-gray-200);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Collapsible below-fold sections */
.collapsible-section {
  background: var(--c-navy);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.collapsible-section summary {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-4) var(--space-6);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapsible-section summary::after {
  content: '+';
  font-size: var(--text-base);
  color: var(--c-gray-500);
  transition: transform 0.2s;
}

.collapsible-section[open] summary::after {
  content: '\2212';
}

.collapsible-section summary::-webkit-details-marker { display: none; }

.collapsible-section > :not(summary) {
  padding: 0 var(--space-6) var(--space-6);
}

.collapsible-section p,
.collapsible-section li {
  font-size: var(--text-base);
  color: var(--c-gray-200);
  line-height: 1.7;
}

.collapsible-section ul {
  list-style: none;
  padding: 0;
}

.collapsible-section li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-navy-light);
}

.collapsible-section li:last-child { border-bottom: none; }

.risk-item-title {
  font-weight: 600;
  color: var(--c-white);
  display: block;
  margin-bottom: var(--space-1);
}

.risk-item-count {
  font-size: var(--text-xs);
  color: var(--c-gray-500);
}

/* Cost columns */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.cost-card {
  background: var(--c-navy-deep);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.cost-card .label {
  font-size: var(--text-xs);
  color: var(--c-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.cost-card .range {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-gold);
  margin-bottom: var(--space-2);
}

.cost-card .desc {
  font-size: var(--text-xs);
  color: var(--c-gray-400);
  line-height: 1.5;
}

/* Totals strip */
.totals-strip {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.total-pill {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
}

.total-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.total-pill .dot.high   { background: var(--c-high); }
.total-pill .dot.medium { background: var(--c-medium); }
.total-pill .dot.low    { background: var(--c-low); }

/* Not-assessed items */
.gap-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-navy-light);
}

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

.gap-area {
  font-weight: 600;
  color: var(--c-gray-200);
  display: block;
  margin-bottom: var(--space-1);
}

.gap-explanation {
  font-size: var(--text-sm);
  color: var(--c-gray-500);
  line-height: 1.6;
}

/* CTA buttons */
.cta-section {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .cost-grid { grid-template-columns: 1fr; }
  .app-shell { padding: var(--space-4); }
  .results-container { padding: var(--space-6) var(--space-4); }
  .ai-message { padding: var(--space-4); }
  .totals-strip { gap: var(--space-3); }
}

/* ===================================================================
   Demo Page — 3-Panel Layout
   Additive rules — no existing styles modified
   =================================================================== */

/* Demo-scoped color tokens (light theme for left panel + dashboard) */
.demo-shell {
  --demo-bg: #f0f2f5;
  --demo-surface: #ffffff;
  --demo-border: #e5e7eb;
  --demo-text: #1e2a3a;
  --demo-text-secondary: #6b7280;
  --demo-text-muted: #9ca3af;
}

/* ===== Shell Grid ===== */
.demo-shell {
  display: grid;
  grid-template-columns: 220px minmax(320px, 0.9fr) minmax(560px, 1.4fr);
  height: 100vh;
  overflow: hidden;
  background: var(--demo-bg);
}

/* ===== Left Panel — Projects (light) ===== */
.panel-projects {
  background: var(--demo-surface);
  border-right: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-projects-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  height: 52px;
  border-bottom: 1px solid var(--demo-border);
}

.demo-logo {
  width: 24px;
  height: 24px;
}

.demo-brand {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.02em;
}

.project-list {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.project-card.hint {
  border-color: rgba(212, 175, 55, 0.25);
  animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50%      { box-shadow: 0 0 4px 1px rgba(212, 175, 55, 0.1); }
}

.project-card:hover {
  background: #f5f6f8;
}

.project-card.active {
  border-color: var(--c-gold);
  background: rgba(212, 175, 55, 0.08);
}

.project-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.project-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--demo-text);
}

.project-subtitle {
  font-size: var(--text-xs);
  color: var(--demo-text-secondary);
}

/* Project card — "Reality: Unknown" label */
.project-reality {
  font-size: var(--text-xs);
  color: var(--demo-text-muted);
  font-style: italic;
}

/* ===== Middle Panel — AI (stays dark) ===== */
.panel-ai {
  display: flex;
  flex-direction: column;
  background: var(--c-navy-deep);
  border-right: 1px solid var(--demo-border);
  overflow: hidden;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ai-actions {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--c-navy-light);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-bubble {
  background: var(--c-navy);
  border: 1px solid var(--c-navy-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--c-gray-200);
  line-height: 1.55;
  max-width: 400px;
}

.ai-bubble-result {
  border-color: var(--c-gold-dim);
  color: var(--c-gold);
  font-weight: 500;
  white-space: pre-line;
}

.ai-step {
  font-size: var(--text-xs);
  color: var(--c-gray-400);
  padding: var(--space-1) 0;
  opacity: 0;
  transform: translateY(4px);
  animation: aiStepIn 0.3s ease forwards;
}

@keyframes aiStepIn {
  to { opacity: 1; transform: translateY(0); }
}

.btn-scan {
  width: 100%;
  max-width: 240px;
}

.btn-scan:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* AI bubble CTA — gold directional prompt */
.ai-bubble-cta {
  color: var(--c-gold);
  font-weight: 500;
}

/* Inline action button inside messages area */
.ai-inline-action {
  padding: var(--space-3) 0;
}

/* Typewriter cursor for elements currently being typed */
.typing::after {
  content: '\2588';
  color: var(--c-gold);
  animation: blink 0.7s step-end infinite;
  margin-left: 1px;
}

/* ===== Right Panel — Dashboard (light) ===== */
.panel-dashboard {
  overflow-y: auto;
  background: var(--demo-bg);
}

.dashboard-content {
  padding: var(--space-6);
  max-width: 640px;
  margin: 0 auto;
}

/* Placeholder */
.dash-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 400px;
  color: var(--demo-text-muted);
  font-size: var(--text-sm);
}

.dash-placeholder-sub {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--demo-text-muted);
}

/* Skeletons (light shimmer) */
.dash-skeletons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
}

.skeleton-card {
  background: linear-gradient(90deg, #e8eaed 25%, #f5f6f8 50%, #e8eaed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
  height: 72px;
}

.skeleton-card.skeleton-lg { height: 100px; }
.skeleton-card.skeleton-sm { height: 40px; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Snapshot Card (white card on light bg) ===== */
.snapshot-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-top: 3px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: dashFadeIn 0.4s ease;
}

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header: grade circle + confidence + verdict */
.snapshot-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.snapshot-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: var(--text-xl);
  font-weight: 700;
  flex-shrink: 0;
}

.snapshot-grade.high {
  background: rgba(220, 38, 38, 0.12);
  color: var(--c-high);
}

.snapshot-grade.medium {
  background: rgba(217, 119, 6, 0.12);
  color: var(--c-medium);
}

.snapshot-grade.low {
  background: rgba(5, 150, 105, 0.12);
  color: var(--c-low);
}

.snapshot-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.snapshot-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--demo-text);
}

.snapshot-conf-label {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--demo-text-secondary);
  margin-left: var(--space-1);
}

.snapshot-verdict {
  font-size: var(--text-sm);
  font-weight: 500;
}

.snapshot-verdict.high   { color: var(--c-high); }
.snapshot-verdict.medium { color: var(--c-medium); }
.snapshot-verdict.low    { color: var(--c-low); }

/* Reported vs Reality contrast */
.snapshot-contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
  background: #f5f6f8;
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.contrast-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contrast-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--demo-text-muted);
  font-weight: 600;
}

.contrast-value {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

.contrast-reported { color: var(--demo-text-secondary); }
.contrast-reality  { color: var(--c-high); }

.contrast-divider {
  width: 1px;
  height: 100%;
  min-height: 28px;
  background: var(--demo-border);
}

/* Verification */
.snapshot-verification {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: var(--text-xs);
  color: var(--demo-text-secondary);
}

.verification-icon {
  font-size: var(--text-sm);
  line-height: 1;
  flex-shrink: 0;
}

/* Key Metrics */
.snapshot-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.snapshot-metric {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--demo-text);
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.metric-dot.high     { background: var(--c-high); }
.metric-dot.approved { background: var(--c-medium); }

/* Cost Exposure — inline rows */
.snapshot-cost {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.snapshot-section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--demo-text-muted);
  font-weight: 600;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--demo-border);
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-row-label {
  font-size: var(--text-sm);
  color: var(--demo-text-secondary);
}

.cost-row-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-gold-dim);
}

/* Decision text */
.snapshot-decision {
  font-size: var(--text-sm);
  color: var(--demo-text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.snapshot-decision-strong {
  color: var(--demo-text);
  font-weight: 500;
}

/* CTA */
.btn-cta {
  display: block;
  text-align: center;
  width: 100%;
  padding: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

/* Hidden Risk Stack — amber left border, light bg */
.snapshot-hidden-risks {
  border-left: 3px solid var(--c-medium);
  background: rgba(217, 119, 6, 0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hidden-risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hidden-risk-list li {
  font-size: var(--text-sm);
  color: var(--demo-text-secondary);
  line-height: 1.4;
}

.hidden-risk-list li::before {
  content: '\2022\00a0';
  color: var(--c-medium);
  font-weight: 700;
}

/* Why It Matters — consequence block */
.snapshot-consequence {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.consequence-intro {
  font-size: var(--text-sm);
  color: var(--demo-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.consequence-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.consequence-arrow {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--demo-text);
}

/* ===== Staged Dashboard Reveal ===== */
.dash-stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dash-stage.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Demo Responsive ===== */
@media (max-width: 900px) {
  .demo-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 1fr;
    height: auto;
    min-height: 100vh;
  }

  .panel-projects {
    border-right: none;
    border-bottom: 1px solid var(--demo-border);
  }

  .project-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .project-card {
    min-width: 140px;
  }

  .panel-ai {
    border-right: none;
    border-bottom: 1px solid var(--demo-border);
    min-height: 200px;
  }

  .snapshot-contrast {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .contrast-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }
}
