:root {
  --navy: #123047;
  --navy-2: #1d425b;
  --teal: #087f79;
  --teal-light: #d9f3ef;
  --coral: #e6634b;
  --gold: #f2b84b;
  --cream: #fffaf1;
  --blue-wash: #edf5f8;
  --ink: #18313f;
  --muted: #5c6f79;
  --line: #d9e3e7;
  --white: #fff;
  --success: #247a54;
  --danger: #b33f32;
  --shadow: 0 16px 40px rgba(18, 48, 71, .1);
  --shadow-soft: 0 8px 24px rgba(18, 48, 71, .08);
  --radius: 14px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --sidebar: 300px;
  --serif: "Inter", sans-serif;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f8fa;
  font: 19px/1.6 var(--sans);
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3,
.course-title,
.module-name,
.lesson-title,
.question {
  font-family: var(--serif);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.menu-button { position: fixed; top: 14px; left: 14px; z-index: 20; width: 46px; height: 46px; border: 0; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: 1.05rem; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 14; border: 0; background: rgba(18, 48, 71, .45); }
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; border-right: 1px solid var(--line); background: #fff; }
.sidebar-head { flex: 0 0 auto; padding: 24px 24px 22px; border-bottom: 1px solid var(--line); }
.course-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-title { color: var(--navy); font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.progress-percent { color: var(--teal); font-size: .8rem; font-weight: 800; }
.progress-track { height: 7px; margin-top: 18px; overflow: hidden; border-radius: 20px; background: #e9eef0; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.course-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 16px; }
.nav-group { padding: 4px 0; border-bottom: 1px solid #eff3f4; }
.nav-group:last-child { border-bottom: 0; }
.module-toggle { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; padding: 14px 10px; text-align: left; background: transparent; }
.module-toggle:hover:not(:disabled) { background: var(--blue-wash); }
.module-toggle:disabled { cursor: not-allowed; opacity: .55; }
.module-copy { min-width: 0; display: grid; gap: 3px; }
.module-eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.module-name { color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.25; }
.chevron { margin-left: auto; flex: 0 0 16px; color: var(--gold); transform-box: fill-box; transform-origin: center; transition: transform .22s ease; }
.module-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.module-lock { margin-left: auto; flex: 0 0 15px; color: var(--muted); }
.module-panel {
  display: grid; gap: 4px; overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height .26s ease, opacity .2s ease, visibility 0s linear .26s;
}
.module-panel.open { padding-bottom: 10px; opacity: 1; visibility: visible; transition: max-height .26s ease, opacity .2s ease, visibility 0s; }
.lesson-link { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 14px; padding: 10px 12px; text-align: left; background: transparent; }
.lesson-link:hover { background: var(--blue-wash); }
.lesson-link.active { border-color: #8ed4b4; background: #edfaf2; }
.lesson-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border: 1.5px solid #cfdae0; border-radius: 50%; color: transparent; }
.lesson-icon svg { width: 16px; height: 16px; }
.lesson-link.done .lesson-icon { color: #fff; background: var(--teal); border-color: var(--teal); }
.lesson-link.active .lesson-icon { border-color: transparent; background: transparent; color: var(--teal); }
.lesson-link.active .lesson-icon svg { width: 20px; height: 20px; }
.lesson-copy { min-width: 0; display: grid; gap: 0; }
.lesson-name { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
.lesson-meta { color: var(--muted); font-size: .74rem; line-height: 1.25; }
.eyebrow { color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

main { min-width: 0; background: #fff; }
#screen { max-width: 880px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 44px) 96px; }

.hero { display: grid; gap: 30px; }
.hero h1, .lesson-title { margin: 8px 0 12px; color: var(--navy); font-size: clamp(1.7rem, 2.6vw, 2.05rem); line-height: 1.18; letter-spacing: -.03em; }
.hero p { color: var(--muted); }
.hero-art { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.hero-art img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.hero-actions, .lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; justify-content: space-between;}

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background .18s var(--ease), border-color .18s, transform .18s var(--ease), box-shadow .18s var(--ease); }
.button.primary { color: #fff; background: var(--teal); }
.button.secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button.coral { color: #fff; background: var(--coral); }
.button.primary:hover:not(:disabled) { background: #0a6e69; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button.secondary:hover:not(:disabled) { border-color: #9fb4bd; transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }

.section { margin-top: 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 1.45rem; }
.section-heading p { margin: 0; color: var(--muted); }
.module-grid, .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module-card-top { display: flex; justify-content: space-between; gap: 16px; }
.module-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 1.45rem; }
.module-card p { color: var(--muted); }
.pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--navy-2); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill.available { background: var(--teal-light); color: #075f5b; }

.lesson-hero { display: grid; gap: 22px; margin-bottom: 28px; }
.lesson-hero.has-art { gap: 20px; }
.lesson-hero:has(+ .content-stack > .activity),
.lesson-hero:has(+ .content-stack > .quiz-card) { margin-bottom: 8px; }
.lesson-header { margin-bottom: 0; min-width: 0; }
.lesson-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.kind-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.kind-chip.learn { background: var(--teal-light); color: #075f5b; }
.kind-chip.practice { background: #fff3d6; color: #8a5d0c; }
.kind-chip.reflect { background: var(--blue-wash); color: var(--navy-2); }
.kind-chip.decide { background: #fde8e4; color: #8a3a30; }
.kind-chip.assess { background: var(--navy); color: #fff; }
.lesson-time { color: var(--muted); font-size: .82rem; font-weight: 650; }
.lesson-intro { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 40rem; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.content-stack { display: grid; gap: 28px; }

.lesson-figure { margin: 0; }
.lesson-figure img {
  display: block; width: 100%; height: auto; object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.lesson-figure figcaption { margin-top: 9px; text-align: left; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.hero-figure img { width: 100%; height: auto; object-fit: contain; background: var(--cream); }

.card, .activity, .quiz-card { padding: 0; }
.card h2, .card h3, .activity h2, .quiz-card h2 { margin-top: 0; color: var(--navy); font-size: 1.35rem; line-height: 1.3; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 22px; }
.card li { margin-bottom: 7px; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px 22px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--cream); animation: rise-in .45s var(--ease) both; }
.callout p:last-child { margin-bottom: 0; }
.callout-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 184, 75, .3); color: #8a5d0c; }
.callout-icon svg { width: 20px; height: 20px; }
.big-quote { margin: 0 0 28px; padding: 20px 24px; border: 1.5px solid var(--teal); border-radius: var(--radius); background: var(--teal-light); color: var(--navy); font-size: 1.12rem; font-weight: 650; line-height: 1.45; }
.big-quote:last-child { margin-bottom: 0; }

.protect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.protect-grid:has(> :nth-child(2):last-child),
.protect-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.protect-item {
  padding: 16px 18px; border-radius: var(--radius); background: var(--blue-wash);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: rise-in .45s var(--ease) both;
}
.protect-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.protect-item:nth-child(2) { animation-delay: .05s; }
.protect-item:nth-child(3) { animation-delay: .1s; }
.protect-item:nth-child(4) { animation-delay: .15s; }
.protect-item:nth-child(5) { animation-delay: .2s; }
.protect-item:nth-child(6) { animation-delay: .25s; }
.protect-item p:last-child { margin-bottom: 0; }
.protect-item.no-animate { animation: none; }
.lesson-actions.align-end { justify-content: flex-end; }
.item-icon {
  width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 10px;
  border-radius: 9px; background: #fff; color: var(--teal); font-size: .92rem; font-weight: 800;
}
.item-icon svg { width: 19px; height: 19px; }

/* Generic activity workspace + quiz / match / myth-fact interaction primitives. */
.activity-header { margin: 0 0 24px; }
.activity-header h2 { margin: 4px 0 8px; }
.activity-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}
.task-count { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--navy); font-size: .85rem; font-weight: 700; }
.activity-header .task-count:first-child { margin-top: 0; }
.activity > .callout { margin-top: 22px; }
.task-count .count-track { flex: 1 1 auto; max-width: 240px; height: 6px; overflow: hidden; border-radius: 20px; background: #e9eef0; }
.task-count .count-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.task-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fdfefe; box-shadow: var(--shadow-soft); }
.task-hint { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }

.choice, .match-choice, .myth-choice {
  width: 100%; display: flex; align-items: center; gap: 13px; min-height: 58px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px;
  color: var(--ink); text-align: left; line-height: 1.45; background: #fff;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s var(--ease);
}
.choice:hover:not(:disabled), .match-choice:hover:not(:disabled), .myth-choice:hover:not(:disabled) {
  border-color: var(--teal); box-shadow: 0 6px 16px rgba(18, 48, 71, .08); transform: translateY(-2px);
}
.choice:disabled, .match-choice:disabled, .myth-choice:disabled { cursor: default; }
.choice-marker {
  flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-wash); color: var(--navy-2);
  font-size: .82rem; font-weight: 800;
}
.choice-marker svg { width: 15px; height: 15px; }
.choice.selected { border-color: var(--navy); background: var(--blue-wash); }
.choice.selected .choice-marker { background: var(--navy); color: #fff; }
.choice.correct, .match-choice.correct, .myth-choice.correct { border-color: var(--success); background: #eaf6ef; animation: pop-ok .4s var(--ease); }
.choice.correct .choice-marker, .myth-choice.correct .choice-marker { background: var(--success); color: #fff; }
.choice.wrong, .match-choice.wrong, .myth-choice.wrong { border-color: var(--danger); background: #fdf1ef; animation: shake-soft .4s ease; }
.choice.wrong .choice-marker, .myth-choice.wrong .choice-marker { background: var(--danger); color: #fff; }
.question { margin: 0 0 18px; color: var(--navy); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.choices { display: grid; gap: 10px; }
.choices.enter .choice { animation: rise-in .4s var(--ease) both; }
.choices.enter .choice:nth-child(2) { animation-delay: .05s; }
.choices.enter .choice:nth-child(3) { animation-delay: .1s; }
.choices.enter .choice:nth-child(4) { animation-delay: .15s; }
.choices.enter .choice:nth-child(5) { animation-delay: .2s; }

.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.match-column { display: grid; align-content: start; gap: 10px; }
.match-label { margin: 0; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.match-choice.selected { border-color: var(--teal); background: var(--teal-light); }
.match-choice.selected .choice-marker { background: var(--teal); color: #fff; }
.match-choice.correct .choice-marker { background: var(--success); color: #fff; }
.match-choice .choice-marker { flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid #cfdae0; background: transparent; color: transparent; }
.match-choice.selected .choice-marker, .match-choice.correct .choice-marker { border-color: transparent; }
.match-choice .choice-marker svg { width: 12px; height: 12px; }

.feedback { display: flex; gap: 11px; margin-top: 18px; padding: 14px 17px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--blue-wash); animation: feedback-in .35s var(--ease) both; }
.feedback.correct { color: #145d40; border-color: var(--success); background: #eaf6ef; }
.feedback.wrong { color: #883128; border-color: var(--danger); background: #fdf1ef; }
.feedback-icon { flex: 0 0 20px; }
.feedback-icon svg { width: 20px; height: 20px; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); font-size: .84rem; font-weight: 650; }
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #dde6ea; }
.dots i.done { background: var(--teal); }
.dots i.now { background: var(--gold); }
.score-ring {
  width: 148px; height: 148px; display: grid; place-items: center; margin: 0 auto 22px;
  border-radius: 50%; color: var(--navy); font-size: 1.7rem; font-weight: 850;
  background: conic-gradient(var(--teal) calc(var(--score) * 1%), var(--teal-light) 0);
  animation: ring-in .55s var(--ease) both;
}
.score-ring span { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.center { text-align: center; }

.myth-statement { margin: 0 0 20px; padding: 24px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--cream); color: var(--navy); font-size: 1.25rem; font-weight: 650; line-height: 1.45; }
.myth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.myth-choice { justify-content: center; min-height: 64px; font-size: 1.05rem; font-weight: 700; }
.myth-choice .choice-marker { flex: 0 0 26px; width: 26px; height: 26px; font-size: 1rem; }

.score-compare { margin: 16px 0 0; color: var(--muted); }
.quiz-card.center .lesson-actions { justify-content: center; }

.lesson-footer {
  position: fixed; left: var(--sidebar); right: 0; bottom: 0; z-index: 12;
  margin: 0; padding: 10px clamp(24px, 4vw, 48px);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
  box-shadow: 0 -10px 28px rgba(18, 48, 71, .08);
}
.lesson-footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  max-width: 1024px; margin: 0 auto;
}
.lesson-footer .button { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.lesson-footer .button.primary { margin-left: auto; }

.toast { position: fixed; right: 24px; bottom: 72px; z-index: 30; padding: 13px 18px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.mobile-only { display: none; }

#screen.screen-enter .lesson-hero { animation: screen-in .45s var(--ease) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes feedback-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-ok {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes shake-soft {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
}
@keyframes ring-in {
  from { opacity: 0; transform: scale(.86); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .mobile-only { display: grid; place-items: center; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 15; width: 300px; max-width: 88vw; height: auto; transform: translateX(-104%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .lesson-footer { left: 0; }
  #screen { padding-top: 76px; padding-bottom: 88px; }
  .hero-figure { order: -1; }
}

@media (max-width: 620px) {
  #screen { padding: 76px 16px 120px; }
  .module-grid, .card-grid, .protect-grid, .match-grid { grid-template-columns: 1fr; }
  .task-panel { padding: 18px 16px; }
  .myth-actions { grid-template-columns: 1fr; }
  .hero { gap: 24px; }
  .lesson-footer { padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .lesson-footer-inner { align-items: stretch; flex-direction: column-reverse; }
  .lesson-footer .button { width: 100%; }
  .toast { right: 16px; bottom: 120px; }
}

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

/* Course extras: only layouts the template does not already cover. */
.card h3 {
  margin: 1.2em 0 0.35em;
  color: var(--navy-2);
  font-size: 1.08rem;
  font-weight: 700;
}
.card h2 + h3,
.card .eyebrow + h3 { margin-top: 0.35em; }
.protect-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.05rem; }
.protect-item ul { margin: 0; padding-left: 18px; }
.protect-item.good { background: #eaf6ef; }
.protect-item.urgent { background: #fdf1ef; }
.card .card-grid,
.card .callout,
.card .task-panel,
.card .call-app { margin-top: 22px; }
.card .card-grid + h2,
.card .card-grid + h3,
.card .protect-grid + h2,
.card .protect-grid + h3 { margin-top: 1.4em; }

.book-weekdays,
.book-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.book-weekday {
  text-align: center; color: var(--muted);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.book-week { margin: 8px 0 18px; }
.book-day {
  min-height: 52px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 700;
}
.book-day:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-light); }
.book-day:disabled { color: var(--muted); background: #f3f6f8; cursor: not-allowed; }
.book-day.selected { border-color: var(--teal); background: var(--teal-light); color: var(--navy); }
.book-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.book-slot {
  min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 700;
}
.book-slot:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-light); }
.book-slot.selected { border-color: var(--teal); background: var(--teal-light); }
.book-slot.taken,
.book-slot:disabled { color: var(--muted); background: #f3f6f8; cursor: not-allowed; }
.book-slot.taken { text-decoration: line-through; }
.book-board .lesson-actions { margin-top: 4px; }

.call-app {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #0c1c28;
  box-shadow: var(--shadow);
}
.call-app-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: #d5e3ea; font-size: .82rem; font-weight: 650;
  background: #102536;
}
.call-app-video { position: relative; min-height: 280px; background: #07141e; }
.call-doctor { width: 100%; height: 340px; object-fit: cover; object-position: center top; }
.call-name-pill {
  position: absolute; left: 14px; bottom: 14px;
  margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 28, 40, .72); color: #fff; font-size: .82rem; font-weight: 700;
}
.call-mute-banner {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(12, 28, 40, .78); color: #fff; font-size: .84rem; font-weight: 700;
}
.call-pip {
  position: absolute; top: 14px; right: 14px; width: 112px;
  overflow: hidden; border: 2px solid rgba(255,255,255,.7); border-radius: 12px;
  background: #123047; box-shadow: var(--shadow-soft);
}
.call-pip img { width: 100%; height: 140px; object-fit: cover; object-position: center top; }
.call-pip > span {
  display: block; padding: 4px 8px 6px; color: #fff;
  font-size: .72rem; font-weight: 700; background: rgba(12, 28, 40, .78);
}
.call-pip.camera-off img { visibility: hidden; }
.call-pip.camera-off { background: #1a2c3a; }
.call-pip-note {
  position: absolute; top: 42%; left: 0; right: 0;
  padding: 0; text-align: center; background: transparent;
  color: #fff; font-size: .72rem; font-weight: 800;
}
.call-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 12px 16px; background: #102536;
}
.call-ctl {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; padding: 0; background: transparent; color: #e8eef2;
  font: inherit; font-size: .72rem; font-weight: 700;
}
.call-ctl-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: #2a4152; color: #fff;
}
.call-ctl-icon svg { width: 22px; height: 22px; }
.call-ctl.leave .call-ctl-icon { width: 64px; border-radius: 26px; background: var(--coral); }
.call-ctl.correct .call-ctl-icon { background: var(--success); }
.call-ctl.wrong .call-ctl-icon { background: var(--danger); }
.call-ctl:disabled { cursor: default; }

@media (max-width: 620px) {
  .book-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-day { min-height: 44px; font-size: .9rem; }
  .call-doctor { height: 240px; }
  .call-pip { width: 86px; }
  .call-pip img { height: 108px; }
}
