/* Shared Ortho readability layer.
   Loaded after each standalone page's inline styles so we can tune contrast and size
   without changing the underlying study data or workflows. */
:root {
  color-scheme: light;
  --bg: #f3f7fb;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #eef5fb;
  --surface3: #e5eef7;
  --panel: #ffffff;
  --panel2: #eef5fb;
  --panel3: #f7fafc;
  --border: #b8ccde;
  --border2: #93abc3;
  --line: #c2d3e3;
  --ink: #0d1b2d;
  --text: #0d1b2d;
  --muted: #51667e;
  --sky: #0478ad;
  --sky-dim: rgba(4, 120, 173, .09);
  --sky-b: rgba(4, 120, 173, .28);
  --green: #087f5b;
  --amber: #9b5a00;
  --red: #b4232e;
  --purple: #6d57c8;
  --shadow: 0 12px 30px rgba(23, 47, 74, .10);
}

html,
body {
  background: var(--bg);
  color: var(--ink, var(--text));
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.title,
.week-title,
.day-topic,
.unit-title,
.article-title,
.article-lab-title,
.case-head h2,
.exam-stem h2,
.system-card h3 {
  color: var(--ink, var(--text));
  letter-spacing: 0;
}

header p,
.sub,
.muted,
.source,
.status,
.summary-detail,
.week-meta,
.day-date,
.unit-kind,
.unit-stat,
.article-meta,
.concepts,
.mini-list,
.side-item span,
.case-btn span,
.film figcaption,
.stage-hint,
.dictation,
.dictation-status {
  color: var(--muted);
}

button,
a,
input,
select,
textarea {
  font-size: inherit;
}

button,
.button,
.btn,
.chip,
.link-btn,
.nav-btn,
.primary,
.secondary,
.tool-btn,
.filter,
.tab-btn,
.ortho-tool-link,
.case-btn,
.unit-actions a,
.article-unit-actions a,
.header-links a,
.header-actions a {
  min-height: 42px;
  align-items: center;
}

.eyebrow,
.panel-title,
.summary-label,
.side-title,
.tool-label,
.answer-label,
.crumb {
  color: var(--muted);
  letter-spacing: .06em;
}

.panel,
.card,
.week,
.article,
.topic,
.system-card,
.source-card,
.status-card,
.summary-card,
.stat,
.side-item,
.unit,
.article-unit {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

.empty {
  color: var(--muted);
}

/* Condensed Ortho command-center navigation */
body.ortho-command-center .ortho-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

body.ortho-command-center .ortho-tool-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--bg2);
  border-color: var(--border);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.25;
}

body.ortho-command-center .ortho-tool-link strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

body.ortho-command-center .ortho-tool-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

body.ortho-command-center .ortho-tool-link:hover {
  color: var(--sky);
  border-color: var(--sky);
  background: rgba(91, 216, 255, .08);
}

body.ortho-command-center .ortho-more-tools {
  position: relative;
  z-index: 5;
}

body.ortho-command-center .ortho-more-tools summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

body.ortho-command-center .ortho-more-tools summary::-webkit-details-marker {
  display: none;
}

body.ortho-command-center .ortho-more-tools[open] summary,
body.ortho-command-center .ortho-more-tools summary:hover {
  color: var(--sky);
  border-color: var(--sky);
}

body.ortho-command-center .ortho-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d182c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

body.ortho-command-center .ortho-more-panel a {
  display: block;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  font-weight: 750;
}

body.ortho-command-center .ortho-more-panel a:hover {
  border-color: var(--sky);
  color: var(--sky);
}

/* Ortho image-occlusion lab: make the tested figure and answer readable. */
body.ortho-visual-lab main {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
}

body.ortho-visual-lab header {
  padding-top: 24px;
  padding-bottom: 24px;
}

body.ortho-visual-lab h1 {
  font-size: clamp(34px, 3vw, 44px);
}

body.ortho-visual-lab header p {
  max-width: 980px;
  font-size: 18px;
  line-height: 1.55;
}

body.ortho-visual-lab .note {
  max-width: 960px;
  font-size: 16px;
  line-height: 1.6;
}

body.ortho-visual-lab .stats {
  gap: 12px;
}

body.ortho-visual-lab .stat {
  padding: 16px 18px;
}

body.ortho-visual-lab .stat-value {
  font-size: 30px;
}

body.ortho-visual-lab .stat-label {
  font-size: 13px;
}

body.ortho-visual-lab .filter,
body.ortho-visual-lab .counter {
  font-size: 15px;
}

body.ortho-visual-lab .card {
  border-radius: 14px;
}

body.ortho-visual-lab .card-head {
  padding: 22px 24px;
}

body.ortho-visual-lab .title {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.16;
}

body.ortho-visual-lab .prompt {
  max-width: 1120px;
  padding: 22px 24px 8px;
  font-size: 22px;
  line-height: 1.5;
}

body.ortho-visual-lab .source {
  padding: 4px 24px 18px;
  font-size: 14px;
  line-height: 1.5;
}

body.ortho-visual-lab .occlusion-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 18px;
}

body.ortho-visual-lab .occlusion-flow span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfe;
  color: var(--ink);
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 850;
}

body.ortho-visual-lab .occlusion-flow b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-size: 15px;
}

body.ortho-visual-lab .visual-tools {
  gap: 10px;
  padding: 14px 20px;
}

body.ortho-visual-lab .tool-label {
  font-size: 14px;
  margin-right: 0;
}

body.ortho-visual-lab .tool-btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
}

body.ortho-visual-lab .zoom-readout {
  font-size: 14px;
}

body.ortho-visual-lab .stage {
  height: min(76vh, 860px);
  min-height: 540px;
  background: #f3f6f9;
}

body.ortho-visual-lab .stage.context {
  background: #070d19;
}

body.ortho-visual-lab .stage canvas,
body.ortho-visual-lab .stage.focused canvas {
  max-width: min(100%, calc(100vw - 72px));
  max-height: 72vh;
  box-shadow: 0 0 0 1px rgba(12, 20, 36, .18), 0 18px 44px rgba(12, 20, 36, .16);
}

body.ortho-visual-lab .stage-hint {
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}

body.ortho-visual-lab .answer {
  max-width: none;
  padding: 20px 24px;
  font-size: 18px;
  line-height: 1.72;
  background: rgba(75, 224, 166, .10);
}

body.ortho-visual-lab .answer-label {
  color: var(--green);
  font-size: 12px;
}

body.ortho-visual-lab .answer-text {
  max-width: 1180px;
}

body.ortho-visual-lab .actions {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

body.ortho-visual-lab .actions a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.ortho-visual-lab .grade {
  padding: 0 24px 18px;
  background: #fbfdff;
  border-bottom: 1px solid var(--line);
}

body.ortho-visual-lab .grade-btn,
body.ortho-visual-lab .secondary,
body.ortho-visual-lab .primary {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
}

body.ortho-visual-lab .status {
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.55;
  background: #fbfdff;
}

/* Light clinical workbook pass: keep Ortho readable during long audition prep. */
header {
  background: var(--bg2) !important;
  border-bottom-color: var(--line) !important;
  box-shadow: 0 2px 18px rgba(23, 47, 74, .06);
}

header h1 {
  color: var(--ink) !important;
}

header p,
.back,
.back-link {
  color: var(--muted) !important;
}

header :is(.back:hover, .back-link:hover) {
  color: var(--sky) !important;
}

header::after {
  opacity: .7;
}

main {
  color: var(--ink);
}

body :is(.tab-bar, .ortho-tool-nav, .visual-tools, .card-head, .meta, .approach-header, .brief-header, .rr-header, .cb-header, .pimp-panel-header, .presentation-panel, .attending-chat, .case-banner, .moment-bar, .stack-indicator) {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
}

body :is(.panel, .card, .week, .article, .topic, .system-card, .source-card, .status-card, .summary-card, .stat, .side-item, .unit, .article-unit, .case-body, .approach-card, .brief-card, .rr-card, .pimp-panel, .stack-preview, .presentation-output, .cb-panel, .cb-entry, .weak-card, .packet-card, .planner-card, .day-card, .conf-card, .journal-card, .resource-card) {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

body :is(.paste-zone, textarea, input, select, .search-input, .attending-chat-input, .presentation-panel textarea) {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}

body :is(textarea, input, select, .search-input, .attending-chat-input, .presentation-panel textarea)::placeholder {
  color: #6b7f96 !important;
}

body :is(.q, .a, .answer, .answer-text, .prompt, .title, .brief-case-name, .rr-title, .cb-header h2, .cb-entry-title, .pimp-q, .oral-pres, .op-seq li, .rr-bullet, .approach-item, .approach-section li, .attending-bubble, .day-topic, .unit-title, .article-title, .case-banner-title) {
  color: var(--ink) !important;
}

body :is(.source, .status, .muted, .sub, .case-banner-phase, .cb-entry-sub, .rr-sub, .figcap, .ref-img-cap, .la-img-cap, .stat-label, .counter, .zoom-readout, .tool-label, .filter-section-label, .day-date, .week-meta, .unit-kind, .unit-stat, .article-meta) {
  color: var(--muted) !important;
}

/* Course status badges use semantic light fills so their labels remain readable. */
body.ro-course-map .status-badge {
  border: 1px solid var(--border) !important;
  background: #eef3f8 !important;
  color: #27425f !important;
}

body.ro-course-map .status-badge.status-not-started {
  border-color: #c4d3e1 !important;
  background: #eef3f8 !important;
  color: #526b84 !important;
}

body.ro-course-map .status-badge.status-started {
  border-color: #b8d7f0 !important;
  background: #eaf3ff !important;
  color: #1d5f91 !important;
}

body.ro-course-map .status-badge.status-learning {
  border-color: #f0d49b !important;
  background: #fff7e6 !important;
  color: #7a4a00 !important;
}

body.ro-course-map .status-badge.status-developing {
  border-color: #c9bdf2 !important;
  background: #f2eeff !important;
  color: #5a43a6 !important;
}

body.ro-course-map .status-badge.status-needs-review {
  border-color: #f0b8be !important;
  background: #fff0f1 !important;
  color: #b4232e !important;
}

body.ro-course-map .status-badge.status-proficient {
  border-color: #a9ddc9 !important;
  background: #eaf8f2 !important;
  color: #087f5b !important;
}

body :is(.exam-stem p, .system-card p, .top-copy span, .image-link span) {
  color: var(--muted) !important;
}

body :is(.tab-btn, .filter, .filter-chip, .img-mode-btn, .tool-btn, .secondary, .grade-btn, .link-btn, .case-exit-btn, .reset, .ortho-tool-link, .case-btn, .nav-btn) {
  background: #ffffff !important;
  color: #27425f !important;
  border-color: var(--border) !important;
  box-shadow: 0 1px 2px rgba(23, 47, 74, .04);
}

body :is(.tab-btn.on, .filter.on, .filter-chip.on, .img-mode-btn.on, .tool-btn.on, .ortho-tool-link:hover, .secondary:hover, .link-btn:hover, .case-btn:hover, .nav-btn:hover) {
  background: #eaf6fc !important;
  color: var(--sky) !important;
  border-color: var(--sky) !important;
}

body :is(.primary, .reveal-btn, .next-btn, .case-analyze-btn, .stack-start-btn, .brief-drill-btn, .rr-continue-btn, .attending-chat-send, .cb-entry-drill, .shelf-start, .conf-start-btn, .packet-action.primary) {
  background: var(--sky) !important;
  border-color: var(--sky) !important;
  color: #ffffff !important;
}

body :is(.primary:hover, .reveal-btn:hover, .next-btn:hover, .case-analyze-btn:hover, .stack-start-btn:hover, .brief-drill-btn:hover, .rr-continue-btn:hover, .attending-chat-send:hover, .cb-entry-drill:hover, .shelf-start:hover, .conf-start-btn:hover) {
  filter: brightness(.95);
}

body :is(.answer, .a.show, .attending-bubble.attending) {
  background: #eaf8f2 !important;
  border-color: rgba(8, 127, 91, .32) !important;
}

body :is(.moment-bar, .stack-indicator, .note, .case-toggle-btn.open, .stack-preview) {
  background: #eaf6fc !important;
  border-color: var(--sky-b) !important;
}

body :is(.cls-diagram, .la-img-wrap img, .la-bib-imgs img, .img-round-figs img, .ref-img-wrap img) {
  background: #ffffff !important;
}

body :is(.lightbox, .cb-backdrop) {
  background: rgba(10, 23, 39, .82) !important;
}

body :is(.casebook-fab, .gchat-fab, .ask-attending-fab, .floating-action, .season-casebook) {
  background: #ffffff !important;
  color: var(--sky) !important;
  border-color: var(--sky-b) !important;
  box-shadow: 0 8px 22px rgba(23, 47, 74, .14) !important;
}

body :is(.cb-panel, .gchat-panel):not(.open) {
  box-shadow: none !important;
  pointer-events: none;
}

body :is(.cb-panel, .gchat-panel).open {
  box-shadow: 0 -8px 34px rgba(23, 47, 74, .18) !important;
}

/* Shared Ortho image enlargement for topic readers and presentation films. */
body.rahvan-image-lightbox-open {
  overflow: hidden;
}

body :is(.rahvan-image-zoomable) {
  cursor: zoom-in;
}

body :is(.rahvan-image-zoomable:focus-visible) {
  outline: 3px solid var(--sky-b);
  outline-offset: 3px;
}

.rahvan-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  background: rgba(241, 246, 251, .96);
}

.rahvan-image-lightbox.is-open {
  display: flex;
}

.rahvan-image-lightbox__shell {
  display: flex;
  width: min(1280px, 100%);
  min-height: 0;
  flex-direction: column;
}

.rahvan-image-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 12px;
  color: var(--ink);
}

.rahvan-image-lightbox__title {
  overflow: hidden;
  color: #27425f;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahvan-image-lightbox__close {
  flex: 0 0 auto;
  border: 1px solid #c9dcea;
  border-radius: 7px;
  background: #fff;
  color: #27425f;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 850;
}

.rahvan-image-lightbox__close:hover,
.rahvan-image-lightbox__close:focus-visible {
  border-color: var(--sky);
  background: #eaf6fc;
}

.rahvan-image-lightbox__stage {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 4px;
}

.rahvan-image-lightbox__image {
  display: block;
  width: min(100%, 1120px);
  height: calc(100vh - 136px);
  max-width: 100%;
  max-height: calc(100vh - 136px);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 47, 74, .18);
  object-fit: contain;
}

.rahvan-image-lightbox__source {
  align-self: center;
  max-width: 100%;
  margin-top: 10px;
  color: #526b84;
  font-size: 12px;
  text-align: center;
}

.rahvan-image-lightbox__source a {
  color: #02476f;
}

@media (max-width: 620px) {
  .rahvan-image-lightbox {
    padding: 12px;
  }

  .rahvan-image-lightbox__image {
    max-height: calc(100vh - 118px);
  }
}

body :is(button, .button, .btn, .chip, .link-btn, .nav-btn, .primary, .secondary, .tool-btn, .filter, .tab-btn, .ortho-tool-link, .case-btn, .unit-actions a, .article-unit-actions a, .header-links a, .header-actions a, select, input) {
  min-height: 48px;
}

body :is(.q, .prompt, .exam-stem h2) {
  font-size: clamp(21px, 1.6vw, 25px) !important;
  line-height: 1.58 !important;
}

body :is(.a, .answer, .answer-text, .oral-pres, .rr-bullet, .op-seq li, .attending-bubble) {
  font-size: 18px !important;
  line-height: 1.75 !important;
}

body :is(.source, .status, .counter, .stat-label, .filter-chip, .tool-btn, .link-btn, .secondary, .grade-btn) {
  font-size: 15px !important;
}

body :is(.eyebrow, .panel-title, .summary-label, .side-title, .tool-label, .answer-label, .crumb, .filter-section-label) {
  color: #526b84 !important;
  letter-spacing: .08em;
}

body :is(.stat-value, .stat .n) {
  color: var(--ink) !important;
}

body :is(.grade .missed, .grade-btn.missed) {
  background: #fff0f1 !important;
  color: var(--red) !important;
  border-color: rgba(180, 35, 46, .36) !important;
}

body :is(.grade .shaky, .grade-btn.unsure) {
  background: #fff7e6 !important;
  color: var(--amber) !important;
  border-color: rgba(155, 90, 0, .36) !important;
}

body :is(.grade .got, .grade-btn.got) {
  background: #eaf8f2 !important;
  color: var(--green) !important;
  border-color: rgba(8, 127, 91, .36) !important;
}

body :is(.body-wrap, .skeleton-panel) {
  background: #f8fbfe !important;
}

body :is(.body-wrap) {
  box-shadow: inset 0 0 0 1px rgba(23, 47, 74, .04);
}

body :is(.bone) {
  stroke: #2f6f98 !important;
}

body :is(.joint) {
  fill: #ffffff !important;
  stroke: #2f6f98 !important;
}

body :is(.midline) {
  stroke: #9ab2ca !important;
}

body :is(.hotspot, .top-num, .choice-letter) {
  background: #ffffff !important;
  color: var(--sky) !important;
  border-color: var(--sky-b) !important;
}

body :is(.hotspot:hover, .hotspot.on) {
  background: #eaf6fc !important;
  color: var(--sky) !important;
}

body :is(.subtype, .image-link, .drill-options button) {
  background: #f8fbfe !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

body :is(.subtype span, .feedback) {
  color: var(--ink) !important;
}

body :is(.feedback) {
  background: #fff7e6 !important;
  border-color: rgba(155, 90, 0, .36) !important;
}

body.ortho-command-center .ortho-tool-nav {
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(23, 47, 74, .08);
}

body.ortho-command-center .ortho-tool-link {
  min-height: 72px;
  padding: 14px 16px;
  background: #f8fbfe !important;
  color: var(--ink) !important;
}

body.ortho-command-center .ortho-tool-link strong {
  font-size: 18px;
}

body.ortho-command-center .ortho-tool-link span {
  color: var(--muted) !important;
  font-size: 14px;
}

body.ortho-command-center .ortho-more-tools summary {
  min-height: 72px;
  padding: 14px 18px;
  background: #f8fbfe !important;
  color: #27425f !important;
}

body.ortho-command-center .ortho-more-panel {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 18px 46px rgba(23, 47, 74, .18);
}

body.ortho-command-center .ortho-more-panel a {
  background: #f8fbfe;
  color: var(--ink);
  font-size: 16px;
}

body.ortho-visual-lab .stage,
body.ortho-visual-lab .stage.focused,
body.ortho-visual-lab .stage.context {
  background: #edf3f8 !important;
}

body.ortho-visual-lab .stage canvas,
body.ortho-visual-lab .stage.focused canvas {
  box-shadow: 0 0 0 1px rgba(23, 47, 74, .18), 0 18px 44px rgba(23, 47, 74, .14);
}

body.ortho-visual-lab .stage-hint {
  background: rgba(255, 255, 255, .94) !important;
  color: #51667e !important;
  border-color: var(--line) !important;
}

/* Topic readers use inline dark-theme rules for their content blocks. Keep
   those blocks legible after the shared light clinical palette is applied. */
body.ortho-topic-reader .section p,
body.ortho-topic-reader .section li,
body.ortho-topic-reader .source-card p,
body.ortho-topic-reader .panel > p,
body.ortho-topic-reader .panel > ul li,
body.ortho-topic-reader .hero-note p,
body.ortho-topic-reader .image-card figcaption,
body.ortho-topic-reader .status-card .detail,
body.ortho-topic-reader .presentation-film .caption,
body.ortho-topic-reader .presentation-result > p,
body.ortho-topic-reader .canonical p {
  color: #27425f !important;
}

body.ortho-topic-reader .section strong,
body.ortho-topic-reader .section b,
body.ortho-topic-reader .source-card strong,
body.ortho-topic-reader .image-card figcaption strong,
body.ortho-topic-reader .canonical strong {
  color: var(--ink) !important;
}

body.ortho-topic-reader .section .muted,
body.ortho-topic-reader .source-card .source-line,
body.ortho-topic-reader .image-card figcaption .muted,
body.ortho-topic-reader .presentation-form .muted,
body.ortho-topic-reader .hero .subtitle,
body.ortho-topic-reader .source-line,
body.ortho-topic-reader .dictation-status,
body.ortho-topic-reader .side-title {
  color: var(--muted) !important;
}

body.ortho-topic-reader .source-card summary,
body.ortho-topic-reader .side-links a,
body.ortho-topic-reader .chip,
body.ortho-topic-reader .weakness-links a {
  color: var(--sky) !important;
}

body.ortho-topic-reader .side-links a,
body.ortho-topic-reader .source-card,
body.ortho-topic-reader .status-card,
body.ortho-topic-reader .image-card,
body.ortho-topic-reader .check,
body.ortho-topic-reader .presentation-result {
  background: var(--panel3) !important;
}

@media (max-width: 900px) {
  body.ortho-command-center .ortho-tool-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ortho-command-center .ortho-more-tools {
    grid-column: 1 / -1;
  }

  body.ortho-command-center .ortho-more-panel {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@media (max-width: 700px) {
  html,
  body {
    font-size: 16px;
  }

  body.ortho-visual-lab main {
    width: min(100vw, calc(100vw - 20px));
    padding-left: 0;
    padding-right: 0;
  }

  body.ortho-visual-lab .links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.ortho-visual-lab .link-btn {
    justify-content: center;
    text-align: center;
  }

  body.ortho-visual-lab .occlusion-flow {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.ortho-visual-lab .occlusion-flow span {
    min-height: 46px;
    font-size: 15px;
  }

  body.ortho-visual-lab .stage {
    height: 52vh;
    min-height: 430px;
  }

  body.ortho-visual-lab .stage canvas,
  body.ortho-visual-lab .stage.focused canvas {
    max-width: calc(100vw - 28px);
    max-height: 49vh;
  }

  body.ortho-visual-lab .prompt {
    font-size: 18px;
  }

  body.ortho-visual-lab .actions,
  body.ortho-visual-lab .grade {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 560px) {
  body.ortho-command-center .ortho-tool-nav {
    grid-template-columns: 1fr;
  }

  body.ortho-command-center .ortho-tool-link,
  body.ortho-command-center .ortho-more-tools summary {
    min-height: 54px;
  }
}

/* Shared Ortho navigation stays available without taking space from the study surface. */
.ortho-floating-root,
.ortho-floating-root * {
  box-sizing: border-box;
}

.ortho-floating-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10020;
  width: 54px;
  height: 54px;
  border: 1px solid #0d5f8b;
  border-radius: 50%;
  background: #087fae;
  color: #fff;
  box-shadow: 0 12px 28px rgba(3, 28, 48, .24);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.ortho-floating-trigger:hover,
.ortho-floating-trigger:focus-visible {
  background: #075f87;
  outline: 3px solid rgba(8, 127, 174, .24);
  outline-offset: 3px;
}

.ortho-floating-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ortho-floating-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(8, 25, 40, .3);
}

.ortho-floating-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 10021;
  width: min(360px, calc(100vw - 28px));
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #bad1e1;
  border-radius: 10px;
  background: #fff;
  color: #0b2238;
  box-shadow: 0 20px 52px rgba(3, 28, 48, .25);
}

.ortho-floating-head,
.ortho-floating-calendar,
.ortho-floating-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ortho-floating-head {
  padding: 2px 2px 12px;
  border-bottom: 1px solid #dce8f0;
}

.ortho-floating-head strong,
.ortho-floating-link strong,
.ortho-floating-calendar strong {
  display: block;
  color: #0b2238;
  font-size: 14px;
  line-height: 1.25;
}

.ortho-floating-kicker {
  display: block;
  margin-bottom: 3px;
  color: #087fae;
  font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ortho-floating-platform {
  padding: 11px 2px 10px;
  border-bottom: 1px solid #dce8f0;
}

.ortho-floating-platform-buttons {
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr;
  gap: 5px;
  margin-top: 8px;
}

.ortho-floating-platform-buttons button {
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid #cbdde8;
  border-radius: 7px;
  background: #fff;
  color: #35566d;
  font: 800 11px/1.15 system-ui, sans-serif;
  cursor: pointer;
}

.ortho-floating-platform-buttons button:hover,
.ortho-floating-platform-buttons button:focus-visible,
.ortho-floating-platform-buttons button.is-current {
  border-color: #087fae;
  background: #eaf7fb;
  color: #075f87;
  outline: none;
}

.ortho-floating-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cbdde8;
  border-radius: 7px;
  background: #f5f9fb;
  color: #36526a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ortho-floating-links {
  display: grid;
  gap: 5px;
  padding: 10px 0;
}

.ortho-floating-section {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #dce8f0;
  display: grid;
  gap: 4px;
}

.ortho-floating-section-label {
  padding: 0 2px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b8fa8;
}

.ortho-floating-section .ortho-floating-link {
  min-height: 38px;
  padding: 6px 9px;
}

.ortho-floating-section .ortho-floating-link small {
  display: none;
}

.ortho-floating-link,
.ortho-floating-calendar {
  min-height: 49px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #0b2238;
  text-decoration: none;
}

.ortho-floating-link:hover,
.ortho-floating-link:focus-visible,
.ortho-floating-link.is-current,
.ortho-floating-calendar:hover,
.ortho-floating-calendar:focus-visible {
  border-color: #afd1e3;
  background: #eef8fc;
  outline: none;
}

.ortho-floating-link small,
.ortho-floating-calendar small {
  display: block;
  margin-top: 2px;
  color: #60778b;
  font-size: 11px;
  line-height: 1.25;
}

.ortho-floating-arrow {
  color: #087fae;
  font-size: 18px;
}

.ortho-floating-calendar {
  border-color: #cbdde8;
  background: #f7fbfd;
}

.course-calendar {
  margin-bottom: 18px;
}

.calendar-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.calendar-panel-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 17px;
}

.calendar-count {
  color: var(--sky);
  font: 850 14px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.calendar-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.calendar-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.calendar-controls input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel3);
  color: var(--text);
  padding: 8px 10px;
}

.calendar-status {
  min-height: 22px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-event-list {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.calendar-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel3);
}

.calendar-event-row strong,
.calendar-event-row span,
.calendar-event-row small {
  display: block;
}

.calendar-event-row strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.calendar-event-row span,
.calendar-event-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-event-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.calendar-event-actions a {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 650px) {
  .calendar-panel-head,
  .calendar-event-row {
    display: block;
  }

  .calendar-count {
    display: block;
    margin-top: 9px;
  }

  .calendar-controls label,
  .calendar-controls input,
  .calendar-controls button {
    width: 100%;
  }

  .calendar-event-actions {
    margin-top: 9px;
  }
}

@media (max-width: 560px) {
  .ortho-floating-trigger { right: 15px; bottom: 15px; }
  .ortho-floating-panel { right: 14px; bottom: 78px; }
}

/* Rahvan Ortho product shell. Standalone ortho tools share this frame so the
   learner can move between study modes without losing the current context. */
body.ro-shell-body {
  --ro-navy: #09233f;
  --ro-ink: #152946;
  --ro-muted: #5f7594;
  --ro-blue: #087fc2;
  --ro-blue-dark: #056a9f;
  --ro-pale: #eef5fb;
  --ro-border: #c5d8ea;
  --ro-green: #15865f;
  --ro-amber: #b86b08;
  margin: 0;
  padding: 64px 0 0 112px;
  background: #f3f7fb;
  color: var(--ro-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ro-shell-body .ro-shell-content {
  min-height: calc(100vh - 64px);
  background: #f3f7fb;
}

body.ro-shell-body .ro-shell-content > header {
  position: relative;
  top: auto;
  z-index: 1;
  padding: 26px max(22px, calc((100vw - 1230px) / 2)) 24px;
  background: #fff;
  border-bottom: 1px solid var(--ro-border);
  box-shadow: none;
}

body.ro-shell-body .ro-shell-content > header:after { display: none; }
body.ro-shell-body .ro-shell-content > main {
  max-width: 1230px;
  margin: 0 auto;
  padding: 28px 22px 58px;
}

body.ro-shell-body .ro-shell-content h1,
body.ro-shell-body .ro-shell-content h2,
body.ro-shell-body .ro-shell-content h3,
body.ro-shell-body .ro-shell-content strong,
body.ro-shell-body .ro-shell-content .title,
body.ro-shell-body .ro-shell-content .week-title,
body.ro-shell-body .ro-shell-content .day-topic,
body.ro-shell-body .ro-shell-content .unit-title {
  color: var(--ro-ink);
}

body.ro-shell-body .ro-shell-content p,
body.ro-shell-body .ro-shell-content li,
body.ro-shell-body .ro-shell-content .muted,
body.ro-shell-body .ro-shell-content .summary-detail,
body.ro-shell-body .ro-shell-content .week-meta,
body.ro-shell-body .ro-shell-content .day-date,
body.ro-shell-body .ro-shell-content .unit-kind,
body.ro-shell-body .ro-shell-content .unit-stat,
body.ro-shell-body .ro-shell-content .article-meta,
body.ro-shell-body .ro-shell-content .concepts,
body.ro-shell-body .ro-shell-content .mini-list,
body.ro-shell-body .ro-shell-content .side-item span {
  color: var(--ro-muted);
}

body.ro-shell-body .ro-shell-content .panel,
body.ro-shell-body .ro-shell-content .card,
body.ro-shell-body .ro-shell-content .week,
body.ro-shell-body .ro-shell-content .article,
body.ro-shell-body .ro-shell-content .topic,
body.ro-shell-body .ro-shell-content .stat,
body.ro-shell-body .ro-shell-content .summary-card,
body.ro-shell-body .ro-shell-content .unit,
body.ro-shell-body .ro-shell-content .article-unit,
body.ro-shell-body .ro-shell-content .source-card,
body.ro-shell-body .ro-shell-content .status-card,
body.ro-shell-body .ro-shell-content .check {
  background: #fff;
  border-color: var(--ro-border);
  box-shadow: 0 8px 20px rgba(31, 66, 101, .08);
}

body.ro-shell-body .ro-shell-content a { color: var(--ro-blue); }
body.ro-shell-body .ro-shell-content button,
body.ro-shell-body .ro-shell-content input,
body.ro-shell-body .ro-shell-content select,
body.ro-shell-body .ro-shell-content textarea { color: var(--ro-ink); }

.ro-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10030;
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 10px 16px;
  background: var(--ro-navy);
  color: #fff;
}

.ro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 2px 3px 20px;
  color: #fff !important;
  text-decoration: none;
}

.ro-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.ro-brand span { display: grid; gap: 1px; text-align: center; }
.ro-brand strong { color: #fff; font-size: 12px; letter-spacing: .04em; line-height: 1; }
.ro-brand small { color: #55b9ee; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.ro-side-nav { display: grid; gap: 8px; }
.ro-side-link,
.ro-side-settings {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 10px 4px;
  border-radius: 9px;
  color: #d4e5f5 !important;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.ro-side-link:hover,
.ro-side-link.is-active { background: #0b5f94; color: #fff !important; }
.ro-side-link strong,
.ro-side-settings strong { color: inherit; font-size: 11px; line-height: 1.1; }
.ro-side-icon { display: grid; place-items: center; width: 24px; height: 24px; font-size: 20px; line-height: 1; }
.ro-side-settings { margin-top: auto; }

.ro-topbar {
  position: fixed;
  inset: 0 0 auto 112px;
  z-index: 10020;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(22px, calc((100vw - 1530px) / 2));
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--ro-border);
  box-shadow: 0 3px 12px rgba(24, 56, 91, .06);
  backdrop-filter: blur(12px);
}
.ro-back { color: var(--ro-ink) !important; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.ro-back span { margin-right: 6px; }
.ro-top-title { color: var(--ro-ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.ro-search { display: flex; align-items: center; gap: 7px; min-width: 220px; max-width: 360px; flex: 1; padding: 7px 11px; border: 1px solid var(--ro-border); border-radius: 9px; color: var(--ro-muted); }
.ro-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.ro-progress { width: 155px; display: grid; gap: 5px; }
.ro-progress > div { display: flex; justify-content: space-between; gap: 8px; color: var(--ro-ink); font-size: 10px; font-weight: 800; }
.ro-progress > div span { color: var(--ro-muted); }
.ro-progress i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #d9e5ef; }
.ro-progress i b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ro-blue); transition: width .2s ease; }
.ro-profile { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--ro-blue); color: #fff; font-size: 12px; font-weight: 850; }
.ro-platform { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--ro-border); border-radius: 9px; background: #f7fafc; }
.ro-platform-label { padding: 0 4px 0 7px; color: var(--ro-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.ro-platform button { min-height: 30px; padding: 4px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ro-muted); font-size: 11px; font-weight: 850; cursor: pointer; }
.ro-platform button:hover,
.ro-platform button.is-selected { background: var(--ro-navy); color: #fff; }

.ro-drawer-root { display: block; }
.ro-drawer-trigger { position: fixed; right: 20px; bottom: 18px; z-index: 10025; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ro-blue); color: #fff; font-size: 27px; line-height: 1; box-shadow: 0 8px 22px rgba(2, 71, 111, .28); cursor: pointer; }
.ro-drawer-trigger:hover { background: var(--ro-blue-dark); }
.ro-drawer-backdrop { position: fixed; inset: 0; z-index: 10026; background: rgba(11, 32, 54, .32); }
.ro-drawer { position: fixed; inset: 0 0 0 auto; z-index: 10027; width: min(480px, calc(100vw - 25px)); overflow: auto; padding: 18px 18px 32px; background: #fff; border-left: 1px solid var(--ro-border); box-shadow: -15px 0 40px rgba(20, 49, 78, .18); }
.ro-drawer-head { display: flex; justify-content: space-between; gap: 12px; padding: 2px 2px 14px; border-bottom: 1px solid #e2ebf2; }
.ro-drawer-head span { display: block; color: var(--ro-blue); font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.ro-drawer-head strong { display: block; margin-top: 4px; color: var(--ro-ink); font-size: 22px; }
.ro-drawer-close { width: 36px; height: 36px; border: 1px solid var(--ro-border); border-radius: 8px; background: #f7fafc; color: var(--ro-ink); font-size: 23px; cursor: pointer; }
.ro-drawer-audition { display: grid; gap: 3px; margin: 14px 0 17px; padding: 12px 13px; border: 1px solid #a8d2ec; border-radius: 8px; background: #eaf6fd; }
.ro-drawer-audition strong { color: var(--ro-blue-dark); font-size: 12px; }
.ro-drawer-audition small { color: var(--ro-ink); font-size: 11px; }
.ro-drawer-group { margin-top: 17px; }
.ro-drawer-group h2 { margin: 0 0 7px; color: var(--ro-muted); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.ro-drawer-group a,
.ro-drawer-calendar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--ro-ink); text-decoration: none; }
.ro-drawer-group a:hover,
.ro-drawer-group a.is-active,
.ro-drawer-calendar:hover { border-color: #abd5ef; background: #eef8fd; }
.ro-drawer-group strong,
.ro-drawer-calendar strong { display: block; font-size: 13px; }
.ro-drawer-group small,
.ro-drawer-calendar small { display: block; margin-top: 2px; color: var(--ro-muted); font-size: 10px; }
.ro-drawer-group b,
.ro-drawer-calendar b { color: var(--ro-blue); font-size: 17px; }
.ro-drawer-calendar { margin-top: 20px; border-color: var(--ro-border); background: #f8fbfd; }
body.ro-shell-body .ortho-floating-root { display: none !important; }

/* Course Map: keep the longitudinal curriculum scannable and reserve detail
   actions for the unit's contextual menu. */
body.ro-course-map .study-choices { display: none; }
body.ro-course-map .ro-shell-content > main { display: flex; flex-direction: column; }
body.ro-course-map .ro-shell-content > main > .topbar { display: none; }
body.ro-course-map .ro-shell-content > main > .summary { order: 1; display: grid; }
body.ro-course-map .ro-shell-content > main > .modebar { order: 2; }
body.ro-course-map .ro-shell-content > main > #session-root { order: 3; }
body.ro-course-map .ro-shell-content > main > #article-lab { order: 4; margin: 0 0 16px; display: block; }
body.ro-course-map .ro-shell-content > main > .course-grid { order: 5; }
body.ro-course-map .ro-shell-content > main > .course-calendar { order: 6; }
body.ro-course-map .modebar { margin: 0 0 14px; }
body.ro-course-map .course-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
body.ro-course-map .main-column > .panel { padding: 0; background: transparent; border: 0; box-shadow: none; }
body.ro-course-map .course-grid > .main-column .filterbar { padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--ro-border); border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgba(31, 66, 101, .06); }
body.ro-course-map .week { overflow: hidden; margin-bottom: 15px; }
body.ro-course-map .week-head { background: #fff; }
body.ro-course-map .week-body { padding: 4px 18px 10px; }
body.ro-course-map .day { padding: 15px 0; }
body.ro-course-map .unit { background: #fff; }
body.ro-course-map .unit-actions { align-items: center; }
body.ro-course-map .unit-actions > a:not(.ro-primary-action),
body.ro-course-map .unit-more summary { font-size: 12px; }
body.ro-course-map .unit-actions .ro-primary-action { min-width: 92px; background: var(--ro-blue) !important; border-color: var(--ro-blue) !important; color: #fff !important; text-align: center; }
body.ro-course-map .unit-more { position: relative; }
body.ro-course-map .unit-more summary { min-height: 36px; padding: 8px 9px; border: 1px solid var(--ro-border); border-radius: 7px; color: var(--ro-ink); font-weight: 800; cursor: pointer; list-style: none; }
body.ro-course-map .unit-more summary::-webkit-details-marker { display: none; }
body.ro-course-map .unit-more[open] summary { border-color: var(--ro-blue); color: var(--ro-blue); }
body.ro-course-map .unit-more-menu { position: absolute; right: 0; top: calc(100% + 5px); z-index: 4; display: grid; min-width: 160px; padding: 5px; border: 1px solid var(--ro-border); border-radius: 8px; background: #fff; box-shadow: 0 12px 24px rgba(27, 57, 87, .15); }
body.ro-course-map .unit-more-menu a { padding: 8px 9px; color: var(--ro-ink); text-decoration: none; font-size: 12px; border-radius: 5px; }
body.ro-course-map .unit-more-menu a:hover { background: #eef8fd; color: var(--ro-blue); }

@media (max-width: 980px) {
  body.ro-shell-body { padding-left: 82px; }
  .ro-sidebar { width: 82px; }
  .ro-topbar { left: 82px; }
  .ro-top-title { display: none; }
  .ro-platform-label { display: none; }
  .ro-platform button { padding-inline: 7px; }
}

@media (max-width: 700px) {
  body.ro-shell-body { padding-left: 0; padding-top: 58px; }
  .ro-sidebar { inset: auto 0 0; width: 100%; height: 62px; flex-direction: row; align-items: stretch; padding: 4px 6px; }
  .ro-brand, .ro-side-settings { display: none; }
  .ro-side-nav { width: 100%; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .ro-side-link { min-height: 52px; padding: 4px 2px; }
  .ro-side-link strong { font-size: 9px; }
  .ro-side-icon { height: 20px; font-size: 17px; }
  .ro-topbar { inset: 0 0 auto; min-height: 58px; gap: 8px; padding: 8px 12px; }
  .ro-back { font-size: 0; }
  .ro-back span { font-size: 19px; margin: 0; }
  .ro-search { min-width: 0; }
  .ro-progress { display: none; }
  .ro-platform { margin-left: auto; }
  .ro-platform button { font-size: 10px; padding-inline: 6px; }
  .ro-profile { flex-basis: 32px; width: 32px; height: 32px; }
  body.ro-shell-body .ro-shell-content > main { padding: 22px 13px 84px; }
  body.ro-shell-body .ro-shell-content > header { padding: 20px 13px; }
  .ro-drawer-trigger { right: 14px; bottom: 76px; }
  body.ro-course-map .course-grid { grid-template-columns: 1fr; }
  body.ro-course-map .side-column { position: static; }
}

/* Course Home */
body.ro-course-home .ro-home-main { max-width: 1230px; margin: 0 auto; padding: 28px 22px 70px; }
body.ro-course-home .ro-home-kicker,
body.ro-course-home .ro-home-label,
body.ro-course-home .ro-surface-label { color: var(--ro-blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
body.ro-course-home .ro-home-main > h1 { margin: 7px 0 2px; font-size: 34px; line-height: 1.2; }
body.ro-course-home .ro-home-subtitle { margin: 0 0 18px; color: var(--ro-muted); font-size: 15px; }
body.ro-course-home .ro-next-action,
body.ro-course-home .ro-home-surface { border: 1px solid var(--ro-border); border-radius: 10px; background: #fff; box-shadow: 0 8px 20px rgba(31, 66, 101, .08); }
body.ro-course-home .ro-next-action { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 22px 24px; margin-bottom: 18px; border-left: 4px solid var(--ro-blue); }
body.ro-course-home .ro-next-copy { min-width: 0; }
body.ro-course-home .ro-next-action h2 { margin: 8px 0 3px; font-size: 25px; line-height: 1.25; }
body.ro-course-home .ro-next-action p { margin: 0; color: var(--ro-muted); font-size: 13px; }
body.ro-course-home .ro-priority-pill { flex: 0 0 auto; align-self: flex-start; padding: 7px 16px; border-radius: 99px; background: #fff4e2; color: var(--ro-amber); font-size: 11px; font-weight: 850; }
body.ro-course-home .ro-action-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
body.ro-course-home .ro-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; border: 1px solid var(--ro-border); border-radius: 8px; background: #fff; color: var(--ro-ink); font-size: 12px; font-weight: 850; text-decoration: none; }
body.ro-course-home .ro-button:hover { border-color: var(--ro-blue); color: var(--ro-blue); }
body.ro-course-home .ro-button-primary { border-color: var(--ro-blue); background: var(--ro-blue); color: #fff !important; }
body.ro-course-home .ro-button-primary:hover { background: var(--ro-blue-dark); }
body.ro-course-home .ro-button-small { margin-top: 12px; }
body.ro-course-home .ro-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
body.ro-course-home .ro-home-main-column,
body.ro-course-home .ro-home-rail { display: grid; gap: 18px; }
body.ro-course-home .ro-home-surface { padding: 20px 24px; }
body.ro-course-home .ro-home-surface h2 { margin: 7px 0 15px; font-size: 20px; line-height: 1.25; }
body.ro-course-home .ro-muted { margin: 0; color: var(--ro-muted); font-size: 13px; }
body.ro-course-home .ro-small-copy { margin: 15px 0 0; color: var(--ro-muted); font-size: 12px; line-height: 1.45; }
body.ro-course-home .ro-plan-list { display: grid; }
body.ro-course-home .ro-plan-row { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #e0eaf2; color: var(--ro-ink); text-decoration: none; }
body.ro-course-home .ro-plan-row:last-child { border-bottom: 0; }
body.ro-course-home .ro-plan-row:hover strong { color: var(--ro-blue); }
body.ro-course-home .ro-plan-row strong { display: block; font-size: 14px; }
body.ro-course-home .ro-plan-row small { display: block; margin-top: 3px; color: var(--ro-muted); font-size: 11px; }
body.ro-course-home .ro-plan-row > b { color: var(--ro-blue); font-size: 11px; white-space: nowrap; }
body.ro-course-home .ro-plan-dot { display: block; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #c9dcea; }
body.ro-course-home .ro-plan-dot.is-current { background: var(--ro-blue); }
body.ro-course-home .ro-week-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body.ro-course-home .ro-week-progress-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 9px; align-items: stretch; margin: -3px 0 14px; }
body.ro-course-home .ro-week-progress-stat { min-height: 70px; padding: 11px 12px; border: 1px solid var(--ro-border); border-radius: 8px; background: var(--ro-pale); }
body.ro-course-home .ro-week-progress-stat strong { display: block; color: var(--ro-ink); font-size: 20px; line-height: 1.1; }
body.ro-course-home .ro-week-progress-stat span { display: block; margin-top: 6px; color: var(--ro-muted); font-size: 10px; font-weight: 800; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }
body.ro-course-home .ro-week-progress-summary .ro-button { align-self: stretch; min-width: 120px; }
body.ro-course-home .ro-week-day { min-height: 96px; padding: 12px; border: 1px solid var(--ro-border); border-radius: 8px; color: var(--ro-ink); text-decoration: none; }
body.ro-course-home .ro-week-day:hover { border-color: var(--ro-blue); }
body.ro-course-home .ro-week-day small { display: block; color: var(--ro-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
body.ro-course-home .ro-week-day strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.25; }
body.ro-course-home .ro-week-day span { display: block; margin-top: 8px; color: var(--ro-muted); font-size: 10px; }
body.ro-course-home .ro-day-cockpit-surface { border-left: 4px solid var(--ro-green); }
body.ro-course-home .ro-day-cockpit-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
body.ro-course-home .ro-day-cockpit-head h2 { margin-bottom: 5px; }
body.ro-course-home .ro-day-toggle { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--ro-border); border-radius: 8px; background: var(--ro-pale); }
body.ro-course-home .ro-day-toggle button { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--ro-muted); font-size: 12px; font-weight: 850; cursor: pointer; }
body.ro-course-home .ro-day-toggle button.is-active { background: #fff; color: var(--ro-blue); box-shadow: 0 4px 10px rgba(31, 66, 101, .08); }
body.ro-course-home .ro-cockpit-agenda { display: grid; gap: 10px; margin-top: 13px; }
body.ro-course-home .ro-cockpit-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 160px; gap: 12px; align-items: start; padding: 13px; border: 1px solid var(--ro-border); border-radius: 8px; background: #fff; }
body.ro-course-home .ro-cockpit-time strong { display: block; color: var(--ro-blue); font-size: 13px; line-height: 1.2; }
body.ro-course-home .ro-cockpit-time span { display: block; margin-top: 4px; color: var(--ro-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
body.ro-course-home .ro-cockpit-main strong { display: block; font-size: 15px; line-height: 1.25; }
body.ro-course-home .ro-cockpit-main small { display: block; margin-top: 3px; color: var(--ro-muted); font-size: 11px; }
body.ro-course-home .ro-cockpit-main p { margin: 8px 0 0; color: #27425f; font-size: 12px; line-height: 1.45; }
body.ro-course-home .ro-clinical-chain-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
body.ro-course-home .ro-clinical-chain-actions span { padding: 3px 7px; border-radius: 99px; background: #eef8f5; color: var(--ro-green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
body.ro-course-home .ro-cockpit-actions { display: grid; gap: 6px; }
body.ro-course-home .ro-cockpit-actions a,
body.ro-course-home .ro-cockpit-actions button { min-height: 31px; padding: 6px 8px; border: 1px solid var(--ro-border); border-radius: 7px; background: #fff; color: var(--ro-ink); font-size: 11px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
body.ro-course-home .ro-cockpit-actions a:first-child { border-color: var(--ro-blue); background: var(--ro-blue); color: #fff; }
body.ro-course-home .ro-cockpit-actions a:hover,
body.ro-course-home .ro-cockpit-actions button:hover { border-color: var(--ro-blue); color: var(--ro-blue); }
body.ro-course-home .ro-empty-cockpit { padding: 18px; border: 1px dashed var(--ro-border); border-radius: 8px; color: var(--ro-muted); font-size: 13px; text-align: center; }
body.ro-course-home .ro-quick-event-form { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 120px auto; gap: 9px; align-items: end; margin-top: 13px; padding-top: 13px; border-top: 1px solid #e0eaf2; }
body.ro-course-home .ro-quick-event-form label { display: grid; gap: 5px; color: var(--ro-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
body.ro-course-home .ro-quick-event-form input { min-height: 38px; width: 100%; padding: 8px 10px; border: 1px solid var(--ro-border); border-radius: 8px; background: #fff; color: var(--ro-ink); font-size: 13px; text-transform: none; letter-spacing: 0; }
body.ro-course-home .ro-quick-event-form input:focus { border-color: var(--ro-blue); outline: 0; box-shadow: 0 0 0 3px rgba(0, 129, 184, .12); }
body.ro-course-home .ro-calendar-status { min-height: 17px; margin-top: 8px; color: var(--ro-muted); font-size: 11px; }
body.ro-course-home .ro-responsibility { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--ro-border); border-radius: 8px; }
body.ro-course-home .ro-responsibility strong { display: block; font-size: 13px; }
body.ro-course-home .ro-responsibility small { display: block; margin-top: 4px; color: var(--ro-muted); font-size: 11px; }
body.ro-course-home .ro-readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.ro-course-home .ro-readiness-card { display: grid; min-height: 145px; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 13px; border: 1px solid var(--ro-border); border-radius: 8px; color: var(--ro-ink); text-decoration: none; background: #fff; }
body.ro-course-home .ro-readiness-card:hover { border-color: var(--ro-blue); }
body.ro-course-home .ro-readiness-card > span { justify-self: start; padding: 3px 8px; border-radius: 99px; background: #fff4e2; color: var(--ro-amber); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
body.ro-course-home .ro-readiness-card.is-done > span { background: #e2f8ef; color: var(--ro-green); }
body.ro-course-home .ro-readiness-card strong { display: block; font-size: 14px; line-height: 1.25; }
body.ro-course-home .ro-readiness-card small { display: block; color: var(--ro-muted); font-size: 11px; line-height: 1.35; }
body.ro-course-home .ro-readiness-card b { color: var(--ro-blue); font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
body.ro-course-home .ro-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 17px; }
body.ro-course-home .ro-chips span { padding: 5px 10px; border-radius: 99px; background: #eaf6fd; color: var(--ro-blue); font-size: 10px; font-weight: 850; }
body.ro-course-home .ro-mastery-value { margin-top: 5px; font-size: 38px; font-weight: 850; line-height: 1; }
body.ro-course-home .ro-home-progress { height: 8px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #dbe7f0; }
body.ro-course-home .ro-home-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ro-blue); }
body.ro-course-home .ro-upcoming-list { display: grid; }
body.ro-course-home .ro-upcoming-row { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #e0eaf2; }
body.ro-course-home .ro-upcoming-row:last-child { border-bottom: 0; }
body.ro-course-home .ro-upcoming-row > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--ro-blue); }
body.ro-course-home .ro-upcoming-row strong { display: block; font-size: 13px; }
body.ro-course-home .ro-upcoming-row small { display: block; margin-top: 3px; color: var(--ro-muted); font-size: 11px; }
body.ro-course-home .ro-quick-tools { display: grid; gap: 8px; }
body.ro-course-home .ro-quick-tools a { display: block; padding: 10px 12px; border: 1px solid var(--ro-border); border-radius: 8px; color: var(--ro-ink); font-size: 12px; font-weight: 850; text-align: center; text-decoration: none; }
body.ro-course-home .ro-quick-tools a:hover { border-color: var(--ro-blue); color: var(--ro-blue); }
body.ro-course-home .ro-calendar-surface { margin-top: 18px; }
body.ro-course-home .ro-calendar-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
body.ro-course-home .ro-calendar-head h2 { margin-bottom: 5px; }
body.ro-course-home .ro-calendar-summary { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--ro-pale); color: var(--ro-muted); font-size: 12px; }

/* Topic Reader: one shell, larger study images, and source text sized for reading. */
body.ortho-topic-reader.ro-shell-body .ro-shell-content > header { display: none !important; }
body.ortho-topic-reader.ro-shell-body .ro-shell-content > main {
  max-width: 1320px;
  padding-top: 22px;
}
body.ortho-topic-reader .reader-outline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--ro-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 66, 101, .06);
}
body.ortho-topic-reader .reader-outline a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c8dce9;
  border-radius: 7px;
  background: #f7fbfe;
  color: var(--ro-blue);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
body.ortho-topic-reader .reader-outline a:hover {
  border-color: var(--ro-blue);
  background: #eef8fd;
}
body.ortho-topic-reader .rotation-brief {
  display: grid;
  gap: 14px;
  margin: 6px 0 18px;
  padding: 18px;
  border: 1px solid #b6d6e9;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9fd 100%);
}
body.ortho-topic-reader .rotation-brief-head span,
body.ortho-topic-reader .clinical-chain-title {
  display: block;
  color: var(--ro-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.ortho-topic-reader .rotation-brief-head strong {
  display: block;
  margin-top: 5px;
  color: var(--ro-ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
}
body.ortho-topic-reader .rotation-brief-head p,
body.ortho-topic-reader .reader-lede {
  max-width: 84ch;
  margin: 8px 0 0;
  color: #27425f !important;
  font-size: 17px;
  line-height: 1.62;
}
body.ortho-topic-reader .rotation-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body.ortho-topic-reader .rotation-brief-card,
body.ortho-topic-reader .clinical-chain-row,
body.ortho-topic-reader .reader-note,
body.ortho-topic-reader .attending-prompts {
  border: 1px solid #c9ddeb;
  border-radius: 8px;
  background: #fff;
}
body.ortho-topic-reader .rotation-brief-card {
  min-height: 142px;
  padding: 12px 13px;
}
body.ortho-topic-reader .rotation-brief-card b,
body.ortho-topic-reader .reader-note strong,
body.ortho-topic-reader .attending-prompts h3 {
  display: block;
  margin: 0 0 6px;
  color: var(--ro-ink);
  font-size: 13px;
  font-weight: 900;
}
body.ortho-topic-reader .rotation-brief-card span,
body.ortho-topic-reader .reader-note span,
body.ortho-topic-reader .clinical-chain-row p,
body.ortho-topic-reader .attending-prompts li {
  color: #27425f;
  font-size: 15px;
  line-height: 1.52;
}
body.ortho-topic-reader .clinical-chain {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}
body.ortho-topic-reader .clinical-chain-title {
  margin-bottom: 2px;
}
body.ortho-topic-reader .clinical-chain-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 12px;
}
body.ortho-topic-reader .clinical-chain-row > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8f7f0;
  color: var(--ro-green);
  font-size: 12px;
  font-weight: 900;
}
body.ortho-topic-reader .clinical-chain-row b {
  display: block;
  color: var(--ro-ink);
  font-size: 14px;
  line-height: 1.25;
}
body.ortho-topic-reader .clinical-chain-row p {
  max-width: 88ch;
  margin: 4px 0 0;
}
body.ortho-topic-reader .reader-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 12px 13px;
  background: #f8fbfe;
}
body.ortho-topic-reader .reader-note strong {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ro-blue);
}
body.ortho-topic-reader .attending-prompts {
  margin: 14px 0 0;
  padding: 13px 15px;
}
body.ortho-topic-reader .attending-prompts ul {
  margin-top: 5px;
}
body.ortho-topic-reader.ro-shell-body .walk-card {
  background: #fff;
  border-color: var(--ro-border);
}
body.ortho-topic-reader.ro-shell-body .walk-card span,
body.ortho-topic-reader.ro-shell-body .image-readout li {
  color: #263d5b;
}
body.ortho-topic-reader.ro-shell-body .walkthrough-title,
body.ortho-topic-reader.ro-shell-body .image-readout strong {
  color: var(--ro-blue);
}
body.ortho-topic-reader.ro-shell-body .image-readout {
  background: #eef8fd;
  border-color: #b9d7eb;
}
body.ortho-topic-reader.ro-shell-body .learning-block {
  background: #f7fbfe;
  border-color: #c6daeb;
}
body.ortho-topic-reader.ro-shell-body .learning-block-title {
  color: var(--ro-blue);
}
body.ortho-topic-reader.ro-shell-body .learning-block li {
  color: #263d5b;
}
body.ortho-topic-reader.ro-shell-body .learning-pearl {
  background: #fff8e6;
  border-color: #eed08a;
}
body.ortho-topic-reader.ro-shell-body .learning-pearl .learning-block-title {
  color: #8a5d00;
}
body.ortho-topic-reader .hero { margin-bottom: 18px; }
body.ortho-topic-reader .hero.lesson-hero {
  display: block;
  margin-bottom: 12px;
}
body.ortho-topic-reader .hero.lesson-hero h1 {
  max-width: 980px;
  margin-top: 8px;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
}
body.ortho-topic-reader .hero.lesson-hero .subtitle {
  max-width: 760px;
}
body.ortho-topic-reader .lesson-objective-section {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-color: #bdd8eb !important;
  background: #fff !important;
}
body.ortho-topic-reader .lesson-objective-section h2 {
  margin: 0 0 10px;
  color: var(--ro-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
body.ortho-topic-reader .lesson-objective {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}
body.ortho-topic-reader .lesson-objective-mark {
  width: 52px;
  height: 52px;
  border: 1px solid #c7dded;
  border-radius: 50%;
  background: #eaf6fd;
  position: relative;
}
body.ortho-topic-reader .lesson-objective-mark::before,
body.ortho-topic-reader .lesson-objective-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 3px solid var(--ro-blue);
  border-radius: 50%;
}
body.ortho-topic-reader .lesson-objective-mark::after {
  inset: 21px;
  background: var(--ro-blue);
}
body.ortho-topic-reader .lesson-objective strong {
  display: block;
  color: var(--ro-ink);
  font-size: 16px;
  line-height: 1.25;
}
body.ortho-topic-reader .lesson-objective-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
body.ortho-topic-reader .lesson-objective-list span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-width: 0;
  padding: 0 10px 0 0;
  color: #27425f;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  border-right: 1px solid #d9e7f1;
}
body.ortho-topic-reader .lesson-objective-list span:last-child {
  border-right: 0;
}
body.ortho-topic-reader .lesson-objective-list span::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 2px solid var(--ro-blue);
  border-radius: 50%;
  background: #f5fbff;
  box-shadow: inset 0 0 0 4px #fff;
}
body.ortho-topic-reader .reader-outline.lesson-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  padding: 4px;
  border-color: #bdd2e3;
  background: #f8fbfe;
}
body.ortho-topic-reader .reader-outline.lesson-tabs a {
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526984;
  text-align: center;
}
body.ortho-topic-reader .reader-outline.lesson-tabs a:hover,
body.ortho-topic-reader .reader-outline.lesson-tabs a:focus {
  background: #eaf6fd;
  color: var(--ro-blue);
}
body.ortho-topic-reader .reader-outline.lesson-tabs a:first-child {
  background: transparent;
  color: #526984;
}
body.ortho-topic-reader .reader-outline.lesson-tabs a.is-active,
body.ortho-topic-reader .reader-outline.lesson-tabs a:first-child.is-active {
  background: #eaf6fd;
  color: var(--ro-blue);
}
body.ortho-topic-reader .active-visual {
  display: grid;
  gap: 14px;
  margin: 12px 0 16px;
}
body.ortho-topic-reader .active-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
body.ortho-topic-reader .active-visual-head h3,
body.ortho-topic-reader .commit-head h3,
body.ortho-topic-reader .case-vignette h3 {
  margin: 2px 0 6px;
  color: var(--ro-ink);
  font-size: 21px;
  line-height: 1.2;
}
body.ortho-topic-reader .active-visual-head p,
body.ortho-topic-reader .commit-head p,
body.ortho-topic-reader .active-caption {
  margin: 0;
  color: #526984 !important;
  font-size: 14px;
  line-height: 1.45;
}
body.ortho-topic-reader .active-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid #b7daf1;
  border-radius: 999px;
  background: #eef8ff;
  color: var(--ro-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.ortho-topic-reader .active-visual-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
body.ortho-topic-reader .active-visual-actions button,
body.ortho-topic-reader .commit-submit,
body.ortho-topic-reader .prompt-reveal {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #bdd2e3;
  border-radius: 7px;
  background: #fff;
  color: var(--ro-ink);
  font-weight: 900;
}
body.ortho-topic-reader .label-toggle[aria-pressed="true"],
body.ortho-topic-reader .commit-submit:not(:disabled),
body.ortho-topic-reader .prompt-reveal {
  border-color: var(--ro-blue);
  background: var(--ro-blue);
  color: #fff;
}
body.ortho-topic-reader .annotated-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 280px);
  gap: 14px;
  align-items: start;
}
body.ortho-topic-reader .compact-active-visual .annotated-layout {
  grid-template-columns: minmax(0, 1fr);
}
body.ortho-topic-reader .annotated-image {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6d8e7;
  border-radius: 8px;
  background: #fff;
}
body.ortho-topic-reader .annotated-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
body.ortho-topic-reader .annotated-image.is-dark {
  background: #07111d;
}
body.ortho-topic-reader .annotated-image.is-dark img {
  max-height: 620px;
  background: #07111d;
}
body.ortho-topic-reader .hotspot-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--dot, var(--ro-blue));
  color: #fff;
  box-shadow: 0 5px 14px rgba(8, 31, 52, .28);
  cursor: pointer;
}
body.ortho-topic-reader .hotspot-marker span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
body.ortho-topic-reader .hotspot-marker em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  max-width: 210px;
  min-width: max-content;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(5, 18, 32, .9);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
body.ortho-topic-reader .labels-visible .hotspot-marker em,
body.ortho-topic-reader .hotspot-marker.is-active em {
  display: block;
}
body.ortho-topic-reader .hotspot-marker.is-active {
  outline: 3px solid rgba(31, 140, 205, .28);
  outline-offset: 3px;
}
body.ortho-topic-reader .image-view-label,
body.ortho-topic-reader .image-zoom-link {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(5, 18, 32, .8);
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
body.ortho-topic-reader .image-view-label { left: 12px; bottom: 12px; }
body.ortho-topic-reader .image-zoom-link { right: 12px; bottom: 12px; }
body.ortho-topic-reader .hotspot-panel {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid #c6d8e7;
  border-radius: 8px;
  background: #f8fbfe;
}
body.ortho-topic-reader .hotspot-panel-title {
  color: #4c627b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.ortho-topic-reader .hotspot-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px;
  border: 1px solid #d8e7f1;
  border-radius: 7px;
  background: #fff;
  color: var(--ro-ink);
  text-align: left;
}
body.ortho-topic-reader .hotspot-row span {
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--dot, var(--ro-blue));
}
body.ortho-topic-reader .hotspot-row strong,
body.ortho-topic-reader .hotspot-row small {
  grid-column: 2;
}
body.ortho-topic-reader .hotspot-row small {
  display: block;
  margin-top: 4px;
  color: #526984;
  font-size: 12px;
  line-height: 1.35;
}
body.ortho-topic-reader .hotspot-row.is-active {
  border-color: var(--ro-blue);
  background: #eef8ff;
}
body.ortho-topic-reader .active-pearl,
body.ortho-topic-reader .active-takeaway {
  padding: 10px;
  border: 1px solid #cfe3f2;
  border-radius: 7px;
  background: #fff;
  color: #27425f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}
body.ortho-topic-reader .commit-reveal {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  background: #fbfdff;
}
body.ortho-topic-reader .commit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.ortho-topic-reader .commit-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  background: #fff;
  color: var(--ro-ink);
  text-align: left;
}
body.ortho-topic-reader .commit-option span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf6fd;
  color: var(--ro-blue);
  font-weight: 900;
}
body.ortho-topic-reader .commit-option.is-selected {
  border-color: var(--ro-blue);
  box-shadow: 0 0 0 3px rgba(18, 136, 201, .11);
}
body.ortho-topic-reader .commit-option.is-correct {
  border-color: #65b985;
  background: #f1fbf4;
}
body.ortho-topic-reader .commit-option.is-wrong {
  border-color: #d97373;
  background: #fff5f5;
}
body.ortho-topic-reader .commit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.ortho-topic-reader .commit-feedback {
  padding: 12px;
  border: 1px solid #cce9d6;
  border-radius: 8px;
  background: #f3fbf5;
  color: #20513a;
}
body.ortho-topic-reader .reader-two-column,
body.ortho-topic-reader .case-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
body.ortho-topic-reader .case-vignette {
  padding: 14px;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  background: #fff;
}
body.ortho-topic-reader .case-board-image {
  overflow: hidden;
  margin: 0;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  background: #07111d;
}
body.ortho-topic-reader .case-board-image img {
  display: block;
  width: 100%;
  min-height: 300px;
  object-fit: contain;
}
body.ortho-topic-reader .case-board-image figcaption {
  padding: 9px 12px;
  background: #10253b;
  color: #d9eaf7;
  font-size: 12px;
  font-weight: 800;
}
body.ortho-topic-reader .decision-card {
  border-color: #cde6d7;
  background: #f5fbf6;
}
body.ortho-topic-reader .decision-card.selected {
  border-color: #b7d8ee;
  background: #f5fbff;
}
body.ortho-topic-reader .attending-active-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  background: #fbfdff;
}
body.ortho-topic-reader .attending-active-prompt textarea {
  min-height: 72px;
  resize: vertical;
  border: 1px solid #c8dce9;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
}
body.ortho-topic-reader .prompt-answer {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 8px;
  background: #f1f8ff;
  color: #27425f;
  font-size: 14px;
  line-height: 1.5;
}
body.ortho-topic-reader .subtle-source {
  background: #fbfdff;
}
body.ortho-topic-reader .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
body.ortho-topic-reader .lesson-layout {
  align-items: start;
}
body.ortho-topic-reader .lesson-rail {
  gap: 14px;
}
body.ortho-topic-reader .lesson-rail > .panel:nth-of-type(3) {
  display: block;
}
body.ortho-topic-reader .progress-panel .status-card {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
body.ortho-topic-reader .next-step-card {
  display: grid;
  gap: 14px;
}
body.ortho-topic-reader .next-step-card span {
  display: inline-flex;
  color: #946300;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.ortho-topic-reader .next-step-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ro-ink);
  font-size: 18px;
  line-height: 1.25;
}
body.ortho-topic-reader .next-step-card p {
  margin: 6px 0 0;
  color: #526984 !important;
  font-size: 13px;
  line-height: 1.45;
}
body.ortho-topic-reader .next-step-card a {
  display: flex;
  justify-content: center;
  min-height: 40px;
  align-items: center;
  border-radius: 7px;
  background: var(--ro-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
body.ortho-topic-reader .quick-tool-list {
  display: grid;
  gap: 8px;
}
body.ortho-topic-reader .quick-tool-list a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 40px;
  color: var(--ro-ink) !important;
  font-size: 13px;
  text-decoration: none;
}
body.ortho-topic-reader .quick-tool-list a:hover strong {
  color: var(--ro-blue);
}
body.ortho-topic-reader .quick-tool-list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eaf6fd;
  color: var(--ro-blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .03em;
}
body.ortho-topic-reader .source-reference-stack {
  display: grid;
  gap: 10px;
}
body.ortho-topic-reader .source-reference-stack .chips {
  gap: 6px;
}
body.ortho-topic-reader .source-reference-stack .chip {
  font-size: 11px;
  line-height: 1.2;
}
body.ortho-topic-reader .clinical-workflow {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 15px;
  border: 1px solid #b9d7eb;
  border-radius: 8px;
  background: #f8fbfe;
}
body.ortho-topic-reader .clinical-workflow-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}
body.ortho-topic-reader .clinical-workflow-head strong {
  color: var(--ro-ink);
  font-size: 18px;
  line-height: 1.2;
}
body.ortho-topic-reader .clinical-workflow-head span {
  max-width: 48ch;
  color: #526984;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
body.ortho-topic-reader .clinical-workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
body.ortho-topic-reader .clinical-workflow-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d3e3ee;
  border-radius: 8px;
  background: #fff;
}
body.ortho-topic-reader .clinical-workflow-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8f7f0;
  color: var(--ro-green);
  font-size: 11px;
  font-weight: 900;
}
body.ortho-topic-reader .clinical-workflow-step b {
  color: var(--ro-ink);
  font-size: 13px;
  line-height: 1.2;
}
body.ortho-topic-reader .clinical-workflow-step p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #36526e !important;
  font-size: 13px;
  line-height: 1.42;
}
body.ortho-topic-reader .section {
  scroll-margin-top: 92px;
}
body.ortho-topic-reader .section h2 {
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.25;
}
body.ortho-topic-reader .section h3 {
  font-size: 20px;
  line-height: 1.32;
}
body.ortho-topic-reader .section p,
body.ortho-topic-reader .section li {
  max-width: 78ch;
  font-size: 18px;
  line-height: 1.72;
}
body.ortho-topic-reader .source-card p,
body.ortho-topic-reader .muted,
body.ortho-topic-reader .source-line {
  font-size: 15px;
  line-height: 1.55;
}
body.ortho-topic-reader .clinical-list {
  display: grid;
  gap: 10px;
  padding-left: 1.25rem;
}
body.ortho-topic-reader .clinical-list > li {
  max-width: 88ch;
}
body.ortho-topic-reader .clinical-list > li > strong {
  display: block;
  margin-bottom: 4px;
}
body.ortho-topic-reader .clinical-list ul {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding-left: 1.15rem;
}
body.ortho-topic-reader .visual-anchor {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #c5dbea;
  border-radius: 8px;
  background: #f8fbfe;
}
body.ortho-topic-reader .linked-concepts {
  display: grid;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 14px;
  border: 1px solid #b9d7eb;
  border-radius: 8px;
  background: #f5fbff;
}
body.ortho-topic-reader .linked-concepts-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
}
body.ortho-topic-reader .linked-concepts-head strong {
  color: var(--ro-ink);
  font-size: 18px;
  line-height: 1.2;
}
body.ortho-topic-reader .linked-concepts-head span {
  max-width: 68ch;
  color: #42617d;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}
body.ortho-topic-reader .linked-concept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
body.ortho-topic-reader .linked-concept {
  display: grid;
  grid-template-rows: auto 118px auto;
  gap: 7px;
  min-height: 184px;
  padding: 10px;
  border: 1px solid #c9ddec;
  border-radius: 8px;
  background: #fff;
  color: #0d5f83;
  text-decoration: none;
}
body.ortho-topic-reader .linked-concept:hover {
  border-color: var(--ro-blue);
  box-shadow: 0 8px 18px rgba(24, 95, 140, .12);
}
body.ortho-topic-reader .linked-concept span {
  color: var(--ro-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.22;
}
body.ortho-topic-reader .linked-concept img {
  width: 100%;
  height: 118px;
  object-fit: contain;
  border: 1px solid #e0ebf3;
  border-radius: 6px;
  background: #fff;
}
body.ortho-topic-reader .linked-concept small {
  color: #4a6680;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
body.ortho-topic-reader .linked-concepts-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--ro-blue);
  border-radius: 0 8px 8px 0;
  background: #eef8fd;
}
body.ortho-topic-reader .concept-anchor-line {
  margin: -2px 0 16px;
  padding: 9px 11px;
  border: 1px solid #d3e3ee;
  border-radius: 8px;
  background: #fff;
  color: #526984 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
body.ortho-topic-reader .concept-anchor-line strong {
  color: var(--ro-ink) !important;
}
body.ortho-topic-reader .visual-anchor-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #d8e6f1;
  padding-bottom: 10px;
}
body.ortho-topic-reader .visual-anchor-head strong {
  color: var(--ro-ink);
  font-size: 18px;
  line-height: 1.2;
}
body.ortho-topic-reader .visual-anchor-head span {
  max-width: 72ch;
  color: #42617d;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}
body.ortho-topic-reader .image-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: 14px;
}
body.ortho-topic-reader .image-card {
  background: #fff !important;
  border-color: #bccfe0 !important;
  box-shadow: 0 10px 24px rgba(25, 55, 90, .08);
}
body.ortho-topic-reader .image-card.is-primary {
  grid-row: span 2;
}
body.ortho-topic-reader .image-card img {
  height: auto;
  min-height: 0;
  max-height: 360px;
  background: #fff;
  border: 1px solid #dde8f1;
}
body.ortho-topic-reader .image-card.is-primary img {
  max-height: min(56vh, 540px);
  min-height: 0;
}
body.ortho-topic-reader .image-card figcaption {
  color: #2a4360 !important;
  font-size: 14px;
  line-height: 1.5;
}
body.ortho-topic-reader .image-card figcaption strong {
  margin: 3px 0 4px;
  font-size: 15px;
}
body.ortho-topic-reader .check {
  border-color: #b9d0e2 !important;
  box-shadow: 0 8px 20px rgba(31, 66, 101, .06);
}
body.ortho-topic-reader .check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.ortho-topic-reader .check-domain {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #b9d7eb;
  border-radius: 999px;
  background: #eef8fd;
  color: var(--ro-blue);
}
body.ortho-topic-reader .check-figure {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #d5e4ef;
  border-radius: 8px;
  background: #fff;
}
body.ortho-topic-reader .check-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f8fbfe;
}
body.ortho-topic-reader .check-figure figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
body.ortho-topic-reader .check-answer {
  margin-top: 5px;
  color: #243f5f;
  line-height: 1.55;
}
body.ortho-topic-reader .check-why {
  margin-top: 8px;
  padding: 9px 11px;
  border-left: 3px solid var(--ro-teal);
  border-radius: 0 7px 7px 0;
  background: #eef8fd;
  color: #27425f;
  line-height: 1.45;
}
body.ortho-topic-reader .visual-source {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 4px;
  padding: 2px 7px;
  border: 1px solid #b9d7eb;
  border-radius: 999px;
  background: #eef8fd;
  color: var(--ro-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.ortho-topic-reader .concept-term {
  position: relative;
  display: inline;
  border-bottom: 1px dotted rgba(13, 127, 169, .72);
  color: #0a668b;
  font-weight: 800;
  line-height: inherit;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}
body.ortho-topic-reader .concept-term::after {
  content: none;
}
body.ortho-topic-reader .concept-term:focus {
  border-bottom-style: solid;
  color: #08334b;
}
body.ortho-topic-reader .concept-popover {
  position: absolute;
  z-index: 80;
  bottom: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  width: min(430px, calc(100vw - 36px));
  gap: 11px;
  padding: 11px;
  border: 1px solid #b8d1e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(13, 42, 72, .22);
  color: #1f344d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  visibility: hidden;
  white-space: normal;
}
body.ortho-topic-reader .concept-popover::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: calc(50% - 8px);
  width: 14px;
  height: 14px;
  border-right: 1px solid #b8d1e4;
  border-bottom: 1px solid #b8d1e4;
  background: #fff;
  transform: rotate(45deg);
}
body.ortho-topic-reader .concept-term.is-open .concept-popover {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
body.ortho-topic-reader .concept-popover.align-left {
  left: 0;
  transform: translate(0, 6px);
}
body.ortho-topic-reader .concept-popover.align-right {
  right: 0;
  left: auto;
  transform: translate(0, 6px);
}
body.ortho-topic-reader .concept-popover.align-left::after {
  left: 18px;
}
body.ortho-topic-reader .concept-popover.align-right::after {
  right: 18px;
  left: auto;
}
body.ortho-topic-reader .concept-term.is-open .concept-popover.align-left,
body.ortho-topic-reader .concept-term.is-open .concept-popover.align-right {
  transform: translate(0, 0);
}
body.ortho-topic-reader .concept-popover-media {
  display: block;
  overflow: hidden;
  border: 1px solid #d8e6f1;
  border-radius: 6px;
  background: #f8fbfe;
}
body.ortho-topic-reader .concept-popover-media img {
  display: block;
  width: 100%;
  height: 94px;
  object-fit: contain;
  background: #fff;
}
body.ortho-topic-reader .concept-popover-body {
  display: grid;
  gap: 5px;
}
body.ortho-topic-reader .concept-popover-body .visual-source {
  justify-self: start;
  margin-bottom: 0;
}
body.ortho-topic-reader .concept-popover-body strong {
  color: var(--ro-ink);
  font-size: 15px;
  line-height: 1.25;
}
body.ortho-topic-reader .concept-popover-body span:last-child {
  color: #36526e;
  font-size: 13px;
  font-weight: 650;
}
body.ortho-topic-reader .presentation-lab {
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1fr);
}
body.ortho-topic-reader .presentation-film {
  background: #fff !important;
}
body.ortho-topic-reader .presentation-film img {
  max-height: 520px;
  background: #f8fbfe;
}
body.ortho-topic-reader .option span {
  font-size: 16px;
  line-height: 1.48;
}

@media (max-width: 900px) {
  body.ortho-topic-reader .layout,
  body.ortho-topic-reader .presentation-lab,
  body.ortho-topic-reader .image-grid,
  body.ortho-topic-reader .annotated-layout,
  body.ortho-topic-reader .reader-two-column,
  body.ortho-topic-reader .case-board,
  body.ortho-topic-reader .attending-active-prompt {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .commit-options {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .active-visual-head {
    display: grid;
  }
  body.ortho-topic-reader .active-visual-actions {
    justify-content: start;
  }
  body.ortho-topic-reader .lesson-objective-list,
  body.ortho-topic-reader .clinical-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ortho-topic-reader .reader-outline.lesson-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.ortho-topic-reader .visual-anchor-head {
    display: grid;
    align-items: start;
  }
  body.ortho-topic-reader .linked-concepts-head {
    display: grid;
    align-items: start;
  }
  body.ortho-topic-reader .visual-anchor-head span {
    text-align: left;
  }
  body.ortho-topic-reader .linked-concepts-head span {
    text-align: left;
  }
  body.ortho-topic-reader .rotation-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ortho-topic-reader .linked-concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ortho-topic-reader .image-card.is-primary { grid-row: auto; }
}

@media (max-width: 620px) {
  body.ortho-topic-reader .reader-outline {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.ortho-topic-reader .hero.lesson-hero h1 {
    font-size: 32px;
  }
  body.ortho-topic-reader .lesson-objective-section {
    padding: 14px 16px;
  }
  body.ortho-topic-reader .lesson-objective-section h2 {
    margin-bottom: 8px;
    font-size: 10px;
  }
  body.ortho-topic-reader .lesson-objective {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .lesson-objective strong {
    font-size: 14px;
  }
  body.ortho-topic-reader .lesson-objective-mark {
    display: none;
  }
  body.ortho-topic-reader .lesson-objective-list,
  body.ortho-topic-reader .clinical-workflow-grid {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .lesson-objective-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin-top: 9px;
  }
  body.ortho-topic-reader .lesson-objective-list span {
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 6px;
    border-right: 0;
    padding-right: 0;
    font-size: 11.5px;
    line-height: 1.28;
  }
  body.ortho-topic-reader .lesson-objective-list span::before {
    width: 13px;
    height: 13px;
    border-width: 2px;
    box-shadow: inset 0 0 0 3px #fff;
  }
  body.ortho-topic-reader .reader-outline.lesson-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px;
    scroll-snap-type: x proximity;
  }
  body.ortho-topic-reader .reader-outline.lesson-tabs a {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 38px;
    scroll-snap-align: start;
  }
  body.ortho-topic-reader .clinical-workflow-head {
    display: grid;
  }
  body.ortho-topic-reader .clinical-workflow-head span {
    text-align: left;
  }
  body.ortho-topic-reader .reader-outline a {
    justify-content: center;
    text-align: center;
  }
  body.ortho-topic-reader .rotation-brief {
    padding: 14px;
  }
  body.ortho-topic-reader .rotation-brief-grid {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .linked-concept-grid {
    grid-template-columns: 1fr;
  }
  body.ortho-topic-reader .rotation-brief-card {
    min-height: 0;
  }
  body.ortho-topic-reader .clinical-chain-row,
  body.ortho-topic-reader .reader-note {
    grid-template-columns: 1fr;
    display: grid;
  }
  body.ortho-topic-reader .section p,
  body.ortho-topic-reader .section li {
    font-size: 16px;
  }
  body.ortho-topic-reader .image-card img,
  body.ortho-topic-reader .image-card.is-primary img,
  body.ortho-topic-reader .annotated-image,
  body.ortho-topic-reader .annotated-image img,
  body.ortho-topic-reader .case-board-image img {
    height: auto;
    min-height: 0;
    max-height: 70vh;
  }
  body.ortho-topic-reader .hotspot-marker {
    width: 26px;
    height: 26px;
  }
  body.ortho-topic-reader .hotspot-marker em {
    max-width: min(220px, 72vw);
    min-width: 0;
    white-space: normal;
  }
  body.ortho-topic-reader .commit-option {
    min-height: 52px;
  }
  body.ortho-topic-reader .attending-active-prompt {
    align-items: stretch;
  }
  body.ortho-topic-reader .concept-popover {
    position: fixed;
    top: 84px;
    right: 14px;
    bottom: auto;
    left: 14px;
    grid-template-columns: 1fr;
    width: auto;
    max-height: calc(100vh - 112px);
    overflow: auto;
    transform: translateY(6px);
  }
  body.ortho-topic-reader .concept-popover.align-left,
  body.ortho-topic-reader .concept-popover.align-right {
    right: 14px;
    left: 14px;
    transform: translateY(6px);
  }
  body.ortho-topic-reader .concept-popover::after {
    display: none;
  }
  body.ortho-topic-reader .concept-term.is-open .concept-popover,
  body.ortho-topic-reader .concept-term.is-open .concept-popover.align-left,
  body.ortho-topic-reader .concept-term.is-open .concept-popover.align-right {
    transform: translateY(0);
  }
}
body.ro-course-home .ro-loading-line,
body.ro-course-home .ro-error-line { padding: 15px 0; color: var(--ro-muted); font-size: 12px; }
body.ro-course-home .ro-error-line { color: #b4232e; }
@media (max-width: 960px) {
  body.ro-course-home .ro-home-grid { grid-template-columns: 1fr; }
  body.ro-course-home .ro-home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ro-course-home .ro-home-rail .ro-home-surface:first-child { grid-column: span 2; }
  body.ro-course-home .ro-week-progress-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ro-course-home .ro-week-progress-summary .ro-button { grid-column: span 2; }
  body.ro-course-home .ro-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ro-course-home .ro-cockpit-row { grid-template-columns: 86px minmax(0, 1fr); }
  body.ro-course-home .ro-cockpit-actions { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.ro-course-home .ro-quick-event-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.ro-topic .ro-stage-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; max-width: 900px; margin: -7px 0 20px; }
body.ro-topic .ro-stage-nav a { display: grid; place-items: center; min-height: 38px; border-radius: 8px; background: #eaf2f8; color: var(--ro-muted); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-decoration: none; }
body.ro-topic .ro-stage-nav a:hover,
body.ro-topic .ro-stage-nav a.is-complete { background: #e7f7f0; color: var(--ro-green); }
body.ro-topic .callout.warning { border-left-color: #d48718; background: #fff6e9; }
@media (max-width: 650px) {
  body.ro-topic .ro-stage-nav { grid-template-columns: repeat(3, 1fr); }
}

/* Conference and Journal Lab */
body.ro-journal .ro-journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
body.ro-journal .ro-journal-maincol,
body.ro-journal .ro-journal-rail { display: grid; gap: 18px; }
body.ro-journal .ro-journal-responsibility,
body.ro-journal .ro-journal-rail-card,
body.ro-journal .ro-extract-section,
body.ro-journal .ro-current-paper,
body.ro-journal .ro-concepts-section,
body.ro-journal .ro-future-section { padding: 20px 24px; border: 1px solid var(--ro-border); border-radius: 10px; background: #fff; box-shadow: 0 8px 20px rgba(31, 66, 101, .08); }
body.ro-journal .ro-journal-kicker { color: var(--ro-blue); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
body.ro-journal .ro-journal-responsibility h2 { margin: 7px 0 16px; font-size: 23px; }
body.ro-journal .ro-journal-responsibility-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
body.ro-journal .ro-journal-responsibility-grid > div { min-height: 60px; padding: 10px 12px; border: 1px solid var(--ro-border); border-radius: 8px; }
body.ro-journal .ro-journal-responsibility-grid small,
body.ro-journal .ro-journal-responsibility-grid span { display: block; color: var(--ro-muted); font-size: 10px; }
body.ro-journal .ro-journal-responsibility-grid strong { display: block; margin-top: 5px; font-size: 13px; line-height: 1.25; }
body.ro-journal .ro-journal-section-title { margin: 7px 0 15px; font-size: 20px; }
body.ro-journal .ro-extract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 32px; }
body.ro-journal .ro-extract-grid > div { position: relative; padding-left: 17px; }
body.ro-journal .ro-extract-grid > div:before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ro-blue); }
body.ro-journal .ro-extract-grid strong,
body.ro-journal .ro-extract-grid small { display: block; }
body.ro-journal .ro-extract-grid strong { font-size: 13px; }
body.ro-journal .ro-extract-grid small { margin-top: 3px; color: var(--ro-muted); font-size: 10px; }
body.ro-journal .ro-section-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
body.ro-journal .filters { margin: 0; justify-content: flex-end; }
body.ro-journal .filter { border-color: var(--ro-border); background: #fff; color: var(--ro-muted); }
body.ro-journal .filter.on { border-color: var(--ro-blue); background: #eaf6fd; color: var(--ro-blue); }
body.ro-journal #articles .article-grid { display: block; }
body.ro-journal #articles .article { box-shadow: none; }
body.ro-journal #articles .article-head { padding: 15px 17px; background: #f8fbfd; border-bottom-color: #e1ebf2; }
body.ro-journal #articles .article-body { padding: 15px 17px; }
body.ro-journal .ro-journal-rail { position: sticky; top: 82px; }
body.ro-journal .ro-journal-rail-card h2 { margin: 7px 0 3px; font-size: 20px; }
body.ro-journal .ro-readiness-value { margin-top: 12px; font-size: 37px; font-weight: 850; line-height: 1; }
body.ro-journal .ro-readiness-bar { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #dbe7f0; }
body.ro-journal .ro-readiness-bar b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ro-blue); }
body.ro-journal #readiness-detail { margin: 11px 0 0; color: var(--ro-muted); font-size: 10px; line-height: 1.45; }
body.ro-journal .ro-journal-upcoming .schedule-row { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid #e0eaf2; border-radius: 0; background: transparent; }
body.ro-journal .ro-journal-upcoming .schedule-row:last-child { border-bottom: 0; }
body.ro-journal .ro-journal-upcoming .time { color: var(--ro-ink); font-size: 11px; }
body.ro-journal .ro-journal-upcoming .schedule-row strong { font-size: 12px; }
body.ro-journal .ro-journal-upcoming .goal { grid-column: 2; font-size: 10px; }
body.ro-journal .ro-journal-tools { display: grid; gap: 8px; margin-top: 12px; }
body.ro-journal .ro-journal-tools a { padding: 10px 12px; border: 1px solid var(--ro-border); border-radius: 8px; color: var(--ro-ink); font-size: 12px; font-weight: 850; text-align: center; text-decoration: none; }
body.ro-journal .ro-journal-tools a:hover { border-color: var(--ro-blue); color: var(--ro-blue); }
body.ro-journal .ro-journal-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
body.ro-journal .ro-journal-stats .stat { padding: 10px 11px; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(31, 66, 101, .06); }
body.ro-journal .ro-journal-stats .stat-value { color: var(--ro-ink); font-size: 19px; }
body.ro-journal .ro-journal-stats .stat-label { color: var(--ro-muted); font-size: 9px; }
body.ro-journal .ro-concepts-section .topic-list { display: grid; gap: 7px; }
body.ro-journal .ro-concepts-section .topic { border-color: var(--ro-border); box-shadow: none; }
body.ro-journal .ro-concepts-section .topic summary { justify-content: flex-start; text-align: left; }
body.ro-journal .ro-concepts-section .topic-title { color: var(--ro-ink) !important; font-size: 12px; }
body.ro-journal .ro-concepts-section .topic-goal { color: var(--ro-muted) !important; margin-left: auto; font-size: 10px; }
body.ro-journal .ro-future-section { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
body.ro-journal .ro-future-section p { margin: 4px 0 0; font-size: 11px; }
body.ro-journal .ro-future-section summary { cursor: pointer; min-width: 120px; padding: 9px 12px; border: 1px solid var(--ro-border); border-radius: 8px; color: var(--ro-ink); font-size: 11px; font-weight: 850; text-align: center; }
body.ro-journal .ro-future-section details[open] { grid-column: 1 / -1; }
@media (max-width: 1000px) { body.ro-journal .ro-journal-layout { grid-template-columns: 1fr; } body.ro-journal .ro-journal-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } body.ro-journal .ro-journal-rail-card:first-child { grid-column: span 2; } body.ro-journal .ro-journal-stats { grid-column: span 2; } }
@media (max-width: 650px) { body.ro-journal .ro-journal-responsibility-grid { grid-template-columns: 1fr; } body.ro-journal .ro-journal-responsibility-grid .link-btn { width: 100%; } body.ro-journal .ro-extract-grid, body.ro-journal .ro-journal-rail { grid-template-columns: 1fr; } body.ro-journal .ro-journal-rail-card:first-child, body.ro-journal .ro-journal-stats { grid-column: auto; } body.ro-journal .ro-section-head, body.ro-journal .ro-future-section { display: block; } body.ro-journal .filters { justify-content: flex-start; margin-top: 12px; } body.ro-journal .ro-future-section details { margin-top: 12px; } }
@media (max-width: 650px) {
  body.ro-course-home .ro-home-main { padding: 22px 13px 84px; }
  body.ro-course-home .ro-home-main > h1 { font-size: 29px; }
  body.ro-course-home .ro-next-action { display: block; padding: 18px; }
  body.ro-course-home .ro-priority-pill { display: inline-block; margin-top: 14px; }
  body.ro-course-home .ro-home-surface { padding: 17px; }
  body.ro-course-home .ro-home-rail { grid-template-columns: 1fr; }
  body.ro-course-home .ro-home-rail .ro-home-surface:first-child { grid-column: auto; }
  body.ro-course-home .ro-week-progress-summary,
  body.ro-course-home .ro-readiness-grid { grid-template-columns: 1fr; }
  body.ro-course-home .ro-week-progress-summary .ro-button { grid-column: auto; }
  body.ro-course-home .ro-week-strip { grid-template-columns: repeat(2, 1fr); }
  body.ro-course-home .ro-day-cockpit-head { display: block; }
  body.ro-course-home .ro-day-cockpit-head .ro-button { margin-top: 12px; }
  body.ro-course-home .ro-cockpit-row { grid-template-columns: 1fr; }
  body.ro-course-home .ro-cockpit-actions,
  body.ro-course-home .ro-quick-event-form { grid-template-columns: 1fr; }
  body.ro-course-home .ro-responsibility,
  body.ro-course-home .ro-calendar-head { display: block; }
  body.ro-course-home .ro-responsibility .ro-button,
  body.ro-course-home .ro-calendar-head .ro-button { margin-top: 12px; }
}
