/* =============================================================================
   RheocorAI, Stylesheet (v3 revamp)
   -----------------------------------------------------------------------------
   Design system rebuilt from scratch. Same color palette, dramatically tighter
   layout, single scroll root per view, sticky topbar, real responsive system.

   Sections:
   01. Reset + base
   02. Tokens (light + dark)
   03. Typography
   04. Utilities + buttons + pills
   05. Loader
   06. App layout shell (sidebar + main)
   07. Sidebar
   08. Topbar
   09. View container
   10. Cards + section heads
   11. Banners (intro, risk-alert, floor)
   12. Result card (gauge, models monitor, SHAP mini, verdict)
   13. Compare strip (Framingham, AI, benchmark)
   14. Form sections (collapsible cards + fields + sliders + segmented)
   15. Tooltips, info icons, OOD warning, completeness
   16. Patient History view
   17. What-If view
   18. Compare Models view
   19. Resources view (region, map, clinics, links, emergency, guides)
   20. Research view (tabs, panels, charts, results gallery)
   21. Model Card view
   22. Research Paper view
   23. About view
   24. Developer view
   25. Site footer
   26. Toasts + tooltip layer
   27. Tour overlay
   28. Landing page (sticky nav, hero, features, how, timeline, CTA, footer)
   29. Version modal (landing)
   30. Print + responsive
   ========================================================================== */


/* ============================================================================
   01. Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
a { color: inherit; }
ul, ol { padding-left: 18px; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }


/* ============================================================================
   02. Tokens, light theme
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #f3f5f9;
  --bg-elevated: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-soft-2: #eef2f7;
  --border: #e3e8ef;
  --border-strong: #cbd5e1;

  /* Text */
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;

  /* Accents (preserved from original) */
  --primary: #0f7c8a;
  --primary-strong: #0a5d68;
  --primary-soft: #def1f3;

  /* Risk bands (preserved) */
  --risk-low: #16a34a;
  --risk-mod: #ca8a04;
  --risk-high: #ea580c;
  --risk-vhigh: #dc2626;

  /* SHAP */
  --positive: #dc2626;
  --negative: #2563eb;

  /* Sidebar (dark, both themes) */
  --side-bg: #0b1220;
  --side-bg-2: #111a2c;
  --side-border: #1d2940;
  --side-text: #e2e8f0;
  --side-text-soft: #94a3b8;
  --side-active: #0f7c8a;
  --side-active-soft: rgba(15, 124, 138, 0.18);

  /* Geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 22px 50px -10px rgba(15, 23, 42, 0.18);

  /* Layout */
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --content-max: 1240px;

  /* Motion */
  --t: 220ms;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Fonts */
  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Dark theme overrides (preserve all variable names) */
[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-elevated: #0f172a;
  --surface-soft: #111c33;
  --surface-soft-2: #16223d;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --primary: #14b8a6;
  --primary-strong: #5eead4;
  --primary-soft: rgba(20, 184, 166, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.40);
}


/* ============================================================================
   03. Typography
   ========================================================================== */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
p  { margin: 0; }

.muted { color: var(--text-muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }


/* ============================================================================
   04. Utilities + buttons + pills
   ========================================================================== */
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-soft-2); border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: scale(1.10); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 124, 138, 0.18);
}
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #ffffff; box-shadow: 0 6px 16px rgba(15, 124, 138, 0.32); transform: translateY(-1px); }
[data-theme="dark"] .btn-primary { color: #06251f; }
[data-theme="dark"] .btn-primary:hover { color: #06251f; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-soft); }

.btn-danger { color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
[data-theme="dark"] .btn-danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.30); }
[data-theme="dark"] .btn-danger:hover { background: rgba(244, 63, 94, 0.10); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.theme-toggle:hover { color: var(--primary-strong); border-color: var(--primary); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

/* small chip / kbd */
.kbd {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: var(--surface-soft-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
}
.kbd-set { display: inline-flex; align-items: center; gap: 4px; }
.kbd-desc { font-size: 12px; color: var(--text-muted); margin-left: 4px; }


/* ============================================================================
   05. Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-elevated);
  display: grid; place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-core { position: relative; display: grid; place-items: center; }
.loader-img {
  width: 96px; height: 96px;
  border-radius: 22px;
  display: block;
  animation: heartbeat 1.1s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  18%, 38% { transform: scale(1.10); }
  28% { transform: scale(0.96); }
}


/* ============================================================================
   06. App layout shell (sidebar + main)
   --------------------------------------------------------------------------
   The whole app fits in 100dvh. Body owns the grid; sidebar is its own scroller;
   .main is its own scroller with a sticky topbar and a single scrolling .view
   underneath. No more dual-scroll-root weirdness.
   ========================================================================== */
body:not(.landing-body) {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

@media (max-width: 1024px) {
  body:not(.landing-body) {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
   07. Sidebar
   ========================================================================== */
.sidebar {
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  color: var(--side-text);
  border-right: 1px solid var(--side-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100dvh;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 999px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--side-border);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: transparent;
  overflow: hidden;
  flex: 0 0 36px;
}
.brand-mark img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; display: block; }
.brand-text { line-height: 1.15; }
.brand-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.brand-sub { font-size: 11px; color: var(--side-text-soft); }

.nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px;
  flex: 1;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--side-text-soft);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  position: relative;
}
.nav-item svg { flex: 0 0 18px; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.nav-item.is-active {
  background: var(--side-active-soft);
  color: #fff;
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #5eead4, var(--side-active));
}
.nav-badge {
  margin-left: auto;
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: rgba(94, 234, 212, 0.18);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: #5eead4;
}

.sidebar-footer {
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--side-border);
}
/* Compact care panel, only the emergency hint visible by default,
   full guidance lives in the About view. Keeps the dev card visible. */
.care-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--side-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--side-text-soft);
  line-height: 1.4;
}
.care-head {
  display: flex; align-items: center; gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 11.5px;
  margin-bottom: 4px;
}
.care-head svg { flex: 0 0 12px; color: #fca5a5; }
.care-body { display: none; }
.care-line {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 4px;
  line-height: 1.35;
  font-size: 10.5px;
}
.care-line:not(.care-emergency) { display: none; }
.care-tag {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  line-height: 14px;
}
.care-tag-urgent { background: rgba(220, 38, 38, 0.20); color: #fca5a5; }
.disclaimer {
  font-size: 10px;
  color: var(--side-text-soft);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.dev-card {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--side-border);
  border-radius: 10px;
  color: var(--side-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.dev-card:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.dev-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}
.dev-meta { line-height: 1.2; flex: 1; }
.dev-line { font-size: 10px; color: var(--side-text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.dev-name { font-size: 13px; font-weight: 600; color: #fff; }
.dev-chevron { color: var(--side-text-soft); transition: transform var(--t) var(--ease); }
.dev-card:hover .dev-chevron { transform: translateX(2px); color: #fff; }

/* Responsive sidebar (overlay on small screens) */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: var(--sidebar-w);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform var(--t) var(--ease);
    box-shadow: 22px 0 48px rgba(0, 0, 0, 0.18);
  }
  .sidebar.is-open { transform: translateX(0); }
  body.is-sidebar-open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 99;
  }
}


/* ============================================================================
   08. Topbar
   ========================================================================== */
.main {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(900px 480px at 90% -10%, rgba(15, 124, 138, 0.05), transparent 60%);
}
[data-theme="dark"] .main {
  background-image: radial-gradient(1200px 600px at 90% -10%, rgba(20, 184, 166, 0.08), transparent);
}

.topbar {
  flex: 0 0 auto;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 50;
}
[data-theme="dark"] .topbar { background: rgba(15, 23, 42, 0.78); }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  align-items: center; justify-content: center;
}
@media (max-width: 1024px) { .hamburger { display: inline-flex; } }

.topbar-title { min-width: 0; }
.topbar-title h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title .muted {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-actions::-webkit-scrollbar { display: none; }

.topbar-actions .btn {
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
}
.topbar-actions .btn svg { flex: 0 0 14px; }
.topbar-actions .btn[data-views] + .btn:not([data-views]),
.topbar-actions .btn:not([data-views]) + .btn[data-views] {
  /* Visual divider between secondary and patient-action group */
}
.topbar-actions .topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
}

/* Hide button labels on narrow screens to keep topbar in one line */
@media (max-width: 1280px) {
  .topbar-actions .btn-label-hideable { display: none; }
}
@media (max-width: 880px) {
  .topbar-actions .btn:not(.btn-primary) span:not([class]) { display: none; }
  .topbar-actions .btn { padding: 7px 9px; }
}


/* ============================================================================
   09. View container
   --------------------------------------------------------------------------
   Each .view is its own scroll context, only one is visible at a time
   (others have .hidden). This makes "scrolls weird" impossible.
   ========================================================================== */
.view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 24px 40px;
  scroll-behavior: smooth;
}
.view > * { max-width: var(--content-max); margin-left: auto; margin-right: auto; }

@media (max-width: 720px) { .view { padding: 16px 14px 28px; } }


/* ============================================================================
   10. Cards + section heads
   ========================================================================== */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.card + .card { margin-top: 0; }
.card-glass {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.card-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--bg-elevated) 100%);
}
.card-head h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.card-head h3 { margin-bottom: 4px; }
.card-head p, .card-head .muted { font-size: 13px; line-height: 1.5; }
.card-head.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.card-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-state {
  padding: 40px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}


/* ============================================================================
   11. Banners (intro, risk-alert, floor)
   ========================================================================== */
.intro-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(94, 234, 212, 0.10));
  border: 1px solid rgba(15, 124, 138, 0.28);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .intro-banner {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(94, 234, 212, 0.04));
  border-color: rgba(20, 184, 166, 0.28);
}
.intro-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #14b8a6, #0f7c8a);
  color: #fff;
}
.intro-body { flex: 1; line-height: 1.45; font-size: 13px; }
.intro-body strong { font-weight: 700; }
.intro-body em { font-style: normal; background: rgba(15, 124, 138, 0.14); padding: 0 5px; border-radius: 4px; color: var(--primary-strong); font-weight: 600; }
.intro-actions { display: flex; gap: 8px; flex-shrink: 0; }

.risk-alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef2f2, #fff);
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .risk-alert {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.10), rgba(220, 38, 38, 0.04));
  border-color: rgba(220, 38, 38, 0.30);
  border-left-color: #f87171;
}
.risk-alert-icon { color: #dc2626; flex: 0 0 22px; padding-top: 2px; }
.risk-alert-body { line-height: 1.5; font-size: 13px; }
.risk-alert-body strong { display: block; color: #991b1b; margin-bottom: 2px; font-weight: 700; }
[data-theme="dark"] .risk-alert-body strong { color: #fca5a5; }

.floor-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.30);
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #854d0e;
}
[data-theme="dark"] .floor-banner { color: #fde68a; }
.floor-banner svg { flex: 0 0 14px; margin-top: 2px; color: #ca8a04; }
.floor-banner strong { display: block; font-weight: 700; }


/* ============================================================================
   12. Result card (gauge, monitor, SHAP mini, verdict)
   ========================================================================== */
.result-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
@media (max-width: 980px) { .result-card { grid-template-columns: 1fr; } }

.result-left {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
@media (max-width: 980px) { .result-left { border-right: 0; border-bottom: 1px solid var(--border); } }

.result-right {
  padding: 22px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}

.result-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}
.result-eyebrow-sub {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 56ch;
}

/* Gauge */
.gauge-wrap {
  position: relative;
  display: grid; place-items: center;
  margin: 4px 0 8px;
}
.gauge-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 220 / 130;
  display: block;
}
.gauge-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.20);
  stroke-width: 18;
  stroke-linecap: round;
}
.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 296;
  stroke-dashoffset: 296;
  transition: stroke-dashoffset 700ms cubic-bezier(.4,0,.2,1);
}
.gauge-tip {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 3;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
  transition: cx 700ms cubic-bezier(.4,0,.2,1), cy 700ms cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .gauge-tip { fill: var(--bg-elevated); }
.gauge-center {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.gauge-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gauge-band {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Risk scale strip below gauge */
.risk-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  font-size: 11px;
  color: var(--text-muted);
}
.scale-tick { font-variant-numeric: tabular-nums; flex: 0 0 16px; }
.scale-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #84cc16 25%, #facc15 50%, #f97316 75%, #ef4444 100%);
  position: relative;
  overflow: visible;
}
.scale-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: left 600ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  left: 0%;
}

/* Verdict card, sized to content, no flex-grow. Holds verdict + tier pills +
   CI line + the absorbed Framingham and Population-benchmark rows. */
.verdict-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: auto;
}
.verdict-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.verdict-dot {
  flex: 0 0 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-soft);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.verdict-card[data-band="LOW"] .verdict-dot { background: var(--risk-low); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
.verdict-card[data-band="MODERATE"] .verdict-dot { background: var(--risk-mod); box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.18); }
.verdict-card[data-band="HIGH"] .verdict-dot { background: var(--risk-high); box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18); }
.verdict-card[data-band="VERY HIGH"] .verdict-dot { background: var(--risk-vhigh); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.20); }
.verdict-tier-text { line-height: 1.3; min-width: 0; }
.verdict-band-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.verdict-band-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.verdict-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
}
.verdict-tier-pill {
  text-align: center;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t) var(--ease);
}
.verdict-tier-pill.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}
.verdict-tier-pill.is-active[data-band="LOW"] { background: var(--risk-low); }
.verdict-tier-pill.is-active[data-band="MODERATE"] { background: var(--risk-mod); }
.verdict-tier-pill.is-active[data-band="HIGH"] { background: var(--risk-high); }
.verdict-tier-pill.is-active[data-band="VERY HIGH"] { background: var(--risk-vhigh); }

.verdict-ci-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.verdict-ci-label { color: var(--text-muted); }
.verdict-ci-value { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* Compact comparison rows folded into the verdict card.
   Replaces the old standalone .compare-strip. */
.verdict-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.vc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}
.vc-row.vc-bench { grid-template-columns: 1fr; row-gap: 4px; }
.vc-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.vc-row.vc-bench .vc-meta { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
.vc-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vc-row.vc-fram .vc-eyebrow   { color: #6366f1; }
.vc-row.vc-bench .vc-eyebrow  { color: #ea580c; }
.vc-label { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.vc-row.vc-bench .vc-label { font-weight: 600; }
.vc-value {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.vc-unit { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.vc-fine { font-size: 11px; color: var(--text-muted); grid-column: 1 / -1; }
.vc-fine .compare-tooltip-host { color: var(--primary); cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.vc-bar {
  position: relative;
  grid-column: 1 / -1;
  height: 6px;
  background: var(--surface-soft-2);
  border-radius: 999px;
  margin-top: 2px;
}
.vc-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 600ms var(--ease);
}
.vc-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid #ea580c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: left 600ms var(--ease);
}

/* Right column: model select, agreement, monitor, SHAP mini */
.result-line {
  display: flex; align-items: center;
  font-size: 13px;
}
.result-line-row { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-line-key { color: var(--text-muted); font-weight: 500; }
.result-model-select {
  height: 36px;
  padding: 0 32px 0 12px;
  background-color: var(--surface-soft);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  min-width: 170px;
  transition: all var(--t) var(--ease);
}
.result-model-select:hover { border-color: var(--primary); background-color: var(--bg-elevated); }
.result-model-select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
[data-theme="dark"] .result-model-select {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.32);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
[data-theme="dark"] .result-model-select:hover { background-color: rgba(255, 255, 255, 0.07); border-color: var(--primary-strong); }

.agree-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t) var(--ease);
}
.agree-pill[data-quality="strong"] { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.28); color: #15803d; }
.agree-pill[data-quality="moderate"] { background: rgba(250, 204, 21, 0.12); border-color: rgba(250, 204, 21, 0.32); color: #854d0e; }
.agree-pill[data-quality="weak"] { background: rgba(220, 38, 38, 0.10); border-color: rgba(220, 38, 38, 0.28); color: #b91c1c; }
[data-theme="dark"] .agree-pill[data-quality="strong"] { color: #86efac; }
[data-theme="dark"] .agree-pill[data-quality="moderate"] { color: #fde68a; }
[data-theme="dark"] .agree-pill[data-quality="weak"] { color: #fca5a5; }

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: -4px;
}
.accuracy-caveat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(202, 138, 4, 0.10);
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 999px;
  font-size: 11px;
  color: #854d0e;
}
[data-theme="dark"] .accuracy-caveat { color: #fde68a; }

/* Models monitor */
.models-monitor {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.models-monitor-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.models-monitor-help { font-size: 11px; cursor: help; text-transform: none; letter-spacing: 0; font-weight: 500; }
.models-monitor-rows { display: flex; flex-direction: column; gap: 4px; }
.models-monitor-empty { font-size: 12px; color: var(--text-muted); padding: 8px 4px; }
.mm-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.mm-row:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}
[data-theme="dark"] .mm-row { color: var(--text); }
[data-theme="dark"] .mm-row:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(148, 163, 184, 0.20); }
.mm-row.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 124, 138, 0.10);
}
[data-theme="dark"] .mm-row.is-active {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.45);
}
.mm-row.mm-row-main { font-weight: 600; }
.mm-row .mm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row .mm-bar {
  width: 80px;
  height: 5px;
  background: var(--surface-soft-2);
  border-radius: 999px;
  overflow: hidden;
}
.mm-row .mm-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  background-size: 200% 100%;
  transition: width 600ms var(--ease);
}
.mm-row .mm-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  min-width: 42px;
  text-align: right;
}
.mm-row .mm-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-left: 4px;
}

/* SHAP mini */
.result-why {
  margin-top: auto;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.result-why-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.why-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-pos { background: var(--positive); }
.legend-neg { background: var(--negative); }

.shap-mini { display: flex; flex-direction: column; gap: 6px; }
.shap-mini-empty { font-size: 12px; color: var(--text-muted); padding: 6px 0; }
.shap-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.4fr) 2fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.shap-row-name { display: flex; justify-content: space-between; gap: 6px; }
.shap-row-name .shap-row-val {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.shap-row-bar {
  position: relative;
  height: 16px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.shap-row-bar-axis {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.shap-row-bar-fill {
  position: absolute;
  top: 2px; bottom: 2px;
  left: 50%;
  background: var(--positive);
  border-radius: 2px;
  transition: width 400ms var(--ease);
}
.shap-row-bar-fill.neg {
  left: auto; right: 50%;
  background: var(--negative);
}
.shap-row-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  min-width: 42px;
}
.shap-row-num.pos { color: var(--positive); }
.shap-row-num.neg { color: var(--negative); }

.shap-see-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.shap-see-all:hover { text-decoration: underline; }


/* ============================================================================
   14. Form sections (collapsible), JS-rendered
   ========================================================================== */
.form-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease);
}
.form-section:hover { box-shadow: var(--shadow-md); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--surface-soft), var(--bg-elevated));
  border: 0;
  border-bottom: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.section-head:hover { background: var(--surface-soft-2); }
.form-section[data-open="true"] .section-head { border-bottom-color: var(--border); }

.section-num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.section-title-wrap { line-height: 1.3; min-width: 0; }
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.section-title-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-soft-2);
  color: var(--text-muted);
}
.section-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.section-meta { display: flex; align-items: center; gap: 8px; }
.section-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-chev {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.form-section[data-open="true"] .section-chev { transform: rotate(180deg); }
.section-head:hover .section-chev { background: var(--bg-elevated); color: var(--text); }

.section-body {
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
.form-section[data-open="false"] .section-body { display: none; }

@media (max-width: 760px) {
  .section-body { grid-template-columns: 1fr; gap: 14px; }
}

/* Field */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
}
.field-label-left {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.field-unit { color: var(--text-muted); font-weight: 500; font-size: 11.5px; }
.field-label-right { display: inline-flex; align-items: center; gap: 6px; }

.skip-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.skip-btn:hover { color: var(--text); border-color: var(--border-strong); }
.skip-btn[aria-pressed="true"] {
  background: rgba(202, 138, 4, 0.10);
  border-color: rgba(202, 138, 4, 0.30);
  color: #854d0e;
}
[data-theme="dark"] .skip-btn[aria-pressed="true"] { color: #fde68a; }

.info-icon {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface-soft-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: help;
  vertical-align: middle;
}
.info-icon:hover { background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary); }

/* Select (dropdown) */
.field select {
  height: 34px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field select.is-unknown { color: var(--text-muted); font-style: italic; }

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.seg-btn {
  flex: 0 1 auto;
  padding: 5px 12px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--primary-strong);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Slider row */
.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-soft-2);
  border-radius: 999px;
  outline: 0;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--primary) 0%, var(--primary) 0%, transparent 0%);
  background-repeat: no-repeat;
  transition: background-image 80ms linear;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(15, 124, 138, 0.28);
  cursor: pointer;
  transition: transform var(--t) var(--ease);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--primary);
  cursor: pointer;
}
.slider-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  min-width: 56px;
  text-align: right;
  padding: 4px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}

.field.is-unknown .slider-value,
.field.is-unknown .slider {
  opacity: 0.55;
}

/* OOD warning, JS adds/removes .hidden */
.ood-warning {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 6px;
  width: fit-content;
}
[data-theme="dark"] .ood-warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
}

/* Implausibility chip, hidden by default; JS toggles .is-visible */
.field-warn {
  display: none;
  align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: rgba(202, 138, 4, 0.12);
  border: 1px solid rgba(202, 138, 4, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 6px;
  width: fit-content;
}
.field-warn.is-visible { display: inline-flex; }
[data-theme="dark"] .field-warn { background: rgba(202, 138, 4, 0.18); color: #fde68a; }

/* Status-colored slider thumb when CLINICAL_RANGES sets data-status */
.field[data-status="ok"]   .slider::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16); border-color: #16a34a; }
.field[data-status="warn"] .slider::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.18); border-color: #ca8a04; }
.field[data-status="risk"] .slider::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.20); border-color: #dc2626; }
.field { position: relative; }


/* ============================================================================
   15. Tooltips, completeness strip
   ========================================================================== */
.tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 280px;
  padding: 8px 10px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
  line-height: 1.45;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.30);
}
.tooltip.is-visible { opacity: 1; transform: translateY(0); }

.completeness-strip {
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.completeness-label { font-weight: 600; color: var(--text); }
.completeness-count { color: var(--text-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.completeness-bar {
  position: relative;
  height: 6px;
  background: var(--surface-soft-2);
  border-radius: 999px;
  overflow: hidden;
}
.completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #14b8a6);
  border-radius: 999px;
  transition: width 400ms var(--ease);
}
.completeness-note {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 2px;
}


/* ============================================================================
   16. Patient History view
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr.row-clickable { cursor: pointer; transition: background var(--t) var(--ease); }
.data-table tbody tr.row-clickable:hover { background: var(--surface-soft); }
.data-table tbody tr.is-leaving { opacity: 0; transform: translateX(8px); transition: all 220ms var(--ease); }

.cv-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.data-table .data-table-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  text-align: right;
}
.data-table .data-table-actions { text-align: right; white-space: nowrap; }
.data-table button[data-del] {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
}
.data-table button[data-del]:hover { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
[data-theme="dark"] .data-table button[data-del]:hover { color: #fda4af; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.30); }


/* ============================================================================
   17. What-If view
   ========================================================================== */
.whatif-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.whatif-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.whatif-controls select {
  height: 34px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.whatif-wrap {
  padding: 22px;
  height: 460px;
}


/* ============================================================================
   18. Compare Models view
   ========================================================================== */
.compare-wrap {
  padding: 22px;
  height: 460px;
}


/* ============================================================================
   19. Resources view
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.resource-region { padding: 0; }

.region-status { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.region-detected {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.region-flag {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.region-country { font-size: 14px; font-weight: 700; color: var(--text); }
.region-meta { font-size: 12px; }

.locate-city {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.locate-city:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.locate-city-icon { color: var(--text-muted); }
.locate-city input {
  flex: 1;
  height: 36px;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--text);
  min-width: 0;
}
.locate-city input::placeholder { color: var(--text-muted); }

.btn-locate {
  align-self: flex-start;
  width: fit-content;
}

.locate-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12px;
}
.locate-quick-label { color: var(--text-muted); }
.locate-quick-chip {
  padding: 4px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.locate-quick-chip:hover { background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary); }

.locate-status {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 22px;
  margin-bottom: 6px;
}
.locate-status:empty { display: none; }
.locate-status .is-locating, .locate-status[aria-busy="true"] { color: var(--primary); }

.map-instruction {
  margin: 0 22px 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.map-shell {
  position: relative;
  margin: 0 22px 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 340px;
  background: var(--surface-soft);
}
.resource-map { position: absolute; inset: 0; height: 100%; }
.map-layer-toggle {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.map-layer-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.map-layer-btn.is-active {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}
.map-layer-thumb { width: 14px; height: 14px; border-radius: 4px; }
.map-layer-thumb-map { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.map-layer-thumb-sat { background: linear-gradient(135deg, #1e3a8a, #4338ca); }

.map-fab {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 5;
  transition: all var(--t) var(--ease);
}
.map-fab:hover { color: var(--primary-strong); border-color: var(--primary); }
.map-fab.is-locating { color: var(--primary); animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.resource-clinics {
  padding: 0 22px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.clinics-empty {
  padding: 22px;
  font-size: 12.5px;
  text-align: center;
  background: var(--surface-soft);
  border-radius: 10px;
}
.clinic-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  transition: all var(--t) var(--ease);
}
.clinic-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.clinic-row .clinic-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.clinic-row .clinic-name { font-weight: 600; line-height: 1.3; }
.clinic-row .clinic-sub { font-size: 11.5px; color: var(--text-muted); }
.clinic-row .clinic-distance {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-strong);
  white-space: nowrap;
}

/* Emergency card */
.resource-emergency {
  padding: 18px 22px;
  background: linear-gradient(135deg, #fff5f5 0%, var(--bg-elevated) 100%);
  border-color: rgba(220, 38, 38, 0.18);
}
[data-theme="dark"] .resource-emergency { background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), var(--bg-elevated)); border-color: rgba(220, 38, 38, 0.25); }
.emergency-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.emergency-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
  animation: emergency-pulse 1.6s ease-out infinite;
  flex: 0 0 12px;
}
@keyframes emergency-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.40); }
  100% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
}
.emergency-head h2 { font-size: 17px; }
.emergency-p { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.btn-emergency {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.32);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn-emergency:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(220, 38, 38, 0.40); }
.btn-emergency[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }
.emergency-fine { font-size: 11px; margin-top: 8px; }

/* Links */
.resource-links { padding: 0; }
.links-grid {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.link-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--t) var(--ease);
}
.link-card:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }

/* Region stats */
.region-stats {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.region-stats > div {
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.region-stats .stat-num {
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}
.region-stats .stat-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}
.region-stats-source { padding: 0 22px 18px; font-size: 11px; }

/* Lifestyle guides */
.guides-grid {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t) var(--ease);
}
.guide-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.guide-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, var(--bg-elevated));
  color: var(--c);
  font-size: 20px;
}
.guide-card h3 { font-size: 13.5px; margin-bottom: 2px; }
.guide-card .muted { font-size: 12px; line-height: 1.4; }


/* ============================================================================
   20. Research view
   ========================================================================== */
.research-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px;
  margin-bottom: 16px;
}
@media (max-width: 760px) { .research-tabs { grid-template-columns: repeat(2, 1fr); } }
.research-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.research-tab:hover { background: var(--surface-soft); }
.research-tab.is-active {
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.research-tab .rtab-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.research-tab.is-active .rtab-num { color: var(--primary-strong); }
.research-tab .rtab-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.research-tab.is-active .rtab-name { color: var(--primary-strong); }

.research-block { padding: 0; }
.research-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-soft), var(--bg-elevated));
}
@media (max-width: 880px) { .research-head { grid-template-columns: 1fr; } }
.research-eyebrow {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}
.research-title { font-size: 18px; margin-bottom: 4px; }
.research-sub { font-size: 13px; color: var(--text-muted); line-height: 1.55; max-width: 82ch; }

.research-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  align-content: start;
}
@media (min-width: 1100px) {
  .research-stats { grid-template-columns: repeat(4, minmax(80px, 1fr)); }
}
.rstat {
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.rstat-num {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.rstat-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  line-height: 1.3;
}

.research-controls {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 12.5px;
}
.research-control-label { color: var(--text-muted); font-weight: 500; }
.toggle-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
}
.toggle-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); }

.research-chart-wrap {
  padding: 18px 22px;
  height: 360px;
}
.research-table-wrap {
  padding: 0 22px 18px;
  overflow-x: auto;
}

.privacy-note {
  display: flex; align-items: center; gap: 10px;
  margin: 0 22px 22px;
  padding: 12px 14px;
  background: rgba(15, 124, 138, 0.08);
  border: 1px solid rgba(15, 124, 138, 0.20);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.privacy-note svg { color: var(--primary); flex: 0 0 16px; }
.privacy-note strong { display: block; font-weight: 700; color: var(--primary-strong); }

.results-heading {
  margin: 16px 22px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.gallery-row {
  margin: 0 22px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.gallery-img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.gallery-img:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery-img img { width: 100%; height: auto; display: block; }


/* ============================================================================
   21. Model Card view
   ========================================================================== */
.model-card-doc {
  padding: 32px 38px;
  font-family: var(--font-serif);
  line-height: 1.6;
}
@media (max-width: 760px) { .model-card-doc { padding: 22px 18px; } }

.mc-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.mc-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--primary);
  margin-bottom: 8px;
}
.mc-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.mc-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mc-meta b { font-weight: 600; color: var(--text); }
.mc-abstract { font-size: 15px; color: var(--text); line-height: 1.6; }

.mc-section { margin-bottom: 22px; }
.mc-section h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.mc-section p, .mc-section li { font-size: 14px; }
.mc-section ul { padding-left: 22px; }
.mc-section li { margin-bottom: 4px; }
.mc-section code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-soft); padding: 1px 5px; border-radius: 4px; }

.mc-arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px) { .mc-arch-grid { grid-template-columns: 1fr; } }
.mc-arch {
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
}
.mc-arch b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--primary-strong); }
.mc-arch code { font-size: 11.5px; }

.mc-table-wrap { overflow-x: auto; margin-top: 10px; font-family: var(--font-sans); }
.mc-fine { font-size: 12px; margin-top: 10px; }

.mc-cite-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; font-family: var(--font-sans); }
.mc-cite-preview {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.mc-paper-cite {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(94, 234, 212, 0.06));
  border: 1px solid rgba(15, 124, 138, 0.20);
  border-radius: 12px;
  font-family: var(--font-sans);
}
@media (max-width: 720px) { .mc-paper-cite { grid-template-columns: 1fr; } }
.mc-paper-cite-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
}
.mc-paper-cite-title { font-size: 11px; font-weight: 700; color: var(--primary-strong); text-transform: uppercase; letter-spacing: 0.08em; }
.mc-paper-cite-text p { font-size: 13px; color: var(--text); margin-top: 2px; }
.mc-paper-cite-text code { font-size: 11.5px; }


/* ============================================================================
   22. Research Paper view
   ========================================================================== */
.paper-shell { display: flex; flex-direction: column; gap: 14px; }
.paper-header {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
@media (max-width: 760px) { .paper-header { grid-template-columns: 1fr; } }
.paper-header-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #0f7c8a);
  color: #fff;
  display: grid; place-items: center;
}
.paper-header-eyebrow {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}
.paper-header-title { font-size: 18px; margin-bottom: 4px; }
.paper-header-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.paper-header-meta b { font-weight: 600; color: var(--text); }
.paper-header-dot { color: var(--border-strong); }
.paper-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.paper-darkmode-warn {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 10px;
  font-size: 12px;
  color: #854d0e;
  margin-bottom: 0;
}
[data-theme="dark"] .paper-darkmode-warn { display: flex; color: #fde68a; }
.paper-darkmode-warn svg { flex: 0 0 13px; color: #ca8a04; }

.paper-viewer-card { padding: 0; overflow: hidden; }
.paper-viewer {
  width: 100%;
  height: 78vh;
  border: 0;
  display: block;
  background: var(--surface-soft);
}
.paper-fallback { padding: 22px; font-size: 13px; }


/* ============================================================================
   23. About view
   ========================================================================== */
.about-hero {
  padding: 28px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-mark {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  display: block;
}
.hero-mark img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; display: block; }
.hero-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; max-width: 60ch; }
.hero-sub { font-size: 14.5px; color: var(--text-muted); max-width: 70ch; line-height: 1.55; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.hero-stat {
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stat-lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.hero-shortcuts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.hero-shortcut-lbl { color: var(--text); font-weight: 600; }

.about-toc { padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.about-toc-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.about-toc-select {
  flex: 1;
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  min-width: 220px;
}

.about-grid { display: flex; flex-direction: column; gap: 16px; }
.about-block { padding: 22px; }
.about-block.hidden { display: none; }
.about-block h3 { font-size: 16px; margin-bottom: 8px; }
.about-block .muted { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.about-block p { font-size: 13.5px; line-height: 1.55; margin-bottom: 8px; }

.about-bullets { padding-left: 20px; margin: 0; }
.about-bullets li { font-size: 13.5px; line-height: 1.55; margin-bottom: 6px; }

.about-models { display: flex; flex-direction: column; gap: 8px; }
.model-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
@media (max-width: 720px) { .model-row { grid-template-columns: 1fr; gap: 4px; } }
.model-row-name { font-weight: 700; color: var(--text); font-size: 14px; }
.model-row-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.about-bands { display: flex; flex-direction: column; gap: 8px; }
.band-row {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid var(--border);
}
.band-row b { font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }
.band-low   { background: rgba(22, 163, 74, 0.08);  border-color: rgba(22, 163, 74, 0.22);  }
.band-mod   { background: rgba(250, 204, 21, 0.10); border-color: rgba(250, 204, 21, 0.28); }
.band-high  { background: rgba(234, 88, 12, 0.08);  border-color: rgba(234, 88, 12, 0.22);  }
.band-vhigh { background: rgba(220, 38, 38, 0.08);  border-color: rgba(220, 38, 38, 0.22);  }

.about-glossary .glossary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
}
.glossary > div {
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.glossary dt { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.glossary dd { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.45; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 13px;
}
.stack-grid > div {
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.stack-grid b { color: var(--primary-strong); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }

.about-disclaimer { background: linear-gradient(135deg, #fef9c3 0%, var(--bg-elevated) 100%); border-color: rgba(202, 138, 4, 0.32); }
[data-theme="dark"] .about-disclaimer { background: linear-gradient(135deg, rgba(202, 138, 4, 0.10), var(--bg-elevated)); }


/* ============================================================================
   24. Developer view
   ========================================================================== */
.dev-view { background: linear-gradient(180deg, var(--surface-soft), var(--bg)); }
.dev-stack { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }

.dev-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #f1f5f9;
  border: 0;
}
@media (max-width: 720px) { .dev-hero-card { grid-template-columns: 1fr; text-align: center; } }
.dev-avatar-xl {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.40);
}
@media (max-width: 720px) { .dev-avatar-xl { margin: 0 auto; } }
.dev-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: #5eead4;
  margin-bottom: 6px;
}
.dev-hero-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.dev-hero-role { font-size: 13px; color: #cbd5e1; }
.dev-hero-tagline { font-size: 13.5px; color: #f1f5f9; margin-top: 6px; font-style: italic; }

.dev-prose-card { padding: 24px 28px; font-family: var(--font-serif); }
.dev-prose p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 12px; }
.dev-prose p:last-child { margin-bottom: 0; }

.dev-creds-section { display: flex; flex-direction: column; gap: 12px; }
.dev-section-head { padding: 0 4px; }
.dev-h2 { font-size: 18px; }
.dev-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.dev-cred {
  padding: 18px 20px;
  margin-bottom: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.dev-cred-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.dev-cred-title { font-size: 14.5px; font-weight: 700; }
.dev-cred-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.dev-quote-card {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-elevated) 100%);
  border-color: rgba(15, 124, 138, 0.20);
}
.dev-quote { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.65; color: var(--text); position: relative; padding-left: 18px; border-left: 3px solid var(--primary); }

.dev-contact-card { padding: 22px 28px; text-align: center; }
.dev-contact-line { font-size: 13.5px; color: var(--text-muted); }
.dev-contact-email {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  text-decoration: none;
  transition: all var(--t) var(--ease);
}
.dev-contact-email:hover { background: var(--primary); color: #fff; }
.dev-contact-footer { font-size: 11.5px; color: var(--text-soft); margin-top: 12px; }

.dev-bg { display: none; } /* legacy hook, no-op */

[data-anim] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}
[data-anim].is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================================
   25. Site footer
   ========================================================================== */
.site-footer {
  margin: 32px 0 8px;
  padding: 26px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.footer-row {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
  padding-bottom: 4px;
}
.footer-row strong { color: var(--text); font-weight: 700; }
.footer-row > div:first-child { max-width: 60ch; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-link {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t) var(--ease);
}
.footer-link:hover { color: var(--primary-strong); border-color: var(--primary); background: var(--primary-soft); }
.footer-fine {
  font-size: 12px;
  line-height: 1.55;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  text-align: center;
}
@media (max-width: 720px) {
  .site-footer { padding: 20px 18px; margin: 22px 0 0; }
}


/* ============================================================================
   26. Toasts + tooltip layer
   ========================================================================== */
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex; flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  pointer-events: auto;
  min-width: 220px;
  max-width: 360px;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toastIn 240ms var(--ease);
}
.toast.success { border-color: rgba(22, 163, 74, 0.32); background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), var(--bg-elevated)); }
.toast.error   { border-color: rgba(220, 38, 38, 0.32); background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), var(--bg-elevated)); }
.toast.warn    { border-color: rgba(202, 138, 4, 0.32); background: linear-gradient(135deg, rgba(202, 138, 4, 0.10), var(--bg-elevated)); }
.toast.info    { border-color: rgba(15, 124, 138, 0.28); background: linear-gradient(135deg, var(--primary-soft), var(--bg-elevated)); }
.toast-icon { flex: 0 0 18px; }
.toast-msg { line-height: 1.4; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================================
   27. Tour overlay
   ========================================================================== */
.tour-overlay {
  position: fixed; inset: 0;
  z-index: 990;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.tour-overlay-mask { pointer-events: none; }
.tour-spotlight {
  position: fixed;
  z-index: 991;
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.45), 0 0 0 9999px rgba(15, 23, 42, 0.0);
  pointer-events: none;
  transition: top 240ms var(--ease), left 240ms var(--ease), width 240ms var(--ease), height 240ms var(--ease);
}
.tour-spotlight.tour-hide { opacity: 0; }
.tour-bubble {
  position: fixed;
  z-index: 992;
  max-width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
}
.tour-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 4px; }
.tour-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tour-body { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-controls > div { display: flex; gap: 6px; }
.tour-progress { font-size: 11.5px; font-family: var(--font-mono); color: var(--text-muted); }
.tour-panel {
  position: fixed;
  z-index: 992;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
}


/* ============================================================================
   28. Landing page (sticky nav, hero, features, how, timeline, CTA, footer)
   ========================================================================== */
body.landing-body {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  background:
    radial-gradient(900px 540px at 88% -8%, rgba(94, 234, 212, 0.20), transparent 60%),
    radial-gradient(700px 460px at -10% 30%, rgba(124, 58, 237, 0.10), transparent 60%),
    var(--bg);
}
[data-theme="dark"] body.landing-body {
  background:
    radial-gradient(1100px 700px at 92% -10%, rgba(20, 184, 166, 0.20), transparent 65%),
    radial-gradient(700px 500px at -10% 20%, rgba(124, 58, 237, 0.12), transparent 65%),
    var(--bg);
}

.ln-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .ln-nav { background: rgba(15, 23, 42, 0.65); }
.ln-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.ln-logo {
  display: block;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  flex: 0 0 32px;
}
.ln-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; display: block; }
.ln-brand-name { font-size: 16px; letter-spacing: -0.01em; }
.ln-version-badge {
  display: inline-block;
  padding: 2px 7px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-left: 6px;
}
.ln-nav-links { display: flex; gap: 22px; }
.ln-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color var(--t) var(--ease); }
.ln-nav-links a:hover { color: var(--primary-strong); }
.ln-nav-actions { display: flex; align-items: center; gap: 10px; }
.ln-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  box-shadow: 0 6px 16px rgba(15, 124, 138, 0.28);
}
.ln-cta:hover { background: var(--primary-strong); transform: translateY(-1px); }
[data-theme="dark"] .ln-cta { color: #06251f; }
@media (max-width: 760px) { .ln-nav-links { display: none; } .ln-nav { padding: 12px 18px; } }

.ln-hero {
  position: relative;
  padding: 72px 32px 48px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-text { max-width: 640px; }
.hero-title-stack { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
@media (max-width: 720px) { .hero-title-stack { font-size: 38px; } }
.hero-line { display: block; }
.hero-period { color: var(--primary); }
.hero-sub { font-size: 15.5px; color: var(--text-muted); line-height: 1.6; margin-top: 18px; max-width: 60ch; }
.hero-sub b { color: var(--text); font-weight: 600; }

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  max-width: 640px;
}
@media (max-width: 760px) { .hero-bullets { grid-template-columns: 1fr; } }
.hero-bullets li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.hero-bullets li svg {
  flex: 0 0 16px;
  margin-top: 3px;
  width: 14px; height: 14px;
  padding: 2px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  box-sizing: content-box;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-mega {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary);
  transition: all var(--t) var(--ease);
  box-shadow: 0 8px 20px rgba(15, 124, 138, 0.30);
  position: relative;
  isolation: isolate;
}
.btn-mega:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(15, 124, 138, 0.36); }

[data-theme="dark"] .btn-mega { color: #06251f; }
.btn-mega-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-mega-ghost:hover { background: var(--surface-soft); color: var(--primary-strong); border-color: var(--primary); }
[data-theme="dark"] .btn-mega-ghost { color: var(--text); }
[data-theme="dark"] .btn-mega-ghost:hover { color: var(--primary-strong); }
.btn-mega-light {
  background: #fff;
  color: var(--primary-strong);
  border-color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.btn-mega-light:hover { background: #f1f5f9; color: var(--primary-strong); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 32px;
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hstat { padding: 12px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; }
.hstat-num { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hstat-lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.hstat-foot { display: block; font-size: 10.5px; color: var(--text-soft); }

/* Hero visual card (mock dashboard) */
.hero-visual { display: grid; place-items: center; }
.visual-card {
  width: 100%; max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.visual-card-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.vc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.vc-dot:nth-child(1) { background: #ef4444; }
.vc-dot:nth-child(2) { background: #facc15; }
.vc-dot:nth-child(3) { background: #22c55e; }
.vc-title { margin-left: 0; font-size: 11px; }

.visual-gauge { position: relative; padding: 14px 0; display: grid; place-items: center; }
.vg-svg { width: 100%; max-width: 220px; }
.vg-value { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); text-align: center; }
.vg-num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.vg-pct { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.vg-band {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 2px;
}
.vg-band.band-low   { color: var(--risk-low);  }
.vg-band.band-mod   { color: var(--risk-mod);  }
.vg-band.band-high  { color: var(--risk-high); }
.vg-band.band-vhigh { color: var(--risk-vhigh);}

.visual-rows { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 10px; }
.vr { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.vr span:last-child { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.visual-shap { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.vs-row { display: grid; grid-template-columns: 60px 1fr; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-muted); }
.vs-bar { height: 6px; background: var(--surface-soft-2); border-radius: 999px; overflow: hidden; }
.vs-fill { height: 100%; background: var(--positive); border-radius: 999px; }
.vs-fill.vs-neg { background: var(--negative); }

/* Landing sections */
.ln-section {
  position: relative;
  padding: 72px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 720px) { .ln-section { padding: 48px 18px; } }
.ln-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* SCOPED to .ln-section-head so they don't override .section-title used inside
   the form-section heads on the dashboard. */
.ln-section-head .section-eyebrow {
  display: block;
  width: fit-content;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--primary);
  padding: 5px 12px;
  background: var(--primary-soft);
  border-radius: 999px;
  margin: 0;
}
.ln-section-head .section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}
@media (max-width: 720px) { .ln-section-head .section-title { font-size: 28px; } }
.ln-section-head .section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all var(--t) var(--ease);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--bg-elevated));
  color: var(--c, var(--primary));
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  padding: 26px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  transition: all var(--t) var(--ease);
}
.how-step:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.how-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.how-step h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.01em; }
.how-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.how-cta { text-align: center; margin-top: 36px; }
.how-cta-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.btn-mega-howcta { padding: 14px 28px; font-size: 15px; }

/* Timeline */
.ln-timeline {  }
.release-tag-row { margin-top: 14px; display: flex; justify-content: center; }
.release-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.release-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.release-tag-version { font-family: var(--font-mono); color: var(--primary-strong); }
.release-tag-date { color: var(--text-muted); }

.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 0;
}
.timeline-axis {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--border-strong) 8%, var(--border-strong) 92%, transparent 100%);
  transform: translateX(-50%);
}
@media (max-width: 880px) { .timeline-axis { left: 20px; } }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-bottom: 26px;
  align-items: flex-start;
}
.timeline-icon {
  grid-column: 2;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--c, var(--primary));
  z-index: 2;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c, var(--primary)) 32%, transparent), 0 0 0 4px var(--bg);
  flex: 0 0 40px;
}
.timeline-card {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 480ms var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
.timeline-item.is-visible .timeline-card { opacity: 1; transform: translateY(0); }
.timeline-item[data-side="left"]  .timeline-card { grid-column: 1; }
.timeline-item[data-side="right"] .timeline-card { grid-column: 3; }
.timeline-date { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.timeline-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.timeline-card-launch { border-color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--bg-elevated)); }
.version-pill {
  display: inline-block;
  padding: 1px 7px;
  background: var(--surface-soft-2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--primary-strong);
  margin-right: 4px;
}
.version-pill-current { background: var(--primary); color: #fff; }
.timeline-version-link {
  margin-top: 8px;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}
.timeline-version-link:hover { color: var(--primary-strong); text-decoration: underline; }

@media (max-width: 880px) {
  .timeline-item { grid-template-columns: 40px 1fr; gap: 14px; padding-left: 0; }
  .timeline-icon { grid-column: 1; }
  .timeline-item[data-side="left"]  .timeline-card,
  .timeline-item[data-side="right"] .timeline-card { grid-column: 2; }
}

.ln-research-strip {  }
.research-strip-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 880px) { .research-strip-content { grid-template-columns: 1fr; padding: 24px; } }
.research-strip-text p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 14px 0 18px; }
.research-strip-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rs-card { padding: 16px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.rs-num { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rs-lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }

.ln-cta-strip {
  margin: 32px;
  padding: 56px 32px;
  background: linear-gradient(135deg, #0b1220 0%, #0f7c8a 100%);
  border-radius: 24px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) { .ln-cta-strip { margin: 18px; padding: 40px 18px; } }
.ln-cta-strip h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.ln-cta-strip p { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-bottom: 22px; }

.ln-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 56px 32px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; }
.footer-brand .ln-logo { box-shadow: none; }
.footer-tagline { font-size: 13px; color: #94a3b8; margin-top: 10px; line-height: 1.5; max-width: 28ch; }
.footer-col h4 { font-size: 13px; color: #fff; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }
.footer-col a { display: block; font-size: 13px; color: #94a3b8; text-decoration: none; padding: 4px 0; transition: color var(--t) var(--ease); }
.footer-col a:hover { color: #5eead4; }
.footer-meta { font-size: 11.5px; color: #64748b; padding: 4px 0; }

.footer-fine-strip {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid #1e293b;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 1280px;
  margin-left: auto; margin-right: auto;
}


/* ============================================================================
   28b. Landing revamp, hero eyebrow, trust bar, product showcase, alt sections
   ========================================================================== */
/* Prevent the full-bleed alt-section background from creating horizontal scroll */
body.landing-body { overflow-x: clip; }

/* Hero eyebrow badge */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}


/* Hero kicker, the brand line under the H1 */
.hero-kicker {
  margin-top: 16px;
  font-size: 16.5px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.hero-cta-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* Caption inside the hero mock card */
.visual-card-caption {
  text-align: center; font-size: 9.5px; color: var(--text-soft);
  margin-top: -2px; padding-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700;
}

/* Trust bar between hero and showcase */
.ln-trustbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 20px;
  max-width: 1280px; margin: 0 auto; padding: 22px 32px 0;
}
.tb-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.tb-item svg { color: var(--primary); flex: 0 0 auto; }
.tb-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
@media (max-width: 720px) { .tb-sep { display: none; } .ln-trustbar { gap: 10px 16px; padding: 16px 18px 0; } }

/* Alternating tinted section (full-bleed background, capped content) */
.ln-section-alt::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Product showcase */
.showcase {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 36px; align-items: center;
}
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; gap: 28px; } }

.browser-frame {
  margin: 0; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.bf-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
}
.bf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.bf-dot.bf-r { background: #ef4444; }
.bf-dot.bf-y { background: #facc15; }
.bf-dot.bf-g { background: #22c55e; }
.bf-url {
  margin-left: 8px; padding: 2px 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px;
  color: inherit; text-decoration: none;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
a.bf-url:hover { color: var(--primary-strong); border-color: var(--primary); }
.browser-frame img { width: 100%; display: block; }

.showcase-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.showcase-points li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.sp-num {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 9px; font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .sp-num { color: #06251f; }
.sp-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; letter-spacing: -0.01em; }
.sp-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.showcase-cta { text-align: center; margin-top: 36px; }


/* ============================================================================
   29. Version modal (landing)
   ========================================================================== */
.version-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
}
.version-modal.hidden { display: none; }
.version-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.version-modal-card {
  position: relative;
  width: 100%; max-width: 580px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 240ms var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.version-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.version-modal-close:hover { color: var(--text); background: var(--surface-soft-2); }
.version-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-right: 36px; }
.version-modal-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
}
.version-modal-date { font-size: 12px; color: var(--text-muted); }
.version-modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
.version-modal-summary { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.version-modal-body { font-size: 13.5px; line-height: 1.65; color: var(--text); }
.version-modal-body ul { padding-left: 22px; }
.version-modal-body li { margin-bottom: 6px; }
.version-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.version-modal-meta { font-size: 11.5px; color: var(--text-muted); }


/* ============================================================================
   30. Print + responsive cleanup
   ========================================================================== */
@media print {
  .sidebar, .topbar, .toast-stack, .tooltip, .tour-overlay, .tour-spotlight, .tour-bubble { display: none !important; }
  body, body:not(.landing-body) { display: block; height: auto; overflow: visible; }
  .main { display: block; height: auto; overflow: visible; }
  .view { padding: 0; overflow: visible; }
  .card { break-inside: avoid; page-break-inside: avoid; }
}

/* Tighten further on phones */
@media (max-width: 720px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar-title h1 { font-size: 15px; }
  .topbar-title .muted { font-size: 11px; }
  .result-left, .result-right { padding: 18px 16px; }
  .gauge-value { font-size: 30px; }
  .compare-num { font-size: 26px; }
  .section-head { padding: 12px 14px; }
  .section-body { padding: 14px; }
  .card-head { padding: 14px 16px 12px; }
  .about-hero { padding: 22px 18px; }
  .hero-title { font-size: 22px; }
  .map-shell { margin: 0 16px 16px; height: 280px; }
  .resource-clinics, .links-grid, .region-stats, .guides-grid, .region-stats-source, .region-status { padding-left: 16px; padding-right: 16px; }
  .map-instruction { margin-left: 16px; margin-right: 16px; }
  .privacy-note { margin-left: 16px; margin-right: 16px; }
  .gallery-row, .results-heading { margin-left: 16px; margin-right: 16px; }
  .research-chart-wrap, .research-controls, .research-head { padding-left: 16px; padding-right: 16px; }
  .research-table-wrap { padding-left: 16px; padding-right: 16px; }
}

/* Sidebar hidden on developer view (full-bleed treatment) */
body.is-developer-active .dev-view { background: linear-gradient(180deg, #0b1220 0%, #0f172a 50%, var(--bg) 100%); }
[data-theme="dark"] body.is-developer-active .dev-view { background: linear-gradient(180deg, #050811 0%, #0a0f1a 60%, var(--bg) 100%); }


/* =============================================================================
   31. Motion, purposeful only
   -----------------------------------------------------------------------------
   Motion is reserved for state changes the user caused (a banner appearing,
   SHAP rows updating). Decorative hover choreography was removed in v3.0.
   ============================================================================= */

/* SHAP rows fade in when recomputed */
.shap-row { animation: shap-row-in 360ms var(--ease) both; }
@keyframes shap-row-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.shap-row-bar-fill { transition: width 600ms var(--ease); }

/* Banners slide in when triggered */
.floor-banner:not(.hidden) { animation: banner-in 360ms var(--ease) both; }
.risk-alert:not(.hidden) { animation: banner-in 380ms var(--ease) both; }
.intro-banner:not(.hidden) { animation: banner-in 360ms var(--ease) both; }
@keyframes banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll for #anchor jumps */
html { scroll-behavior: smooth; }

/* Respect reduced motion globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================================
   32. v3.0 additions, hero disclaimer, mock-card footnote, research caveat
   ========================================================================== */
.hero-disclaimer {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
}
.hero-disclaimer b { color: var(--text); }

.visual-card-foot {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.45;
}

.research-caveat {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--risk-mod);
  border-radius: 8px;
  font-size: 12.5px;
}


/* v3.1 landing: human "approach" section (replaces the methods feature grid) */
.approach { max-width: 720px; margin: 0 auto; }
.approach p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }
.approach p:first-child { font-size: 18px; line-height: 1.55; color: var(--text); font-weight: 500; }
.approach p:last-child { margin-bottom: 0; }


/* v3.1: subtle LinkedIn button on the developer view (replaces credentials grid) */
.dev-linkedin-row { display: flex; justify-content: center; margin: 2px 0 6px; }
.dev-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.dev-linkedin svg { color: #5eead4; }
.dev-linkedin:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
