/* === Med Study — Pastel Liquid Glass === */

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

:root {
  --bg-1: #fdf6ff;
  --bg-2: #eef7ff;
  --bg-3: #fff4ef;
  --ink: #2a2d4a;
  --ink-2: #4a4e72;
  --ink-muted: #7a7fa3;
  --ink-faint: rgba(42, 45, 74, 0.45);
  --accent: #8b6db5;
  --accent-soft: rgba(168, 140, 220, 0.16);
  --accent-strong: #7258a6;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-hover: rgba(255, 255, 255, 1);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(140, 120, 180, 0.05) inset,
    0 8px 32px rgba(120, 100, 160, 0.08),
    0 2px 12px rgba(120, 100, 160, 0.05);
  --glass-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(140, 120, 180, 0.06) inset,
    0 16px 48px rgba(120, 100, 160, 0.14),
    0 4px 16px rgba(120, 100, 160, 0.08);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --blur: 28px;
  --blur-heavy: 42px;

  --tint-lavender: #e9dcff;
  --tint-lavender-2: #cdb7ff;
  --tint-mint: #d7f3e2;
  --tint-mint-2: #9ce0b5;
  --tint-peach: #ffe3d1;
  --tint-peach-2: #ffbb91;
  --tint-sky: #d8ecff;
  --tint-sky-2: #9ecbff;
  --tint-rose: #ffdce7;
  --tint-rose-2: #ffa0bf;
  --tint-butter: #fff3c4;
  --tint-butter-2: #ffd86b;
  --tint-lilac: #f0d9ff;
  --tint-lilac-2: #d59bff;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--bg-1);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Aurora atmospheric background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(200, 170, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(255, 190, 210, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(180, 220, 255, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(200, 255, 220, 0.45) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.25), transparent 40%);
  pointer-events: none;
}

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 24px rgba(140, 120, 180, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 4px 0;
}
.brand::before {
  content: '◐';
  margin-right: 8px;
  opacity: 0.85;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

main.container {
  padding-top: 36px;
  padding-bottom: 80px;
}

.hero {
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 6px;
}
.sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.back {
  display: inline-block;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .2s, background .2s;
}
.back:hover {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.8);
}

/* === Glass card base === */
.card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--glass-shadow);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}
.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* === Pastel tints applied to cards === */
.tint-lavender { background: linear-gradient(145deg, rgba(233, 220, 255, 0.7), rgba(255, 255, 255, 0.45)); }
.tint-mint     { background: linear-gradient(145deg, rgba(215, 243, 226, 0.7), rgba(255, 255, 255, 0.45)); }
.tint-peach    { background: linear-gradient(145deg, rgba(255, 227, 209, 0.7), rgba(255, 255, 255, 0.45)); }
.tint-sky      { background: linear-gradient(145deg, rgba(216, 236, 255, 0.7), rgba(255, 255, 255, 0.45)); }
.tint-rose     { background: linear-gradient(145deg, rgba(255, 220, 231, 0.7), rgba(255, 255, 255, 0.45)); }
.tint-butter   { background: linear-gradient(145deg, rgba(255, 243, 196, 0.75), rgba(255, 255, 255, 0.45)); }
.tint-lilac    { background: linear-gradient(145deg, rgba(240, 217, 255, 0.7), rgba(255, 255, 255, 0.45)); }

.exam-card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}
.exam-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
  color: var(--ink);
}
.exam-card .meta {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.exam-card:hover { transform: translateY(-3px); }

.card-ring {
  position: absolute;
  top: 18px; right: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 100, 160, 0.15);
  box-shadow: 0 0 10px rgba(140, 120, 180, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* === Grids === */
.grid {
  display: grid;
  gap: 18px;
}
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-modes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; }

.mode-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 28px 24px;
}
.mode-card:hover { transform: translateY(-3px); }
.mode-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent-strong);
  margin-bottom: 10px;
  opacity: 0.85;
}
.mode-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.mode-card p { color: var(--ink-muted); font-size: 0.9rem; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn.primary {
  background: linear-gradient(145deg, #b096d9, var(--accent-strong));
  color: white;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 16px rgba(123, 88, 180, 0.28), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(123, 88, 180, 0.36), 0 1px 0 rgba(255,255,255,0.7) inset; }
.btn.secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(120, 100, 160, 0.08);
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.9); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* === Controls bar === */
.controls-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 24px;
}
.control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.control input {
  width: 70px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(120, 100, 160, 0.08);
}
.control input:focus { border-color: var(--accent); }
.status {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: auto;
}

/* === Quiz === */
.question {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 14px 0;
  box-shadow: var(--glass-shadow);
}
.q-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.q-prompt {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.q-explanation {
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  margin: 8px 0;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-family: inherit;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.choice:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 140, 220, 0.4);
  color: var(--ink);
  transform: translateX(2px);
}
.choice.correct {
  background: linear-gradient(145deg, rgba(215, 243, 226, 0.9), rgba(178, 230, 198, 0.7));
  border-color: rgba(130, 200, 160, 0.5);
  color: #1b5e3c;
}
.choice.wrong {
  background: linear-gradient(145deg, rgba(255, 220, 225, 0.9), rgba(255, 190, 200, 0.7));
  border-color: rgba(230, 130, 150, 0.5);
  color: #8a2540;
}
.choice.locked { cursor: default; }
.choice.locked:hover { transform: none; }

.quiz-summary {
  margin-top: 24px;
  padding: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.quiz-summary h3 { font-size: 1.1rem; font-weight: 600; }

/* === Oral === */
.panel { padding: 20px 22px; margin-top: 18px; }
.panel h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel-head h3 { margin-bottom: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
}
.icon-btn svg { display: block; }
.icon-btn .icon-eye-closed { display: none; }
.icon-btn[aria-pressed="true"] .icon-eye-open { display: none; }
.icon-btn[aria-pressed="true"] .icon-eye-closed { display: block; }

.checklist-hidden {
  display: none !important;
}
.checklist-panel .checklist-placeholder {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-style: italic;
  padding: 24px 4px 8px;
  text-align: center;
}
.checklist-panel.revealed .checklist-placeholder {
  display: none;
}

.transcript {
  min-height: 260px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.checklist {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.checklist::-webkit-scrollbar { width: 8px; }
.checklist::-webkit-scrollbar-thumb { background: rgba(140, 120, 180, 0.2); border-radius: 4px; }

.sec-block { margin-bottom: 18px; }
.sec-block h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: inline-block;
}
.sub-block { margin: 10px 0 14px 4px; }
.sub-block h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: 8px 0 4px;
}
.sub-block ul {
  list-style: none;
  padding-left: 0;
}
.sub-block li {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}
.sub-block li::before {
  content: '·';
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 1.2rem;
  color: var(--accent);
}

/* === Report === */
#report { margin-top: 28px; }
.grader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.grader-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.grader-badge .dot-llm { background: var(--accent); box-shadow: 0 0 8px rgba(168, 140, 220, 0.6); }
.grader-badge .dot-keyword { background: var(--tint-butter-2); }
.item-reason {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.75rem;
}
.report-header {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.stat-card {
  flex: 1;
  min-width: 160px;
  padding: 20px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.stat-card .value {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.stat-card .label {
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.sections-report {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 22px 24px;
}
.sections-report h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.section-row {
  margin: 12px 0;
}
.section-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.section-row-header .name { font-weight: 600; color: var(--ink); }
.section-row-header .pct { font-weight: 600; color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.gauge {
  height: 6px;
  background: rgba(140, 120, 180, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(90deg, var(--tint-lavender-2), var(--accent));
}
.gauge-fill.good   { background: linear-gradient(90deg, var(--tint-mint-2), #4fae7a); }
.gauge-fill.warn   { background: linear-gradient(90deg, var(--tint-butter-2), #e3a200); }
.gauge-fill.poor   { background: linear-gradient(90deg, var(--tint-rose-2), #d85478); }

details.section-details {
  margin-top: 8px;
}
details.section-details summary {
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.78rem;
  list-style: none;
  padding: 4px 0;
}
details.section-details summary::-webkit-details-marker { display: none; }
details.section-details summary::after { content: ' ▸ details'; }
details.section-details[open] summary::after { content: ' ▾ hide'; }

.sub-report {
  margin: 6px 0 10px 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(140, 120, 180, 0.15);
}
.sub-report h5 {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 600;
  margin: 6px 0 4px;
  display: flex;
  justify-content: space-between;
}
.sub-report h5 small { color: var(--ink-muted); font-weight: 500; }
.sub-report ul { list-style: none; padding: 0; }
.sub-report li {
  font-size: 0.78rem;
  padding: 2px 0 2px 20px;
  position: relative;
  color: var(--ink-muted);
  line-height: 1.45;
}
.sub-report li::before {
  position: absolute;
  left: 4px;
  font-size: 0.9rem;
}
.sub-report li.hit { color: #2f6944; }
.sub-report li.hit::before { content: '✓'; }
.sub-report li.miss { color: #924457; }
.sub-report li.miss::before { content: '✗'; }

/* === Scenarios === */
.scenario-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
}
.scenario-hero h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.scenario-hero p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  max-width: 560px;
}
.scenario-hero:hover { transform: translateY(-2px); }
.scenario-hero-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.section-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 8px 0 14px;
}

.patient-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart-vitals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.vital-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  min-width: 64px;
}
.vital-chip small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}
.vital-chip strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 2px;
}
.chart-field h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 4px;
}
.chart-field p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.pass-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  box-shadow: var(--glass-shadow);
  margin-bottom: 14px;
}
.pass-banner.passing {
  background: linear-gradient(145deg, rgba(215, 243, 226, 0.85), rgba(178, 230, 198, 0.6));
  color: #1b5e3c;
}
.pass-banner.failing {
  background: linear-gradient(145deg, rgba(255, 220, 225, 0.9), rgba(255, 190, 200, 0.65));
  color: #8a2540;
}
.pass-icon {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}
.pass-banner strong { font-size: 1.1rem; font-weight: 600; }
.pass-banner small { opacity: 0.85; }

.critical-missed {
  padding: 16px 20px;
  background: rgba(255, 220, 225, 0.75);
  border: 1px solid rgba(230, 130, 150, 0.5);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.critical-missed h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a2540;
  margin-bottom: 8px;
}
.critical-missed ul { list-style: none; padding: 0; }
.critical-missed li {
  font-size: 0.85rem;
  color: #8a2540;
  padding: 3px 0 3px 18px;
  position: relative;
}
.critical-missed li::before {
  content: '✗';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.sub-report li.critical { font-weight: 600; }
.crit-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(230, 130, 150, 0.2);
  color: #8a2540;
  margin-left: 6px;
}

.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.75rem;
  margin-top: 60px;
}

/* scrollbar */
.transcript::-webkit-scrollbar { width: 8px; }
.transcript::-webkit-scrollbar-thumb { background: rgba(140, 120, 180, 0.2); border-radius: 4px; }
