/*
 * Secondary-page stylesheet for non-app.html pages: login, change-password,
 * learn, instructor, curriculum, records, admin-users.
 *
 * The PRODUCTION app shell (app.html) defines the same tokens inline. Keep
 * the values below in lockstep with app.html's :root so cards look the same
 * across pages. mockup.css is design-reference only (mockup.html) and is
 * intentionally divergent — do not sync it.
 */
:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: rgba(13, 25, 43, 0.78);
  --panel-strong: rgba(16, 31, 53, 0.92);
  --line: rgba(134, 190, 255, 0.16);
  --line-strong: rgba(142, 214, 255, 0.32);
  --text: #f5f8ff;
  --muted: #96a5ba;
  --teal: #36f1e1;
  --cyan: #61b9ff;
  --blue: #2f6fff;
  --green: #4de8a7;
  --gold: #ffc85a;
  --danger: #ff5370;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@keyframes tmaPulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(54,241,225,0)); transform: scale(1); } 50% { filter: drop-shadow(0 0 18px rgba(54,241,225,.34)); transform: scale(1.025); } }
@keyframes tmaGleam { 0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; } 20% { opacity: .74; } 100% { transform: translateX(170%) skewX(-18deg); opacity: 0; } }
@keyframes tmaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tmaShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
@keyframes tmaBounce { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-4px); } 70% { transform: translateY(1px); } }
@keyframes tmaAmbientGlow { 0%,100% { box-shadow: 0 18px 50px rgba(0,0,0,.24); } 50% { box-shadow: 0 22px 58px rgba(0,0,0,.28), 0 0 34px rgba(54,241,225,.12); } }
@keyframes tmaStatusPing { 0%,100% { box-shadow: 0 0 0 0 rgba(54,241,225,.32); } 50% { box-shadow: 0 0 0 8px rgba(54,241,225,0); } }
@keyframes tmaSuccessBurst { 0% { opacity: 0; transform: scale(.92); } 20% { opacity: .85; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes tmaPanelBloom { 0% { opacity: .7; filter: brightness(.92); } 100% { opacity: 1; filter: brightness(1); } }
@keyframes tmaSuccessGlow { 0%,100% { box-shadow: 0 0 0 rgba(77,232,167,0); } 50% { box-shadow: 0 0 26px rgba(77,232,167,.22); } }
@keyframes tmaWarnGlow { 0%,100% { box-shadow: 0 0 0 rgba(255,200,90,0); } 50% { box-shadow: 0 0 22px rgba(255,200,90,.18); } }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 22% 12%, rgba(54, 241, 225, 0.13), transparent 28%), linear-gradient(180deg, #040811 0%, #07111e 55%, #040810 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-rows: 72px minmax(0, 1fr); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(6, 15, 28, 0.86); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: 0 0 auto; width: 44px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #03101c; font-weight: 900; font-size: 12px; letter-spacing: .03em; animation: tmaPulse 4.8s ease-in-out infinite; }
.brand strong { display: block; color: var(--text); letter-spacing: .18em; }
.brand > span:not(.logo) { display: block; min-width: 0; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand > span:not(.logo) > span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn { position: relative; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; background: rgba(8, 17, 31, 0.55); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; transition: 180ms ease; }
.btn.primary { border: 0; color: #03101c; font-weight: 820; background: linear-gradient(135deg, var(--teal), var(--blue)); }
.btn.primary::after { content: ""; position: absolute; inset: -28% auto -28% -44%; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.56), transparent); transform: translateX(-140%) skewX(-18deg); animation: tmaGleam 4.4s ease-in-out infinite; pointer-events: none; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.btn.full { width: 100%; }
.btn.slim { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .46; }
.page { padding: 22px; }
.grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: minmax(0, 1fr) 340px; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-page, .redirect-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.redirect-page { align-content: center; gap: 18px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel-strong); box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.auth-copy h1 { margin-bottom: 0; }
form { display: grid; gap: 10px; }
label { color: var(--muted); font-size: 14px; }
input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.06); color: var(--text); outline: 0; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(54,241,225,.12); }
.question, .status { margin: 0; color: var(--muted); }
.status { min-height: 22px; transition: color 160ms ease, text-shadow 160ms ease; }
.status.success { color: var(--green); text-shadow: 0 0 18px rgba(77,232,167,.22); }
.status.warn { color: var(--gold); text-shadow: 0 0 18px rgba(255,200,90,.18); }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.card.pad { padding: 18px; }
.kicker { margin: 0 0 8px; color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
h2 { font-size: 18px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.page-intro { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: linear-gradient(135deg, rgba(54, 241, 225, .08), rgba(47, 111, 255, .08)); }
.page-intro.split { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill-grid span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 13px; }
.catalog-totals { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 10px; min-width: min(420px, 100%); }
.catalog-totals div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.04); }
.catalog-totals span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.catalog-totals strong { font-size: 28px; }
.curriculum-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.segmented { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 5px; background: rgba(255,255,255,.035); }
.segmented button { min-height: 36px; border: 0; border-radius: 10px; padding: 0 12px; background: transparent; color: var(--muted); cursor: pointer; }
.segmented button.active { color: #03101c; font-weight: 850; background: linear-gradient(135deg, var(--teal), var(--blue)); }
.catalog-search { width: min(360px, 100%); display: grid; gap: 6px; }
.curriculum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.curriculum-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.2); overflow: hidden; }
.curriculum-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, transparent, var(--teal), transparent); opacity: .55; animation: tmaStatusPing 4.2s ease-in-out infinite; }
.curriculum-card:hover { box-shadow: 0 18px 50px rgba(0,0,0,.26), 0 0 32px rgba(54,241,225,.10); }
.curriculum-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.curriculum-card h2 { margin-bottom: 0; }
.hour-pill { flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 10px; color: var(--teal); background: rgba(54,241,225,.08); font-weight: 850; }
.course-progress { height: 8px; margin: 16px 0 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.course-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan), #ffffff, var(--cyan), var(--teal)); background-size: 220% 100%; animation: tmaShimmer 3.8s linear infinite; }
.curriculum-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.curriculum-card details { border-top: 1px solid var(--line); padding-top: 12px; }
.curriculum-card summary { cursor: pointer; color: var(--text); font-weight: 800; }
.lesson-chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; }
.lesson-chip { min-height: 46px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,.035); color: var(--text); text-decoration: none; }
.lesson-chip:hover { border-color: var(--line-strong); background: rgba(54,241,225,.08); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.lesson-chip span { color: var(--muted); font-size: 12px; }
.player { overflow: hidden; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 18px; align-items: start; }
.premium-player { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
.watch-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.24); animation: tmaAmbientGlow 6.8s ease-in-out infinite; }
.lesson-sidebar { display: grid; gap: 18px; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.player-head.compact h1 { font-size: clamp(26px, 3.2vw, 40px); }
.player-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stage { min-height: min(62vh, 680px); display: grid; place-items: center; background: linear-gradient(135deg, rgba(54,241,225,.12), rgba(47,111,255,.08)), #07111e; }
.stage.cinematic { position: relative; min-height: clamp(390px, 56vh, 640px); background: linear-gradient(180deg, rgba(5, 11, 20, .14), rgba(5, 11, 20, .86)), radial-gradient(circle at 72% 24%, rgba(255, 200, 90, .2), transparent 28%), linear-gradient(135deg, rgba(54,241,225,.16), rgba(47,111,255,.12)), #07111e; }
.lesson-stage { background: linear-gradient(180deg, rgba(5, 11, 20, .20), rgba(5, 11, 20, .88)), var(--lesson-art, linear-gradient(135deg, rgba(54,241,225,.16), rgba(47,111,255,.12))); background-size: cover; background-position: center; }
.lesson-stage { overflow: hidden; }
.lesson-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0 18%, rgba(255,255,255,.08) 24%, transparent 34% 100%); opacity: .55; animation: tmaGleam 6.5s ease-in-out infinite; }
.stage-toolbar { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; justify-content: space-between; gap: 10px; }
.stage-toolbar span { min-height: 30px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--text); background: rgba(3, 9, 18, .72); font-size: 12px; font-weight: 800; }
.video-controls { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.video-track { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.14); }
.video-track span { display: block; height: 100%; width: 12%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .24s ease; }
.scorm-placeholder { width: min(760px, 82%); min-height: 360px; border: 1px solid var(--line-strong); border-radius: 20px; display: grid; place-items: center; text-align: center; padding: 28px; background: rgba(255,255,255,.04); }
.lesson-content-frame { position: relative; z-index: 1; grid-template-columns: 86px minmax(0, 1fr); text-align: left; gap: 20px; background: radial-gradient(circle at 20% 20%, rgba(54,241,225,.16), transparent 34%), rgba(255,255,255,.045); }
.play-orb { width: 74px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #03101c; background: linear-gradient(135deg, var(--teal), var(--blue)); font-weight: 950; box-shadow: 0 18px 42px rgba(54,241,225,.22); animation: tmaPulse 3.4s ease-in-out infinite; }
.scorm-placeholder strong { display: block; font-size: clamp(28px, 5vw, 52px); margin-bottom: 8px; }
.progress-line, .timeline { height: 8px; background: rgba(255,255,255,.08); }
.progress-line span, .timeline span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--teal), var(--cyan), #ffffff, var(--cyan), var(--teal)); background-size: 220% 100%; transition: width .22s ease; animation: tmaShimmer 3.6s linear infinite; }
.player-metadata { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.player-metadata div { min-height: 74px; padding: 14px; border-right: 1px solid var(--line); }
.player-metadata div:last-child { border-right: 0; }
.player-metadata span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.player-metadata strong { font-size: 20px; }
.player-metadata strong.verified { color: var(--green); text-shadow: 0 0 18px rgba(77,232,167,.22); animation: tmaSuccessGlow 2.6s ease-in-out infinite; }
.player-workspace { padding: 18px; border-top: 1px solid var(--line); }
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabbar button { min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; }
.tabbar button.active { color: #03101c; border-color: transparent; font-weight: 850; background: linear-gradient(135deg, var(--teal), var(--blue)); animation: tmaPulse 5s ease-in-out infinite; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tmaPanelBloom 180ms ease-out; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr); gap: 16px; }
.workspace-grid article, .quiz-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.035); }
.outcome-list { display: grid; gap: 10px; }
.outcome-list label { display: flex; align-items: center; gap: 10px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-grid a, .resource-grid button { min-height: 104px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.035); color: var(--text); text-align: left; cursor: pointer; }
.resource-grid span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.35; }
.quiz-card h2 { font-size: 20px; line-height: 1.3; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.04); color: var(--text); text-align: left; cursor: pointer; }
.quiz-options button.correct { border-color: rgba(77,232,167,.65); background: rgba(77,232,167,.12); animation: tmaSuccessGlow 2.2s ease-in-out infinite; }
.quiz-options button.wrong { border-color: rgba(255,83,112,.65); background: rgba(255,83,112,.12); animation: tmaWarnGlow 1.6s ease-in-out 2; }
.stat-list { display: grid; gap: 12px; }
.stat { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stat span { color: var(--muted); }
.stat strong { text-align: right; }
.notice { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.045); overflow: hidden; }
.notice::after { content: ""; position: absolute; inset: -40% auto -40% -55%; width: 42%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: tmaGleam 7s ease-in-out infinite; pointer-events: none; }
.records { display: grid; gap: 12px; }
.record-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 999px; padding: 0 10px; color: #06111d; background: var(--green); font-weight: 800; font-size: 12px; animation: tmaBounce 3.4s ease-in-out infinite; }
.badge.progress { background: var(--gold); }
.badge.locked { background: #77869a; color: white; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.certificate-card { min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.04); transition: 180ms ease; }
.certificate-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.certificate-card.complete { background: linear-gradient(135deg, rgba(77, 232, 167, .14), rgba(255,255,255,.035)); }
.certificate-card.progress { background: linear-gradient(135deg, rgba(255, 200, 90, .14), rgba(255,255,255,.035)); }
.certificate-card.locked { background: linear-gradient(135deg, rgba(119, 134, 154, .16), rgba(255,255,255,.03)); }
.certificate-card h2 { margin-bottom: 0; }
.certificate-card p { color: var(--muted); }
.activity-list { display: grid; gap: 10px; }
.activity-list div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.035); overflow: hidden; }
.activity-list div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); opacity: .72; animation: tmaStatusPing 3.2s ease-in-out infinite; }
.activity-list span { color: var(--muted); }
.activity-list time { grid-row: 1 / span 2; grid-column: 2; color: var(--muted); font-size: 13px; white-space: nowrap; }
.activity-list.compact div { grid-template-columns: 1fr; }
.progress-ring { width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px; background: conic-gradient(var(--teal) 0 72%, rgba(255,255,255,.08) 72% 100%); position: relative; animation: tmaPulse 5.8s ease-in-out infinite; }
.progress-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--panel-strong); }
.progress-ring span { position: relative; z-index: 1; font-size: 30px; font-weight: 900; }
.small-ring { width: 132px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); transition: 180ms ease; }
.metric:hover { box-shadow: 0 16px 36px rgba(0,0,0,.22), 0 0 28px rgba(54,241,225,.10); }
.metric span { color: var(--muted); display: block; margin-bottom: 8px; }
.metric strong { font-size: 34px; }
.metric em { display: block; margin-top: 6px; color: var(--green); font-style: normal; font-size: 13px; }
.metric em.warn { color: var(--gold); }
.table { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 120px 120px 140px; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.table-row:last-child { border-bottom: 0; }
.instructor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.triage-list { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.triage-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 90px 110px 128px; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.triage-row:last-child { border-bottom: 0; }
.triage-row.alert { background: rgba(255, 200, 90, .08); box-shadow: inset 3px 0 0 var(--gold); }
.triage-row span { color: var(--muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.checklist { display: grid; gap: 10px; }
.checklist label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.checklist input { width: 18px; height: 18px; accent-color: var(--teal); }
.checklist input:checked + span, .checklist label:has(input:checked) { color: var(--text); }
.student-card { display: grid; gap: 14px; }
.student-line { display: flex; align-items: center; gap: 12px; }
.student-line span:not(.student-avatar) { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.student-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #03101c; background: linear-gradient(135deg, var(--gold), var(--teal)); font-weight: 950; animation: tmaPulse 4s ease-in-out infinite; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.035); }
.mini-stats span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.modal-backdrop { position: fixed; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(1, 6, 13, .72); z-index: 10; }
.modal-backdrop.open { display: grid; }
.modal { width: min(440px, 100%); border-radius: 18px; padding: 20px; background: #f7fbff; color: #17212b; animation: tmaPanelBloom 180ms ease-out; }
.modal input { width: 100%; min-height: 44px; border: 1px solid #c8d4e2; border-radius: 10px; padding: 10px 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (max-width: 920px) {
  .topbar { align-items: flex-start; flex-direction: column; height: auto; padding: 14px; }
  .nav-actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .page { padding: 14px; }
  .two-col, .three-col, .lesson-layout, .certificate-grid, .instructor-grid, .curriculum-grid, .workspace-grid, .resource-grid { grid-template-columns: 1fr; }
  .player-head { align-items: flex-start; flex-direction: column; }
  .record-row, .table-row, .triage-row { grid-template-columns: 1fr; }
  .scorm-placeholder { width: calc(100% - 28px); min-height: 300px; }
  .player-metadata { grid-template-columns: repeat(2, 1fr); }
  .player-metadata div:nth-child(2) { border-right: 0; }
  .lesson-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-sidebar .notice { grid-column: 1 / -1; }
  .page-intro.split { align-items: flex-start; flex-direction: column; }
  .pill-grid { justify-content: flex-start; }
  .activity-list div { grid-template-columns: 1fr; }
  .activity-list time { grid-row: auto; grid-column: auto; }
  .curriculum-toolbar { align-items: stretch; flex-direction: column; }
  .segmented { overflow-x: auto; }
}
@media (max-width: 520px) {
  .nav-actions { grid-template-columns: 1fr; }
  .brand strong { letter-spacing: .08em; }
  .stage { min-height: 420px; }
  .stage.cinematic { min-height: 360px; }
  .player-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .player-metadata, .lesson-sidebar { grid-template-columns: 1fr; }
  .catalog-totals { grid-template-columns: 1fr; }
  .player-metadata div { border-right: 0; border-bottom: 1px solid var(--line); }
  .player-metadata div:last-child { border-bottom: 0; }
}
.lesson-queue { display: grid; gap: 10px; max-height: min(52vh, 560px); overflow: auto; padding-right: 4px; }
.queue-item { min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); text-align: left; padding: 10px 12px; cursor: pointer; display: grid; gap: 4px; }
.queue-item span { font-weight: 800; }
.queue-item small { color: var(--muted); }
.queue-item.active { border-color: var(--line-strong); background: rgba(54,241,225,.10); animation: tmaPulse 4.8s ease-in-out infinite; }
.queue-item.complete { border-color: rgba(77,232,167,.3); background: rgba(77,232,167,.08); box-shadow: inset 3px 0 0 rgba(77,232,167,.7); }
.queue-item.locked { opacity: .72; }
body.celebrating::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(circle at 35% 35%, rgba(54,241,225,.22), transparent 14%), radial-gradient(circle at 62% 28%, rgba(255,200,90,.18), transparent 12%), radial-gradient(circle at 54% 64%, rgba(97,185,255,.18), transparent 16%); animation: tmaSuccessBurst 900ms ease-out forwards; }
code { color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
