
:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #202124;
  --muted: #6b665d;
  --line: #ded5c6;
  --accent: #0d6b5f;
  --accent-2: #c76f2b;
  --nav: #1e2b28;
  --nav-soft: #e7f0ec;
  --shadow: 0 20px 60px rgba(48, 37, 20, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(199,111,43,.14), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(13,107,95,.12), transparent 30rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 40%, #efe7d8 100%);
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 10px 20px;
  background: rgba(30,43,40,.96);
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 285px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f2b366;
  color: #1e2b28;
  font-weight: 900;
}
.brand small { display: block; color: #bed1ca; margin-top: 2px; }
.logout-button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fffdf8;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 14px;
}
.logout-button:hover { background: rgba(255,255,255,.16); }
.topnav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding: 0;
}
.nav-module { position: relative; flex: 0 0 auto; padding-bottom: 12px; }
.nav-main {
  display: block;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  text-decoration: none;
  color: #eef8f4;
  font-size: 14px;
}
.nav-module.active .nav-main, .nav-main:hover { background: #f2b366; color: #15221f; }
.nav-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 16px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 1000;
}
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 16px;
}
.nav-module:hover .nav-menu,
.nav-module:focus-within .nav-menu {
  display: grid;
  gap: 3px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-menu a { padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.nav-menu a:hover { background: var(--nav-soft); }
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  gap: 22px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px 22px 70px;
}
.layout-wide {
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: 1840px;
  gap: 18px;
  padding: 18px 20px 70px;
}
.layout-wide .toc-panel {
  display: none;
}
.layout-wide .sidebar {
  padding: 10px;
}
.layout-wide .side-link {
  grid-template-columns: 30px 1fr;
  gap: 7px;
  padding: 8px 7px;
  font-size: 12px;
}
.layout-wide .side-link span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}
.layout-wide .sidebar-note {
  display: none;
}
.layout-wide .article {
  padding: 24px 28px 30px;
}
.layout-wide .lms-assignment {
  padding: 30px 36px 38px;
}
.layout-wide .article h1 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 10px;
}
.layout-wide .slide-viewer {
  margin-top: 12px;
}
.layout-wide .slide-stage {
  max-width: 1500px;
  margin: 0 auto;
}
.layout-wide .slide-frame figcaption {
  padding: 8px 12px;
}
.sidebar, .toc-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
}
.sidebar {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,253,248,.78);
  box-shadow: var(--shadow);
}
.sidebar-title, .toc-title {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 4px 0 10px;
}
.side-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #2c2b28;
  font-size: 14px;
}
.side-link span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eadfcb;
  color: #6f4a22;
  font-weight: 800;
}
.side-link.active, .side-link:hover { background: #e7f0ec; }
.sidebar-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f7ead8;
  color: #6a4a25;
  font-size: 13px;
  line-height: 1.45;
}
.content { min-width: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: stretch;
  padding: 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fffdf8 0%, #f4e4cd 58%, #dcebe5 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(74, 54, 26, .12);
}
.hero h1, .content > h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -0.055em;
  color: #15221f;
}
.hero p {
  max-width: 850px;
  color: #514d45;
  font-size: 19px;
  line-height: 1.55;
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 230px;
  padding: 24px;
  border-radius: 28px;
  background: #1e2b28;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero-panel strong { font-size: 48px; letter-spacing: -.05em; }
.hero-panel span { color: #bed1ca; line-height: 1.4; }
.section-head {
  margin: 30px 0 16px;
}
.section-head h2 { margin: 0 0 6px; font-size: 28px; }
.section-head p { margin: 0; color: var(--muted); }
.module-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  margin: 16px 0;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,253,248,.88);
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(48,37,20,.08);
}
.reference-card {
  background:
    linear-gradient(135deg, rgba(13,107,95,.12), rgba(199,111,43,.10)),
    rgba(255,253,248,.92);
}
.lms-feature-card {
  background:
    radial-gradient(circle at 95% 8%, rgba(242,179,102,.38), transparent 30%),
    linear-gradient(135deg, rgba(13,107,95,.16), rgba(255,253,248,.96) 46%, rgba(199,111,43,.13));
  border-color: rgba(13,107,95,.28);
}
.lms-feature-card .module-number {
  background: #17365d;
}
.module-number {
  display: grid;
  place-items: center;
  height: 80px;
  border-radius: 24px;
  background: #0d6b5f;
  color: white;
  font-size: 25px;
  font-weight: 900;
}
.module-body h2 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.025em; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.resource-block {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  gap: 7px;
}
.resource-card {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
  background: #f7f1e7;
  border: 1px solid #eadfcb;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.resource-card:hover { transform: translateY(-2px); background: #e7f0ec; border-color: #b9d2c9; }
.resource-card strong { color: #163c36; }
.resource-card span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.resource-card em {
  margin-top: auto;
  color: #0d6b5f;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.resource-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #d7cab7;
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  color: #6f4a22;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.resource-download:hover { background: #f7ead8; color: #3f2c16; }
.standalone-download { width: max-content; margin: 0 0 18px; }
.lms-hero {
  background:
    radial-gradient(circle at 85% 12%, rgba(242,179,102,.42), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #e8f2ee 54%, #f4e4cd 100%);
}
.lms-login-grid, .lms-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.lms-admin-grid {
  grid-template-columns: minmax(420px, .85fr) minmax(720px, 1.35fr);
  align-items: start;
}
.lms-login-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow);
}
.lms-login-form h2 { margin: 0; color: #17365d; }
.lms-login-form label {
  display: grid;
  gap: 7px;
  color: #514d45;
  font-weight: 850;
}
.lms-login-form input {
  border: 1px solid #d7cab7;
  border-radius: 14px;
  background: #fffdf8;
  color: #15221f;
  font: inherit;
  padding: 12px 13px;
}
.lms-role-card, .lms-panel, .lms-sheet {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,253,248,.94);
  box-shadow: var(--shadow);
}
.lms-role-card {
  min-height: 220px;
  padding: 28px;
  text-decoration: none;
  color: #15221f;
  transition: transform .18s ease, border-color .18s ease;
}
.lms-role-card:hover { transform: translateY(-3px); border-color: #0d6b5f; }
.lms-role-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dcebe5;
  color: #0d5e54;
  font-weight: 850;
  font-size: 13px;
}
.lms-role-card strong { display: block; font-size: 30px; letter-spacing: -.035em; }
.lms-role-card p { color: var(--muted); line-height: 1.55; }
.lms-role-card.admin { background: linear-gradient(135deg, #fffdf8, #f7ead8); }
.lms-role-card.student { background: linear-gradient(135deg, #fffdf8, #e7f0ec); }
.lms-panel { padding: 24px; }
.lms-panel .table-wrap {
  width: 100%;
  overflow-x: auto;
}
.lms-panel h2, .lms-sheet h2 { margin-top: 0; color: #17365d; }
.lms-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.lms-form-grid.wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.lms-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #514d45;
  font-weight: 800;
}
.lms-form-grid input, .lms-form-grid select, .lms-form-grid textarea,
.lms-input-table input, .lms-input-table textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #cdbb9f;
  border-radius: 12px;
  background: #fffdf8;
  color: #15221f;
  font: inherit;
  font-weight: 650;
  padding: 9px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.lms-form-grid input:focus, .lms-form-grid select:focus, .lms-form-grid textarea:focus,
.lms-input-table input:focus, .lms-input-table textarea:focus {
  outline: 3px solid rgba(13,107,95,.16);
  border-color: #0d6b5f;
}
.lms-form-grid input::placeholder, .lms-form-grid textarea::placeholder,
.lms-input-table input::placeholder, .lms-input-table textarea::placeholder,
.lms-login-form input::placeholder {
  color: #8c887f;
  opacity: .46;
  font-weight: 500;
}
.lms-form-grid textarea, .lms-input-table textarea {
  min-height: 104px;
  resize: vertical;
}
.lms-input-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.lms-input-table th,
.lms-input-table td {
  padding: 8px 9px;
  word-break: break-word;
}
.lms-input-table input,
.lms-input-table textarea {
  min-width: 0;
  padding: 8px 9px;
}
.lms-input-table textarea {
  min-height: 88px;
}
.lms-route-table,
.lms-calc-table {
  min-width: 0;
}
.lms-field-hint {
  margin-bottom: 7px;
  color: #6f4a22;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}
.lms-question {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 5px solid #0d6b5f;
  border-radius: 16px;
  background: #e7f0ec;
  color: #17365d;
  font-weight: 850;
  line-height: 1.55;
}
.lms-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf8;
}
.lms-table th {
  background: #0d6b5f;
  color: #fffdf8;
  text-align: left;
}
.lms-table th, .lms-table td {
  border: 1px solid #d7cab7;
  padding: 9px 10px;
  vertical-align: top;
}
.lms-table td { line-height: 1.45; }
.lms-admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}
.lms-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
}
.mini-button {
  padding: 7px 10px;
  border: 1px solid #d7cab7;
  border-radius: 999px;
  background: #fffdf8;
  color: #0d6b5f;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.mini-button:hover {
  background: #e7f0ec;
  border-color: #0d6b5f;
}
.lms-module-card { background: rgba(255,253,248,.92); }
.lms-assignment h1 { margin-bottom: 10px; }
.lms-savebar {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 22px;
  padding: 12px 14px;
  border: 1px solid #d7cab7;
  border-radius: 18px;
  background: rgba(255,253,248,.95);
  box-shadow: 0 10px 28px rgba(48,37,20,.10);
}
.lms-savebar span { color: #6f4a22; font-weight: 850; }
.lms-sheet {
  margin: 22px 0;
  padding: 22px;
}
.lms-brief {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: #f7f1e7;
}
.lms-brief p { margin: 0; }
.slide-viewer {
  margin-top: 18px;
}
.slide-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #1e2b28;
  box-shadow: 0 24px 70px rgba(20, 28, 26, .22);
}
.slide-frame {
  display: none;
  width: 100%;
  margin: 0;
}
.slide-frame.active { display: block; }
.slide-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.slide-frame figcaption {
  padding: 10px 14px;
  color: #dbe9e4;
  font-size: 13px;
  text-align: center;
}
.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 10px;
}
.slide-button {
  min-width: 120px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #0d6b5f;
  color: #fffdf8;
  font-weight: 850;
  cursor: pointer;
}
.slide-button:hover { background: #09574e; }
.slide-counter { color: var(--muted); font-weight: 850; }
.slide-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.slide-thumb {
  width: 38px;
  height: 32px;
  border: 1px solid #d7cab7;
  border-radius: 10px;
  background: #fffdf8;
  color: #514d45;
  cursor: pointer;
  font-weight: 800;
}
.slide-thumb.active, .slide-thumb:hover {
  background: #f2b366;
  color: #15221f;
}
.slide-viewer-empty {
  padding: 22px;
  border: 1px dashed #d7cab7;
  border-radius: 22px;
  background: #f7f1e7;
}
.page-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcebe5;
  color: #0d5e54;
  font-weight: 800;
  font-size: 13px;
}
.source-note {
  margin: 0 0 14px;
  color: #83796a;
  font-size: 13px;
}
.article {
  padding: 34px 42px;
  border-radius: 30px;
  background: rgba(255,253,248,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.article h1, .article h2, .article h3, .article h4 {
  color: #17365d;
  letter-spacing: -.025em;
  scroll-margin-top: 95px;
}
.article h1 { font-size: 38px; line-height: 1.05; margin: 0 0 22px; }
.article h2 { margin-top: 38px; font-size: 28px; }
.article h3 { margin-top: 28px; font-size: 21px; color: #0d6b5f; }
.article h4 { margin-top: 22px; font-size: 17px; color: #6f4a22; }
.article p, .article li { font-size: 17px; line-height: 1.68; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 28px; margin: 12px 0 18px; }
.article li { margin: 7px 0; }
.article blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 6px solid #0d6b5f;
  border-radius: 18px;
  background: #e7f0ec;
  color: #173c36;
  font-weight: 650;
}
.article pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #1f2a27;
  color: #f7f1e7;
  line-height: 1.5;
}
.study-guide-article {
  padding: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 211, 224, .12), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(13, 107, 95, .12), transparent 30%),
    rgba(255,253,248,.96);
}
.entry-test-article {
  display: grid;
  gap: 22px;
}
.entry-test-card {
  padding: 24px 26px;
  border: 1px solid rgba(183, 161, 126, .38);
  border-radius: 26px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 12px 28px rgba(45, 37, 22, .06);
}
.entry-test-card h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  color: #153e75;
}
.entry-test-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-test-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(183, 161, 126, .34);
  border-radius: 18px;
  background: rgba(255, 251, 244, .96);
}
.entry-test-option.correct {
  color: #0d6b5f;
  border-color: rgba(13, 107, 95, .34);
  background: rgba(231, 240, 236, .9);
  font-weight: 700;
}
.entry-test-letter {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(29, 43, 40, .08);
  font-weight: 800;
}
.entry-test-option.correct .entry-test-letter {
  background: rgba(13, 107, 95, .14);
}
.entry-test-download .resource-grid {
  grid-template-columns: minmax(0, 420px);
}
.study-guide-download {
  display: block;
  text-decoration: none;
}
.study-guide-image {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(8, 28, 43, .24);
}
code {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: .92em;
}
p code, li code {
  padding: 2px 6px;
  border-radius: 7px;
  background: #efe7d8;
  color: #854a12;
}
.table-wrap {
  overflow: auto;
  margin: 18px 0 24px;
  border: 1px solid #d7cab7;
  border-radius: 18px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #eadfcb;
  border-right: 1px solid #eadfcb;
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}
th {
  background: #e7f0ec;
  color: #173c36;
  font-weight: 850;
}
tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { border-right: 0; }
.registry-article {
  position: relative;
}
.registry-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #e7f0ec;
  color: #173c36;
  font-weight: 650;
}
.registry-downloads {
  margin: 18px 0 24px;
}
.indicator-table-wrap {
  scroll-margin-top: 96px;
  border-color: #b9d2c9;
}
.indicator-table {
  min-width: 1280px;
}
.indicator-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #173c36;
  color: #fffdf8;
}
.indicator-link {
  color: #0d6b5f;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.indicator-card {
  scroll-margin-top: 96px;
  margin: 20px 0;
  padding: 22px 24px;
  border: 1px solid #d7cab7;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf8f0 100%);
  box-shadow: 0 8px 28px rgba(48,37,20,.07);
}
.indicator-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eadfcb;
}
.indicator-card-head h3 {
  margin: 0 0 12px;
}
.indicator-card-head a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7f0ec;
  color: #0d5e54;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.indicator-card-head a:hover {
  background: #d3e5de;
}
.toc-panel {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,253,248,.78);
  box-shadow: var(--shadow);
}
.toc-panel a {
  display: block;
  padding: 7px 8px;
  border-radius: 10px;
  color: #514d45;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.toc-panel a:hover { background: #e7f0ec; color: #0d5e54; }
.toc-l3 { padding-left: 18px !important; }
.muted { color: var(--muted); }
.shell-teacher,
.shell-student {
  display: contents;
}
body[data-app-mode="teacher"] .shell-student,
body[data-app-mode="student"] .shell-teacher,
body[data-app-mode="auth"] .shell-teacher,
body[data-app-mode="auth"] .shell-student {
  display: none !important;
}
body[data-app-mode="shared"][data-domain-mode="teacher"] .shell-student {
  display: none !important;
}
body[data-app-mode="shared"][data-domain-mode="student"] .shell-teacher {
  display: none !important;
}
body[data-app-mode="student"] .toc-panel,
body[data-app-mode="auth"] .toc-panel {
  display: none !important;
}
.layout-auth {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  padding: 34px 24px 80px;
}
.layout-auth .content {
  max-width: 1080px;
  margin: 0 auto;
}
body[data-app-mode="auth"] .topbar {
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 26px;
}
body[data-app-mode="auth"] .brand {
  min-width: 0;
}
.teacher-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,206,138,.38), transparent 24%),
    linear-gradient(135deg, #fffdf8 0%, #f5e5cf 48%, #d9e8e1 100%);
}
.teacher-hero-panel,
.auth-hero-panel {
  background:
    linear-gradient(160deg, #172a27 0%, #123f39 100%);
}
.teacher-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 22px 0 10px;
}
.stat-card {
  padding: 22px 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(74,54,26,.14);
  background: rgba(255,253,248,.92);
  box-shadow: 0 12px 34px rgba(48,37,20,.08);
}
.stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: #14241f;
}
.stat-card p {
  margin: 0;
  color: #5e5a52;
  line-height: 1.55;
}
.stat-label {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e6efe9;
  color: #0d6b5f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.auth-hero {
  grid-template-columns: minmax(0, 1fr) 310px;
  background:
    radial-gradient(circle at 82% 18%, rgba(242,179,102,.42), transparent 28%),
    linear-gradient(135deg, #fffefb 0%, #efe5d4 46%, #dcebe5 100%);
}
.auth-hero .hero-panel strong {
  font-size: 42px;
}
.lms-login-grid {
  align-items: stretch;
}
.lms-login-form,
.lms-panel,
.lms-sheet,
.module-card,
.indicator-card,
.article {
  backdrop-filter: blur(10px);
}
.lms-login-form {
  gap: 16px;
  padding: 34px;
}
.lms-login-form input {
  min-height: 58px;
  padding: 15px 18px;
  font-size: 17px;
}
.lms-panel {
  padding: 28px;
}
.resource-card {
  min-height: 114px;
  padding: 16px 16px 15px;
  border-radius: 20px;
}
.resource-card strong {
  font-size: 17px;
  line-height: 1.2;
}
.resource-card span {
  font-size: 14px;
  line-height: 1.45;
}
.lms-assignment {
  padding: 34px 40px 44px !important;
}
.lms-savebar {
  gap: 20px;
  padding: 18px 20px;
}
.lms-sheet {
  padding: 28px 28px 24px;
}
.lms-sheet h2 {
  font-size: 30px;
  letter-spacing: -.03em;
}
.lms-table {
  min-width: 0;
}
.lms-input-table th,
.lms-input-table td,
.lms-table th,
.lms-table td {
  padding: 14px 14px;
}
.lms-form-grid label {
  gap: 9px;
  font-size: 15px;
}
.lms-form-grid input, .lms-form-grid select, .lms-form-grid textarea,
.lms-input-table input, .lms-input-table textarea {
  min-height: 54px;
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.45;
}
.lms-form-grid textarea,
.lms-input-table textarea {
  min-height: 136px;
  resize: vertical;
}
.lms-input-table input {
  min-width: 112px;
}
.lms-field-hint {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.slide-button {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 14px;
}
.study-guide-article,
.entry-test-article,
.registry-article {
  padding: 30px 34px 38px;
}
@media (max-width: 1120px) {
  .layout { grid-template-columns: 220px minmax(0,1fr); }
  .toc-panel { display: none; }
}
@media (max-width: 820px) {
  .topbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .brand { min-width: 0; }
  .topnav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .nav-menu { position: fixed; top: 112px; left: 16px; right: 16px; }
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .sidebar { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .module-card { grid-template-columns: 1fr; }
  .article { padding: 24px 18px; }
  .article p, .article li { font-size: 16px; }
}
