/* Interfaz común: superficies sobrias y una paleta cálida en ambos temas. */
:root {
  --wine: #a35434;
  --gold: #c78c58;
  --ink: #2d2723;
  --muted: #71665f;
  --line: #e4d8cc;
  --green: #267653;
  --red: #ac5145;
  --cream: #f3e6d8;
  --page: #f8f5f0;
  --surface: #fffdfa;
  --surface-soft: #f5eee6;
  --surface-deep: #3d302b;
  --on-deep: #fff7ee;
  --header: rgb(248 245 240 / 94%);
  --gold-soft: #faead7;
  --focus: #a35434;
  --shadow: rgb(57 36 24 / 7%);
  --progress-color: #b97542;
}
:root[data-theme=dark] {
  --wine: #e8a16f;
  --gold: #d8a777;
  --ink: #f3ebe4;
  --muted: #b9aca2;
  --line: #4a4039;
  --green: #8bd7a5;
  --red: #f0a096;
  --cream: #3a2d25;
  --page: #191918;
  --surface: #242321;
  --surface-soft: #302c28;
  --surface-deep: #11110f;
  --on-deep: #f9eee2;
  --header: rgb(25 25 24 / 94%);
  --gold-soft: #403329;
  --focus: #e8a16f;
  --shadow: rgb(0 0 0 / 22%);
  --progress-color: #df9b68;
}

html { scroll-padding-top: calc(var(--header-height, 72px) + 22px); }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 11px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header);
  box-shadow: 0 4px 18px var(--shadow);
  backdrop-filter: blur(18px);
}
body > header .brand { order: 0; flex: 0 0 auto; min-width: 0; }
body > header .mark { width: 39px; height: 39px; border-radius: 11px; background: var(--wine); color: #fff7ec; font-size: 15px; }
body > header .brand small { max-width: none; font-size: 12px; }
body > header #newExam { order: 2; margin-left: 3px; white-space: nowrap; }
body > header #newExam[hidden] { display: none; }
.desktop-mode-tabs { order: 1; display: flex; align-items: center; gap: 3px; margin-left: auto; }
.desktop-mode-tabs button {
  min-height: 39px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.desktop-mode-tabs button:hover,
.desktop-mode-tabs button[aria-current="page"] { background: var(--surface-soft); color: var(--ink); }
.desktop-mode-tabs button[aria-current="page"] { box-shadow: inset 0 -2px var(--wine); }
.mobile-menu-button {
  order: -1;
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 10px;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
}
.mobile-menu-button span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
.mode-tabs {
  position: fixed;
  z-index: 130;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: min(340px, calc(100vw - 28px));
  height: 100dvh;
  margin: 0;
  padding: 20px 17px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 20px 0 50px var(--shadow);
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, visibility .22s ease;
}
.mode-tabs.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mode-tabs .mobile-menu-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 13px; padding: 0 2px 16px; border-bottom: 1px solid var(--line); }
.mode-tabs .mobile-menu-title strong { font-size: 19px; }
.mode-tabs .mobile-menu-title button { width: 38px; height: 38px; padding: 0; border-radius: 10px; background: var(--surface-soft); font-size: 24px; text-align: center; }
.mode-tabs > button { flex: 0 0 auto; min-height: 48px; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font-size: 15px; text-align: left; }
.mode-tabs > button[aria-current="page"] { background: var(--surface-soft); color: var(--wine); }
.mode-tabs > .mobile-settings-link { display: flex !important; align-items: center; gap: 12px; margin-top: 13px; padding-top: 16px !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; }
.mobile-settings-link [aria-hidden] { font-size: 20px; }
.mobile-menu-backdrop { position: fixed; z-index: 120; inset: 0; display: block; background: rgb(27 22 19 / 52%); border: 0; }
.mobile-menu-backdrop[hidden] { display: none; }
body.drawer-open { overflow: hidden; }

/* Los encabezados de contenido no heredan la barra fija superior. */
main header {
  position: static;
  top: auto;
  z-index: auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
main { width: 100%; max-width: 1280px; padding: 28px 26px 0; }
/* El selector #top de area.css limita el ancho: especificar el ID aquí. */
main#top { max-width: 1250px; margin-inline: auto; }
body.study-plan-active main#top { max-width: 1390px; }
.primary { background: var(--wine); color: #fff; }
:root[data-theme=dark] .primary { color: #211a16; }
.secondary { background: var(--surface); border-color: var(--line); }
.area-start { width: 100%; max-width: 680px; margin: 8px auto 50px; border-radius: 18px; box-shadow: 0 10px 30px var(--shadow); }
.area-start select, .area-start input, .syllabus-controls select, .syllabus-controls input[type="search"] { min-height: 46px; border-color: var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); }
.training-switcher { margin: 0 auto 24px; box-shadow: 0 4px 15px var(--shadow); }
.toolbar { top: var(--header-height, 72px); z-index: 20; }
.layout { grid-template-columns: 215px minmax(0, 1fr); gap: 25px; }
.layout > aside { top: calc(var(--header-height, 72px) + 22px); max-height: calc(100dvh - var(--header-height, 72px) - 40px); }
.question-card { max-width: 940px; margin-right: auto; border-radius: 16px; box-shadow: 0 5px 20px var(--shadow); }
#results { width: 100%; max-width: 1100px; margin-inline: auto; }
/* El botón de resultados comparte ID con la regla móvil antigua del encabezado. */
#results #newExam:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.result-copy { min-width: 0; max-width: 730px; }
.result-copy > * { overflow-wrap: anywhere; }
.result-new-practice { flex: 0 0 auto; min-height: 46px; white-space: nowrap; }
.question-card, .context, .case, .question-text, .answer-group, .choice, .choice.text-choice { min-width: 0; overflow-wrap: anywhere; }
.question-card img, .solution img, .scan { max-width: 100%; height: auto; }
.admission-table-wrap, .table-wrap { max-width: 100%; overflow-x: auto; }

/* Temario: una columna de lectura limitada y controles de escritorio en dos columnas. */
.syllabus-page {
  width: 100%;
  max-width: 1100px;
  margin: 4px auto 48px;
  padding: 0 24px 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.syllabus-heading, .syllabus-controls, .syllabus-status, .syllabus-layout { width: 100%; max-width: 890px; margin-right: auto; margin-left: auto; }
.syllabus-heading { margin-bottom: 22px; }
.syllabus-heading h1 { font-size: clamp(30px, 3.6vw, 42px); }
.syllabus-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px 18px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 5px 20px var(--shadow);
}
.syllabus-controls > label { min-width: 0; }
.syllabus-controls .selected-filter { grid-column: 1 / -1; margin: 0; }
.syllabus-status { display: flex; align-items: center; gap: 14px; margin-top: 18px; margin-bottom: 16px; }
.syllabus-courses { width: 100%; max-width: none; margin: 0; gap: 12px; }
.syllabus-course { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 17px var(--shadow); }
.syllabus-course-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 17px 19px; background: var(--surface); }
.syllabus-course-head h2 { margin: 0; color: var(--ink); font-size: 21px; }
.course-heading-copy { flex: 1 1 auto; min-width: 0; }
.course-heading-copy .eyebrow { color: var(--muted); }
.course-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bulk-plan-button, .bulk-plan-button.compact { border-color: var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--wine); }
.bulk-plan-button:hover, .bulk-plan-button.added, .bulk-plan-button.compact:hover, .bulk-plan-button.compact.added { border-color: var(--wine); background: var(--wine); color: #fff; }
:root[data-theme=dark] .bulk-plan-button:hover,
:root[data-theme=dark] .bulk-plan-button.added,
:root[data-theme=dark] .bulk-plan-button.compact:hover,
:root[data-theme=dark] .bulk-plan-button.compact.added { color: #211a16; }
.question-weight { min-width: 78px; padding: 7px 9px; background: var(--gold-soft); text-align: center; }
.syllabus-unit > summary { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 16px; background: var(--surface); }
.syllabus-unit > summary > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.syllabus-unit > summary small { flex: 0 0 auto; white-space: nowrap; }
.topic-list { background: var(--surface); }
.subtopic-row { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; min-height: 56px; padding: 10px 16px; font-size: 14px; }
.subtopic-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.subtopic-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.subtopic-actions .icon-action { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--wine); }
.subtopic-actions .icon-action:hover, .subtopic-actions .icon-action.added { border-color: var(--wine); background: var(--wine); color: #fff; }
:root[data-theme=dark] .subtopic-actions .icon-action:hover,
:root[data-theme=dark] .subtopic-actions .icon-action.added { color: #211a16; }

/* Plan: panel lateral compacto, lectura central y progreso sin solapamientos. */
body.study-plan-active main { max-width: 1390px; padding: 25px 28px 0; }
.syllabus-page.plan-active { width: 100%; max-width: none; margin: 0 auto 44px; padding: 0; }
.study-plan-view { width: 100%; max-width: none; margin: 0; }
.study-plan-top, .study-plan-shell { width: 100%; max-width: 1190px; margin-right: auto; margin-left: auto; }
.study-plan-top { position: static; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0; background: transparent; }
.study-plan-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); align-items: start; gap: 24px; }
.study-plan-drawer { position: sticky; top: calc(var(--header-height, 72px) + 18px); width: 100%; max-height: calc(100dvh - var(--header-height, 72px) - 34px); padding: 13px; overflow-x: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px var(--shadow); }
.study-plan-main { width: 100%; max-width: 890px; min-width: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 7px 23px var(--shadow); }
.study-plan-main > h2 { margin: 0 0 7px; color: var(--ink); font-size: clamp(27px, 3vw, 34px); }
.study-plan-main > p { max-width: 730px; }
.study-plan-selection { min-width: 0; gap: 18px; }
.study-plan-selection > .plan-course-group { min-width: 0; margin-bottom: 27px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.study-plan-selection .plan-topic-group { border-color: var(--line); background: var(--surface-soft); }
.plan-course-heading, .plan-topic-heading { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.plan-course-heading { margin: 0 0 15px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.plan-course-heading h3 { min-width: 0; margin: 0; font: 700 clamp(22px, 2.4vw, 28px)/1.25 Georgia, serif; overflow-wrap: anywhere; }
.plan-course-number { background: var(--wine); }
:root[data-theme=dark] .plan-course-number,
:root[data-theme=dark] .plan-nav-course-number { color: #211a16; }
.plan-topic-group { min-width: 0; margin-bottom: 17px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.plan-topic-heading { grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 13px; }
.plan-topic-heading h4 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.study-item-number { color: var(--wine); }
.progress-indicator { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-width: 26px; white-space: nowrap; }
.progress-indicator small { color: var(--muted); font-size: 12px; }
.progress-ring { width: 27px; height: 27px; background: conic-gradient(var(--progress-color) var(--progress, 0%), var(--line) 0); }
.progress-ring::after { width: 18px; height: 18px; background: var(--surface); }
.study-plan-drawer nav { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.study-plan-drawer nav > details { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.study-plan-drawer nav > details > summary { display: grid; grid-template-columns: 23px minmax(0, 1fr) 22px; align-items: center; gap: 7px; padding: 10px 8px; }
.plan-nav-course-number { width: 23px; height: 23px; margin: 0; background: var(--wine); }
.plan-nav-course-label, .plan-nav-theme strong, .plan-nav-topic-label { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 18px), transparent 100%); }
.plan-nav-unit { min-width: 0; padding: 6px; background: var(--surface); }
.plan-nav-theme { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 6px; min-width: 0; padding: 6px 3px; }
.plan-nav-theme strong { color: var(--muted); font-size: 12px; font-weight: 750; }
.plan-nav-unit a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 7px; min-width: 0; padding: 7px 4px; color: var(--ink); }
.plan-nav-topic-label { font-size: 12px; }
.plan-nav-unit a:hover { background: var(--surface-soft); color: var(--wine); }
.study-plan-drawer .progress-indicator { width: 20px; min-width: 20px; justify-content: center; }
.study-plan-drawer .progress-indicator small { display: none; }
.study-plan-drawer .progress-ring { width: 20px; height: 20px; }
.study-plan-drawer .progress-ring::after { width: 13px; height: 13px; }
.theory-lesson { scroll-margin-top: calc(var(--header-height, 72px) + 20px); }
.theory-lesson > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; min-width: 0; padding: 16px 18px; background: var(--surface); }
.theory-lesson > summary .lesson-title { min-width: 0; overflow-wrap: anywhere; }
.theory-lesson > summary h3 { margin: 3px 0 0; font: 700 21px/1.35 Georgia, serif; overflow-wrap: anywhere; }
.lesson-summary-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.lesson-toggle { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--wine); }
.lesson-toggle::before { content: '+'; font-size: 19px; line-height: 1; }
.theory-lesson[open] .lesson-toggle::before { content: '−'; }
.theory-lesson-body { min-width: 0; padding: 20px; }
.theory-summary > div { background: var(--surface-soft); }
.theory-options button { min-width: 0; }
.theory-options button:not(:disabled):hover { border-color: var(--wine); background: var(--surface-soft); }
.study-plan-drawer, .study-plan-main, .theory-lesson, .theory-options button, .theory-summary > div { border-color: var(--line); }

@media (max-width: 1050px) {
  body > header { padding: 10px 18px; }
  .desktop-mode-tabs { display: none; }
  body > header .brand { flex: 1 1 auto; }
  body > header #newExam { flex: 0 0 auto; margin-left: auto; }
  .study-plan-shell { display: block; max-width: 890px; }
  .study-plan-top { max-width: 890px; }
  .study-plan-drawer { position: fixed; z-index: 135; inset: 0 auto 0 0; width: min(680px, calc(100vw - 18px)); max-height: 100dvh; padding: 18px; border-radius: 0; transform: translateX(-105%); transition: transform .22s ease; }
  .study-plan-drawer.open { transform: translateX(0); }
  .study-plan-drawer nav > details > summary { grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 10px; padding: 12px 11px; }
  .study-plan-drawer .plan-nav-course-number { width: 32px; height: 32px; font-size: 12px; }
  .plan-nav-course-label, .plan-nav-theme strong, .plan-nav-topic-label { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: initial; mask-image: none; }
  .plan-nav-course-label { font-size: 16px; line-height: 1.4; }
  .plan-nav-theme { grid-template-columns: minmax(0, 1fr) 30px; gap: 10px; padding: 9px 7px 7px; }
  .plan-nav-theme strong { font-size: 15px; line-height: 1.4; }
  .plan-nav-unit a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 8px; }
  .plan-nav-topic-label { font-size: 15px; line-height: 1.45; }
  .study-plan-drawer .progress-indicator { width: auto; min-width: 30px; justify-content: flex-end; }
  .study-plan-drawer .progress-indicator small { display: inline; font-size: 12px; }
  .study-plan-drawer .progress-ring { width: 26px; height: 26px; }
  .study-plan-drawer .progress-ring::after { width: 17px; height: 17px; }
  .plan-drawer-head button { display: grid; }
  .plan-menu-button { display: inline-flex; }
  .plan-menu-backdrop { z-index: 125; }
  .study-plan-main { max-width: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > aside { position: static; max-height: none; }
}
@media (max-width: 720px) {
  body > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; min-height: 62px; padding: 9px 13px; }
  body > header::after { content: ''; width: 42px; height: 1px; }
  body > header .mobile-menu-button { grid-column: 1; width: 42px; height: 42px; }
  body > header .brand { grid-column: 2; justify-self: center; justify-content: center; min-width: 0; max-width: 100%; gap: 8px; overflow: hidden; }
  body > header .brand > span:last-child { min-width: 0; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
  body > header .brand small { display: block; max-width: 100%; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
  body > header .mark { flex: 0 0 35px; width: 35px; height: 35px; }
  body > header #newExam { display: none; }
  main { padding: 17px 14px 0; }
  .area-start { margin: 4px auto 30px; padding: 22px 17px; }
  .result-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .result-new-practice { width: 100%; white-space: normal; }
  .training-switcher { max-width: 100%; margin: 2px auto 18px; }
  .training-switcher button { min-width: 0; }
  .syllabus-page { max-width: none; margin: 0 auto 30px; padding: 0; }
  .syllabus-heading { margin-bottom: 17px; }
  .syllabus-heading h1 { font-size: 29px; }
  .syllabus-controls { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 15px; }
  .syllabus-controls .selected-filter { grid-column: auto; }
  .syllabus-status { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .syllabus-status > div { width: 100%; justify-content: flex-start; }
  .syllabus-course-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 12px; }
  .syllabus-course-head h2 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
  .course-heading-copy .eyebrow { font-size: 11px; }
  .course-head-actions { justify-content: flex-end; gap: 5px; }
  .bulk-plan-button { max-width: 86px; padding: 6px 7px; font-size: 11px; line-height: 1.2; white-space: normal; }
  .bulk-plan-button.compact { max-width: 65px; margin: 0; padding: 6px; font-size: 11px; }
  .course-toggle { flex: 0 0 27px; width: 27px; height: 27px; }
  .question-weight { display: none; }
  .syllabus-unit > summary { flex-wrap: wrap; gap: 6px; padding: 11px 12px; font-size: 14px; }
  .syllabus-unit > summary > span { flex-basis: 100%; font-size: 14px; }
  .syllabus-unit > summary small { margin: 0 auto 0 0; font-size: 12px; }
  .topic-list { padding: 0 7px 8px; }
  .subtopic-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 5px; font-size: 14px; }
  .subtopic-actions { gap: 5px; }
  .subtopic-actions .icon-action { flex: 0 0 34px; width: 34px; height: 34px; }
  body.study-plan-active main { padding: 18px 12px 0; }
  .study-plan-top { position: static; flex-wrap: wrap; gap: 8px; padding: 0; }
  .study-plan-main { padding: 18px 14px; border-radius: 14px; }
  .study-plan-main > h2 { font-size: 27px; }
  .plan-topic-group { padding: 11px; }
  .plan-topic-heading { gap: 8px; }
  .plan-topic-heading h4 { font-size: 15px; }
  .plan-course-heading { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; }
  .plan-course-heading h3 { font-size: 21px; }
  .plan-course-number { width: 32px; height: 32px; font-size: 12px; }
  .progress-indicator small { font-size: 11px; }
  .theory-lesson > summary { gap: 8px; padding: 13px 11px; }
  .theory-lesson > summary h3 { font-size: 17px; }
  .lesson-summary-tools { gap: 5px; }
  .lesson-summary-tools .progress-indicator small { display: none; }
  .theory-lesson-body { padding: 14px 11px; }
  .theory-options { grid-template-columns: minmax(0, 1fr); }
  .theory-summary > div { padding: 13px; }
  .layout > aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-card { padding: 17px 13px; }
  .toolbar { position: relative; top: auto; flex-wrap: wrap; }
  .toolbar progress { flex: 1 1 100%; }
  .review-controls, .admission-filters { min-width: 0; }
  .admission-table-wrap, .table-wrap { overflow-x: auto; }
}
@media (max-width: 390px) {
  body > header .brand small { display: none; }
  .syllabus-course-head { grid-template-columns: minmax(0, 1fr) auto; }
  .course-head-actions { flex-wrap: wrap; max-width: 95px; }
  .syllabus-unit > summary small { font-size: 11px; }
  .plan-course-heading > .progress-indicator small,
  .plan-topic-heading > .progress-indicator small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mode-tabs, .study-plan-drawer { transition: none; }
}
