/* Layout adapters: semantic components; no changes to study or grading logic. */
body[data-group-cabinet] {
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
}
body[data-group-cabinet] main {
  max-width: 1480px;
  margin: 32px auto 80px;
  padding: 0 var(--space-page);
}
body[data-group-cabinet] h1 {
  font: 400 clamp(27px, 3vw, 38px)/1.3 var(--font-display);
  letter-spacing: -0.025em;
}
body[data-group-cabinet] h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
body[data-group-cabinet] h3 {
  font-size: 17px;
}
body[data-group-cabinet] .eyebrow {
  text-transform: none;
  letter-spacing: 0.015em;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
body[data-group-cabinet] .card {
  border-radius: 8px;
  background: var(--surface);
  border-color: var(--line);
  padding: 24px;
  box-shadow: none;
}
body[data-group-cabinet] .card .card {
  border: 0;
  border-radius: 0;
  padding: 18px 0;
}
body[data-group-cabinet] .hero {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
}
body[data-group-cabinet] .hero .muted,
body[data-group-cabinet] .hero .eyebrow {
  color: var(--muted);
}
body[data-group-cabinet] .hero h2 {
  font-size: 27px;
}
body[data-group-cabinet] button,
body[data-group-cabinet] .button {
  border-radius: 6px;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}
body[data-group-cabinet] .quiet {
  background: var(--ice);
  color: #3454d1;
}
body[data-group-cabinet] .outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
body[data-group-cabinet] .danger {
  color: var(--bad);
  background: #af41480d;
}
body[data-group-cabinet] .small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}
body[data-group-cabinet] input,
body[data-group-cabinet] textarea,
body[data-group-cabinet] select {
  border-radius: 5px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
}
body[data-group-cabinet] label {
  font-size: 13px;
  color: var(--muted);
}
body[data-group-cabinet] .tabs {
  margin: 20px 0 32px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
  overflow-x: auto;
}
body[data-group-cabinet] .tabs a {
  padding: 8px 0 14px;
  white-space: nowrap;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
}
body[data-group-cabinet] .tabs a.active {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 -2px var(--blue);
}
.group-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
}
.group-context .actions {
  gap: 20px;
}
.group-context .button {
  min-height: 28px;
  font-size: 13px;
  padding: 4px 8px;
}
body[data-group-cabinet] .pill {
  font-size: 13px;
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--ice);
  color: #3454d1;
}
body[data-group-cabinet] .pill.live {
  background: #24775312;
  color: var(--good);
}
body[data-group-cabinet] .stack,
body[data-group-cabinet] .grid {
  gap: 24px;
}
body[data-group-cabinet] .progress {
  height: 5px;
  background: var(--line);
}
body[data-group-cabinet] .progress i {
  background: var(--blue);
}
body[data-group-cabinet] .empty {
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 24px;
}
body[data-group-cabinet] details {
  border-color: var(--line);
}
body[data-group-cabinet] summary {
  font-size: 14px;
}
body[data-group-cabinet] .notice,
body[data-group-cabinet] .pause-banner {
  border: 1px solid #ba9a5e55;
  border-radius: 6px;
  background: #ba9a5e12;
  color: var(--ink);
  font-size: 14px;
  padding: 15px 18px;
}
body[data-group-cabinet] .split {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}
body[data-group-cabinet] .split > aside {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 24px 0 0;
}
body[data-group-cabinet] .topic-link {
  padding: 12px;
  border-radius: 5px;
  color: var(--ink);
}
body[data-group-cabinet] .topic-link.active {
  background: var(--ice);
  color: #3454d1;
}
body[data-group-cabinet] .module {
  border-color: var(--line);
}
body[data-group-cabinet] .taskrow {
  border-color: var(--line);
  gap: 12px;
}
body[data-group-cabinet] .matrix {
  font-size: 14px;
}
body[data-group-cabinet] .matrix th {
  background: var(--bg);
  color: var(--ink);
  padding: 16px;
}
body[data-group-cabinet] .matrix td {
  padding: 10px;
  border-color: var(--line);
}
body[data-group-cabinet] .matrix .cell {
  background: #e9ebee;
  color: #626a76;
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 76px;
}
body[data-group-cabinet] .matrix .cell.correct {
  background: #dceee4;
  color: #216544;
  border-color: #c3ddce;
}
body[data-group-cabinet] .matrix .cell.wrong {
  background: #f6e1e1;
  color: #9d3941;
  border-color: #eccacc;
}
body[data-group-cabinet] .matrix .key {
  color: var(--good);
}
body[data-group-cabinet] .legend {
  font-size: 13px;
}
body[data-group-cabinet] .task-assets img {
  max-height: 320px;
  object-fit: contain;
}
body[data-group-cabinet] dialog {
  max-width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px #0003;
}
body[data-group-cabinet] dialog::backdrop {
  background: #10141c77;
  backdrop-filter: blur(3px);
}
body[data-group-cabinet] #hoverPreview {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px #171b2420;
}
/* Atlas overview: an arbitrary number of modules flows into equal columns. */
.academy-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 28px 0 48px;
}
.academy-welcome h1 {
  margin: 8px 0 0;
}
.academy-course-progress {
  min-width: 200px;
  font-size: 13px;
  color: var(--muted);
}
.academy-course-progress .academy-progress {
  margin-top: 12px;
}
.academy-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 48px;
}
.academy-atlas {
  min-width: 0;
}
.academy-atlas > h2 {
  margin: 0 0 20px;
}
.academy-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
}
.academy-module {
  min-width: 0;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.academy-module.current {
  border-color: var(--blue);
  border-bottom-width: 2px;
}
.academy-module-art {
  display: block;
  height: 170px;
}
.academy-module-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.academy-module.locked .academy-module-art {
  opacity: 0.45;
}
.academy-module h3 {
  margin: 16px 0 8px;
  line-height: 1.45;
}
.academy-module h3 a {
  color: var(--ink);
}
.academy-module small {
  font-size: 13px;
}
.academy-module .course-pins {
  min-height: 24px;
  margin-top: 14px;
}
.academy-next {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.academy-next h2 {
  margin-bottom: 10px;
}
.academy-next-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.academy-next-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}
.academy-next-row small {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.academy-continue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.academy-continue small {
  display: block;
  margin-bottom: 5px;
}
.academy-continue strong {
  font-size: 18px;
}
.academy-course-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
}
body[data-group-cabinet] .course-group-pin {
  color: #3454d1;
  background: #3454d110;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 7px;
  border-radius: 4px;
}
body[data-group-cabinet] .course-group-pin > span {
  transform: none;
  font-size: 14px;
}
body[data-group-cabinet] .course-person {
  font-size: 13px;
}
body[data-group-cabinet] .course-person b {
  width: 24px;
  height: 24px;
  border: 2px solid var(--surface);
  background: var(--pin);
  font-size: 13px;
}
/* Module: light paper map; no coins or toy scenery. */
body[data-group-cabinet] .course-location-head {
  background: transparent;
  padding: 0;
  border: 0;
  margin: 24px 0 32px;
}
body[data-group-cabinet] .level-land {
  border: 0;
  border-radius: 0;
  background: transparent;
  max-width: 100%;
}
body[data-group-cabinet] .level-trail path:first-child {
  stroke: var(--line);
  stroke-width: 3px;
}
body[data-group-cabinet] .level-trail path:last-child {
  stroke: var(--blue);
  stroke-width: 1px;
}
body[data-group-cabinet] .level-coin {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  font-size: 24px;
  transform: none;
}
body[data-group-cabinet] .level-coin .academy-icon {
  width: 25px;
  height: 25px;
}
body[data-group-cabinet] .level-stop.current .level-coin {
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 6px #3454d110;
}
body[data-group-cabinet] .level-stop.locked .level-coin {
  color: var(--muted);
  background: var(--bg);
  box-shadow: none;
}
body[data-group-cabinet] .level-stop.checkpoint .level-coin {
  color: var(--amber);
  background: var(--surface);
}
body[data-group-cabinet] .level-stop.complete .level-coin {
  color: var(--good);
  border-color: var(--good);
  background: var(--surface);
}
body[data-group-cabinet] .level-caption {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px 20px;
  color: var(--ink);
}
body[data-group-cabinet] .level-caption strong {
  font-size: 16px;
}
body[data-group-cabinet] .level-caption small {
  font-size: 13px;
}
/* Topic: persistent outline and a single, quiet reading pane. */
.academy-study {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  margin-top: 28px;
  align-items: start;
}
.academy-outline {
  position: sticky;
  top: 96px;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.academy-outline h2 {
  margin: 16px 0 14px;
  font-size: 20px !important;
}
.academy-outline .academy-progress {
  margin-bottom: 24px;
}
.academy-outline h3 {
  font-size: 13px !important;
  font-weight: 500;
  color: var(--muted);
  margin: 24px 0 10px;
}
.academy-outline a.stage-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  margin: 2px 0;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
}
.academy-outline a.stage-link.active {
  background: var(--ice);
  color: #3454d1;
}
.academy-outline details {
  border: 0;
  padding: 8px 0;
}
.academy-outline summary {
  font-size: 13px !important;
}
.academy-outline details a {
  font-size: 13px;
}
.academy-reading {
  min-width: 0;
  padding: 8px 0 32px;
  max-width: 900px;
}
.academy-reading > h2 {
  font: 400 30px/1.4 var(--font-display);
  margin: 14px 0 32px;
}
.academy-reading .interactive-material {
  width: 100%;
}
.academy-reading iframe {
  border-radius: 6px;
}
.academy-reading :is(.markdown, .theory-content) {
  font-size: 17px;
  line-height: 1.8;
  max-width: 760px;
}
.academy-reading :is(.markdown, .theory-content) h1 {
  font: 600 28px/1.4 var(--font-ui);
}
.academy-reading :is(.markdown, .theory-content) h2 {
  font: 600 23px/1.5 var(--font-ui);
}
.academy-reading :is(.markdown, .theory-content) h3 {
  font: 600 19px/1.5 var(--font-ui);
}
.academy-reading form {
  max-width: 700px;
}
.academy-reading .stage-next {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
body[data-group-cabinet] .practice-layout {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
}
body[data-group-cabinet] .practice-list {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
body[data-group-cabinet] .practice-list button {
  color: var(--ink);
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  border-radius: 4px;
}
body[data-group-cabinet] .practice-list button.active {
  background: var(--ice);
  color: #3454d1;
  border-left: 2px solid #3454d1;
}
body[data-group-cabinet] .answer-box {
  background: transparent;
  border-color: var(--line);
  border-radius: 0;
  padding: 20px 0;
}
/* Existing parallel cabinet: shared shell, spacing, restrained type, no behavior changes. */
.app-shell {
  max-width: none;
  padding: 0;
  background: var(--bg);
}
.app-shell > .page {
  margin: 32px auto;
  max-width: 1440px;
  padding-inline: var(--space-page);
}
.teacher-command-header {
  border-radius: 8px;
  min-height: 128px;
  padding: 24px 32px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}
.teacher-command-header::after,
.student-dashboard-hero::after {
  display: none;
}
.teacher-command-title h1 {
  color: var(--ink);
  font: 400 34px/1.3 var(--font-display);
}
.teacher-command-title .label,
.teacher-command-title > span {
  color: var(--muted);
}
.teacher-command-summary > div {
  border-color: var(--line);
  background: transparent;
  border-radius: 5px;
  min-height: 72px;
}
.teacher-command-summary b {
  color: var(--ink);
  font-size: 24px;
}
.teacher-command-summary span {
  color: var(--muted);
  font-weight: 500;
}
.teacher-command-sync span {
  color: var(--muted);
}
.student-dashboard-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}
.student-dashboard-intro {
  padding: 28px 0;
}
.student-dashboard-intro h1 {
  color: var(--ink);
  font: 400 clamp(30px, 3vw, 42px)/1.35 var(--font-display);
}
.student-dashboard-intro h1 span {
  color: var(--ink);
}
.student-dashboard-intro > p:not(.student-eyebrow) {
  color: var(--muted);
}
.student-page-heading h1 {
  font: 400 36px/1.35 var(--font-display);
  color: var(--ink);
}
.student-dashboard-layout {
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.student-dashboard-main,
.student-dashboard-aside {
  gap: 28px;
}
.student-dashboard-main > *,
.student-dashboard-aside > * {
  max-width: 100%;
}
.student-auth-screen,
.teacher-auth-screen {
  background: var(--bg);
}
.teacher-auth-panel {
  background: var(--surface);
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
@media (max-width: 1100px) {
  .academy-home {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
  }
  .academy-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .academy-study {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
  .student-dashboard-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body[data-group-cabinet] main {
    margin-top: 20px;
  }
  .academy-welcome {
    align-items: flex-start;
    margin: 24px 0 28px;
  }
  .academy-course-progress {
    min-width: 110px;
    max-width: 135px;
  }
  .academy-home,
  .academy-study,
  body[data-group-cabinet] .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .academy-next {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .academy-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .academy-module-art {
    height: 140px;
  }
  .academy-module h3 {
    font-size: 15px !important;
  }
  .academy-continue {
    align-items: flex-start;
    flex-direction: column;
  }
  .academy-outline {
    position: static;
    max-height: 280px;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .academy-outline h2 {
    margin-top: 0;
  }
  .academy-outline h3 {
    margin-top: 16px;
  }
  body[data-group-cabinet] .practice-layout {
    grid-template-columns: 1fr;
  }
  body[data-group-cabinet] .practice-list {
    display: flex;
    overflow: auto;
    border-right: 0;
    padding: 0 0 16px;
  }
  body[data-group-cabinet] .practice-list button {
    flex: 0 0 auto;
  }
  .group-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .group-context .actions {
    gap: 8px;
  }
  body[data-group-cabinet] .tabs {
    gap: 20px;
    margin-bottom: 24px;
  }
  body[data-group-cabinet] .head {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 420px) {
  .academy-modules {
    grid-template-columns: 1fr;
  }
  .academy-module-art {
    height: 185px;
  }
}
.academy-editor .module {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.academy-editor .module summary {
  font-size: 14px;
  font-weight: 500;
}
.academy-editor .module .row {
  margin: 16px 0 8px;
}
.academy-editor .topic-link small {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.academy-editor-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.academy-editor-row strong {
  font-size: 16px;
  font-weight: 500;
}
.academy-editor-row small {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}
.academy-order {
  font-size: 13px;
  color: var(--muted);
  min-width: 20px;
}
.academy-row-menu {
  position: relative;
  padding: 0 !important;
  border: 0 !important;
}
.academy-row-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  font-size: 20px !important;
}
.academy-row-menu[open] .actions {
  position: absolute;
  right: 0;
  z-index: 5;
  top: 100%;
  min-width: 180px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.academy-add-block {
  margin: 24px 0 36px;
  border: 0 !important;
}
.academy-add-block > summary {
  display: inline-block;
  background: #3454d1;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.academy-add-block .actions {
  margin-top: 16px;
}
.academy-editor-section {
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 22px 0 !important;
}
.academy-editor-section > summary {
  font-size: 17px !important;
  font-weight: 500;
}
.academy-editor-section > summary > span {
  float: right;
  color: var(--muted);
  font-size: 13px;
}
.academy-editor-section > section {
  padding-top: 24px;
}
.academy-topic-finish {
  margin: 32px 0;
}
.academy-homework-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.academy-homework-layout .stage-link strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.academy-homework-layout .stage-link small {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}
body[data-group-cabinet] .academy-homework-task {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
body[data-group-cabinet] .academy-homework-task > summary {
  font-size: 16px;
  font-weight: 500;
}
.academy-homework-task .task-assets {
  margin: 24px 0;
}
.academy-homework-task input {
  max-width: 350px;
}
.academy-reading .reader {
  font: 16px/1.8 var(--font-ui);
  color: var(--ink);
  max-width: 760px;
}
.academy-reading .reader h1 {
  font: 600 27px/1.4 var(--font-ui);
  margin: 32px 0 18px;
}
.academy-reading .reader h2 {
  font: 600 22px/1.4 var(--font-ui);
  margin: 32px 0 18px;
}
.academy-reading .reader h3 {
  font: 600 18px/1.5 var(--font-ui);
  margin: 24px 0 12px;
}
.academy-lesson .practice-layout {
  grid-template-columns: 150px minmax(0, 1fr) !important;
}
.academy-lesson .card {
  border: 0 !important;
  padding: 20px 0 !important;
  background: transparent !important;
}
.academy-exams-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
  gap: 40px;
  align-items: start;
}
.academy-exams-grid > .card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 32px 0 0 !important;
}
.academy-exams-grid .trial-chart {
  max-height: 300px;
}
body[data-group-cabinet][data-teacher-theme="dark"]
  :is(
    .hero,
    .card,
    .level-caption,
    input,
    textarea,
    select,
    dialog,
    #hoverPreview
  ) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
body[data-group-cabinet][data-teacher-theme="dark"]
  :is(.academy-outline .stage-link.active, .practice-list button.active) {
  color: #b9c6ff;
  background: #3454d125;
}
body[data-group-cabinet][data-teacher-theme="dark"] .academy-module-art img {
  opacity: 0.8;
}
body[data-group-cabinet][data-teacher-theme="dark"]
  .academy-module.locked
  .academy-module-art
  img {
  opacity: 0.3;
}
@media (max-width: 760px) {
  .academy-homework-layout,
  .academy-exams-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .academy-lesson .practice-layout {
    grid-template-columns: 1fr !important;
  }
  .academy-editor-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .academy-editor-row .grow {
    min-width: 120px;
  }
  body[data-group-cabinet] .level-land {
    box-shadow: none;
    overflow: visible;
  }
  body[data-group-cabinet] .level-stop {
    left: 12% !important;
    width: 64px;
  }
  body[data-group-cabinet] .level-caption,
  body[data-group-cabinet] .level-stop:nth-of-type(2n) .level-caption {
    left: 80px;
    right: auto;
    width: min(230px, calc(100vw - 150px));
  }
  body[data-group-cabinet] .level-trail {
    display: none;
  }
  body[data-group-cabinet] .level-land::before {
    content: "";
    position: absolute;
    left: calc(12% - 1px);
    top: 80px;
    bottom: 80px;
    width: 1px;
    background: var(--line);
  }
}
/* Eliminate obsolete marketing-scale panels in the existing command workspace. */
body:not(.student-mode) {
  background: var(--bg);
  color: var(--ink);
}
body:not(.student-mode) .app-shell {
  padding: 0;
}
body:not(.student-mode) :is(#teacher, #students, #program, #plan, #admin) {
  padding: 32px var(--space-page) 64px;
  background: var(--bg);
}
.teacher-stage {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}
.teacher-command-header {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 100px;
  background: transparent;
}
.teacher-command-title > .label,
.teacher-command-title > span {
  display: none;
}
.teacher-command-summary {
  gap: 16px;
}
.teacher-command-summary > div {
  border: 0;
  padding: 10px 12px;
  min-width: 85px;
}
.teacher-sidebar.phone {
  width: 100%;
  padding: 0 20px 0 0;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.teacher-sidebar .phone-status {
  display: none;
}
.teacher-sidebar .phone-head h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}
.teacher-sidebar
  :is(.phone-head .label, .panel-caption, .notification-head, .empty-notice) {
  color: var(--muted);
  font-weight: 400;
}
.teacher-sidebar
  :is(
    .notification-center,
    .lesson-roster,
    .control-panel,
    .roster-row,
    .student-row
  ) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  box-shadow: none;
}
.teacher-sidebar :is(.student-row.selected, .roster-row.selected) {
  background: var(--ice);
  border-color: #3454d144;
  box-shadow: none;
}
.teacher-sidebar :is(.student-row b, .roster-select b, .control-title span) {
  color: var(--ink);
  font-weight: 500;
}
.teacher-sidebar
  :is(.roster-select span, .student-direct-link, .student-row small) {
  color: var(--muted);
  font-weight: 400;
}
.teacher-sidebar .student-direct-link {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teacher-sidebar .teacher-actions-grid button {
  background: #3454d1;
  border-radius: 5px;
  font-weight: 500;
  font-size: 13px;
}
.teacher-sidebar .icon-btn {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.teacher-task-workspace {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.teacher-task-header {
  min-height: 80px;
  padding: 4px 0 20px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.teacher-task-header h1 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
}
.teacher-task-header .label,
.teacher-task-header p {
  color: var(--muted);
  font-weight: 400;
}
.teacher-task-layout {
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 24px 0;
}
.teacher-task-main > :is(.panel, .teacher-condition-panel),
.teacher-task-side > * {
  border-radius: 6px;
  box-shadow: none;
}
.teacher-task-condition,
#teacherTaskCondition {
  background: var(--surface);
  border-radius: 6px;
  border-color: var(--line);
}
.teacher-task-condition p,
#teacherTaskCondition p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.teacher-task-side .primary-btn {
  background: #3454d1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
body[data-group-cabinet] #app[data-view="pult"] > .hero {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  background: transparent;
}
body[data-group-cabinet] #app[data-view="pult"] .hero .head {
  margin-bottom: 16px;
}
body[data-group-cabinet] #app[data-view="pult"] .hero h2 {
  font: 400 30px/1.35 var(--font-display);
  margin-bottom: 6px;
}
body[data-group-cabinet] #app[data-view="pult"] .hero p {
  margin: 6px 0 0;
  font-size: 13px;
}
body[data-group-cabinet] #app[data-view="pult"] > .stack > .grid > .card {
  background: transparent;
  border: 0;
  padding: 0 24px 0 0;
}
body[data-group-cabinet]
  #app[data-view="pult"]
  > .stack
  > .grid
  > .card
  + .card {
  border-left: 1px solid var(--line);
  padding: 0 0 0 24px;
}
body[data-group-cabinet] #app[data-view="pult"] > .stack > .card {
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 24px 0;
}
body[data-group-cabinet] #app[data-view="pult"] .taskrow small {
  font-size: 13px;
}
@media (max-width: 1100px) {
  .teacher-stage {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .teacher-command-header {
    flex-direction: row;
    align-items: center;
  }
  .teacher-command-summary {
    grid-template-columns: repeat(4, auto);
    width: auto;
    gap: 4px;
  }
  .teacher-task-layout {
    grid-template-columns: 1fr;
  }
  .teacher-task-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .teacher-stage {
    grid-template-columns: 1fr;
  }
  .teacher-sidebar.phone {
    position: static;
    max-height: 340px;
    border-right: 0;
    padding: 0;
  }
  .teacher-command-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .teacher-command-summary {
    width: 100%;
  }
  body[data-group-cabinet]
    #app[data-view="pult"]
    > .stack
    > .grid
    > .card
    + .card {
    border-left: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
  }
}
/* Parallel student cabinet: same identity, its individual route remains distinct. */
body.student-mode {
  background: var(--bg);
  color: var(--ink);
}
body.student-mode #student {
  padding: 0;
}
body.student-mode .student-shell {
  width: 100%;
  max-width: none;
  padding: 0;
  background: var(--bg);
}
body.student-mode .student-portal-nav {
  top: 0;
  width: 100%;
  margin: 0 0 32px;
  min-height: 72px;
  border: 0;
  border-radius: 0;
  padding: 12px var(--space-page);
  background: #171b24;
  box-shadow: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
body.student-mode .student-portal-brand .mark {
  width: 32px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: #f3f2ed;
  font-size: 0;
  box-shadow: none;
  mask: url("/assets/academy/mark.svg") center / contain no-repeat;
}
body.student-mode .student-portal-brand .mark::before,
body.student-mode .student-portal-brand .mark::after {
  display: none;
}
body.student-mode .student-portal-brand b {
  color: #f3f2ed;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.025em;
}
body.student-mode .student-portal-brand small {
  color: #a6acb7;
  font-size: 13px;
  font-weight: 400;
}
body.student-mode .student-portal-nav .student-tabs {
  background: transparent;
  padding: 0;
  gap: 4px;
}
body.student-mode .student-portal-nav .student-tab {
  color: #bec3cc;
  font-weight: 500;
  font-size: 13px;
  padding: 0 11px;
  border-radius: 6px;
}
body.student-mode .student-portal-nav .student-tab.active {
  background: #3454d1;
  color: white;
  box-shadow: none;
}
body.student-mode
  .student-portal-tools
  :is(.student-theme-button, .student-tool-button, .student-profile-button) {
  background: transparent;
  border-color: #ffffff25;
  color: #f3f2ed;
  border-radius: 6px;
}
body.student-mode .student-profile-button b {
  color: #f3f2ed;
  font-size: 13px;
  font-weight: 500;
}
body.student-mode .student-profile-button small {
  display: none;
}
body.student-mode .student-profile-button .student-avatar {
  background: #e5dcbd;
  color: #171b24;
}
body.student-mode .student-portal-page,
body.student-mode .student-module-detail {
  padding-inline: var(--space-page);
}
body.student-mode .student-dashboard-hero {
  min-height: 190px;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
}
body.student-mode .student-dashboard-intro {
  padding: 12px 0;
}
body.student-mode .student-dashboard-intro > p:not(.student-eyebrow) {
  max-width: 550px;
  font-size: 14px;
}
body.student-mode .student-dashboard-intro .student-eyebrow {
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
body.student-mode .student-primary-action {
  background: #3454d1;
  color: white;
  border-radius: 6px;
  padding: 12px 18px;
  min-height: 42px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}
body.student-mode .student-level-showcase {
  background: transparent;
  border: 0;
  padding: 8px 0 8px 24px;
  gap: 14px;
}
body.student-mode .student-rank-orbit {
  width: 86px;
  height: 86px;
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
body.student-mode .student-rank-orbit::before {
  border-color: #3454d1;
  border-right-color: var(--line);
  border-width: 1px;
  inset: 5px;
}
body.student-mode .student-rank-orbit b {
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
}
body.student-mode .student-rank-orbit span,
body.student-mode .student-level-progress > div :is(span, strong) {
  color: var(--muted);
  font-weight: 400;
}
body.student-mode .student-ranking-preview {
  display: none;
}
body.student-mode .student-level-progress .xp-track {
  background: var(--line);
  height: 5px;
}
body.student-mode .student-level-progress .xp-track span {
  background: #3454d1;
}
body.student-mode
  :is(
    .student-section-block,
    .student-next-card,
    .student-trial-chart-panel,
    .student-current-trial,
    .student-trial-history,
    .student-homework-card,
    .student-module-content-section,
    .student-module-side-section
  ) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  border-radius: 7px;
  box-shadow: none;
}
body.student-mode :is(.student-section-heading h2, .student-next-card h2) {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
}
body.student-mode .student-next-card.trial h2,
body.student-mode .student-next-card .student-eyebrow {
  color: var(--ink);
}
body.student-mode .student-next-card > p {
  color: var(--muted);
  font-weight: 400;
}
body.student-mode .student-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
}
body.student-mode .student-module-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
body.student-mode .student-module-card.current {
  border: 1px solid #3454d1;
  background: #3454d10a;
  box-shadow: none;
}
body.student-mode .student-module-card :is(h3, small, strong) {
  color: var(--ink);
}
body.student-mode .student-module-card h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}
body.student-mode .student-module-card :is(small, p) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
body.student-mode .student-module-card .student-module-number {
  background: var(--ice);
  color: #3454d1;
  border-radius: 5px;
  font-weight: 500;
}
body.student-mode .student-module-gallery {
  gap: 20px;
}
body.student-mode .student-oge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
body.student-mode .student-text-button {
  color: var(--blue);
  font-weight: 500;
}
body.student-mode .student-due-badge {
  color: #986b27;
  background: #e5dcbd66;
  font-weight: 500;
}
body.student-mode .student-notification-popover,
body.student-mode .student-profile-popover {
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body:not(.student-mode)
  :is(
    .students-directory,
    .learning-plan,
    .program-sidebar,
    .program-main,
    .admin-page
  ) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: none;
}
@media (max-width: 1100px) {
  body.student-mode .student-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  body.student-mode .student-portal-brand {
    flex: 1;
  }
  body.student-mode .student-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}
@media (max-width: 760px) {
  body.student-mode .student-dashboard-hero {
    grid-template-columns: 1fr;
  }
  body.student-mode .student-level-showcase {
    display: flex;
    padding: 8px 0 24px;
    align-items: center;
  }
  body.student-mode .student-level-progress {
    flex: 1;
  }
  body.student-mode .student-dashboard-layout {
    grid-template-columns: 1fr;
  }
}
body[data-group-cabinet] #app[data-view="settings"] > .grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}
body[data-group-cabinet] #app[data-view="settings"] > .grid > .card,
body[data-group-cabinet] #app[data-view="settings"] > .grid > .stack > .card {
  border: 0;
  background: transparent;
  padding: 0;
}
body[data-group-cabinet] #app[data-view="settings"] form > label {
  margin-bottom: 22px;
}
body[data-group-cabinet] #app[data-view="settings"] .calendar-row {
  padding: 14px 0;
  border-color: var(--line);
}
@media (max-width: 760px) {
  .academy-atlas {
    display: flex;
    flex-direction: column;
  }
  .academy-atlas > h2 {
    order: -3;
  }
  .academy-atlas > .academy-continue {
    order: -2;
    margin: 0 0 28px;
    padding: 0 0 20px;
  }
  .academy-module.current {
    order: -1;
  }
  .academy-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .academy-module-art {
    height: 120px;
  }
  body[data-group-cabinet] #app[data-view="settings"] > .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
body[data-group-cabinet] {
  font-size: 16px;
}
body[data-group-cabinet] :is(button, .button) {
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
}
body[data-group-cabinet] :is(.small, .question, .level-coin) {
  font-size: 13px;
}
body[data-group-cabinet] :is(input, select, textarea) {
  font-size: 16px;
  min-height: 44px;
}
body[data-group-cabinet] .academy-outline a.stage-link {
  font-size: 14px;
  min-height: 44px;
}
body[data-group-cabinet] .academy-editor-row strong {
  font-weight: 500;
}
.teacher-command-summary span,
.teacher-command-sync span {
  font-size: 13px;
  text-transform: none;
  font-weight: 400;
}
.teacher-command-summary > div {
  min-width: 100px;
}
.teacher-task-header :is(.label, span, p) {
  color: var(--muted);
}
.teacher-task-header h1 {
  margin: 4px 0 8px;
}
body.student-mode .student-level-showcase {
  align-self: center;
}
.auth-brand-lockup .mark {
  width: 36px;
  height: 40px;
  background: #3454d1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0;
  mask: url("/assets/academy/mark.svg") center / contain no-repeat;
}
.auth-brand-lockup .mark::before {
  display: none;
}
.teacher-auth-panel h1 {
  font: 400 36px/1.35 var(--font-display);
}
.teacher-auth-panel input {
  height: 48px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
}
.teacher-auth-panel .primary-btn {
  background: #3454d1;
  color: #fff;
  min-height: 44px;
  font-size: 16px;
}
.academy-skip {
  position: fixed;
  z-index: 2000;
  left: 24px;
  top: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  color: white;
  background: #3454d1;
  border-radius: 5px;
}
.academy-skip:focus {
  transform: none;
}
@media (max-width: 1100px) {
  .teacher-command-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .teacher-command-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}
body[data-group-cabinet] a.button:not(.quiet):not(.outline) {
  color: #fff;
  background: #3454d1;
}
body[data-group-cabinet] a.button.quiet {
  color: #3454d1;
  background: var(--ice);
}
body[data-group-cabinet] a.button.outline {
  color: var(--ink);
  background: transparent;
}
.portal-common {
  padding-inline: max(
    var(--space-page),
    calc((100vw - 1480px) / 2 + var(--space-page))
  );
}
body[data-group-cabinet] .course-group-pin > span {
  color: inherit;
}
body.student-mode .student-portal-nav {
  padding-inline: max(
    var(--space-page),
    calc((100vw - 1480px) / 2 + var(--space-page))
  );
}
.academy-member-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
}
body[data-group-cabinet] [id^="member-"] {
  scroll-margin-top: 96px;
}
body[data-group-cabinet] .academy-session-materials {
  padding: 0;
  border: 0;
  background: transparent;
}
body[data-group-cabinet] .academy-session-materials > summary {
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
}
body[data-group-cabinet] .academy-session-materials > .grid {
  padding: 20px 0;
}
body[data-group-cabinet] .academy-session-materials .card {
  padding: 0;
  border: 0;
  background: transparent;
}
body[data-group-cabinet] .academy-session-materials .card + .card {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
body[data-group-cabinet] #app[data-view="pult"] > .stack > .card .head h2 {
  margin: 0 0 8px;
}
body[data-group-cabinet] #app[data-view="pult"] > .stack > .card .head p {
  margin: 0;
  font-size: 13px;
}
@media (max-width: 760px) {
  body[data-group-cabinet] .academy-session-materials .card + .card {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
/* Directory, plan, authoring and administration share the same page structure. */
.primary-btn {
  min-height: 44px;
  padding: 10px 20px;
  background: #3454d1;
  color: #fff;
  border: 1px solid #3454d1;
  border-radius: 6px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
}
.quiet-btn {
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
}
body:not(.student-mode)
  :is(.directory-head, .plan-hero, .program-top, .admin-page-head) {
  padding: 0 0 24px;
  margin-bottom: 32px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
body:not(.student-mode)
  :is(.directory-head, .plan-hero, .program-top, .admin-page-head)::after {
  display: none;
}
body:not(.student-mode)
  :is(.directory-head, .plan-hero, .program-top, .admin-page-head)
  h1 {
  color: var(--ink);
  font: 400 36px/1.35 var(--font-display);
  margin: 8px 0;
}
body:not(.student-mode)
  :is(.directory-head, .plan-hero, .program-top, .admin-page-head)
  :is(.label, p) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}
body:not(.student-mode)
  :is(.directory-head, .plan-hero, .program-top, .admin-page-head)
  .primary-btn {
  color: white;
  background: #3454d1;
}
body:not(.student-mode)
  :is(.plan-hero, .program-top, .admin-page-head)
  .quiet-btn {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
body:not(.student-mode) .students-directory,
body:not(.student-mode) .admin-page {
  padding: 0;
  border: 0;
  background: transparent;
}
body:not(.student-mode) .directory-student-card {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  background: var(--surface);
}
body:not(.student-mode) .directory-student-head {
  padding: 24px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.directory-student-head h2 {
  font-size: 23px;
  font-weight: 500;
  color: var(--ink);
}
.directory-avatar {
  color: #3454d1;
  background: var(--ice);
  border-radius: 50%;
  font-weight: 500;
}
.directory-metrics {
  gap: 24px;
  padding: 24px;
}
body:not(.student-mode) .directory-metric {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.directory-metric > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}
.directory-metric > strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
}
.directory-metric > small,
.directory-metric > p {
  color: var(--muted);
  font-size: 14px;
}
.directory-row-actions {
  flex-wrap: wrap;
}
.directory-icon,
.directory-plan-button {
  min-height: 44px;
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  border-radius: 6px;
  font-weight: 500;
}
.directory-lesson-status {
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.directory-history-details {
  margin: 0 24px 24px;
  border-top: 1px solid var(--line);
}
.directory-history-details > summary {
  padding-block: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.directory-lesson,
.directory-comment,
.directory-empty-state {
  background: var(--bg);
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}
body:not(.student-mode) .program-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
body:not(.student-mode) .program-item.active {
  border-color: #3454d1;
  background: var(--ice);
  box-shadow: inset 2px 0 #3454d1;
}
body:not(.student-mode)
  :is(.entity-map div, .program-roster-box, .exam-tag-box, .task-bank-preview) {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.entity-map div :is(span, b, strong) {
  color: var(--ink);
}
body:not(.student-mode)
  :is(.plan-module, .plan-topic-details, .plan-side-card, .plan-history-card) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.plan-history-kind.theory,
.plan-history-kind {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}
body:not(.student-mode) .modal-panel,
.builder-modal-panel {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px #171b2426;
}
.modal-panel :is(h1, h2) {
  color: var(--ink);
  font: 500 24px/1.4 var(--font-ui);
}
.modal-panel :is(input, select, textarea) {
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 400 16px var(--font-ui);
}
.modal-panel label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.modal-panel .icon-btn {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.admin-stat,
.admin-invite-row,
.admin-invite-created {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.admin-stat b {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
}
.admin-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.academy-editor-row .grow {
  flex: 1;
  min-width: 0;
}
@media (max-width: 760px) {
  .directory-student-head {
    flex-wrap: wrap;
    gap: 20px;
  }
  .directory-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
    gap: 24px 16px;
  }
  .directory-notes-metric {
    grid-column: 1/-1;
  }
  .directory-detail-grid {
    grid-template-columns: 1fr;
  }
  body:not(.student-mode)
    :is(.directory-head, .plan-hero, .program-top, .admin-page-head) {
    flex-wrap: wrap;
    gap: 20px;
  }
  body:not(.student-mode)
    :is(.directory-head, .plan-hero, .program-top, .admin-page-head)
    h1 {
    font-size: 28px;
  }
  .modal-panel {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 20px;
  }
}
.portal-common .brand small,
body.student-mode .student-portal-brand small {
  display: none;
}
body[data-group-cabinet][data-teacher-theme="dark"] :is(.quiet, .pill) {
  color: #c1ceff;
  background: #2a3555;
}
body[data-group-cabinet][data-teacher-theme="dark"] .pill.live {
  color: var(--good);
  background: #24775322;
}
body[data-group-cabinet][data-teacher-theme="dark"]
  .academy-editor-row
  .outline {
  color: var(--ink);
}
body:not(.student-mode)[data-teacher-theme="dark"]
  :is(
    .directory-student-card,
    .directory-student-head,
    .directory-metric,
    .admin-stat,
    .admin-invite-row,
    .plan-module,
    .plan-history-card,
    .program-item
  ) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
body.student-mode .teacher-portal-nav {
  display: none;
}
.student-group-entry {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.student-group-entry small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.student-group-entry h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.student-group-entry > span {
  color: var(--blue);
  font-size: 14px;
}
