:root {
  --la-bg: #07101c;
  --la-panel: #101827;
  --la-panel-2: #142033;
  --la-line: #26364f;
  --la-text: #edf5ff;
  --la-muted: #9ab0c8;
  --la-sky: #55c7ff;
  --la-green: #4bd7a0;
  --la-amber: #f4c75b;
  --la-red: #ff7b86;
  --la-purple: #c48cff;
  --la-ink: #030914;
}

* {
  box-sizing: border-box;
}

body.live-anatomy-page {
  background: var(--la-bg);
  color: var(--la-text);
}

.live-anatomy-page a {
  color: var(--la-sky);
}

.live-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(85, 199, 255, 0.08), transparent 330px),
    var(--la-bg);
}

.live-head {
  padding: 24px max(18px, calc((100vw - 1420px) / 2)) 16px;
  border-bottom: 1px solid var(--la-line);
}

.live-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--la-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.live-back:hover {
  color: var(--la-text);
}

.live-kicker {
  margin-top: 14px;
  color: var(--la-amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-head h1 {
  margin: 8px 0 6px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.live-head p {
  margin: 0;
  max-width: 920px;
  color: var(--la-muted);
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.live-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(85, 199, 255, 0.25);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--la-sky);
  background: rgba(85, 199, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.live-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 18px 56px;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 430px);
  gap: 16px;
  align-items: start;
}

.live-stage-zone {
  min-width: 0;
}

.live-modebar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.live-modebar button,
.live-icon-btn,
.live-quiz-choice {
  min-height: 38px;
  border: 1px solid var(--la-line);
  border-radius: 7px;
  background: var(--la-panel);
  color: var(--la-text);
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.live-modebar button:hover,
.live-modebar button.is-active,
.live-icon-btn:hover,
.live-quiz-choice:hover {
  border-color: var(--la-sky);
  color: var(--la-sky);
}

.live-modebar button.is-active {
  background: rgba(85, 199, 255, 0.12);
}

.live-stage {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  height: min(68vh, 760px);
  background:
    radial-gradient(circle at 50% 42%, rgba(85, 199, 255, 0.18), transparent 34%),
    radial-gradient(circle at 76% 12%, rgba(75, 215, 160, 0.12), transparent 28%),
    #030914;
}

.live-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.live-stage-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 8px;
  max-width: 660px;
  pointer-events: none;
}

.live-overlay-title {
  color: var(--la-text);
  font-size: 16px;
  font-weight: 900;
}

.live-overlay-copy {
  color: var(--la-muted);
  font-size: 13px;
  max-width: 620px;
}

.live-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 9, 20, 0.82);
  z-index: 2;
}

.live-state[hidden] {
  display: none;
}

.live-state-card {
  max-width: 520px;
  border: 1px solid var(--la-line);
  border-radius: 8px;
  background: var(--la-panel);
  padding: 22px;
  text-align: center;
}

.live-state-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.live-state-card p {
  margin: 0;
  color: var(--la-muted);
}

.live-spin {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(85, 199, 255, 0.25);
  border-top-color: var(--la-sky);
  animation: live-spin 0.85s linear infinite;
}

@keyframes live-spin {
  to {
    transform: rotate(360deg);
  }
}

.live-side {
  display: grid;
  gap: 12px;
}

.live-panel {
  border: 1px solid var(--la-line);
  border-radius: 8px;
  background: var(--la-panel);
  padding: 14px;
  min-width: 0;
}

.live-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.live-panel p {
  margin: 0;
  color: var(--la-muted);
}

.live-step-list,
.live-source-list,
.live-hotspot-list {
  display: grid;
  gap: 8px;
}

.live-step,
.live-source,
.live-hotspot {
  border: 1px solid rgba(38, 54, 79, 0.9);
  border-radius: 7px;
  background: var(--la-panel-2);
  padding: 10px;
}

.live-step strong,
.live-hotspot strong {
  display: block;
  color: var(--la-text);
  font-size: 14px;
}

.live-step ul {
  margin: 8px 0 0 18px;
  color: #d8e6f5;
  font-size: 13px;
}

.live-hotspot {
  width: 100%;
  text-align: left;
  color: var(--la-text);
  cursor: pointer;
}

.live-hotspot:hover,
.live-hotspot.is-active {
  border-color: var(--la-amber);
  background: rgba(244, 199, 91, 0.08);
}

.live-hotspot span,
.live-source span {
  display: block;
  margin-top: 4px;
  color: var(--la-muted);
  font-size: 12px;
}

.live-detail {
  border-left: 3px solid var(--la-amber);
  padding-left: 12px;
}

.live-detail h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.live-detail p {
  margin: 0 0 8px;
  color: #dce9f7;
}

.live-source {
  display: block;
  text-decoration: none;
  color: var(--la-text);
}

.live-source:hover {
  border-color: var(--la-sky);
}

.live-source b {
  display: block;
  font-size: 14px;
}

.live-quiz-stem {
  margin-bottom: 10px;
  color: var(--la-text);
  font-weight: 800;
}

.live-quiz-options {
  display: grid;
  gap: 8px;
}

.live-quiz-choice {
  text-align: left;
  background: var(--la-panel-2);
}

.live-quiz-choice.correct {
  border-color: var(--la-green);
  color: var(--la-green);
  background: rgba(75, 215, 160, 0.1);
}

.live-quiz-choice.wrong {
  border-color: var(--la-red);
  color: var(--la-red);
  background: rgba(255, 123, 134, 0.1);
}

.live-feedback {
  margin-top: 10px;
  color: var(--la-muted);
  font-size: 13px;
}

.live-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.live-link-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--la-line);
  border-radius: 7px;
  background: var(--la-panel-2);
  color: var(--la-text);
  padding: 7px 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.live-link-btn:hover {
  border-color: var(--la-sky);
  color: var(--la-sky);
}

@media (max-width: 1050px) {
  .live-layout {
    grid-template-columns: 1fr;
  }

  .live-stage {
    height: 620px;
  }
}

@media (max-width: 680px) {
  .live-head {
    padding: 20px 14px 14px;
  }

  .live-head h1 {
    font-size: 27px;
  }

  .live-main {
    padding: 14px 12px 44px;
  }

  .live-modebar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .live-modebar button {
    flex: 0 0 auto;
  }

  .live-stage {
    min-height: 520px;
    height: 560px;
  }

  .live-stage-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

.ro-shell-body .live-page,
.ro-shell-body .live-main,
.ro-shell-body .live-panel,
.ro-shell-body .live-stage,
.ro-shell-body .live-step,
.ro-shell-body .live-hotspot,
.ro-shell-body .live-quiz-choice,
.ro-shell-body .live-link-btn {
  color: #edf5ff;
}

.ro-shell-body .live-panel h2,
.ro-shell-body .live-step strong,
.ro-shell-body .live-hotspot strong,
.ro-shell-body .live-detail h3,
.ro-shell-body .live-quiz-stem,
.ro-shell-body .live-overlay-title {
  color: #edf5ff;
}

.ro-shell-body .live-head p,
.ro-shell-body .live-panel p,
.ro-shell-body .live-step li,
.ro-shell-body .live-hotspot span,
.ro-shell-body .live-source span,
.ro-shell-body .live-detail p,
.ro-shell-body .live-feedback,
.ro-shell-body .live-overlay-copy {
  color: #9ab0c8;
}

.ro-shell-body .live-modebar button {
  color: #edf5ff;
}

.ro-shell-body .live-modebar button:hover,
.ro-shell-body .live-modebar button.is-active,
.ro-shell-body .live-icon-btn:hover,
.ro-shell-body .live-quiz-choice:hover,
.ro-shell-body .live-source:hover,
.ro-shell-body .live-link-btn:hover {
  color: #55c7ff;
}

.ro-shell-body .live-source b {
  color: #55c7ff;
}

.ro-shell-body .live-quiz-choice.correct {
  color: #4bd7a0;
}

.ro-shell-body .live-quiz-choice.wrong {
  color: #ff7b86;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-page,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-main,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-panel,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-stage,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-step,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-hotspot,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-quiz-choice,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-link-btn,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-modebar button {
  color: #edf5ff;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-panel h2,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-step strong,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-hotspot strong,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-detail h3,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-quiz-stem,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-overlay-title {
  color: #edf5ff;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-head p,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-panel p,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-step li,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-hotspot span,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-source span,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-detail p,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-feedback,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-overlay-copy {
  color: #9ab0c8;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-modebar button:hover,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-modebar button.is-active,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-icon-btn:hover,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-quiz-choice:hover,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-source:hover,
body.live-anatomy-page.ro-shell-body .ro-shell-content .live-link-btn:hover {
  color: #55c7ff;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-source b {
  color: #55c7ff;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-quiz-choice.correct {
  color: #4bd7a0;
}

body.live-anatomy-page.ro-shell-body .ro-shell-content .live-quiz-choice.wrong {
  color: #ff7b86;
}

/* Contrast fixes inside the light Ortho shell (audit OA-032): the shell header is light while the stage below stays dark. */
body.ro-shell-body .ro-shell-content .live-detail strong {
  color: #edf5ff;
}

.ro-shell-body .live-head .live-kicker {
  color: #8a5a00;
}

.ro-shell-body .live-head .live-pill {
  color: #0a5a85;
  border-color: rgba(10, 90, 133, 0.3);
  background: rgba(8, 127, 174, 0.08);
}

.live-anatomy-page .ro-ls-practice,
.live-anatomy-page .ro-ls-due {
  color: var(--ro-ink, #152946);
}

.live-hotspot-empty {
  margin: 0;
  color: #9ab0c8;
  font-size: 13px;
}
