/* First Responder Level 3: Guided Learning Programme */
:root {
  --navy-900: #071a2f;
  --navy-800: #0b2742;
  --navy-700: #12365a;
  --navy-600: #1d4b78;
  --brand: #0b6e55;
  --brand-600: #0a5c47;
  --brand-50: #e7f4ef;
  --amber: #b86e00;
  --amber-50: #fdf3e2;
  --red: #b42318;
  --red-50: #fdecea;
  --blue: #175cd3;
  --blue-50: #eaf1fd;
  --violet: #5b3fa6;
  --violet-50: #f1edfa;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 12px rgba(16, 24, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-in {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); display: grid; place-items: center; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.brand-text span { font-size: 11.5px; color: #9fb3c8; letter-spacing: .04em; text-transform: uppercase; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a {
  color: #c9d6e3; font-size: 14px; padding: 8px 12px; border-radius: 6px;
}
.topnav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.topnav a.on { color: #fff; background: rgba(255,255,255,.1); }
.chip-progress {
  display: flex; align-items: center; gap: 8px; margin-left: 8px;
  font-size: 13px; color: #c9d6e3; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.chip-progress .bar { width: 70px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.chip-progress .bar i { display: block; height: 100%; background: #3ccf9c; }
.readbar { height: 3px; background: transparent; }
.readbar i { display: block; height: 100%; width: 0; background: #3ccf9c; transition: width .1s linear; }

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 60%, #164a6e 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px;
  border-radius: 50%; border: 70px solid rgba(255,255,255,.035);
}
.hero-in { max-width: 1280px; margin: 0 auto; padding: 44px 24px 92px; position: relative; z-index: 1; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #8fd9bd;
}
.hero h1 { font-size: 34px; font-weight: 700; margin: 10px 0 8px; }
.hero p.lead { color: #c9d6e3; font-size: 17px; max-width: 760px; margin: 0; }
.hero .byline { margin-top: 16px; font-size: 14px; color: #9fb3c8; }
.hero .byline b { color: #e6edf4; font-weight: 600; }
.lift { margin-top: -64px; position: relative; z-index: 2; }

.grid { display: grid; gap: 20px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1080px) { .g-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.card-h h2, .card-h h3 { font-size: 16px; font-weight: 650; }
.card-h .meta { font-size: 13px; color: var(--ink-3); }
.section-title { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 34px 0 14px; }

/* ---------- Stat tiles ---------- */
.stat { padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.stat .ring { flex: none; }
.stat .k { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.stat .v small { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ic-green { background: var(--brand-50); color: var(--brand); }
.ic-blue { background: var(--blue-50); color: var(--blue); }
.ic-amber { background: var(--amber-50); color: var(--amber); }
.ic-violet { background: var(--violet-50); color: var(--violet); }

/* ---------- Continue card ---------- */
.continue { display: flex; gap: 22px; align-items: center; padding: 22px 24px; }
.continue .txt { flex: 1; min-width: 0; }
.continue .k { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.continue h3 { font-size: 19px; margin: 4px 0 4px; }
.continue p { margin: 0; color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) { .continue { flex-direction: column; align-items: flex-start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: #f9fafb; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #84caff; outline-offset: 2px; }

/* ---------- Programme map ---------- */
.week { margin-bottom: 26px; }
.week-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.week-h b { font-size: 15px; }
.week-h span { font-size: 13px; color: var(--ink-3); }
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .chapters { grid-template-columns: 1fr; } }
.ch {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.ch:hover { text-decoration: none; border-color: #9ec5b6; box-shadow: var(--shadow); transform: translateY(-1px); }
.ch.locked { background: #fafbfc; }
.ch.locked .ch-title { color: var(--ink-3); }
.ch-top { display: flex; align-items: center; gap: 12px; }
.ch-num {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 16px; background: var(--navy-800); color: #fff;
}
.ch.locked .ch-num { background: #e9edf2; color: #98a2b3; }
.ch-title { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.ch-sub { font-size: 12.5px; color: var(--ink-3); }
.pbar { height: 6px; border-radius: 6px; background: #edf0f3; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.ch-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}
.b-green { background: var(--brand-50); color: var(--brand-600); }
.b-grey { background: #eef1f4; color: #667085; }
.b-amber { background: var(--amber-50); color: var(--amber); }
.b-blue { background: var(--blue-50); color: var(--blue); }
.b-red { background: var(--red-50); color: var(--red); }

/* ---------- Side lists ---------- */
.steps-list { list-style: none; margin: 0; padding: 6px 24px 20px; counter-reset: s; }
.steps-list li { position: relative; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-size: 13px; font-weight: 650; display: grid; place-items: center;
}
.steps-list b { display: block; color: var(--ink); font-size: 14.5px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; padding: 10px 24px; background: #f9fafb; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 24px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Chapter page ---------- */
.lo-list { display: grid; gap: 10px; margin-top: 22px; max-width: 820px; }
.lo-item { display: flex; gap: 12px; align-items: flex-start; color: #dbe5ee; font-size: 15px; }
.lo-item b { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; }
.module { margin-bottom: 20px; overflow: hidden; }
.module-h { display: flex; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.module-h .tag { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.module-h h3 { font-size: 17px; margin-top: 2px; }
.module-h .right { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-3); min-width: 120px; }
.module-h .right .pbar { margin-top: 6px; }
.unit-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line);
  color: inherit;
}
.unit-row:last-child { border-bottom: 0; }
.unit-row:hover { background: #f8fafb; text-decoration: none; }
.u-status { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line-2); color: var(--ink-3); font-size: 12px; font-weight: 650; background: #fff; }
.u-status.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.u-status.part { border-color: var(--amber); color: var(--amber); }
.u-main { flex: 1; min-width: 0; }
.u-ref { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .03em; }
.u-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.u-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); flex: none; }
@media (max-width: 640px) { .u-meta .mins { display: none; } .module-h .right { display: none; } }

/* ---------- Unit (lesson) layout ---------- */
.lesson-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
@media (max-width: 980px) { .lesson-layout { grid-template-columns: 1fr; } .side { position: static !important; max-height: none !important; } .side-units { display: none; } .side.open .side-units { display: block; } }
.side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; }
.side-h { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-h .t { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side-h b { display: block; font-size: 14.5px; line-height: 1.3; }
.side-toggle { display: none; margin-left: auto; }
@media (max-width: 980px) { .side-toggle { display: inline-flex; } }
.side-units { padding: 8px 0; }
.side-mod { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 18px 6px; }
.side a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; border-left: 3px solid transparent; }
.side a:hover { background: #f6f8fa; text-decoration: none; }
.side a.on { background: var(--brand-50); border-left-color: var(--brand); color: var(--ink); font-weight: 600; }
.side a .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; background: #fff; }
.side a .dot.done { background: var(--brand); border-color: var(--brand); }
.side a .dot.part { border-color: var(--amber); }
.side a .ref { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 26px; }

.content { min-width: 0; max-width: 820px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); }
.u-head { padding: 28px 32px; }
.u-head .eyebrow { color: var(--brand); }
.u-head h1 { font-size: 30px; margin: 8px 0 10px; }
.u-head .aim { color: var(--ink-2); font-size: 16px; margin: 0; }
.u-head .facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.u-head .facts span { display: inline-flex; align-items: center; gap: 6px; }

.prose { padding: 8px 32px 28px; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: 0; padding-top: 6px; }
.prose p { margin: 0 0 14px; color: #1d2939; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #1d2939; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose li b { color: var(--ink); }
@media (max-width: 640px) { .u-head, .prose { padding-left: 20px; padding-right: 20px; } .u-head h1 { font-size: 25px; } }

.tbl { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { background: var(--navy-800); color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; font-size: 13.5px; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: #f9fafb; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; color: var(--ink); }
@media (max-width: 640px) { .tbl td:first-child { white-space: normal; } }

.callout { border-radius: var(--radius); padding: 16px 18px 16px 20px; margin: 6px 0 20px; border: 1px solid; border-left-width: 5px; }
.callout .ct { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.callout .ch3 { font-weight: 650; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.callout p { margin: 0; font-size: 15px; }
.co-key { background: var(--brand-50); border-color: #bfe3d5; border-left-color: var(--brand); }
.co-key .ct { color: var(--brand-600); }
.co-law { background: var(--blue-50); border-color: #c9dbf7; border-left-color: var(--blue); }
.co-law .ct { color: var(--blue); }
.co-memory { background: var(--violet-50); border-color: #ddd3f2; border-left-color: var(--violet); }
.co-memory .ct { color: var(--violet); }
.co-practice { background: #f6f7f9; border-color: var(--line); border-left-color: var(--navy-600); }
.co-practice .ct { color: var(--navy-600); }
.co-service { background: var(--amber-50); border-color: #f3dcb4; border-left-color: var(--amber); }
.co-service .ct { color: var(--amber); }
.task { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.task input { width: 18px; height: 18px; accent-color: var(--brand); }

.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 4px 0 20px; }
.cmp > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; border-top: 4px solid var(--navy-600); }
.cmp > div:nth-child(2) { border-top-color: var(--brand); }
.cmp > div:nth-child(3) { border-top-color: var(--violet); }
.cmp h4 { font-size: 16px; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.cmp p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.tiles > div { background: #f9fafb; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tiles b { display: block; font-size: 15px; color: var(--navy-700); margin-bottom: 3px; }
.tiles span { font-size: 14px; color: var(--ink-2); }

.flow { list-style: none; padding: 0 !important; margin: 4px 0 20px !important; display: grid; gap: 8px; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 !important; font-size: 15px; }
.flow li::before { content: counter(f); width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 650; font-size: 13px; display: grid; place-items: center; flex: none; }

/* Check your understanding */
.cyu { margin: 30px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cyu-h { background: var(--navy-800); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.cyu-h b { font-size: 15px; }
.cyu-h span { font-size: 13px; color: #9fb3c8; margin-left: auto; }
.cyu-q { border-top: 1px solid var(--line); padding: 14px 18px; }
.cyu-q:first-of-type { border-top: 0; }
.cyu-q .q { display: flex; gap: 12px; font-weight: 600; font-size: 15px; }
.cyu-q .q i { font-style: normal; color: var(--brand); flex: none; }
.cyu-q textarea { width: 100%; margin: 10px 0 8px; min-height: 64px; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14.5px; resize: vertical; background: #fcfcfd; }
.cyu-q textarea:focus { outline: 2px solid #84caff; border-color: #84caff; background: #fff; }
.reveal { background: none; border: 0; padding: 0; color: var(--navy-600); font-weight: 600; font-size: 14px; cursor: pointer; }
.reveal:hover { text-decoration: underline; }
.ans { display: none; margin-top: 10px; padding: 12px 14px; background: var(--brand-50); border-radius: 8px; font-size: 14.5px; color: #1d2939; }
.ans.show { display: block; }

/* ---------- Quiz ---------- */
.quiz { margin-top: 24px; }
.quiz-h { padding: 20px 24px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.quiz-h .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.quiz-h h2 { font-size: 19px; }
.quiz-h p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.quiz-h .best { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-3); }
.quiz-h .best b { display: block; font-size: 20px; color: var(--ink); }
.qn { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.qn-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.qn .stem { font-size: 16.5px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.opts { display: grid; gap: 9px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  border: 1.5px solid var(--line-2); background: #fff; border-radius: 9px; padding: 12px 14px;
  font-size: 15px; color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--navy-600); background: #f8fafc; }
.opt .l { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; color: var(--ink-3); }
.opt.sel { border-color: var(--navy-600); background: var(--blue-50); color: var(--ink); }
.opt.sel .l { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.opt.right { border-color: var(--brand); background: var(--brand-50); color: var(--ink); }
.opt.right .l { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-50); }
.opt.wrong .l { background: var(--red); border-color: var(--red); color: #fff; }
.opt[disabled] { cursor: default; }
.opt[disabled]:hover { background: inherit; }
.fb { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }
.fb.show { display: block; }
.fb.ok { background: var(--brand-50); color: #0c4a3a; }
.fb.no { background: var(--red-50); color: #7a1a12; }
.fb b { display: block; margin-bottom: 2px; }
.quiz-f { padding: 18px 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fbfcfd; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.quiz-f .count { font-size: 14px; color: var(--ink-3); }

.result { padding: 26px 24px; display: flex; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); }
.result h3 { font-size: 20px; }
.result p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.result.pass { background: linear-gradient(90deg, var(--brand-50), #fff); }
.result.fail { background: linear-gradient(90deg, var(--amber-50), #fff); }
@media (max-width: 640px) { .result { flex-direction: column; align-items: flex-start; } .quiz-h .best { display: none; } }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.pager a { flex: 1; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; }
.pager a:hover { border-color: #9ec5b6; text-decoration: none; box-shadow: var(--shadow-sm); }
.pager a span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pager a b { font-size: 15px; }
.pager a.next { text-align: right; }
.pager .blank { flex: 1; }

/* ---------- Case study ---------- */
.stage { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; background: #fff; }
.stage-h { display: flex; gap: 12px; align-items: center; padding: 12px 18px; background: var(--navy-800); color: #fff; }
.stage-h .n { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fd9bd; }
.stage-h b { font-size: 15px; }
.stage .scene { padding: 16px 18px; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.stage .think { padding: 14px 18px; background: var(--amber-50); }
.stage .think .t { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.stage .think .q { font-weight: 650; margin: 2px 0 8px; }
.stage .think textarea { width: 100%; min-height: 70px; border: 1px solid #ecd3a6; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14.5px; background: #fff; resize: vertical; }
.comm { display: none; }
.comm.show { display: block; }
.comm-row { display: flex; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.comm-row .see { flex: none; width: 92px; font-size: 12.5px; font-weight: 650; color: var(--brand); padding-top: 2px; }
.stage .act { padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfd; }

/* ---------- Myths / flashcards ---------- */
.myth { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.myth-q { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; }
.myth-q .n { flex: none; font-weight: 700; color: var(--red); font-size: 14px; padding-top: 1px; }
.myth-q .s { font-weight: 600; font-size: 15.5px; flex: 1; }
.myth-a { display: none; padding: 12px 18px 14px 50px; background: var(--brand-50); font-size: 15px; border-top: 1px solid #cfe9df; }
.myth-a.show { display: block; }
.myth-a .see { font-size: 12.5px; font-weight: 650; color: var(--brand-600); display: block; margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.flash { perspective: 1000px; height: 170px; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
.flash .in { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.flash.flip .in { transform: rotateY(180deg); }
.flash .f, .flash .b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.flash .f { background: var(--navy-800); color: #fff; justify-content: space-between; }
.flash .f b { font-size: 17px; line-height: 1.3; }
.flash .f span { font-size: 12px; color: #9fb3c8; letter-spacing: .06em; text-transform: uppercase; }
.flash .b { background: #fff; border: 1.5px solid var(--brand); transform: rotateY(180deg); font-size: 14.5px; color: var(--ink-2); justify-content: center; }
.flash .b b { display: block; color: var(--brand-600); font-size: 13px; margin-bottom: 6px; }

.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 18px; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr; } }
.glance > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.glance h4 { font-size: 15px; display: flex; justify-content: space-between; margin-bottom: 6px; }
.glance h4 span { font-size: 12px; color: var(--brand); font-weight: 650; }
.glance ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.glance li { margin-bottom: 4px; }

.selfmark { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.selfmark button { height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.selfmark button.on-good { background: var(--brand); border-color: var(--brand); color: #fff; }
.selfmark button.on-part { background: var(--amber); border-color: var(--amber); color: #fff; }
.selfmark button.on-no { background: var(--red); border-color: var(--red); color: #fff; }

.complete-bar { margin-top: 24px; padding: 18px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.complete-bar p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.notice { background: var(--amber-50); border: 1px solid #f3dcb4; color: #7a4a00; font-size: 13.5px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 36px; font-size: 13px; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.empty { padding: 30px 24px; text-align: center; color: var(--ink-3); }

@media print {
  .topbar, .side, .pager, .btn, .quiz-f, .footer .wrap a { display: none !important; }
  body { background: #fff; }
  .lesson-layout { display: block; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  .ans, .comm, .myth-a { display: block !important; }
}

@media (max-width: 760px) {
  .topbar-in { padding: 0 16px; gap: 10px; }
  .brand-text span, .chip-progress { display: none; }
  .brand-text b { font-size: 13px; white-space: nowrap; }
  .topnav a { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .wrap, .hero-in, .lesson-layout { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 440px) { .brand-text { display: none; } }

/* ================= Profiles, reports and personal pages ================= */
html.ts-large body { zoom: 1.12; }
html.ts-xlarge body { zoom: 1.25; }

/* user menu */
.um { position: relative; margin-left: 8px; }
.um-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font-size: 13.5px; }
.um-btn:hover { background: rgba(255,255,255,.12); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; flex: none; }
.um-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 6px; z-index: 60; }
.um-list.open { display: block; }
.um-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.um-who b { display: block; color: var(--ink); font-size: 14.5px; }
.um-who span { font-size: 12.5px; color: var(--ink-3); }
.um-list a, .um-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.um-list a:hover, .um-list button:hover { background: #f4f6f9; text-decoration: none; }
.um-list button { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 6px; }
@media (max-width: 760px) { .um-name { display: none; } .um-btn { padding: 3px; } }

/* dashboard personal panels */
.hero-partner { position: absolute; right: 24px; top: 40px; background: #fff; border-radius: 10px; padding: 10px 14px; }
.hero-partner img { display: block; max-height: 56px; max-width: 200px; }
@media (max-width: 860px) { .hero-partner { position: static; display: inline-block; margin-top: 16px; } }
.hero-logo { position: absolute; right: 24px; top: 30px; background: #fff; border-radius: 10px; padding: 9px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hero-logo img { display: block; height: 30px; width: auto; }
@media (max-width: 860px) { .hero-logo { position: static; display: inline-block; margin-bottom: 14px; } .hero-logo img { height: 26px; } }
@media print { .hero-logo { display: none; } }
.today-grid { grid-template-columns: 1.1fr 1.3fr 1fr; }
@media (max-width: 1080px) { .today-grid { grid-template-columns: 1fr 1fr; } .today-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .today-grid { grid-template-columns: 1fr; } }
.today-in { display: flex; gap: 18px; align-items: center; padding: 18px 24px 8px; }
.today-in .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.today-in .v small { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.today-in .s { font-size: 13px; color: var(--ink-3); }
.streak { margin-top: 8px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.flame { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--amber-50); color: var(--amber); font-weight: 700; }
.today-act { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 24px 20px; }
.chart14 { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 6px; padding: 18px 20px 0; }
.chart14 .goal { position: absolute; left: 20px; right: 20px; border-top: 1.5px dashed #98a2b3; z-index: 1; pointer-events: none; }
.chart14 .goal span { position: absolute; right: 0; top: -19px; font-size: 11px; color: var(--ink-3); background: #fff; padding: 0 4px; }
.bar14 { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; color: var(--ink-3); text-decoration: none !important; }
.bar14 i { display: block; width: 100%; max-width: 22px; height: 2%; background: #c3d4e6; border-radius: 4px 4px 0 0; max-height: 78%; }
.bar14.met i { background: var(--brand); }
.bar14.today i { outline: 2px solid var(--navy-600); outline-offset: 1px; }
.bar14 span { font-size: 11px; height: 22px; line-height: 22px; }
.bar14:hover i { opacity: .8; }
.course-box p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.cd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cd b { font-size: 34px; font-weight: 700; color: var(--navy-700); letter-spacing: -.02em; line-height: 1; }
.cd span { font-size: 13.5px; color: var(--ink-3); }
.rv-list { padding: 6px 0; }
.rv { display: flex; gap: 12px; align-items: center; padding: 10px 24px; color: inherit; }
.rv:hover { background: #f8fafb; text-decoration: none; }
.rv-n { width: 30px; height: 30px; border-radius: 8px; background: var(--red-50); color: var(--red); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.rv-n.bm { background: var(--blue-50); color: var(--blue); }
.rv b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.rv span span { font-size: 12.5px; color: var(--ink-3); }
.bm-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 7px; padding: 4px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bm-btn.on { background: var(--blue-50); border-color: #b2ccf5; color: var(--blue); }

/* documents: report, record, notebook */
.doc { padding-top: 24px; max-width: 1000px; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inp-sm { height: 34px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 10px; font: inherit; font-size: 13.5px; background: #fff; }
.sheet { padding: 32px 36px 36px; }
@media (max-width: 640px) { .sheet { padding: 20px 18px; } }
.ph { border-bottom: 2px solid var(--navy-800); padding-bottom: 18px; margin-bottom: 8px; }
.ph-brand { display: flex; align-items: center; gap: 10px; }
.ph-brand b { display: block; font-size: 14px; }
.ph-brand span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.ph-partner { margin-left: auto; max-height: 44px; max-width: 160px; }
.ph-title { margin: 18px 0 14px; }
.ph-title .eyebrow { color: var(--brand); }
.ph-title h1 { font-size: 26px; margin-top: 4px; }
.ph-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .ph-who { grid-template-columns: 1fr 1fr; } }
.ph-who span { display: block; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.ph-who b { font-size: 14.5px; }
.sh { font-size: 17px; margin: 28px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sh span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sh3 { font-size: 15px; margin: 18px 0 8px; }
.rtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 640px) { .rtiles { grid-template-columns: 1fr 1fr; } }
.rtiles > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fafbfc; }
.rtiles span { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.rtiles b { display: block; font-size: 24px; letter-spacing: -.01em; }
.rtiles em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
table.rep { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.rep th, table.rep td { padding: 9px 14px; }
table.rep th.num, table.rep td.num { text-align: right; }
.att { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; break-inside: avoid; }
.att-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.att-h .t, .plain .t { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; min-width: 44px; display: inline-block; }
.att-h b { flex: 1; font-size: 14.5px; }
.missed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.missed li { background: #fafbfc; border-left: 3px solid var(--red); padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 13.5px; }
.missed li b { display: block; font-size: 14px; margin-bottom: 2px; }
.missed li span { display: block; color: var(--ink-2); }
.missed li .ok { color: var(--brand-600); font-weight: 600; }
.missed li .see { color: var(--ink-3); font-size: 12.5px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.note { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; break-inside: avoid; overflow: hidden; }
.note .nq { background: #f6f8fa; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.note .nq span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.note .na { padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); }
.note .na p { margin: 0 0 6px; }
.refl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .refl { grid-template-columns: 1fr; } }
.rb { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.rb b { display: block; font-size: 14.5px; color: var(--violet); }
.rb span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.rb textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 14.5px; resize: vertical; min-height: 80px; }
.print-mirror { display: none; white-space: pre-wrap; font-size: 14px; min-height: 60px; }
.lines i { display: block; height: 30px; border-bottom: 1px solid #c7ccd4; }
.sig { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 18px; margin-top: 34px; }
.sig div { border-top: 1px solid #98a2b3; padding-top: 6px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .sig { grid-template-columns: 1fr 1fr; } }

/* account */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-h { font-size: 17px; margin-bottom: 12px; }
.acc-grid p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.form { display: grid; gap: 12px; }
.form.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.form.inline input { flex: 1; min-width: 160px; height: 34px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 10px; font: inherit; }
.fld { display: grid; gap: 5px; }
.fld span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select { height: 42px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
.fld input:focus, .fld select:focus { outline: 2px solid #84caff; border-color: #84caff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.form-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.msg { font-size: 13.5px; color: var(--brand-600); margin: 0; min-height: 1em; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--brand-600); }
.btn.danger { color: var(--red); border-color: #f1b8b2; }
.btn.wide { width: 100%; height: 46px; font-size: 15.5px; }

/* sign in */
.login { min-height: 100vh; display: grid; grid-template-columns: 5fr 6fr; background: #fff; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-side { min-height: auto !important; } .ls-mid h1 { font-size: 22px !important; } .ls-mid ul { display: none; } }
.login-side { background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%, #164a6e); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; gap: 28px; }
.login-side .brand-text span { color: #9fb3c8; }
.ls-mid h1 { font-size: 30px; line-height: 1.25; max-width: 460px; }
.ls-mid ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: #dbe5ee; font-size: 15.5px; }
.ls-mid li { display: flex; gap: 10px; align-items: center; }
.ls-mid li svg { color: #3ccf9c; flex: none; }
.ls-foot { font-size: 12.5px; color: #9fb3c8; display: grid; gap: 12px; }
.login-partner { max-height: 54px; max-width: 200px; background: #fff; padding: 8px 12px; border-radius: 8px; justify-self: start; }
.login-main { display: grid; place-items: center; padding: 36px 24px; background: var(--canvas); }
.login-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 30px; }
@media (max-width: 520px) { .login-card { padding: 22px 18px; } }
.login-card h2 { font-size: 22px; }
.login-card .muted { margin: -6px 0 4px; font-size: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f2f4f7; border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.tab { border: 0; background: none; height: 38px; border-radius: 7px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); cursor: pointer; }
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pane { display: none; }
.pane.on { display: grid; }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.who:hover { border-color: var(--brand); }
.who .avatar { width: 26px; height: 26px; font-size: 11px; }
.restore { display: block; text-align: center; font-size: 13.5px; color: var(--navy-600); font-weight: 600; cursor: pointer; margin-top: 4px; }
.restore input { display: none; }
.fine { font-size: 12px; color: var(--ink-3); margin: 18px 0 0; text-align: center; }

/* certificate */
.cert { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; box-shadow: var(--shadow); }
.cert-in { border: 3px double var(--navy-700); padding: 40px 48px; text-align: center; position: relative; }
@media (max-width: 640px) { .cert-in { padding: 24px 16px; } }
.cert-top { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 18px; }
.cert-top .brand-mark { width: 48px; height: 48px; border-radius: 10px; }
.cert-partner { max-height: 54px; max-width: 180px; }
.cert .eyebrow { color: var(--brand); }
.cert h1 { font-size: 34px; margin: 10px 0 18px; color: var(--navy-800); }
.cert p { font-size: 16px; color: var(--ink-2); margin: 6px 0; }
.cert-name { font-size: 30px; font-weight: 700; color: var(--ink); margin: 8px auto 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); max-width: 560px; }
.cert-ch { font-size: 19px; font-weight: 650; color: var(--navy-700); margin: 6px 0 10px; }
.cert-sig { display: flex; justify-content: center; gap: 60px; margin: 40px 0 26px; }
.cert-sig div { width: 200px; }
.cert-sig i { display: block; border-bottom: 1px solid #667085; height: 36px; }
.cert-sig span { font-size: 12.5px; color: var(--ink-3); }
.cert-foot { font-size: 12px; color: var(--ink-3); }

@media print {
  .doc-bar, .um, .today-act { display: none !important; }
  .doc { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; }
  .rb textarea { display: none; }
  .print-mirror { display: block; }
  .att, .note, .rb { break-inside: avoid; }
  .sh { break-after: avoid; }
  .cert { border: 0; box-shadow: none; }
  @page { margin: 14mm; }
  html.ts-large body, html.ts-xlarge body { zoom: 1; }
}


/* ================= Online edition ================= */
.sync { font-size: 12px; color: #9fb3c8; margin-left: 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.sync.s-saved::before { background: #3ccf9c; }
.sync.s-saving::before { background: #f5b942; }
.sync.s-off::before { background: #f97066; }
.sync.s-off { color: #fda29b; }
.sync.s-ro::before { background: #84caff; }
@media (max-width: 760px) { .sync { display: none; } }
.viewing { background: #eaf1fd; border-bottom: 1px solid #c9dbf7; color: #1d3a6b; font-size: 13.5px; }
.viewing .wrap { display: flex; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.viewing a { margin-left: auto; font-weight: 600; }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 120px 20px; color: var(--ink-3); font-size: 15px; }
.loading span { width: 22px; height: 22px; border: 3px solid #d0d5dd; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sm .hero-in { padding-top: 34px; padding-bottom: 84px; }
.hero-sm h1 { font-size: 30px; }
.tutor-h { flex-wrap: wrap; }
.tg-pick { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; }
.joinbar { padding: 12px 24px; background: #f6f8fa; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; background: var(--brand-50); color: var(--brand-600); padding: 2px 8px; border-radius: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.mono.big { font-size: 16px; }
.tscroll { overflow-x: auto; }
.ttable td, .atable td { vertical-align: top; font-size: 13.5px; }
.ttable th a { color: var(--ink-3); }
.ttable th a.on { color: var(--ink); text-decoration: underline; }
.tiny { font-size: 12px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.links a { display: block; font-size: 13px; white-space: nowrap; }
tr.hl td { background: #fffbe8; }
.atabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 20px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.atabs a { padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.atabs a:hover { background: #f4f6f9; text-decoration: none; }
.atabs a.on { background: var(--navy-800); color: #fff; }
.edit-row td { background: #f8fafc; }
.ef { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 12px; }
@media (max-width: 860px) { .ef { grid-template-columns: 1fr 1fr; } }
.tgroups { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; align-items: center; }
.tgroups span { font-weight: 600; color: var(--ink-2); }
.ro-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ro-list span { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ro-list b { font-size: 15px; }
.card.force { border: 2px solid var(--amber); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
@media print { .viewing, .atabs, .tutor-h .row-btns, .joinbar { display: none !important; } }

/* chapter menu */
.chmenu { position: relative; }
.chmenu > button { background: none; border: 0; color: #c9d6e3; font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chmenu > button:hover { background: rgba(255,255,255,.07); color: #fff; }
.chmenu > button.on { color: #fff; background: rgba(255,255,255,.1); }
.chlist { display: none; position: absolute; left: 0; top: calc(100% + 8px); width: 380px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 6px; z-index: 60; }
.chlist.open { display: block; }
.chlist a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.3; }
.chlist a:hover { background: #f4f6f9; text-decoration: none; }
.chlist a.on { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.cm-n { width: 26px; height: 26px; border-radius: 7px; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: none; }
.cm-t { flex: 1; }
.cm-p { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cm-p svg { color: var(--brand); }
@media (max-width: 760px) { .chlist { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* staff homes and course preview */
.preview { background: #fff6e5; border-bottom: 1px solid #f3dcb4; color: #6b4300; font-size: 13.5px; }
.preview .wrap { display: flex; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.preview .wrap > span { flex: 1; min-width: 240px; }
.preview button { background: #fff; border: 1px solid #ecd3a6; border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; color: #6b4300; cursor: pointer; }
.preview a { font-weight: 600; color: #6b4300; }
.hero-act { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-act .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.hero-act .btn-ghost:hover { background: rgba(255,255,255,.16); }
.qa { display: grid; gap: 8px; }
.qa a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); }
.qa a:hover { border-color: #9ec5b6; background: #f8fbfa; text-decoration: none; }
.qa a svg { color: var(--brand); flex: none; width: 20px; height: 20px; }
.qa b { display: block; color: var(--ink); font-size: 14px; }
.qa span { font-size: 12.5px; line-height: 1.35; }
.feed { list-style: none; margin: 0; padding: 4px 24px 14px; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }

.glink b { color: var(--navy-600); }
.glink:hover b { text-decoration: underline; }

/* dials and charts */
.dials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 20px 20px; }
@media (max-width: 860px) { .dials { grid-template-columns: repeat(2, 1fr); } }
.dial { text-align: center; }
.dial svg { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; }
.dial-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: -6px; }
.dial-k { font-size: 14px; font-weight: 650; color: var(--ink); }
.dial-s { font-size: 12px; color: var(--ink-3); max-width: 220px; margin: 2px auto 0; line-height: 1.35; }
.dials-card .card-h { flex-wrap: wrap; }
.tv-grid { grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 980px) { .tv-grid { grid-template-columns: 1fr; } }
.abars { display: flex; align-items: flex-end; gap: 4px; height: 170px; }
.ab { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ab i { display: block; width: 100%; max-width: 26px; background: var(--brand); border-radius: 4px 4px 0 0; max-height: 80%; }
.ab-a { font-size: 11px; color: var(--ink-3); height: 16px; font-variant-numeric: tabular-nums; }
.ab-d { font-size: 10.5px; color: var(--ink-3); height: 18px; line-height: 18px; }
.heat-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.heat-key span { margin-right: 8px; } .heat-key i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid #e4e7ec; }
.heat-key b { margin-left: 10px; color: var(--brand); }
table.heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 12px; }
table.heat th { font-size: 11.5px; color: var(--ink-3); font-weight: 650; text-align: center; padding: 2px; }
table.heat td { text-align: center; height: 28px; min-width: 30px; border-radius: 5px; font-weight: 650; font-variant-numeric: tabular-nums; }
table.heat .hl-n { text-align: left; white-space: nowrap; padding-right: 10px; font-weight: 600; color: var(--ink); background: none !important; min-width: 140px; }
table.heat .hl-all { background: #eef3fb; color: var(--navy-700); padding: 0 6px; }
table.heat.res td { background: #f7f8fa; } table.heat.res td.rp { background: #d8efe5; color: #0a5c47; } table.heat.res td.rf { background: #fdecc8; color: #8a5300; }
table.heat.res tr.avg td { background: #eef1f4; color: var(--ink-2); font-weight: 700; }
.tbars { display: grid; gap: 9px; }
.tb-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px; gap: 10px; align-items: center; font-size: 13px; }
.tb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .tb-l b { color: var(--ink); }
.tb-bar { height: 8px; background: #edf0f3; border-radius: 6px; overflow: hidden; } .tb-bar i { display: block; height: 100%; background: var(--red); opacity: .75; border-radius: 6px; }
.tb-v { font-size: 12px; color: var(--ink-3); text-align: right; }
.cbars { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.cb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cb i { display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; max-height: 80%; }
.cb-v { font-size: 11px; color: var(--ink-2); height: 16px; } .cb-n { font-size: 11.5px; color: var(--ink-3); height: 22px; line-height: 22px; }
.cb-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #98a2b3; } .cb-line span { position: absolute; right: 0; top: -17px; font-size: 11px; color: var(--ink-3); background: #fff; padding: 0 4px; }
/* reports hub */
.rep-hub { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.rh-h h1 { font-size: 26px; margin: 4px 0 6px; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rcard { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.rcard:hover { border-color: #9ec5b6; box-shadow: var(--shadow); text-decoration: none; }
.rcard b { color: var(--ink); font-size: 15px; } .rc-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--navy-800); color: #fff; display: grid; place-items: center; margin-bottom: 6px; } .rc-ic svg { width: 18px; height: 18px; }
.sup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; font-size: 13px; } .sup span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
tr.dim td { color: #98a2b3; }
@media print {
  .no-print { display: none !important; }
  .dials { padding: 6px 0 10px; } .dial svg { max-width: 150px; }
  table.heat td, .tb-bar i, .ab i, .cb i, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet .att, table.rep tr, .tb-row { break-inside: avoid; }
  table.heat { font-size: 10.5px; } table.heat td { height: 22px; min-width: 24px; }
}

.hero-sel { background: rgba(255,255,255,.95); border-color: transparent; font-weight: 600; height: 34px; }
@media print { .dials { grid-template-columns: repeat(4, 1fr) !important; } .dial-s { font-size: 9.5px; } .dial-v { font-size: 20px; } table.rep th, table.rep td { padding: 6px 8px; font-size: 11.5px; } }

/* ================= Sidebar shell ================= */
:root { --sw: 256px; --sn-bg: #12203a; --sn-on: #1f3152; --sn-tx: #c9d3e1; --sn-mute: #7f90a8; }
body.has-side { padding-left: var(--sw); }
.shell .mbar, .shell .side-scrim, .sn-close { display: none; }
.sidenav { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sw); background: var(--sn-bg); color: #fff; z-index: 60; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 14px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #2c4064 transparent; }
.sn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sn-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 0 4px; min-width: 0; }
.sn-brand:hover { text-decoration: none; }
.sn-brand .brand-mark { flex: none; }
.sn-bt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sn-bt b { font-size: 13.5px; font-weight: 650; }
.sn-bt span { font-size: 10.5px; color: var(--sn-mute); letter-spacing: .08em; text-transform: uppercase; }
.sn-cont { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--brand); color: #fff; border-radius: 10px; padding: 11px 14px; font-weight: 600; font-size: 14.5px; }
.sn-cont:hover { background: #0d7f63; text-decoration: none; }
.sn-cont svg { width: 18px; height: 18px; flex: none; }
.sn-sec { display: flex; flex-direction: column; gap: 1px; }
.sn-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-mute); padding: 4px 10px 6px; font-weight: 600; }
.si { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--sn-tx); font-size: 14px; line-height: 1.3; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer; width: 100%; }
.si:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.si.on { background: var(--sn-on); color: #fff; font-weight: 600; }
.si.off { color: #6a7a92; cursor: default; font-size: 13px; }
.si.off:hover { background: none; }
.si-back { color: #fff; border: 1px solid #2c4064; margin-bottom: 2px; }
.si-ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.si-ic svg { width: 19px; height: 19px; }
.si-n { width: 22px; height: 22px; border-radius: 6px; background: #263856; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.si.on .si-n { background: var(--brand); }
.si-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-b { font-size: 11.5px; font-weight: 600; color: #9fb3c8; background: #1c2d4b; border-radius: 999px; padding: 1px 8px; flex: none; }
.si-b.warn { background: #5a3d10; color: #fcd58b; }
.sn-extra:empty { display: none; }
.sn-extra { background: #182a49; border: 1px solid #263856; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.sx-l { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-mute); font-weight: 600; }
.sx-g { font-weight: 600; font-size: 14px; }
.sx-sel { width: 100%; font: inherit; font-size: 13.5px; padding: 7px 8px; border-radius: 7px; border: 1px solid #2c4064; background: #fff; color: var(--ink); }
.sx-code { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.sx-code span { font-size: 12px; color: var(--sn-mute); }
.sx-code b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .12em; }
.sx-code button { font: inherit; font-size: 13px; font-weight: 600; background: transparent; color: #fff; border: 1px solid #3a5079; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.sx-code button:hover { background: rgba(255,255,255,.08); }
.sn-mini { margin-top: auto; color: #8fa0b8; }
.sn-foot { border-top: 1px solid #263856; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sn-mini + .sn-foot { margin-top: 0; }
.sidenav > .sn-foot:last-child { margin-top: auto; }
.sn-mini ~ .sn-foot { margin-top: 0 !important; }
.sn-user { display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px; border-radius: 8px; min-width: 0; }
.sn-user:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.sn-user .avatar { width: 34px; height: 34px; }
.u-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.u-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-t span { font-size: 12px; color: var(--sn-mute); }
.sn-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.sn-row .sync { margin-left: 0; display: inline-flex; }
.sn-out { font: inherit; font-size: 13px; background: none; border: 0; color: #f2a3a3; cursor: pointer; padding: 4px 2px; }
.sn-out:hover { color: #ffc4c4; text-decoration: underline; }
body.has-side .readbar { position: fixed; top: 0; left: var(--sw); right: 0; z-index: 55; }
body.has-side .side { top: 20px; max-height: calc(100vh - 40px); }
body.has-side .atabs { display: none; }
#banners:empty { display: none; }
#revisit, #bookmarks, #learners, #join, #add { scroll-margin-top: 20px; }
.chlist, .chmenu { display: none; }

/* folded rail on unit pages (desktop) */
@media (min-width: 901px) {
  body.side-mini { --sw: 68px; }
  body.side-mini .sidenav { padding: 16px 10px; align-items: center; gap: 10px; }
  body.side-mini .sn-bt, body.side-mini .si-l, body.side-mini .si-b, body.side-mini .sn-h, body.side-mini .sn-cont .t, body.side-mini .u-t, body.side-mini .sn-row, body.side-mini .si.off, body.side-mini .sn-extra { display: none; }
  body.side-mini .sn-sec { gap: 4px; align-items: center; }
  body.side-mini .si { width: 44px; height: 44px; padding: 0; justify-content: center; }
  body.side-mini .si-back { border: 0; }
  body.side-mini .sn-cont { width: 44px; height: 44px; padding: 0; justify-content: center; }
  body.side-mini .sn-brand { padding: 0; }
  body.side-mini .sn-foot { border-top: 0; padding-top: 0; align-items: center; }
  body.side-mini .sn-user { padding: 0; }
}

/* phone and small tablet: off-canvas */
@media (max-width: 900px) {
  body.has-side { padding-left: 0; }
  .shell .mbar { display: flex; position: sticky; top: 0; z-index: 50; height: 56px; background: var(--sn-bg); color: #fff; align-items: center; gap: 10px; padding: 0 10px; }
  .mb-btn { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
  .mb-btn svg { width: 22px; height: 22px; }
  .mb-t { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .sync { display: inline-flex; margin: 0 6px 0 0; }
  .sidenav { width: 300px; max-width: 86vw; transform: translateX(-102%); transition: transform .22s ease; padding-top: 12px; visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .sn-close { display: grid; color: var(--sn-tx); }
  body.side-open .sidenav { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.25); transition: transform .22s ease; }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; border: 0; padding: 0; background: rgba(9,16,30,.55); z-index: 58; }
  body.side-open { overflow: hidden; }
  .si { padding: 11px 10px; font-size: 15px; }
  .sn-mini { display: none; }
  body.has-side .readbar { top: 56px; left: 0; }
  #revisit, #bookmarks, #learners, #join, #add { scroll-margin-top: 70px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }
@media print {
  .shell, #banners { display: none !important; }
  body.has-side { padding-left: 0 !important; }
}
@media (max-width: 900px) { .sn-mini ~ .sn-foot { margin-top: auto !important; } }

.si-ch { align-items: flex-start; }
.si-ch .si-l { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.si-ch .si-b { margin-top: 1px; }
@media (min-width: 901px) { body.side-mini .si-ch { align-items: center; } }

/* chapter units in the sidebar */
.si-wrap { position: relative; }
.si-wrap .si-ch { padding-right: 34px; }
.si-wrap .si-ch .si-b { margin-right: 2px; }
.si-tog { position: absolute; right: 2px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8fa0b8; cursor: pointer; display: grid; place-items: center; }
.si-tog:hover { background: rgba(255,255,255,.08); color: #fff; }
.si-tog svg { width: 16px; height: 16px; transition: transform .15s ease; }
.si-wrap.open .si-tog svg { transform: rotate(180deg); }
.si-units { display: none; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid #2a3d5e; }
.si-wrap.open .si-units { display: block; }
.su-h { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6f819b; padding: 8px 6px 3px; font-weight: 600; }
.su { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 6px; color: #b4c0d1; font-size: 12.5px; line-height: 1.3; }
.su:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.su.on { background: var(--sn-on); color: #fff; font-weight: 600; }
.su-d { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #5d7090; margin-top: 3px; }
.su-d.part { border-color: #e0a63a; }
.su-d.done { background: #3ccf9c; border-color: #3ccf9c; }
.su-r { flex: none; color: #8193ad; font-variant-numeric: tabular-nums; min-width: 22px; }
.su-t { min-width: 0; }
@media (min-width: 901px) { body.side-mini .si-tog, body.side-mini .si-units { display: none !important; } body.side-mini .si-wrap .si-ch { padding-right: 0; } }
@media (max-width: 900px) { .su { padding: 8px 6px; font-size: 14px; } .si-tog { top: 9px; width: 34px; height: 34px; } }

/* ---------- Lesson feedback (feedback.html and live.html) ---------- */
:root { --fb-3: #0b8a63; --fb-2: #d18a00; --fb-1: #c4321f; --fb-0: #c3cad5; }
.fb-wrap { padding-bottom: 40px; }
.fb-wrap .small { font-size: 13.5px; }
.fb-wrap > .card + .card, #fbLive > .card + .card, #fbRev .card { margin-top: 16px; }
.fb-privacy { margin-top: 16px; text-align: center; }
.fb-none { line-height: 1.7; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.fb-q { font-size: 19px; font-weight: 650; margin: 2px 0 14px; }
.fb-todo { border-color: var(--fb-2); box-shadow: 0 0 0 2px rgba(209, 138, 0, .16), var(--shadow); }
.fb-again { background: var(--blue-50); color: var(--navy-700); border-radius: 8px; padding: 9px 12px; font-size: 14.5px; margin: 0 0 12px; }
.fb-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fb-c { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 74px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); transition: border-color .12s, background .12s; }
.fb-c b { font-weight: 650; }
.fb-c span { font-size: 13px; color: var(--ink-3); }
.fb-c::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 4px; background: var(--c); }
.fb-c.fb-3 { --c: var(--fb-3); } .fb-c.fb-2 { --c: var(--fb-2); } .fb-c.fb-1 { --c: var(--fb-1); }
.fb-c:hover { border-color: var(--c); }
.fb-c.on { border-color: var(--c); background: var(--c); color: #fff; }
.fb-c.on span { color: rgba(255,255,255,.9); }
.fb-c.on::before { background: #fff; }
.fb-c:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 640px) { .fb-choices { grid-template-columns: 1fr; } .fb-c { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 14px; } .fb-c::before { margin: 0; } .fb-c span { flex-basis: 100%; padding-left: 24px; } }
.fb-note { margin-top: 12px; }
.fb-note summary { cursor: pointer; color: var(--navy-600); font-size: 14px; }
.fb-note textarea, #fbQ { width: 100%; margin: 8px 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px; font: inherit; font-size: 15px; }
.fb-o .msg { margin-top: 8px; }
.fb-ask-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fb-ask-row select { max-width: 100%; flex: 1 1 220px; }
.fb-anon { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.fb-revl { list-style: none; margin: 0; padding: 0; }
.fb-revl li { display: flex; gap: 12px; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line); }
.fb-revl li > div { flex: 1; min-width: 0; }
.fb-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.fb-dot.fb-3, .fb-legend i.fb-3, .fb-bar i.fb-3 { background: var(--fb-3); }
.fb-dot.fb-2, .fb-legend i.fb-2, .fb-bar i.fb-2 { background: var(--fb-2); }
.fb-dot.fb-1, .fb-legend i.fb-1, .fb-bar i.fb-1 { background: var(--fb-1); }
.fb-dot.fb-0 { background: var(--fb-0); }
/* tutor dashboard */
.fb-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.fb-stat { padding: 16px 22px; border-left: 1px solid var(--line); }
.fb-stat:first-child { border-left: 0; }
.fb-stat b { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-stat b small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.fb-stat span { font-size: 13px; color: var(--ink-3); }
.fb-stat.warn b { color: var(--fb-1); }
@media (max-width: 720px) { .fb-stats { grid-template-columns: repeat(2, 1fr); } .fb-stat:nth-child(3) { border-left: 0; } .fb-stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.fb-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.fb-cols > div > .card + .card { margin-top: 20px; }
@media (max-width: 1000px) { .fb-cols { grid-template-columns: 1fr; } }
.fb-status { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.fb-status.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fb-3); animation: fbPulse 2s infinite; }
.fb-status.off { color: var(--fb-1); }
@keyframes fbPulse { 50% { opacity: .3; } }
.fb-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 24px; border-top: 1px solid var(--line); }
.fb-row .fb-rt { flex: 1; min-width: 0; }
.fb-row.off { align-items: center; background: #fafbfc; }
.fb-row.off b { color: var(--ink-2); font-weight: 550; }
.fb-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: #eef1f5; margin: 10px 0 6px; }
.fb-bar i { display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: 13.5px; min-width: 22px; }
.fb-bar.empty { align-items: center; padding: 0 12px; font-size: 13px; color: var(--ink-3); }
.fb-bar.sm { height: 10px; margin: 0; flex: 1; max-width: 260px; border-radius: 5px; }
.fb-bar.sm i { min-width: 0; }
.fb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.fb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.fb-prev { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fb-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fb-names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding: 14px; background: #f9fafb; border-radius: 10px; }
.fb-names h4 { font-size: 13px; margin-bottom: 6px; }
.fb-names ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.fb-names li { padding: 3px 0; }
.fb-notes { font-size: 13px; color: var(--ink-2); background: #fff; border-left: 3px solid var(--fb-2); padding: 4px 8px; margin: 3px 0 4px; border-radius: 0 6px 6px 0; }
@media (max-width: 720px) { .fb-names { grid-template-columns: 1fr 1fr; } .fb-row { flex-direction: column; align-items: stretch; padding: 14px 16px; } }
.fb-own { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #f9fafb; flex-wrap: wrap; }
.fb-own input { flex: 1 1 220px; }
.fb-ql { list-style: none; margin: 0; padding: 0; }
.fb-ql li { padding: 12px 20px; border-top: 1px solid var(--line); }
.fb-ql li:first-child { border-top: 0; }
.fb-ql li.done { opacity: .55; }
.fb-ql .fb-qt { font-size: 14.5px; margin-bottom: 2px; }
.fb-ql .btn { margin-top: 6px; }
.fb-join .fb-qr-sm { text-align: center; }
.fb-join .mono { word-break: break-all; }
.fb-ended { padding: 14px 22px; margin-bottom: 16px; background: var(--amber-50); border-color: #f1d9a8; }
.fb-end { color: var(--red) !important; }
.fb-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(7, 26, 47, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fb-overlay[hidden] { display: none; }
.fb-ov-in { background: #fff; border-radius: 18px; padding: 28px; text-align: center; max-width: 520px; width: 100%; }
.fb-ov-in h2 { font-size: 28px; margin-bottom: 6px; }
.fb-ov-in .fb-qr { width: min(360px, 80vw); height: auto; margin: 10px auto; display: block; }
.fb-ov-in .mono { font-size: 18px; word-break: break-all; }
@media print { .fb-acts, .fb-own, .fb-join, .hero-act, .fb-ql .btn { display: none !important; } .fb-cols { grid-template-columns: 1fr; } }
.hero .fb-end { color: #ffd1c9 !important; }
@media (max-width: 640px) { .fb-revl li { flex-wrap: wrap; padding: 12px 16px; } .fb-revl li .btn { margin-left: 24px; } }
.fb-qo { display: inline-block; max-width: 100%; font-size: 12.5px; font-weight: 600; color: var(--navy-700); background: var(--blue-50); border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.fb-qo.gen { color: var(--ink-3); background: #eef1f5; }
.fb-qlab { font-size: 13.5px; color: var(--ink-2); flex-basis: 100%; margin-bottom: -6px; }
.fb-crit { margin: 4px 0 10px; font-size: 13.5px; }
.fb-crit summary { cursor: pointer; color: var(--navy-600); }
.fb-crit ul { margin: 6px 0 0; padding: 8px 12px 8px 30px; background: #f6f8fb; border-radius: 8px; color: var(--ink-2); }
.fb-crit li { margin: 3px 0; }
.fb-crit li b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fb-row.off .fb-crit { margin-bottom: 0; }
.fb-glance .card-h .meta { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* Chapters of a course group (administration) */
.chbox { display: grid; gap: 8px; margin: 8px 0; text-align: left; }
.chbox label { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; font-size: 14px; font-weight: 400; cursor: pointer; }
.chbox label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; flex: none; }
.chbox label span, .fld .chbox label span { display: block; margin: 0; font-size: 14px; font-weight: 400; color: inherit; text-transform: none; letter-spacing: 0; }
.chbox label span b { font-weight: 650; }
.gch-row > td { background: #f6f8fb; }
.gch { padding: 8px 4px; }
.gch .form-f { margin-top: 10px; }

/* Chapter choice in the course preview banner */
.preview .pv-ch { flex-basis: 100%; background: #fffdf8; border: 1px solid #ecd3a6; border-radius: 10px; padding: 12px 14px; }
.preview .pv-ch[hidden] { display: none; }
.preview .pv-ch-h { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.preview .pv-ch-h select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #ecd3a6; border-radius: 6px; background: #fff; margin-left: 6px; }
.preview .chbox { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.preview .pv-ch-f { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }

/* Privacy notice, account data card and administrator privacy tab */
.form[hidden] { display: none; }
.privacy { max-width: 820px; margin: 0 auto; padding-top: 24px; padding-bottom: 40px; }
.privacy h1 { margin: 0 0 4px; }
.privacy h2 { font-size: 17px; margin: 22px 0 6px; }
.privacy p, .privacy li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.privacy ul { padding-left: 20px; margin: 6px 0; }
.footer a { color: inherit; text-decoration: underline; }
.login .fine a { color: inherit; text-decoration: underline; }
