@font-face { font-family: Poppins; src: url("/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Foundations */
:root {
  color-scheme: light;
  font: 13px/1.65 "Poppins", system-ui, sans-serif;
  --ink: #15234b;
  --muted: #485878;
  --canvas: #edf1ff;
  --surface: #fff;
  --subtle: #f0f3ff;
  --field: #e7edfb;
  --stripe: #f5f7ff;
  --nav: #1b2856;
  --nav-surface: #27376d;
  --nav-active: #414ed1;
  --nav-text: #e3e9ff;
  --nav-secondary: #bdcaff;
  --accent: #3b48d7;
  --accent-hover: #2c35a8;
  --accent-wash: #e8eaff;
  --accent-tint: #dce3ff;
  --focus: #3448dd;
  --focus-dark: #a5f8e5;
  --choice: #7588b5;
  --success-ink: #125849;
  --success-bg: #d9f6eb;
  --teal: #8cebd6;
  --warn-ink: #774307;
  --warn-bg: #ffedcb;
  --danger-ink: #92264d;
  --danger-bg: #ffe3ee;
  --review-ink: #553098;
  --review-bg: #ede3ff;
  --hero-start: #304bc1;
  --hero-end: #5135bd;
  --hero-bg: linear-gradient(115deg, var(--hero-start), var(--hero-end));
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --radius-control: 11px;
  --radius-panel: 18px;
  --radius-feature: 22px;
  --shadow-panel: 0 3px 6px #202f7c05, 0 10px 25px #28388409;
  --shadow-overlay: 0 22px 70px #1322514f;
  --header-height: 58px;
  --sidebar-width: 236px;
  --inset: clamp(16px, 2.7vw, 36px);
  background: var(--canvas);
  color: var(--ink);
  scroll-padding-top: calc(var(--header-height) + 12px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: clamp(22px, 2.5vw, 27px); line-height: 1.28; letter-spacing: -.024em; }
h2 { font-size: 16px; line-height: 1.36; letter-spacing: -.014em; }
h3 { font-size: 14px; line-height: 1.35; margin-top: var(--gap-4); }
p + p, h2 + p, h1 + p { margin-top: 6px; }
small, .muted { color: var(--muted); }
small, .mini { font-size: 11px; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
:where(h1, main)[tabindex="-1"]:focus { outline: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; inset: 8px auto auto 8px; padding: 10px 14px; z-index: 7; border-radius: var(--radius-control); background: var(--surface); }
.icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }

/* Application shell */
.layout {
  display: grid; grid-template: "sidebar header" var(--header-height) "sidebar main" 1fr / var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}
.shellbar {
  grid-area: header; min-width: 0; position: sticky; top: 0; z-index: 3; padding-inline: var(--inset);
  display: flex; justify-content: space-between; align-items: center; gap: var(--gap-3);
  background: var(--surface); box-shadow: 0 2px 7px #15294f07;
}
.shell-start, .shell-context, .top-scope, .breadcrumbs, .brand, .sidebar-brand, .wordmark, .environment {
  display: flex; align-items: center; gap: var(--gap-2);
}
.breadcrumbs { font-size: .87rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumbs span:last-child { color: var(--ink); font-weight: 650; }
.shell-start { min-width: 0; }
.shell-context { gap: var(--gap-3); min-width: 0; justify-content: flex-end; }
.top-scope { min-width: 0; max-width: clamp(135px, 25vw, 340px); font-size: .83rem; color: var(--muted); font-weight: 600; }
.top-scope span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-scope .icon { width: 15px; height: 15px; flex-basis: 15px; }
.environment { border-radius: 999px; padding: 4px 9px; color: var(--warn-ink); background: var(--warn-bg); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.environment i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn-ink); }
.brandmark {
  width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; gap: 2px;
  color: white; background: var(--accent); border-radius: var(--radius-control);
}
.brandmark i { width: 3px; height: 12px; border-radius: 2px; background: white; transform: skew(-22deg); }
.brandmark i:nth-child(2) { height: 19px; }
.wordmark { font-size: 1.14rem; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.wordmark span { font-size: .76rem; font-weight: 620; letter-spacing: .05em; color: var(--nav-secondary); }
.shellbar .mobile-brand, .nav-toggle { display: none; }
.shell-account {
  min-height: 36px; width: 36px; flex: 0 0 36px; padding: 0; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-hover);
}
.shell-account:hover { background: var(--accent-tint); }
.shell-avatar { font-size: .79rem; font-weight: 750; }
.sidebar {
  grid-area: sidebar; position: sticky; top: 0; height: 100dvh; overflow-y: auto; align-self: start;
  padding: 0 15px; background: var(--nav); color: white; scrollbar-color: var(--choice) var(--nav);
}
.side-panel { min-height: 100%; display: flex; flex-direction: column; }
.sidebar-brand { min-height: var(--header-height); padding: 4px 5px; }
.side-context {
  min-height: 54px; margin: 4px 0 12px; padding: 8px 9px;
  border-radius: var(--radius-control); display: flex; align-items: center; gap: 9px; background: var(--nav-surface);
}
.side-context strong { font-size: .87rem; }
.side-context > div, .sidefooter > div { min-width: 0; overflow-wrap: anywhere; }
.side-context-icon, .agenda-icon, .docicon, .program-symbol { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background: var(--accent-wash); }
.side-context-icon { background: var(--success-bg); color: var(--success-ink); width: 30px; height: 30px; }
.side-context small, .sidefooter small { display: block; color: var(--nav-secondary); font-size: .76rem; }
.nav-group { margin-top: var(--gap-3); }
.nav-label { padding: 0 8px 5px; color: var(--nav-secondary); font-size: .75rem; font-weight: 650; }
.sidebar :focus-visible { outline-color: var(--focus-dark); outline-offset: 1px; }

/* Controls, surfaces and states */
button, .linkbutton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: var(--radius-control); min-height: 38px; padding: 7px 13px;
  background: var(--accent); color: white; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
}
button:hover { background: var(--accent-hover); }
button.secondary, .linkbutton { background: var(--accent-wash); color: var(--accent-hover); }
button.secondary:hover, .linkbutton:hover { background: var(--accent-tint); }
button.danger { color: var(--danger-ink); background: var(--danger-bg); }
button.danger:hover { background: #ffd2e4; }
@media (prefers-reduced-motion: no-preference) {
  button, .linkbutton { transition: background-color 150ms ease, color 150ms ease; }
}
button:disabled { opacity: .6; cursor: not-allowed; }
.nav {
  width: 100%; min-height: 35px; justify-content: flex-start; text-align: left; padding: 5px 9px;
  border-radius: var(--radius-control); background: transparent; color: var(--nav-text);
  font-size: 11.5px; font-weight: 500; line-height: 1.45;
}
.nav .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--nav-secondary); }
.nav:hover { background: var(--nav-surface); }
.nav.active { background: var(--nav-active); color: white; font-weight: 600; }
.nav.active .icon { color: white; }
.sidefooter { margin-top: auto; padding: var(--gap-5) 4px var(--gap-4); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; }
.side-identity { min-width: 0; overflow-wrap: anywhere; }
.sidefooter .signout { width: 34px; flex: 0 0 34px; justify-content: center; background: var(--nav-surface); }
.sidefooter .signout:hover { background: var(--nav-active); }
.main {
  grid-area: main; min-width: 0; width: 100%; max-width: 1660px;
  margin: 0 auto; padding: 22px var(--inset) 40px;
}
.top { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-3); margin-bottom: 19px; }
.top p { margin-top: 7px; color: var(--muted); max-width: 72ch; }
.card, .program-tile {
  min-width: 0; border-radius: var(--radius-panel);
  background: var(--surface); box-shadow: var(--shadow-panel); overflow-wrap: anywhere;
}
.card { padding: clamp(15px, 1.85vw, 21px); margin-bottom: var(--gap-4); }
.card > h2:first-child { margin-bottom: var(--gap-4); }
.row, .section-intro { display: flex; align-items: center; gap: var(--gap-3); flex-wrap: wrap; }
.spread, .section-intro { justify-content: space-between; }
.section-intro { margin-bottom: var(--gap-4); }
.section-intro > div { flex: 1 1 320px; }
.section-intro p { max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--gap-4); }
.docgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr)); align-items: start; }
.doccard h2 { margin-top: var(--gap-3); }
.doccard details { background: var(--subtle); border-radius: var(--radius-control); padding: 4px 9px; }
.empty, .empty-state {
  border-radius: var(--radius-control); padding: var(--gap-4); background: var(--subtle); color: var(--muted);
}
.empty { grid-column: 1/-1; }
.tag, .pill, .program-version {
  display: inline-block; border-radius: 999px; padding: 3px 9px;
  background: var(--accent-wash); color: var(--accent-hover); font-size: .78rem; font-weight: 700;
}
.tag { white-space: nowrap; }
.tag.ready, .tag.published, .ok { color: var(--success-ink); background: var(--success-bg); }
.tag.remedial, .bad { color: var(--danger-ink); background: var(--danger-bg); }
.tag.draft { color: var(--warn-ink); background: var(--warn-bg); }
.tag.review { color: var(--review-ink); background: var(--review-bg); }
.progress { height: 7px; min-width: 40px; background: var(--accent-tint); border-radius: 999px; overflow: hidden; margin: 5px 0; }
.progress i { display: block; height: 100%; background: var(--accent); }

/* Tables and filters */
.tablewrap { position: relative; overflow-x: auto; margin-block: var(--gap-2); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 435px; text-align: left; font-size: .91rem; }
th, td { padding: 10px 12px; vertical-align: middle; overflow-wrap: normal; }
th { background: var(--accent-wash); color: var(--accent-hover); font-size: 11px; font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--stripe); }
tbody tr:hover, tbody tr:focus-within { background: var(--accent-wash); }
td button, td .linkbutton { min-height: 34px; white-space: nowrap; }
td button + button { margin-left: 4px; }
.table-hint, .mobile-progress-label { display: none; }
.tablewrap[tabindex="0"] + .table-hint { display: block; }
.table-progress { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-progress .progress { flex: 1; }
.list-tools, .queue-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.list-tools label, .queue-controls label { min-width: 0; margin: 0; font-weight: 500; }
.list-search { position: relative; flex: 1 1 175px; max-width: 300px; }
.list-search .icon { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.queue-controls > label:nth-child(2) { max-width: 100%; }
.list-count { margin-left: auto; color: var(--muted); font-size: .81rem; }
.queue-statuses, .course-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 5px; background: var(--subtle); border-radius: 10px; }
.queue-statuses { margin-bottom: var(--gap-3); background: var(--subtle); }
.queue-program-filter { min-height: 32px; margin-bottom: var(--gap-3); text-align: left; background: var(--accent-wash); color: var(--accent-hover); }
.queue-program-filter:hover { background: var(--accent-tint); }
.queue-statuses button, .course-tab { background: transparent; color: var(--muted); }
.queue-statuses button { min-height: 34px; padding: 4px 8px; font-size: .8rem; }
.queue-statuses button:hover, .course-tab:hover { background: var(--accent-wash); }
.queue-statuses button[aria-pressed="true"], .course-tab[aria-current] { background: var(--accent-tint); color: var(--accent-hover); }
.queue-statuses button span { font-size: .76rem; font-variant-numeric: tabular-nums; border-radius: 7px; padding: 1px 5px; background: var(--surface); }

/* Forms, disclosure, dialogs and feedback */
form { max-width: 68ch; margin-block: 10px; }
.field { margin-block: var(--gap-3); min-width: 0; }
label, legend { font-weight: 650; }
label { display: block; margin-bottom: var(--gap-1); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; min-height: 38px; padding: 7px 10px;
  border: 0; border-radius: var(--radius-control); background: var(--field); color: var(--ink);
}
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { background: var(--accent-tint); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.list-search input[type="search"] { padding-left: 33px; }
input[type=checkbox], input[type=radio] {
  appearance: none; width: 18px; height: 18px; flex: none; border: 0;
  display: inline-grid; place-items: center; vertical-align: middle; background: var(--choice);
}
input[type=checkbox] { border-radius: 5px; }
input[type=radio] { border-radius: 50%; }
:is(input[type=checkbox], input[type=radio]):checked { background: var(--accent); }
input[type=checkbox]:checked::before {
  content: ""; width: 11px; height: 11px; background: white;
  clip-path: polygon(3% 49%, 16% 36%, 39% 60%, 84% 12%, 97% 25%, 39% 87%);
}
input[type=radio]:checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: white; }
:is(input[type=checkbox], input[type=radio]):disabled { opacity: .55; }
@media (forced-colors: active) {
  input[type=checkbox], input[type=radio] { appearance: auto; }
  :is(input[type=checkbox], input[type=radio])::before { display: none; }
  :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { outline: 1px solid ButtonText; }
  :is(input, select, textarea):focus-visible { outline: 3px solid Highlight; }
}
.attachment-label { margin-bottom: var(--gap-1); font-weight: 600; }
.attachment-control { display: flex; align-items: center; flex-wrap: wrap; gap: var(--gap-2); margin-bottom: var(--gap-2); }
.attachment-control input[type=file] { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.attachment-control input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.attachment-control label { margin: 0; }
.attachment-control output { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
form button { margin-top: var(--gap-2); }
.cols, .compactform { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gap-3); }
.compactform { max-width: none; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; }
.compactform button { grid-column: 1/-1; justify-self: start; }
fieldset, .lesson-edit { min-width: 0; border: 0; border-radius: 11px; padding: 10px 13px; margin: 10px 0; background: var(--subtle); }
.checkline { display: flex; min-height: 35px; align-items: center; gap: 8px; font-weight: 500; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
.details, .lesson { padding: 10px 0; }
.details { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson { background: var(--subtle); border-radius: var(--radius-control); margin-top: var(--gap-2); padding-inline: var(--gap-3); }
dialog { width: min(94vw, 675px); max-height: 90dvh; overflow: auto; padding: clamp(17px, 3vw, 26px); border: 0; border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-overlay); }
dialog::backdrop { background: #17244c84; }
dialog form { max-width: none; }
.dialog-header { padding-bottom: var(--gap-2); margin-bottom: var(--gap-3); gap: 8px; }
.notice { padding: var(--gap-3) var(--gap-4); border-radius: var(--radius-control); background: var(--warn-bg); color: var(--warn-ink); }
.form-error { margin-bottom: var(--gap-4); background: var(--danger-bg); color: var(--danger-ink); }
.form-error ul { margin: 6px 0 0; padding-left: 1.5rem; }
.field-error { color: var(--danger-ink); margin: 0 0 10px; font-size: .87rem; }
[aria-invalid="true"] { outline: 2px solid var(--danger-ink); }
.feedback:not(:empty) { position: fixed; inset: auto 16px 16px auto; z-index: 5; max-width: min(365px,calc(100% - 32px)); padding: var(--gap-3) var(--gap-4); border-radius: var(--radius-control); box-shadow: var(--shadow-panel); background: var(--success-bg); color: var(--success-ink); }
.feedback-error:not(:empty) { background: var(--danger-bg); color: var(--danger-ink); }

/* Learning and training */
.learning-hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,34%); align-items: center; gap: var(--gap-5);
  min-height: 172px; padding: clamp(18px,3vw,32px); margin-bottom: var(--gap-5); overflow: hidden;
  color: white; border-radius: var(--radius-feature);
  background: var(--hero-bg);
}
.learning-hero h2 { font-size: clamp(19px,3vw,29px); line-height: 1.24; letter-spacing: -.024em; }
.learning-hero p { margin-top: 9px; color: var(--nav-text); font-size: 1rem; }
.hero-action {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--gap-4); padding: 7px 13px;
  min-height: 38px; border-radius: var(--radius-control); background: var(--surface); color: var(--accent-hover);
  font-size: 12px; font-weight: 600; text-decoration: none;
}
.hero-action:hover { background: var(--accent-wash); }
.learning-hero :focus-visible { outline-color: var(--focus-dark); }
.hero-progress { justify-self: center; }
.hero-dial {
  width: 112px; height: 112px; padding: 7px; border-radius: 50%;
  background: conic-gradient(var(--teal) var(--completion), #ffffff42 0);
  box-shadow: 0 0 0 9px #ffffff15;
}
.hero-dial > div { height: 100%; width: 100%; display: grid; place-content: center; justify-items: center; text-align: center; border-radius: 50%; background: #4035ad; }
.hero-dial strong { font-size: 27px; line-height: 1.12; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-dial small { max-width: 70px; color: var(--nav-text); line-height: 1.3; }
.overview-grid, .learner-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,250px); gap: var(--gap-5); align-items: start; }
.program-main { min-width: 0; }
.program-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gap-3); }
.program-heading h2 { font-size: 16px; }
.program-heading span, .program-meta, .program-period { color: var(--muted); font-size: .85rem; }
.program-grid, .course-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: var(--gap-4); }
.program-tile { display: flex; flex-direction: column; padding: var(--gap-4); }
.program-tile-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; padding-bottom: var(--gap-1); }
.program-tile h3 { margin: 12px 0 4px; font-size: 15px; }
.program-period, .program-tile-footer > span { display: flex; align-items: center; gap: 5px; }
.program-period .icon, .program-tile-footer .icon { width: 14px; height: 14px; flex-basis: 14px; }
.program-progress, .program-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.program-progress { margin-top: auto; padding-top: 13px; color: var(--muted); font-size: .83rem; }
.program-progress strong { color: var(--ink); }
.program-tile-footer { background: var(--subtle); border-radius: 9px; margin-top: 11px; padding: 6px 8px; color: var(--muted); font-size: .79rem; }
.program-open { min-height: 35px; width: 35px; padding: 4px; flex: 0 0 35px; background: var(--accent-wash); color: var(--accent); }
.program-open:hover { background: var(--accent-tint); }
.training-queue { margin-top: var(--gap-4); }
.training-queue summary { font-size: 1.06rem; }
.training-queue summary small { margin-left: 7px; font-weight: 500; }
.workspace-agenda { list-style: none; padding: 0; margin: 0 0 var(--gap-3); }
.workspace-agenda li { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 6px 0; }
.workspace-agenda li:first-child { padding-top: 0; }
.workspace-agenda li > div { flex: 1; min-width: 0; }
.workspace-agenda small { display: block; margin-top: 3px; }
.agenda-icon { width: 30px; height: 30px; background: var(--success-bg); color: var(--success-ink); }
.agenda-empty { color: var(--muted); margin-bottom: var(--gap-4); }
.course-cards .card { margin: 0; }
.course-progress-label { margin-top: var(--gap-4); font-weight: 650; }
.course-next, .course-objective { margin: var(--gap-3) 0; padding: var(--gap-3) var(--gap-4); border-radius: var(--radius-control); background: var(--subtle); }
.course-back { margin-bottom: var(--gap-3); }
.course-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-5);
  padding: clamp(18px,4vw,35px); border-radius: var(--radius-feature); background: var(--accent-tint); color: var(--ink);
}
.course-banner h2 { font-size: clamp(18px,2.6vw,24px); margin: 4px 0; }
.course-context, .course-banner p { color: var(--muted); }
.course-banner-progress { flex: 0 1 245px; min-width: min(100%,175px); }
.course-banner .progress { background: var(--surface); }
.course-banner .progress i { background: var(--accent); }
.course-tabs { margin: var(--gap-4) 0; }
.course-tab { min-height: 42px; }
.course-layout { display: grid; grid-template-columns: minmax(210px,270px) minmax(0,1fr); gap: var(--gap-4); align-items: start; }
.course-index details + details { margin-top: 6px; }
.course-index summary small { margin-left: 5px; }
.course-item { justify-content: flex-start; align-items: start; width: 100%; margin: 3px 0; text-align: left; background: white; color: var(--ink); font-weight: 500; }
.course-item:hover { background: var(--subtle); }
.course-item small { display: block; }
.course-item[aria-current] { background: var(--accent-wash); color: var(--accent-hover); }
.course-reader h2 { font-size: clamp(18px,2.4vw,22px); margin: 5px 0 15px; }
.course-reader p, .course-text { max-width: 72ch; }
.course-objective h3 { margin-top: 0; }
.course-text { font-size: 1.03rem; line-height: 1.72; }
.completion-control, .course-pager { margin-top: 20px; }
.completion-control { padding: 5px var(--gap-3); border-radius: var(--radius-control); background: var(--success-bg); color: var(--success-ink); }
.course-checks { display: grid; gap: var(--gap-2); list-style: none; padding: 0; }
.course-checks li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--subtle); border-radius: var(--radius-control); }

/* Sign-in and fallbacks */
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; width: min(960px,calc(100% - 36px)); margin: min(13vh,110px) auto;
  overflow: hidden; border-radius: var(--radius-feature); background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.auth-brand {
  min-height: 375px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap-5);
  padding: clamp(22px,4vw,46px); color: white;
  background: var(--hero-bg);
}
.auth-brand-message p { color: var(--nav-text); font-size: .84rem; font-weight: 650; }
.auth-brand .brandmark { background: var(--surface); }
.auth-brand .brandmark i { background: var(--accent); }
.auth-brand-message strong { display: block; margin-top: 4px; font-size: clamp(21px,3vw,29px); line-height: 1.1; letter-spacing: -.038em; }
.auth-form { align-self: center; padding: clamp(22px,4vw,46px); }
.auth-form h1 { font-size: clamp(20px,2.5vw,25px); }
.auth-form button { width: 100%; }
.login { max-width: 440px; margin: min(12vh,110px) auto; padding: var(--gap-5); }
.login .brand { margin-bottom: var(--gap-4); }
.login .wordmark span { color: var(--accent); }
.login button { margin-top: var(--gap-3); }

/* Adaptive composition */
@media(max-width:1130px) {
  .overview-grid, .learner-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:830px) {
  :root { --header-height: 58px; }
  .layout { display: block; }
  .shellbar { min-height: var(--header-height); padding-inline: 12px; }
  .shellbar .mobile-brand, .shellbar .nav-toggle { display: inline-flex; }
  .shellbar .nav-toggle { min-height: 37px; padding: 4px 8px; background: var(--accent-wash); color: var(--accent-hover); }
  .shellbar .mobile-brand .wordmark span { color: var(--muted); }
  .breadcrumbs, .top-scope, .sidebar-brand { display: none; }
  .shell-start, .shell-context { gap: 7px; }
  .sidebar { position: static; height: auto; padding: 0; overflow: visible; }
  .side-panel { display: none; }
  .side-panel.is-open { display: flex; padding: 0 14px; }
  .nav { min-height: 41px; }
  .main { padding-top: 21px; }
}
@media(max-width:660px) {
  .course-layout, .auth-layout { grid-template-columns: minmax(0,1fr); }
  .course-reader { grid-row: 1; }
  .course-tabs { justify-content: flex-start; }
  .auth-layout { margin-top: 30px; }
  .auth-brand { min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
  .auth-brand-message p { display: none; }
  .auth-brand-message strong { font-size: 1.05rem; }
}
@media(max-width:560px) {
  .cols, .compactform { grid-template-columns: minmax(0,1fr); }
  .main { padding-inline: 14px; }
  .top { margin-bottom: 17px; }
  .learning-hero { grid-template-columns: minmax(0,1fr) 90px; gap: 12px; min-height: 166px; padding: 17px; }
  .learning-hero h2 { font-size: clamp(18px,5vw,21px); }
  .learning-hero p { font-size: .85rem; }
  .hero-action { margin-top: 12px; font-size: .8rem; padding: 5px 8px; }
  .hero-dial { width: 85px; height: 85px; padding: 5px; box-shadow: 0 0 0 8px #ffffff19; }
  .hero-dial strong { font-size: 21px; }
  .hero-dial small { font-size: .66rem; }
  .list-count { flex-basis: 100%; margin-left: 0; }
  .overview-grid table, .overview-grid tbody { display: block; width: 100%; min-width: 0; }
  .overview-grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .overview-grid tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; padding: 11px; align-items: center; background: var(--subtle); border-radius: var(--radius-control); }
  .overview-grid tbody tr + tr { margin-top: var(--gap-2); }
  .overview-grid tbody td { padding: 0; border: 0; }
  .overview-grid tbody td:nth-child(2) { grid-row: 2; grid-column: 1/-1; color: var(--muted); }
  .overview-grid tbody td:nth-child(3) { grid-row: 3; grid-column: 1; }
  .overview-grid tbody td:nth-child(4) { grid-row: 1; grid-column: 2; }
  .overview-grid tbody td:last-child { grid-row: 3; grid-column: 2; justify-self: end; }
  .mobile-progress-label { display: inline; color: var(--muted); }
  .login { margin-inline: 15px; }
}
@media(max-width:370px) {
  .shellbar .mobile-brand .brandmark { display: none; }
  .shellbar .environment { padding-inline: 6px; }
}
@media print {
  .sidebar, .shellbar, .feedback, .skip-link, .list-tools { display: none; }
  .layout { display: block; }
  .main { padding: 0; }
}

.certificate { max-width: 650px; margin: 40px auto; padding: 38px 24px; text-align: center; }
.certificate h1 { margin: 14px 0 22px; }
.certificate h3 { margin: 8px 0 18px; }
@media(max-width: 680px) { .certificate { margin: 16px; } }
