/* ============================================================
   Ardua — design system
   Identity: "night-shift study" — deep ink navy, warm gold,
   serif display headings, calm surfaces. Built for long reading
   sessions on cheap phone screens: high contrast, big tap targets,
   no heavy assets.
   ============================================================ */

:root {
  --ink-950: #0b1220;
  --ink-900: #101a2e;
  --ink-800: #17233c;
  --ink-700: #22314f;
  --ink-600: #33456b;
  --ink-300: #8fa0c0;
  --ink-200: #b8c4da;
  --ink-100: #dde4f0;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --gold: #d9a441;
  --gold-bright: #f0b94f;
  --gold-deep: #a97a22;
  --green: #2e9e6b;
  --green-soft: #e2f3ea;
  --red: #c4453c;
  --red-soft: #fae5e3;
  --blue: #3a6ea5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.10);
  --shadow-soft: 0 3px 12px rgba(11, 18, 32, 0.07);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--ink-950);
  color: var(--paper);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--ink-700);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem 1.25rem; max-width: 1080px; margin: 0 auto;
}
.brand {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--paper); letter-spacing: 0.3px; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .iq { color: var(--gold-bright); }
.brand-sub {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-300);
}
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-200); font-size: 0.95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.65rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  font-family: var(--font-body); text-decoration: none; transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink-950); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ink { background: var(--ink-900); color: var(--paper); }
.btn-ink:hover { background: var(--ink-700); }
.btn-outline { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-600); }
.btn-outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--ink-300); border: 1px solid var(--ink-600); }
.btn-ghost:hover { color: #fff; border-color: var(--ink-300); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(217, 164, 65, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(58, 110, 165, 0.22), transparent 55%),
    var(--ink-950);
  color: var(--paper);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {  /* faint ECG trace across the hero */
  content: ""; position: absolute; inset-inline: 0; top: 58%; height: 60px;
  background-repeat: repeat-x; background-size: 340px 60px; opacity: 0.12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='60'%3E%3Cpath d='M0 30 h90 l10 -12 l8 24 l10 -34 l10 42 l8 -26 l6 6 h198' fill='none' stroke='%23f0b94f' stroke-width='2'/%3E%3C/svg%3E");
}
.hero .kicker {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 17em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lede { font-size: 1.15rem; color: var(--ink-200); max-width: 38em; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; position: relative; z-index: 1; }

.stat-strip {
  display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.stat-strip .stat b {
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright);
}
.stat-strip .stat span { font-size: 0.85rem; color: var(--ink-300); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.section-sub { color: var(--ink-600); margin-bottom: 2rem; max-width: 44em; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 0.5rem;
}

/* ---------- Cards / catalog ---------- */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.5rem; border: 1px solid rgba(11, 18, 32, 0.06);
}
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.track-card { transition: box-shadow 0.15s, transform 0.15s; }
.track-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.college-block { margin-bottom: 2.5rem; }
.college-block > h3 {
  font-size: 1.25rem; padding-bottom: 0.5rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--paper-2); color: var(--ink-800);
}
.exam-card { display: flex; flex-direction: column; gap: 0.6rem; transition: box-shadow 0.15s; }
.exam-card:hover { box-shadow: var(--shadow); }
.exam-card h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-900); }
.exam-card .meta { font-size: 0.85rem; color: var(--ink-600); }
.exam-card .from-price { margin-top: auto; padding-top: 0.6rem; font-size: 0.9rem; color: var(--ink-600); }
.exam-card .from-price b { color: var(--ink-900); font-size: 1.05rem; }

.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 0.2rem 0.65rem; border-radius: 999px;
}
.badge-live { background: var(--green-soft); color: var(--green); }
.badge-soon { background: var(--paper-2); color: var(--ink-600); }
.badge-owned { background: #fdf3dd; color: var(--gold-deep); }
.badge-sample { background: #e8eef7; color: var(--blue); }

/* ---------- Feature trio (landing) ---------- */
.feature { text-align: left; }
.feature .glyph {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 0.9rem; background: var(--ink-950); color: var(--gold-bright);
}
.feature h4 { font-family: var(--font-display); margin-bottom: 0.35rem; font-size: 1.1rem; }
.feature p { font-size: 0.93rem; color: var(--ink-600); }

/* ---------- Pricing ---------- */
.price-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.price-card { text-align: center; position: relative; }
.price-card.recommended { border: 2px solid var(--gold); }
.price-card .rec-tag {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink-950); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 0.15rem 0.8rem; border-radius: 999px;
}
.price-card .duration { font-weight: 600; color: var(--ink-600); font-size: 0.9rem; }
.price-card .amount { font-family: var(--font-display); font-size: 2rem; margin: 0.3rem 0 0.8rem; }
.price-card .amount small { font-size: 1rem; color: var(--ink-600); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 430px; margin: 3.5rem auto; padding: 0 1.25rem; }
.auth-card { padding: 2.2rem; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.auth-card .sub { color: var(--ink-600); font-size: 0.95rem; margin-bottom: 1.5rem; }
.auth-card form p { margin-bottom: 1rem; }
.auth-card label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body);
  background: var(--paper);
}
.auth-card input:focus { outline: none; border-color: var(--gold); background: #fff; }
.auth-card .helptext { font-size: 0.78rem; color: var(--ink-600); display: block; margin-top: 0.2rem; }
.auth-card ul.errorlist { color: var(--red); font-size: 0.85rem; list-style: none; margin-bottom: 0.5rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-600); }

/* ---------- Dashboard ---------- */
.page-head { padding: 2.5rem 0 0.5rem; }
.page-head h1 { font-size: 1.9rem; }
.page-head .sub { color: var(--ink-600); }

.exam-row {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.exam-row .info { flex: 1; min-width: 230px; }
.exam-row h3 { font-size: 1.2rem; }
.exam-row .meta { font-size: 0.85rem; color: var(--ink-600); }
.progress-track {
  height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 0.5rem 0 0.3rem;
}
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.big-num { font-family: var(--font-display); font-size: 1.7rem; text-align: center; }
.big-num small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-600); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- QBank player ---------- */
.player-shell { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; padding: 2rem 0; align-items: start; }
@media (max-width: 900px) { .player-shell { grid-template-columns: 1fr; } }

.q-card { padding: 2rem; }
.q-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.85rem; color: var(--ink-600); margin-bottom: 1.2rem; flex-wrap: wrap;
}
.q-stem { font-size: 1.12rem; margin-bottom: 1.4rem; line-height: 1.65; }
.q-leadin { font-weight: 600; color: var(--ink-800); margin: -0.6rem 0 1.4rem; }
.q-image { max-width: 100%; border-radius: var(--radius-sm); margin-bottom: 1.4rem; }
.mark-scheme {
  background: var(--paper-2); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem 0.9rem 1.4rem; margin-bottom: 1rem;
}
.mark-scheme .label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 0.4rem; }
.mark-scheme ol { margin: 0; padding-left: 1.2rem; }
.mark-scheme li { margin: 0.2rem 0; }

.option-label {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem 1rem;
  border: 1.5px solid var(--ink-100); border-radius: var(--radius-sm);
  margin-bottom: 0.6rem; cursor: pointer; transition: border-color 0.12s, background 0.12s;
  background: #fff;
}
.option-label:hover { border-color: var(--gold); background: #fffdf7; }
.option-label input { margin-top: 0.3rem; accent-color: var(--gold-deep); }
.option-label.correct { border-color: var(--green); background: var(--green-soft); }
.option-label.wrong { border-color: var(--red); background: var(--red-soft); }
.option-key { font-weight: 700; color: var(--ink-600); }
.option-result { cursor: default; }
.option-result > span:first-child { flex: 1; }
.option-reason { display: block; margin-top: 0.3rem; font-size: 0.86rem; color: var(--ink-600); }
.option-reason.chosen { color: var(--ink-900); }
.peer-pct { flex: none; font-size: 0.8rem; font-weight: 700; color: var(--ink-600); font-variant-numeric: tabular-nums; }
.peer-line { font-size: 0.85rem; color: var(--ink-600); margin: -0.2rem 0 0.8rem; }

.answer-input {
  width: 100%; padding: 0.7rem 1rem; font-size: 1rem; border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm); margin-bottom: 0.8rem; font-family: var(--font-body);
}

.verdict { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; margin: 1rem 0 0.6rem; }
.verdict.good { color: var(--green); }
.verdict.bad { color: var(--red); }
.verdict.partial { color: var(--gold-deep); }

/* Multi-part image spot: one answer box per labelled structure */
.spot-parts { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.spot-part { display: flex; align-items: center; gap: 0.7rem; }
.spot-part .answer-input { margin: 0; }
.spot-key {
  flex: 0 0 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: var(--ink-950); color: var(--paper); border-radius: 50%;
  font-weight: 700; font-size: 0.9rem;
}

.explain-box {
  background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; margin-top: 0.8rem; font-size: 0.97rem;
}
.explain-box .label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 0.3rem; }

.q-nav { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.q-nav .spacer { flex: 1; }

/* Question palette (sidebar) */
.palette-card { padding: 1.2rem; }
.palette-card h4 { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-600); margin-bottom: 0.8rem; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 0.45rem; }
.palette a {
  display: grid; place-items: center; height: 38px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink-600); font-size: 0.85rem; font-weight: 600;
}
.palette a:hover { text-decoration: none; background: var(--ink-100); }
.palette a.answered { background: var(--ink-900); color: var(--paper); }
.palette a.current { outline: 2px solid var(--gold); outline-offset: 1px; }

/* AI tutor panel */
.ai-card { padding: 1.2rem; background: var(--ink-950); color: var(--ink-100); }
.ai-card h4 {
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}
.ai-card h4::before { content: "✦"; }
.ai-response {
  background: var(--ink-800); border-radius: var(--radius-sm); padding: 0.9rem 1rem;
  font-size: 0.9rem; margin-bottom: 0.8rem; white-space: pre-wrap; display: none; line-height: 1.55;
}
.ai-response.visible { display: block; }
.ai-ask-row { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.ai-ask-row input {
  flex: 1; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--ink-600);
  background: var(--ink-800); color: var(--paper); font-size: 0.88rem; font-family: var(--font-body);
}
.ai-ask-row input::placeholder { color: var(--ink-300); }
.ai-hint { font-size: 0.75rem; color: var(--ink-300); margin-top: 0.6rem; }

/* ---------- Tables (performance / review) ---------- */
.table-card { padding: 0; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th {
  text-align: left; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-600); padding: 0.9rem 1.2rem; background: var(--paper-2);
}
.data-table td { padding: 0.85rem 1.2rem; border-top: 1px solid var(--paper-2); }
.acc-pill { font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.85rem; }
.acc-good { background: var(--green-soft); color: var(--green); }
.acc-partial { background: #f6ecd4; color: var(--gold-deep); }

/* ===================== Analytics ===================== */
/* Colour bands shared by rings, bars and pills */
.band-good { stroke: var(--green); }
.band-mid  { stroke: var(--gold); }
.band-bad  { stroke: var(--red); }
.band-none { stroke: var(--ink-200); }
.bar-fill.band-good { background: var(--green); }
.bar-fill.band-mid  { background: var(--gold); }
.bar-fill.band-bad  { background: var(--red); }
.bar-fill.band-none { background: var(--ink-200); }
.band-text-good { color: var(--green); }
.band-text-mid  { color: var(--gold-deep); }
.band-text-bad  { color: var(--red); }

/* Readiness ring */
.ring-wrap { position: relative; width: 72px; text-align: center; }
.ring { display: block; margin: 0 auto; }
.ring-bg { fill: none; stroke: var(--ink-100); stroke-width: 8; }
.ring-value {
  fill: none; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 163.36; stroke-dashoffset: calc(163.36 * (1 - var(--v, 0) / 100));
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.6s ease;
}
.ring-num {
  position: absolute; top: 28px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.ring-num span { font-size: 0.7rem; font-weight: 600; }
.ring-cap { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-600); margin-top: 0.1rem; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-tile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.stat-num span { font-size: 1rem; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-700); }
.stat-sub { font-size: 0.78rem; color: var(--ink-600); }

/* Sparkline */
.spark { width: 100%; height: 34px; }
.spark polyline { fill: none; stroke: var(--gold-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Subject bars */
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 3fr minmax(96px, auto); align-items: center; gap: 0.8rem; padding: 0.32rem 0; }
.bar-label { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--paper-2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; min-width: 2px; transition: width 0.5s ease; }
.bar-val { font-size: 0.82rem; font-weight: 600; text-align: right; }
.bar-val small { font-weight: 400; color: var(--ink-600); }

/* Focus / chip rows */
.perf-exam-name { margin-bottom: 0.9rem; }
.focus-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.1rem; }
.focus-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-600); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.4rem; }
.chip-bad { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip-good { background: var(--green-soft); color: var(--green); border-color: transparent; }
.acc-mid { background: #fdf3dd; color: var(--gold-deep); }
.acc-bad { background: var(--red-soft); color: var(--red); }
.acc-none { color: var(--ink-300); }

/* ---------- Messages / misc ---------- */
.messages { max-width: 1080px; margin: 1rem auto 0; padding: 0 1.25rem; }
.msg { padding: 0.8rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-size: 0.95rem; }
.msg-success { background: var(--green-soft); color: var(--green); }
.msg-warning, .msg-error { background: var(--red-soft); color: var(--red); }
.msg-info { background: #e8eef7; color: var(--blue); }

.stub-note {
  border: 1.5px dashed var(--gold-deep); background: #fdf6e7; color: var(--gold-deep);
  border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.85rem; margin: 1rem 0;
}
.stub-note::before { content: "🔧 SHELL NOTE: "; font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-600); }
.empty-state .big { font-size: 2.5rem; margin-bottom: 0.5rem; }

.site-footer {
  background: var(--ink-950); color: var(--ink-300); margin-top: 3rem;
  padding: 2rem 0; font-size: 0.85rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-200); }

/* ---------- Live-classes callout (landing) ---------- */
.live-callout {
  background:
    radial-gradient(820px 320px at 90% -25%, rgba(217, 164, 65, 0.15), transparent 60%),
    var(--ink-950);
  color: var(--paper);
  padding: 3.5rem 0;
}
.live-callout .eyebrow { color: var(--gold-bright); }
.live-callout h2 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.live-callout-lede { color: var(--ink-200); max-width: 42em; margin-bottom: 2rem; }
.live-callout-points {
  display: grid; gap: 1.25rem; margin-bottom: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.lc-point { position: relative; padding-left: 2.4rem; display: flex; flex-direction: column; gap: 0.1rem; }
.lc-point span { position: absolute; left: 0; top: 0.05rem; font-size: 1.4rem; }
.lc-point b { font-family: var(--font-display); font-size: 1.05rem; }
.lc-point small { color: var(--ink-300); font-size: 0.88rem; }

/* ---------- Live classes ---------- */
.badge-upcoming { background: #fdf3dd; color: var(--gold-deep); }
.badge-subject { background: #eef1f7; color: var(--ink-700); }
.muted { color: var(--ink-600); }

.live-group { margin-bottom: 2.5rem; }
.live-group:last-child { margin-bottom: 0; }
.live-group-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.live-group-head h2 { margin: 0; }
.live-list { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Catalog search ---------- */
.catalog-search { margin: 1.25rem 0 0.5rem; }
.search-field { position: relative; }
.search-icon {
  position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%);
  font-size: 0.95rem; opacity: 0.55; pointer-events: none;
}
.search-input {
  width: 100%; padding: 0.75rem 2.6rem; font-size: 1rem;
  font-family: var(--font-body); color: var(--ink-900);
  background: #fff; border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-soft);
}
.search-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18);
}
.search-input::placeholder { color: var(--ink-300); }
/* hide the browser's native clear affordance — we render our own */
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; padding: 0; border: none; background: transparent;
  font-size: 1.5rem; line-height: 1; color: var(--ink-300); cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.search-clear:hover { color: var(--ink-800); background: var(--paper-2); }
.catalog-search .filter-chips { margin-top: 0.75rem; }
.search-count { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-600); }

.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; background: #fff;
  border: 1.5px solid var(--ink-100); color: var(--ink-700);
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); text-decoration: none; }
.chip.active { background: var(--ink-950); color: var(--paper); border-color: var(--ink-950); }
button.chip { font-family: var(--font-body); cursor: pointer; line-height: 1.4; }

/* ---------- Custom test builder ---------- */
.build-grid {
  display: grid; gap: 1.25rem; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.filter-list { display: flex; flex-direction: column; gap: 0.15rem; }
.filter-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer;
}
.filter-row:hover { background: var(--paper); }
.filter-row input { accent-color: var(--gold-deep); }
.filter-name { flex: 1; }
.filter-count {
  font-weight: 700; color: var(--ink-600); font-size: 0.82rem;
  background: var(--paper-2); padding: 0.1rem 0.6rem; border-radius: 999px;
}
.filter-row.is-empty { opacity: 0.45; cursor: not-allowed; }
.opt-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.3rem; }
.build-options .option-label { cursor: pointer; }

/* ---------- Account settings ---------- */
.setting-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--paper-2); }
.setting-row:first-of-type { border-top: none; }
.copy-row { display: flex; gap: 0.5rem; align-items: center; }
.copy-row input { flex: 1; margin-bottom: 0; }

/* ---------- Pricing / FAQ ---------- */
.price-options { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; }
.price-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-600); padding: 0.15rem 0; }
.price-line b { color: var(--ink-900); }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 760px; }
.faq-item {
  background: #fff; border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-soft);
}
.faq-item summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.faq-item[open] summary { color: var(--gold-deep); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.93rem; color: var(--ink-700); }

/* ---------- Report an error (player) ---------- */
.report-box summary { font-size: 0.85rem; color: var(--ink-600); cursor: pointer; font-weight: 600; }
.report-box[open] summary { color: var(--gold-deep); }
.report-box select.answer-input { margin-bottom: 0.6rem; }

/* ---------- 3D interaction layer (progressive enhancement) ---------- */
/* Card tilt — the .tilt3d class is added by depth.js only on desktop pointers
   that aren't in reduced-motion, so these rules never affect touch/mobile. */
.tilt3d {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-style: preserve-3d;
  will-change: auto;
}
.tilt3d:hover { box-shadow: 0 20px 46px rgba(11, 18, 32, 0.18); }

/* Hero parallax — depth.js sets --mx/--my in [-0.5, 0.5]; layers move opposite
   amounts for a sense of depth. No effect until the vars are set. */
.hero .container {
  transition: transform 0.35s ease-out;
  transform: translate3d(calc(var(--mx, 0) * -7px), calc(var(--my, 0) * -5px), 0);
}
.hero::after {
  transition: transform 0.35s ease-out;
  transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 15px), 0);
}

/* Scroll reveal — start-state is keyed off the .has-reveal flag (set pre-paint
   in <head>), so with JS off / reduced motion nothing is ever hidden. The
   selector list must match REVEAL in depth.js. */
.has-reveal .feature,
.has-reveal .track-card,
.has-reveal .price-card,
.has-reveal .college-block,
.has-reveal .live-row,
.has-reveal .live-callout {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.has-reveal .depth-in,
.reveal-all .feature,
.reveal-all .track-card,
.reveal-all .price-card,
.reveal-all .college-block,
.reveal-all .live-row,
.reveal-all .live-callout {
  opacity: 1;
  transform: none;
}

.live-row { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; transition: box-shadow 0.15s; }
.live-row:hover { box-shadow: var(--shadow); }
.live-row.is-live { border-left: 4px solid var(--green); }
.live-row .info { flex: 1; min-width: 230px; }
.live-row h3 { font-size: 1.2rem; margin: 0.35rem 0 0.15rem; }
.live-row h3 a { color: var(--ink-900); }
.live-row h3 a:hover { color: var(--gold-deep); text-decoration: none; }
.live-row .meta { font-size: 0.85rem; color: var(--ink-600); }

.date-chip {
  flex: 0 0 auto; width: 66px; text-align: center; padding: 0.6rem 0;
  background: var(--ink-950); color: var(--paper); border-radius: var(--radius-sm);
}
.date-chip .dow { display: block; font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); }
.date-chip .dom { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.date-chip .mon { display: block; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-300); }

.live-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.live-cta { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; text-align: right; }
.live-cta .seats { font-size: 0.75rem; color: var(--ink-600); }

.live-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .live-detail-grid { grid-template-columns: 1fr; } }
.booking-card { position: sticky; top: 5rem; }
.fact-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.2rem; }
.fact-list dt { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-600); font-weight: 700; }
.fact-list dd { font-size: 0.98rem; color: var(--ink-900); margin-top: 0.15rem; }
.booking-action { border-top: 1px solid var(--paper-2); padding-top: 1.2rem; }

.live-mini { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.live-mini a { color: var(--ink-900); }
.live-mini .meta { font-size: 0.82rem; color: var(--ink-600); margin-top: 0.1rem; }

/* --- Mastery mode ------------------------------------------------------- */
.mastery-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.mastery-hero .ring-wrap .ring { width: 96px; height: 96px; }
.mastery-cta { display: flex; flex-direction: column; align-items: flex-start; max-width: 260px; }
.mastery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.mastery-legend { display: flex; gap: 0.9rem; font-size: 0.8rem; color: var(--ink-600); }
.mastery-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; }
.sw-mastered, .seg-mastered { background: var(--green); }
.sw-learning, .seg-learning { background: var(--gold); }
.sw-unseen { background: var(--paper-2); border: 1px solid var(--ink-100); }
.mastery-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 3fr minmax(110px, auto) auto; align-items: center; gap: 0.8rem; padding: 0.4rem 0; border-top: 1px solid var(--paper-2); }
.mastery-row:first-of-type { border-top: 0; }
.bar-track.stack { display: flex; }
.bar-track.stack .seg { height: 100%; transition: width 0.5s ease; }
.mastery-row .btn[disabled] { opacity: 0.45; pointer-events: none; }
@media (max-width: 640px) {
  .mastery-row { grid-template-columns: 1fr auto; }
  .mastery-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* === CMSA formats, AI marking, governance, legal (2026-11-03) ============== */
.data-block { background: var(--ink-950); color: #e7ecf5; font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem; line-height: 1.5; padding: 0.9rem 1rem; border-radius: var(--radius-sm); overflow-x: auto;
  white-space: pre-wrap; margin: 0.8rem 0; border-left: 4px solid var(--gold); }
.station-banner { background: var(--paper-2); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--ink-700); }
.station-clock.low, .paper-clock.low { color: var(--red); font-weight: 700; }
.paper-clock { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.img-credit { font-size: 0.72rem; color: var(--ink-300); margin-top: -0.4rem; margin-bottom: 0.6rem; }
.free-text-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.marking-pending { background: #fff8e8; border: 1px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; margin: 0.8rem 0; color: var(--gold-deep); font-weight: 600; }
.marking-card { border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 0.9rem 1rem; margin: 0.8rem 0; background: #fff; }
.marking-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.marking-total { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink-950); }
.marking-method { font-size: 0.8rem; color: var(--ink-600); }
.marking-table td { vertical-align: top; font-size: 0.86rem; }
.marks-cell { font-weight: 700; white-space: nowrap; }
.marks-cell.full { color: var(--green); } .marks-cell.partial { color: var(--gold-deep); } .marks-cell.none { color: var(--red); }
.unsafe-box { background: var(--red-soft); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin: 0.6rem 0; font-size: 0.86rem; }
.marking-summary { font-size: 0.92rem; margin: 0.6rem 0; }
details.missed summary { cursor: pointer; font-size: 0.85rem; color: var(--ink-600); }
.your-answer { background: var(--paper); }
.provenance { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--ink-100); font-size: 0.78rem; color: var(--ink-600);
  display: flex; flex-direction: column; gap: 0.25rem; }
.prov-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.68rem; color: var(--ink-300); margin-right: 0.3rem; }
.review-badge { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.review-badge.reviewed { background: var(--green-soft); color: var(--green); }
.review-badge.checked { background: #e8f0fa; color: var(--blue); }
.review-badge.update { background: #fff3dc; color: var(--gold-deep); }
.review-badge.draft { background: var(--paper-2); color: var(--ink-600); }
.edu-disclaimer { margin-top: 1rem; font-size: 0.72rem; color: var(--ink-300); }
.edu-disclaimer a { color: var(--ink-300); text-decoration: underline; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.mock-card h4 { margin: 0.2rem 0 0.3rem; }
.mock-kind { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-deep); font-weight: 700; }
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.footer-legal { margin-top: 0.6rem; font-size: 0.8rem; }
.legal-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.88rem; }
.legal-nav a.active { font-weight: 700; color: var(--gold-deep); }
.legal-body { max-width: 760px; line-height: 1.65; }
.legal-body h2 { font-size: 1.15rem; margin-top: 1.4rem; }
.draft-banner { margin-top: 0.8rem; background: #fff3dc; border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-size: 0.82rem; }
.consent-line { display: block; font-size: 0.82rem; margin: 0.8rem 0; color: var(--ink-600); }

/* === Live OSCE station or viva with the AI examiner ======================= */
.station-live { border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 1rem; margin: 0.8rem 0; background: #fff; }
.station-intro { font-size: 0.9rem; color: var(--ink-600); margin-bottom: 0.7rem; }
.station-log { display: flex; flex-direction: column; gap: 0.6rem; }
.station-log:not(:empty) { margin-bottom: 0.8rem; }
.station-msg { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.95rem;
  line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.station-msg .who { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 0.15rem; }
.station-msg.examiner { align-self: flex-start; background: var(--paper); border-left: 3px solid var(--gold); }
.station-msg.examiner .who { color: var(--gold-deep); }
.station-msg.candidate { align-self: flex-end; background: var(--ink-950); color: var(--ink-100); }
.station-msg.candidate .who { color: var(--gold-bright); }
.station-status { font-size: 0.86rem; color: var(--ink-600); min-height: 1.3em; margin-bottom: 0.4rem; }
.station-live [hidden] { display: none; } /* .btn and .free-text-actions set display, which beats the attribute */
.station-msg { scroll-margin-top: 7rem; } /* keep new messages clear of the sticky header */

/* Voice pilot: an illustrated examiner, drawn by the browser so it uses almost no data. */
.voice-panel { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; background: var(--paper); border-radius: var(--radius-sm);
  padding: 0.75rem; margin-bottom: 0.8rem; }
.voice-face { flex: 0 0 80px; width: 80px; height: 80px; }
.voice-face svg { display: block; width: 100%; height: 100%; }
.voice-side { min-width: 0; flex: 1 1 170px; }
.voice-state { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); }
.voice-switch { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; min-height: 32px; white-space: nowrap; }
.voice-switch input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.voice-tag { background: var(--paper-2); color: var(--ink-600); border-radius: 999px; padding: 0 0.5rem; font-size: 0.7rem; font-weight: 700; }
.voice-consent { font-size: 0.78rem; line-height: 1.4; color: var(--ink-600); }
.voice-panel.is-on .voice-consent { display: none; }
.voice-note { font-size: 0.84rem; color: var(--red); }
.voice-note:not(:empty) { margin-top: 0.2rem; }
.voice-panel #voice-repeat { margin-top: 0.3rem; }
.vf-ring { fill: var(--ink-100); stroke: var(--ink-200); stroke-width: 2; transition: stroke 0.2s; }
.vf-coat { fill: #fff; stroke: var(--ink-200); stroke-width: 1.5; }
.vf-shirt { fill: var(--ink-700); }
.vf-skin, .vf-neck { fill: #b98258; }
.vf-neck { filter: brightness(0.92); }
.vf-hair { fill: var(--ink-900); }
.vf-eyes { fill: var(--ink-950); transform-origin: 60px 51px; animation: vf-blink 5.2s infinite; }
.vf-brow { fill: none; stroke: var(--ink-900); stroke-width: 2; stroke-linecap: round; }
.vf-glasses { fill: none; stroke: var(--ink-800); stroke-width: 1.6; }
.vf-mouth { fill: #6c2f2a; transform-origin: 60px 68px; }
.vf-head { transform-origin: 60px 74px; transition: transform 0.25s ease; }
@keyframes vf-blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(0.08); } }
@keyframes vf-talk { 0%, 100% { transform: scaleY(0.6); } 18% { transform: scaleY(3); } 34% { transform: scaleY(1.2); }
  52% { transform: scaleY(3.6); } 70% { transform: scaleY(1.6); } 86% { transform: scaleY(2.8); } }
@keyframes vf-pulse { 50% { stroke-opacity: 0.35; } }
.voice-panel[data-state="speaking"] .vf-mouth { animation: vf-talk 0.62s infinite; }
.voice-panel[data-state="speaking"] .vf-ring { stroke: var(--gold); }
.voice-panel[data-state="listening"] .vf-ring { stroke: var(--green); stroke-width: 3; animation: vf-pulse 1.3s infinite; }
.voice-panel[data-state="listening"] .vf-head { transform: rotate(-3deg); }
.voice-panel[data-state="thinking"] .vf-head { transform: rotate(2deg) translateY(-1px); }
.voice-panel[data-state="thinking"] .vf-eyes { transform: translateY(-1.5px); animation: none; }
#voice-mic { margin-right: 0.35rem; }
#voice-mic[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .vf-eyes, .voice-panel[data-state="listening"] .vf-ring, .voice-panel[data-state="speaking"] .vf-mouth { animation: none; }
  .voice-panel[data-state="speaking"] .vf-mouth { transform: scaleY(2); }
  .vf-head { transition: none; }
}

/* ---------- Procedure guides (catalog/procedures.html, procedure_guide.html) ---------- */
/* The player hides steps, drawings and viewers with the hidden attribute; the display rules
   below would otherwise override it. */
.proc-guide [hidden] { display: none !important; }
.proc-product .meta, .proc-list .meta { font-size: 0.85rem; color: var(--ink-600); }
.proc-list { list-style: none; margin-top: 0.8rem; }
.proc-list li {
  display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.45rem 0; border-top: 1px solid var(--paper-2);
}
.proc-draft {
  display: inline-block; margin-top: 0.7rem; font-size: 0.85rem; color: var(--gold-deep);
  background: #fdf3dd; padding: 0.3rem 0.8rem; border-radius: var(--radius-sm);
}
.proc-step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.2rem; }
.proc-step h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.proc-step p { margin-bottom: 0.6rem; }
.proc-stage { position: relative; margin: 0; background: var(--ink-950); border-radius: var(--radius-sm); overflow: hidden; }
.proc-stage img, .proc-svg, .proc-svg svg { display: block; width: 100%; height: auto; }
/* A strip under the drawing, so the controls never cover its bottom captions. */
.proc-stage-bar { display: flex; justify-content: flex-end; gap: 0.4rem; padding: 0.45rem 0.6rem; border-top: 1px solid var(--ink-700); }
.proc-stage-bar[hidden] { display: none; }
.proc-stage-bar button, .proc-tabs button {
  background: rgba(11, 18, 32, 0.78); color: var(--paper); border: 1px solid var(--ink-600);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-weight: 700; font-size: 0.8rem; cursor: pointer; min-height: 2rem;
}
.proc-tabs { display: inline-flex; }
.proc-tabs button:first-child { border-radius: 999px 0 0 999px; }
.proc-tabs button:last-child { border-radius: 0 999px 999px 0; border-left: none; }
.proc-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--ink-950); border-color: var(--gold); }
.proc-3d { aspect-ratio: 400 / 300; position: relative; }
.proc-3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: radial-gradient(circle at 60% 35%, var(--ink-700), var(--ink-950) 72%); }
.proc-3d.is-loading::after {
  content: "Loading 3D model…"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-200); font-size: 0.9rem;
}
.proc-hot {
  background: rgba(11, 18, 32, 0.85); color: var(--paper); border: 1.5px solid var(--gold);
  border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 600;
  white-space: nowrap; transform: translate(-50%, -130%); pointer-events: none;
  opacity: 1 !important; /* model-viewer fades labels behind the model; in these schematics they all matter */
}
.proc-hot::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 7px; height: 7px; margin: 2px 0 0 -3.5px;
  border-radius: 50%; background: var(--gold);
}
.proc-noscript { color: var(--ink-200); padding: 2rem 1rem; text-align: center; }
.proc-pitfall {
  margin-top: 0.8rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--red);
  background: var(--red-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.92rem;
}
.proc-points { padding-left: 1.1rem; font-size: 0.93rem; color: var(--ink-700); }
.proc-points li { padding: 0.15rem 0; }
.proc-dots { display: flex; gap: 0.4rem; list-style: none; flex-wrap: wrap; margin-bottom: 1rem; }
.proc-dots button {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid var(--ink-200);
  background: #fff; color: var(--ink-700); font-weight: 700; cursor: pointer;
}
.proc-dots button.done { border-color: var(--gold-deep); color: var(--gold-deep); }
.proc-dots button.active { background: var(--ink-950); border-color: var(--ink-950); color: var(--gold); }
.proc-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.proc-guide.is-player .proc-step { min-height: 22rem; }
@media (max-width: 760px) { .proc-step { grid-template-columns: 1fr; } }
