@property --pct {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --bg-0: #070b1a;
  --bg-1: #0d1230;
  --bg-2: #141b42;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #eef1fb;
  --muted: #9aa3c7;
  --accent: #22e3c8;
  --accent-2: #6c8bff;
  --danger: #ff5d7a;
  --warning: #ffb454;
  --ok: #4ade80;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-heading: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.1px;
}

/* Slowly drifting ambient background — subtle, not distracting */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
}

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: aurora-drift 26s ease-in-out infinite alternate;
}

.bg-aurora::before {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
}

.bg-aurora::after {
  bottom: -25%;
  right: -10%;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation-delay: -13s;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, 4%) scale(1.08); }
  100% { transform: translate(-4%, -6%) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora::before, .bg-aurora::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 26, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.navbar.scrolled {
  background: rgba(7, 11, 26, 0.82);
  border-bottom-color: var(--panel-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand .pulse-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(34, 227, 200, 0.45);
}

.brand .pulse-icon svg { width: 20px; height: 20px; }

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--panel-border);
  margin: 0 2px;
}

.umt-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.08));
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .18s ease;
}

.nav-links a:hover { color: var(--text); background: var(--panel); }

.nav-links a.active {
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Layout helpers ---------- */
main { flex: 1; }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 1rem; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 160% 160%;
  box-shadow: 0 10px 30px rgba(34, 227, 200, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(34, 227, 200, 0.45);
  transform: translateY(-2px);
  background-position: 100% 0;
}

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--panel-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

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

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(108,139,255,0.28), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(34,227,200,0.22), transparent 60%),
              var(--panel);
  border: 1px solid var(--panel-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px;
}

.pulse-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(34, 227, 200, 0.35);
  animation: pulse-ring 3s ease-out infinite;
  pointer-events: none;
}
.pulse-ring.delay { animation-delay: 1.5s; }

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Hero product mockup ---------- */
.mock-browser {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 18, 48, 0.85);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--panel-border);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mock-url {
  margin-left: 10px;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: "Consolas", monospace;
}

.mock-body { padding: 18px; }

.mock-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.mock-chip {
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.mock-chip.on {
  background: linear-gradient(135deg, rgba(34,227,200,0.22), rgba(108,139,255,0.18));
  border-color: rgba(34,227,200,0.5);
  color: var(--text);
  animation: chip-glow 3.6s ease-in-out infinite;
}
.mock-chip.c2 { animation-delay: .3s; }
.mock-chip.c3 { animation-delay: .6s; }

@keyframes chip-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(34,227,200,0); }
  50% { box-shadow: 0 0 14px rgba(34,227,200,0.35); }
}

.mock-predict-btn {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #06111f;
  padding: 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}

.mock-result {
  border-top: 1px solid var(--panel-border);
  padding-top: 14px;
  animation: result-fade 3.6s ease-in-out infinite;
}

@keyframes result-fade {
  0%, 70%, 100% { opacity: 1; }
}

.mock-result .badge, .mock-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(74,222,128,0.18);
  color: var(--ok);
  margin-bottom: 8px;
}

.mock-result-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

.mock-confidence-track {
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 6px;
}
.mock-confidence-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: fill-bar 3.6s ease-in-out infinite;
}

@keyframes fill-bar {
  0% { width: 0%; }
  35%, 100% { width: 96%; }
}

.mock-confidence-label { font-size: 0.68rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .mock-chip.on, .mock-confidence-fill { animation: none; width: 96%; }
}

@media (max-width: 480px) {
  .mock-browser { transform: none; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  border-color: rgba(34, 227, 200, 0.28);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.card-hover:hover { transform: translateY(-5px); border-color: rgba(34,227,200,0.45); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34,227,200,0.18), rgba(108,139,255,0.18));
  border: 1px solid var(--panel-border);
  margin-bottom: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.icon-badge svg { width: 24px; height: 24px; color: var(--accent); }
.card-hover:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 24px rgba(34,227,200,0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Tabs (Disease Detection) ---------- */
.tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 32px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .18s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111f;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Symptom picker ---------- */
.symptom-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.symptom-search:focus { outline: none; border-color: var(--accent); }

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

.symptom-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all .15s ease;
  user-select: none;
}

.symptom-chip:hover { border-color: rgba(34,227,200,0.4); }
.symptom-chip.selected {
  background: linear-gradient(135deg, rgba(34,227,200,0.18), rgba(108,139,255,0.14));
  border-color: var(--accent);
}
.symptom-chip input { accent-color: var(--accent); width: 15px; height: 15px; }

.selected-count {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Forms (Heart Detector) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.92rem;
}

.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

/* ---------- Result panel ---------- */
.result-panel {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04);
  display: none;
}
.result-panel.show { display: block; animation: fade-in .35s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-emergency { background: rgba(255,93,122,0.18); color: var(--danger); }
.badge-see-doctor { background: rgba(255,180,84,0.18); color: var(--warning); }
.badge-self-care { background: rgba(74,222,128,0.18); color: var(--ok); }

/* ---------- Donut ---------- */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.donut {
  --pct: 0;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  box-shadow: 0 0 30px rgba(34, 227, 200, 0.18);
  position: relative;
  transition: --pct 1.1s cubic-bezier(.16,1,.3,1);
}
.donut::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg-1);
}
.donut span {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

/* ---------- Disease pill list (About) ---------- */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pill {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Chatbot widget ---------- */
.chat-toggle {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(34,227,200,0.35);
  z-index: 60;
  animation: chat-breathe 3.2s ease-in-out infinite;
  transition: transform .2s ease;
}
.chat-toggle:hover { transform: scale(1.08); animation-play-state: paused; }
.chat-toggle svg { width: 26px; height: 26px; color: #06111f; }

@keyframes chat-breathe {
  0%, 100% { box-shadow: 0 14px 34px rgba(34,227,200,0.35); }
  50% { box-shadow: 0 14px 44px rgba(34,227,200,0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-toggle { animation: none; }
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 340px;
  max-height: 480px;
  border-radius: 18px;
  background: var(--bg-1);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
}
.chat-window.open { display: flex; }

.chat-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(34,227,200,0.18), rgba(108,139,255,0.14));
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

.chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 88%; line-height: 1.5; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06111f; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); }

.chat-input-row { display: flex; border-top: 1px solid var(--panel-border); }
.chat-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 14px;
  font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; }
.chat-input-row button {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-credit { display: flex; flex-direction: column; gap: 4px; }
.footer-credit strong {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.footer-credit-with-logo { display: flex; flex-direction: row; align-items: center; gap: 16px; }
.umt-logo-footer { height: 44px; }

.footer-credit-right { text-align: right; align-items: flex-end; }
.footer-disclaimer { max-width: 320px; }

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; text-align: left; }
  .footer-credit-right { align-items: flex-start; text-align: left; }
  .footer-credit-with-logo { flex-direction: row; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(7, 11, 26, 0.97);
    border-bottom: 1px solid var(--panel-border);
    padding: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; }
  .grid-2, .grid-3, .grid-4, .pill-grid, .form-grid, .symptom-grid { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 32px); right: 16px; }
}
