/* Enterprise AI Academy — design system */
:root {
  --navy: #0E1B2C;
  --navy-2: #14253A;
  --blue: #00AEEF;
  --blue-dark: #0B6E99;
  --orange: #F26B3A;          /* CriticalRiver accent */
  --ink: #16222E;
  --slate: #5B6B7B;
  --line: #E4E9EE;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --green: #16A34A;
  --green-bg: #E8F7EE;
  --red: #DC2626;
  --red-bg: #FDEBEB;
  --amber: #D97706;
  --amber-bg: #FDF3E3;
  --r: 0;
  --shadow: 0 1px 2px rgba(16,34,46,.06), 0 8px 24px rgba(16,34,46,.07);
  --shadow-lg: 0 4px 12px rgba(16,34,46,.08), 0 16px 48px rgba(16,34,46,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100%; }
#app { min-height: 100vh; }
a { color: var(--blue-dark); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { display: block; }

/* ---------- top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 62px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  background: transparent;
  display: grid; place-items: center;
}
.brand-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.brand-sub { font-size: 10.5px; color: #9FB2C5; letter-spacing: .4px; margin-top: -2px; }
.brand-sub b { color: var(--orange); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  color: #C6D3E0; padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: rgba(0,174,239,.22); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #D14A1E);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
}
.nav-user .who { text-align: right; line-height: 1.2; }
.nav-user .who .n { font-size: 13.5px; font-weight: 600; }
.nav-user .who .r { font-size: 11px; color: #9FB2C5; }
.btn-ghost {
  background: transparent; color: #C6D3E0; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 28px 80px; }
.page-head { margin: 6px 0 22px; }
.page-head h1 { font-size: 26px; letter-spacing: -.4px; }
.page-head p { color: var(--slate); margin-top: 4px; max-width: 70ch; }
.crumb { font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.crumb a { color: var(--blue-dark); font-weight: 600; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.kpi .l { font-size: 12.5px; color: var(--slate); font-weight: 600; margin-top: 2px; }
.kpi .d { font-size: 11.5px; color: #93A3B3; margin-top: 4px; }

/* course card */
.course-card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-cover { position: relative; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover .week-chip {
  position: absolute; top: 10px; left: 10px;
  background: rgba(14,27,44,.85); color: #fff; backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px;
}
.course-cover .done-chip {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.track-chip { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.course-body h3 { font-size: 16.5px; letter-spacing: -.2px; line-height: 1.3; }
.course-body .tag { color: var(--slate); font-size: 13px; flex: 1; }
.meta-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #93A3B3; font-weight: 600; }
.pbar { height: 6px; background: #EDF1F5; border-radius: 999px; overflow: hidden; }
.pbar > div { height: 100%; background: linear-gradient(90deg, var(--blue), #36c7ff); border-radius: 999px; }
.quiz-pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.quiz-pill.pass { background: var(--green-bg); color: var(--green); }
.quiz-pill.fail { background: var(--red-bg); color: var(--red); }
.quiz-pill.none { background: #EDF1F5; color: var(--slate); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: 14px; font-weight: 700; letter-spacing: .1px;
  transition: background .12s ease, transform .08s ease;
}
.btn:hover { background: #0099D4; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: #EAF0F5; color: var(--ink); }
.btn.secondary:hover { background: #DDE6EE; }
.btn.dark { background: var(--navy); }
.btn.dark:hover { background: #1A2F49; }
.btn.warn { background: var(--orange); }
.btn.warn:hover { background: #D8541F; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- filter tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.tab {
  background: var(--card); border: 1px solid var(--line); color: var(--slate);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 700;
}
.tab:hover { border-color: var(--blue); color: var(--blue-dark); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0B2A4A 55%, #083B5E 100%);
  color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,174,239,.25), transparent 65%);
}
.auth-hero h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.8px; margin: 18px 0 14px; max-width: 14ch; }
.auth-hero p.lead { color: #B9C9D9; font-size: 16px; max-width: 44ch; }
.auth-stats { display: flex; gap: 36px; margin-top: 38px; }
.auth-stats .s .v { font-size: 30px; font-weight: 800; color: var(--blue); }
.auth-stats .s .l { font-size: 12.5px; color: #9FB2C5; font-weight: 600; }
.auth-foot { font-size: 12.5px; color: #7E93A8; }
.auth-foot b { color: var(--orange); }
.auth-form-side { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h2 { font-size: 22px; letter-spacing: -.3px; margin-bottom: 4px; }
.auth-card .sub { color: var(--slate); font-size: 13.5px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 14.5px; font-family: var(--font); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.14); }
.auth-err { background: var(--red-bg); color: var(--red); font-size: 13px; font-weight: 600; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; display: none; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--slate); margin-top: 16px; }
.demo-creds { margin-top: 18px; background: #F0F7FC; border: 1px dashed #B5DCF0; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--blue-dark); }
.demo-creds code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---------- course player ---------- */
.player { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.mode-tabs { display: flex; gap: 6px; padding: 10px 12px 0; background: var(--navy); }
.mode-tab {
  background: transparent; border: none; color: #8FA3B8;
  padding: 9px 16px; font-size: 13px; font-weight: 700; border-radius: 9px 9px 0 0;
}
.mode-tab:hover { color: #fff; }
.mode-tab.active { background: #0A1522; color: #fff; }
.mode-tab .rec-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; }
.viewer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px;
}
.video-placeholder .inner { max-width: 420px; color: #B9C9D9; }
.video-placeholder .pp {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.3);
  display: grid; place-items: center; font-size: 26px; color: #8FA3B8;
}
.video-placeholder h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.video-placeholder p { font-size: 13px; line-height: 1.6; }
/* fullscreen mode */
.viewer:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.viewer:fullscreen .stage { flex: 1; aspect-ratio: auto; }
.viewer:-webkit-full-screen { display: flex; flex-direction: column; border-radius: 0; }
.viewer:-webkit-full-screen .stage { flex: 1; aspect-ratio: auto; }
.viewer { background: var(--navy); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.viewer .stage { position: relative; aspect-ratio: 4/3; background: #0A1522; }
.viewer .stage img { width: 100%; height: 100%; object-fit: contain; }
.viewer .stage canvas { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.35); }
.viewer .controls {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--navy-2); color: #C6D3E0;
}
.viewer .controls .spacer { flex: 1; }
.viewer .controls .count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-btn {
  background: rgba(255,255,255,.1); border: none; color: #fff; border-radius: 8px;
  width: 38px; height: 34px; font-size: 16px; font-weight: 700;
}
.nav-btn:hover { background: rgba(0,174,239,.35); }
.viewer .vbar { height: 4px; background: rgba(255,255,255,.12); }
.viewer .vbar > div { height: 100%; background: var(--blue); transition: width .2s ease; }
.side-panel { display: flex; flex-direction: column; gap: 16px; }
.side-panel .card { padding: 20px; }
.side-panel h3 { font-size: 15px; margin-bottom: 8px; }
.side-panel .desc { font-size: 13.5px; color: var(--slate); }
.fact-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #F0F3F6; }
.fact-row:last-child { border-bottom: none; }
.fact-row .k { color: var(--slate); font-weight: 600; }
.fact-row .v { font-weight: 700; }

/* ---------- quiz ---------- */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.q-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.q-progress .pbar { flex: 1; height: 8px; }
.q-progress .n { font-size: 13px; font-weight: 700; color: var(--slate); white-space: nowrap; }
.q-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 34px; }
.q-from { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; color: var(--blue-dark); text-transform: uppercase; margin-bottom: 10px; }
.q-text { font-size: 18px; font-weight: 700; letter-spacing: -.2px; line-height: 1.4; margin-bottom: 18px; }
.q-code { background: #0E1B2C; color: #D7E3EE; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; white-space: pre-wrap; line-height: 1.5; }
.opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color .1s ease, background .1s ease; font-size: 14.5px;
}
.opt:hover { border-color: var(--blue); background: #F4FBFE; }
.opt.sel { border-color: var(--blue); background: #EAF7FD; box-shadow: 0 0 0 3px rgba(0,174,239,.12); }
.opt .letter {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #EDF1F5; color: var(--slate); font-weight: 800; font-size: 12.5px;
  display: grid; place-items: center; margin-top: 1px;
}
.opt.sel .letter { background: var(--blue); color: #fff; }
.q-nav { display: flex; gap: 10px; margin-top: 22px; }
.q-nav .spacer { flex: 1; }

/* quiz result */
.result-hero { text-align: center; padding: 38px 30px 30px; }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; }
.ring svg { transform: rotate(-90deg); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 8px 20px; }
.verdict.pass { background: var(--green-bg); color: var(--green); }
.verdict.fail { background: var(--red-bg); color: var(--red); }
.review-item { border-top: 1px solid var(--line); padding: 18px 0; }
.review-item .rq { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.review-item .ra { font-size: 13.5px; margin: 3px 0; padding: 7px 12px; border-radius: 8px; }
.ra.correct { background: var(--green-bg); color: #14532D; font-weight: 600; }
.ra.wrong { background: var(--red-bg); color: #7F1D1D; font-weight: 600; }
.review-item .exp { font-size: 13px; color: var(--slate); margin-top: 8px; padding-left: 12px; }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--slate); padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #F0F3F6; vertical-align: middle; }
table.data tr:hover td { background: #FAFCFE; }
.mini-bar { width: 120px; height: 6px; background: #EDF1F5; border-radius: 999px; display: inline-block; vertical-align: middle; }
.mini-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }

/* ---------- program structure ---------- */
.structure-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.week-col { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.week-col .wh { background: var(--navy); color: #fff; padding: 10px 14px; font-weight: 800; font-size: 13px; }
.week-col .wh small { display: block; color: #9FB2C5; font-weight: 600; font-size: 10.5px; }
.week-col ul { list-style: none; padding: 10px 12px; }
.week-col li { font-size: 12px; padding: 6px 8px; border-radius: 7px; margin-bottom: 4px; font-weight: 600; }
.track-band { display: flex; gap: 14px; flex-wrap: wrap; }
.track-card { flex: 1 1 240px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; border-top: 4px solid; }
.track-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.track-card p { font-size: 13px; color: var(--slate); }
.track-card .cnt { font-size: 12px; font-weight: 700; color: #93A3B3; margin-top: 10px; }
.cohort-card { padding: 20px; }
.cohort-card h3 { font-size: 15.5px; }
.cohort-card .meta { font-size: 12.5px; color: var(--slate); margin: 4px 0 10px; }

/* ---------- charts ---------- */
.chart-card { padding: 20px 22px; }
.chart-card h3 { font-size: 15px; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bars .b { flex: 1; background: linear-gradient(180deg, #36c7ff, var(--blue)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bars .b:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 5;
}
.hbar-row { display: grid; grid-template-columns: minmax(170px, 250px) minmax(80px, 1fr) 170px; gap: 12px; align-items: center; font-size: 13px; padding: 6px 0; min-width: 0; }
.hbar-row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hbar { height: 10px; background: #EDF1F5; border-radius: 999px; overflow: hidden; min-width: 0; }
.hbar > i { display: block; height: 100%; max-width: 100%; background: linear-gradient(90deg, var(--blue), #36c7ff); border-radius: 999px; }
.hbar.q > i { background: linear-gradient(90deg, var(--orange), #FF9B6B); }
.hbar-row .val { text-align: right; font-weight: 700; font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .hbar-row { grid-template-columns: 1fr 90px; }
  .hbar-row .hbar { display: none; }
}
/* learner drill-down */
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: #F0F7FC !important; }
.learner-head { display: flex; align-items: center; gap: 18px; padding: 22px 26px; }
.learner-head .avatar { width: 54px; height: 54px; font-size: 19px; }
.learner-head h2 { font-size: 20px; letter-spacing: -.3px; }
.learner-head .sub { color: var(--slate); font-size: 13px; margin-top: 2px; }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill.done { background: var(--green-bg); color: var(--green); }
.status-pill.prog { background: #EAF7FD; color: var(--blue-dark); }
.status-pill.zero { background: #EDF1F5; color: var(--slate); }

/* dashboard hero */
.dash-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #103657 70%, #0B4A6F 100%);
  color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 30px 34px; align-items: center;
  margin-bottom: 24px;
}
.dash-hero h2 { font-size: 24px; letter-spacing: -.4px; }
.dash-hero p { color: #B9C9D9; font-size: 14px; margin-top: 6px; max-width: 56ch; }
.dash-hero .hero-stats { display: flex; gap: 28px; margin-top: 18px; }
.dash-hero .hs .v { font-size: 24px; font-weight: 800; color: var(--blue); }
.dash-hero .hs .l { font-size: 11.5px; color: #9FB2C5; font-weight: 700; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { font-size: 19px; letter-spacing: -.3px; }
.section-title a { font-size: 13px; font-weight: 700; }

.empty { text-align: center; color: var(--slate); padding: 50px 20px; font-size: 14px; }
.footer-note { text-align: center; color: #93A3B3; font-size: 12px; margin-top: 50px; }
.footer-note b { color: var(--orange); }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-bar { display: flex; }
  .player { grid-template-columns: 1fr; }
  .structure-flow { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================================
   v1.3 — Visual upgrade layer: typography, animated landing, title bar
   ==================================================================== */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", -apple-system, sans-serif;
}
body { font-family: var(--font); letter-spacing: -0.01em; }
h1, h2, h3, .brand-name, .kpi .v, .dash-hero h2, .auth-hero h1, .q-text { font-family: var(--display); }

/* ---------- title bar (top nav) ---------- */
.topnav {
  height: 66px;
  background: linear-gradient(100deg, #0A1624 0%, #102A44 55%, #0C3552 100%);
  border-bottom: 1px solid rgba(0,174,239,.35);
  position: sticky;
}
.topnav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--blue), #36c7ff 35%, var(--orange) 100%);
  opacity: .9;
}
.brand-name { letter-spacing: -.3px; }
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--blue), #36c7ff);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { background: rgba(0,174,239,.16); box-shadow: inset 0 0 0 1px rgba(0,174,239,.35); }
.nav-links a.active::after { transform: scaleX(1); }
.avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 14px rgba(242,107,58,.45); }

/* ---------- page header banner ---------- */
.page-head {
  position: relative;
  background:
    radial-gradient(600px 120px at 0% 0%, rgba(0,174,239,.10), transparent 70%),
    linear-gradient(120deg, #FFFFFF 0%, #F2FAFE 60%, #FFF6F1 100%);
  border: 1px solid #E2ECF3;
  border-radius: 16px;
  padding: 22px 26px 20px;
  margin: 6px 0 24px;
  overflow: hidden;
}
.page-head h1 { font-size: 27px; letter-spacing: -.6px; }
.page-head p { margin-top: 6px; }
.crumb { margin-bottom: 12px; }

/* ---------- animated landing page ---------- */
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-34px) scale(1.12); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,24px) scale(.92); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,30px) scale(1.08); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shineMove { to { background-position: 200% center; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-hero {
  background: linear-gradient(125deg, #07111E 0%, #0B2A4A 38%, #0A3D63 64%, #123052 100%);
  background-size: 220% 220%;
  animation: heroShift 18s ease-in-out infinite;
  padding: 56px 60px 0;
}
.auth-hero::after { display: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.orb-1 { width: 380px; height: 380px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(0,174,239,.45), transparent 65%); animation: floatA 13s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; left: -110px; bottom: 120px; background: radial-gradient(circle, rgba(242,107,58,.32), transparent 65%); animation: floatB 17s ease-in-out infinite; }
.orb-3 { width: 220px; height: 220px; right: 18%; bottom: 220px; background: radial-gradient(circle, rgba(54,199,255,.30), transparent 65%); animation: floatC 15s ease-in-out infinite; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(159,178,197,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,178,197,.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 520px at 30% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 520px at 30% 30%, black, transparent 80%);
}
.auth-hero > div { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,174,239,.14); border: 1px solid rgba(0,174,239,.4);
  color: #9FDCFF; font-size: 12px; font-weight: 700; letter-spacing: .8px;
  padding: 7px 14px; border-radius: 999px; margin: 26px 0 16px;
  animation: fadeUp .7s ease both .1s;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6A8; box-shadow: 0 0 10px #2EE6A8; }
.auth-hero h1 { font-size: 42px; margin: 0 0 16px; max-width: 16ch; animation: fadeUp .7s ease both .2s; }
.auth-hero h1 .grad {
  background: linear-gradient(90deg, #36c7ff 0%, #9FE8FF 25%, #FF9B6B 50%, #36c7ff 75%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shineMove 6s linear infinite;
}
.auth-hero p.lead { animation: fadeUp .7s ease both .32s; }
.auth-stats { animation: fadeUp .7s ease both .45s; }
.auth-stats .s .v { font-family: var(--display); }
.hero-strip { position: relative; z-index: 2; margin-top: 40px; overflow: hidden; border-radius: 14px 14px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  animation: fadeUp .8s ease both .55s; }
.hero-strip .track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.hero-strip img {
  width: 196px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: .92;
}
.auth-foot { position: relative; z-index: 2; padding: 18px 0 22px; }
.auth-card { animation: cardIn .6s ease both .15s; box-shadow: 0 8px 24px rgba(14,27,44,.10), 0 24px 70px rgba(14,27,44,.16); }
.auth-card h2 { font-family: var(--display); }

/* ---------- card & grid life ---------- */
.grid-cards .course-card { animation: cardIn .5s ease both; }
.grid-cards .course-card:nth-child(2) { animation-delay: .05s; }
.grid-cards .course-card:nth-child(3) { animation-delay: .1s; }
.grid-cards .course-card:nth-child(4) { animation-delay: .15s; }
.grid-cards .course-card:nth-child(n+5) { animation-delay: .2s; }
.course-cover img { transition: transform .35s ease; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.course-card:hover { box-shadow: 0 6px 16px rgba(16,34,46,.10), 0 22px 56px rgba(0,116,170,.18); }
.kpi { transition: transform .15s ease, box-shadow .15s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-hero { background-size: 180% 180%; animation: heroShift 22s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-strip .track { animation: none; }
}

/* ============ v1.3.1 — landing fits one viewport ============ */
.auth { height: 100vh; min-height: 640px; overflow: hidden; }
.auth-hero { padding: 30px 52px 0; }
.auth-hero .brand-mark { width: 44px !important; height: 44px !important; font-size: 15px !important; }
.hero-badge { margin: 16px 0 12px; padding: 6px 12px; font-size: 11px; }
.auth-hero h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; line-height: 1.12; }
.auth-hero p.lead { font-size: 14.5px; max-width: 46ch; }
.auth-stats { margin-top: 20px; gap: 28px; }
.auth-stats .s .v { font-size: 25px; }
.hero-strip { margin-top: 18px; }
.hero-strip img { width: 148px; }
.auth-foot { padding: 12px 0 14px; font-size: 11.5px; }
.auth-form-side { padding: 24px; overflow-y: auto; }
.auth-card { padding: 30px; }
@media (max-height: 760px) {
  .auth-hero h1 { font-size: 24px; }
  .auth-hero p.lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-strip img { width: 120px; }
  .auth-stats { margin-top: 12px; }
  .auth-card { padding: 24px; }
  .demo-creds { margin-top: 12px; }
}
/* admin home dashboard */
.admin-home-hero {
  background: linear-gradient(140deg, #0A1624 0%, #103657 60%, #6E3217 130%);
  color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 26px 32px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.admin-home-hero h2 { font-size: 22px; }
.admin-home-hero p { color: #B9C9D9; font-size: 13.5px; margin-top: 4px; }

/* ============ v1.4 — course about section ============ */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: stretch; }
.about-covers { padding: 24px 26px; }
.about-covers h3 { font-size: 16px; margin-bottom: 14px; }
.about-covers ul { list-style: none; }
.about-covers li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid #F0F3F6; }
.about-covers li:last-child { border-bottom: none; }
.about-covers .tick {
  flex: none; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.about-side { display: flex; flex-direction: column; gap: 18px; }
.about-block { padding: 20px 22px; flex: 1; }
.about-block.obj { border-top: 4px solid var(--blue); }
.about-block.ben { border-top: 4px solid var(--orange); }
.ab-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--slate); margin-bottom: 10px; }
.about-block ul { list-style: none; }
.about-block li { font-size: 13px; padding: 5px 0 5px 18px; position: relative; }
.about-block.obj li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.about-block.ben li::before { content: "+"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.outcome-card {
  margin-top: 18px; padding: 22px 26px;
  background: linear-gradient(120deg, #0A1624 0%, #103657 70%, #0B4A6F 100%);
  color: #fff; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.outcome-card .oc-icon { font-size: 34px; flex: none; }
.outcome-card p { font-size: 14px; line-height: 1.55; color: #DCE8F2; max-width: 72ch; }
.outcome-card > div { flex: 1; min-width: 260px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ====================================================================
   v1.5 — Fluid layout: use the full screen + adapt to any resolution
   ==================================================================== */

/* The page now stretches with the window instead of stopping at 1240px.
   Padding scales with viewport so content breathes at every size. */
.wrap {
  max-width: min(1760px, 100%);
  width: 100%;
  padding: clamp(18px, 2.2vw, 34px) clamp(16px, 3vw, 48px) 80px;
}

/* Top nav padding tracks the page gutter so brand/links align with content */
.topnav { padding: 0 clamp(16px, 3vw, 48px); }

/* Course catalog: cards grow & extra columns appear on big monitors */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(clamp(265px, 20vw, 330px), 1fr)); }

/* Course player: slide stage takes the spare width; side panel scales too */
.player { grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 400px); }

/* Quiz reads better a bit wider on large screens */
.quiz-shell { max-width: 860px; }

/* KPI tiles: more of them fit per row as the screen widens */
.kpis { grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 12vw, 210px), 1fr)); }

/* ---------- large displays (≥1600px) ---------- */
@media (min-width: 1600px) {
  body { font-size: 15.5px; }
  .page-head h1 { font-size: 30px; }
  .dash-hero h2 { font-size: 27px; }
  .viewer .stage { aspect-ratio: 16/10; }     /* wider stage, less letterboxing */
  .hbar-row { grid-template-columns: minmax(190px, 320px) minmax(120px, 1fr) 190px; }
  .structure-flow { gap: 16px; }
  .auth-card { max-width: 460px; padding: 38px; }
  .hero-strip img { width: 180px; }
}

/* ---------- ultra-wide (≥2200px): keep line lengths sane ---------- */
@media (min-width: 2200px) {
  .wrap { max-width: 2000px; }
  .quiz-shell { max-width: 940px; }
}

/* ---------- tablet / narrow window (≤980px) ---------- */
@media (max-width: 980px) {
  /* keep navigation usable instead of hiding it */
  .nav-links {
    display: flex; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 8px 11px; font-size: 13px; }
  .nav-user .who { display: none; }
  .brand-sub { display: none; }
  .topnav { gap: 14px; }
  .dash-hero { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- small screens (≤760px) ---------- */
@media (max-width: 760px) {
  /* data tables scroll sideways inside their card instead of breaking layout */
  .card:has(> table.data), .card:has(> div > table.data) { overflow-x: auto; }
  table.data { min-width: 560px; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi .v { font-size: 23px; }
  .page-head { padding: 16px 18px 15px; }
  .page-head h1 { font-size: 22px; }
  .dash-hero { padding: 22px 22px; }
  .dash-hero .hero-stats { gap: 18px; flex-wrap: wrap; }
  .q-card { padding: 22px 20px; }
  .q-text { font-size: 16px; }
  .learner-head { flex-wrap: wrap; padding: 18px 18px; }
  .admin-home-hero { padding: 20px 20px; }
  .structure-flow { grid-template-columns: 1fr; }
  .track-band { flex-direction: column; }
  .outcome-card { padding: 18px 18px; }
  .viewer .controls { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .auth-form-side { padding: 16px; }
  .auth-card { padding: 24px 20px; }
}

/* ---------- phones (≤480px) ---------- */
@media (max-width: 480px) {
  .brand-name { font-size: 14.5px; }
  .nav-btn { width: 32px; height: 30px; font-size: 14px; }
  .page-head h1 { font-size: 19px; }
  .tabs { gap: 6px; }
  .tab { padding: 6px 12px; font-size: 12.5px; }
  .auth { min-height: 100svh; height: auto; overflow: visible; }
}

/* short laptop screens: let auth page scroll rather than clip the form */
@media (max-height: 620px) {
  .auth { height: auto; min-height: 100vh; overflow: visible; }
}

/* ====================================================================
   v1.6 — Leaderboard · Q&A Forum · Community (news + fun facts)
   ==================================================================== */

/* role chips */
.role-chip {
  font-size: 9.5px; font-weight: 800; letter-spacing: .8px; padding: 2px 8px;
  border-radius: 999px; vertical-align: 1px; margin-left: 6px; white-space: nowrap;
}
.role-chip.trainer { background: #EAF7FD; color: var(--blue-dark); border: 1px solid #B5DCF0; }
.role-chip.admin { background: #FDF3E3; color: var(--amber); border: 1px solid #F3D9A8; }
.role-chip.learner { background: #EEF2F6; color: var(--slate); border: 1px solid var(--line); }

/* manage users */
.mu-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mu-toolbar input[type="search"] { flex: 1; min-width: 240px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; background: var(--card); color: var(--ink); }
.mu-toolbar select { border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; height: 42px; background: var(--card); color: var(--ink); font-size: 13px; }
.mu-bulk { padding: 16px 18px; margin-bottom: 16px; }
.mu-bulk-head { font-size: 13.5px; color: var(--slate); margin-bottom: 10px; }
.mu-bulk-fields { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.mu-bulk-fields label { font-size: 11.5px; font-weight: 700; color: var(--slate); display: flex; flex-direction: column; gap: 4px; }
.mu-bulk-fields input, .mu-bulk-fields select { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; background: var(--card); color: var(--ink); min-width: 150px; }
.mu-table th, .mu-table td { vertical-align: middle; }
.mu-table .role-chip { margin-left: 0; }
.mu-email { color: var(--slate); font-size: 12.5px; }
.mu-in { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; background: var(--card); color: var(--ink); width: 100%; max-width: 190px; }
.mu-editing { background: rgba(0,174,239,.05); }
.mu-edit-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mu-row-actions { display: flex; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.mu-suspended { opacity: .62; }
.mu-susp { background: var(--red-bg); color: var(--red); border: 1px solid #F3C0C0; }
.mu-you { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--blue-dark); background: #EAF7FD; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.mu-del { color: var(--red); }
[data-theme="dark"] .mu-susp { background: rgba(220,38,38,.15); border-color: rgba(220,38,38,.4); }
[data-theme="dark"] .mu-you { background: rgba(0,174,239,.12); }

/* ---------- leaderboard ---------- */
.me-rank {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  align-items: end; margin-bottom: 20px; max-width: 860px;
}
.pod {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  text-align: center; padding: 18px 14px 16px; animation: cardIn .5s ease both;
}
.pod.first {
  padding-top: 26px; padding-bottom: 24px;
  background: linear-gradient(160deg, #FFFDF5 0%, #FFF7E0 100%);
  border: 1px solid #F0DFA8; box-shadow: 0 8px 28px rgba(217,160,30,.18);
}
.pod.mine { outline: 2px solid var(--blue); }
.pod-medal { font-size: 30px; margin-bottom: 6px; }
.pod.first .pod-medal { font-size: 38px; }
.pod-name { font-weight: 800; font-size: 14.5px; letter-spacing: -.2px; }
.pod-sub { font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.pod-pts { font-size: 22px; font-weight: 800; color: var(--blue-dark); margin-top: 8px; font-family: var(--display); }
.pod.first .pod-pts { font-size: 26px; color: #B07B10; }
.pod-meta { font-size: 11px; color: #93A3B3; margin-top: 4px; }
.rank-badge { font-weight: 800; font-size: 13px; color: var(--slate); }
.rank-badge.top { font-size: 18px; }
tr.me-row td { background: #EAF7FD !important; }

/* ---------- forum ---------- */
.forum-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.forum-bar input[type="search"] {
  flex: 1; min-width: 240px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 14.5px; font-family: var(--font); background: var(--card);
}
.forum-bar input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.14); }
.ask-card { padding: 22px 24px; margin-bottom: 18px; }
.ask-card h3 { font-size: 16px; margin-bottom: 12px; }
.ask-card textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 14px; font-family: var(--font); resize: vertical; color: var(--ink);
}
.ask-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.14); }
.qa-filters { margin: 4px 0 14px; }
.qa-row {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 10px;
  color: var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.qa-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.qa-status {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
.qa-status.ans { background: var(--green-bg); color: var(--green); }
.qa-status.open { background: var(--amber-bg); color: var(--amber); }
.qa-title { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.qa-excerpt { font-size: 13px; color: var(--slate); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #93A3B3; margin-top: 6px; flex-wrap: wrap; }
.qa-course {
  background: #EAF7FD; color: var(--blue-dark); font-weight: 800; font-size: 11px;
  padding: 2px 9px; border-radius: 999px;
}
.qa-count { flex: none; text-align: center; color: var(--green); min-width: 56px; }
.qa-count b { display: block; font-size: 19px; font-family: var(--display); }
.qa-count span { font-size: 10.5px; font-weight: 700; color: var(--slate); }
.qa-count.zero { color: #93A3B3; }
.thread-q { padding: 24px 26px; }
.thread-body { font-size: 14.5px; line-height: 1.65; margin-top: 10px; white-space: pre-wrap; }
.thread-a { display: flex; gap: 14px; padding: 20px 22px; margin-bottom: 12px; }
.thread-a.trainer-a { background: linear-gradient(120deg, #FDFEFF 0%, #F4FBFE 100%); }
.thread-a .thread-body { margin-top: 6px; }

/* ---------- community ---------- */
.community-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.news-item { padding: 20px 24px; margin-bottom: 14px; }
.news-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: #EDF1F5; color: var(--slate);
}
.news-tag.t-program { background: #EAF7FD; color: var(--blue-dark); }
.news-tag.t-ainews { background: #F1EDFD; color: #6D4ACD; }
.news-tag.t-platform { background: var(--green-bg); color: var(--green); }
.news-tag.t-community { background: #FDF0E9; color: var(--orange); }
.news-tag.t-milestones { background: #FDF3E3; color: var(--amber); }
.news-date { font-size: 12px; color: #93A3B3; font-weight: 600; }
.news-item h3 { font-size: 16.5px; letter-spacing: -.2px; margin-bottom: 6px; }
.news-item p { font-size: 13.5px; color: #46535F; line-height: 1.6; }
.news-by { font-size: 12.5px; color: var(--slate); font-weight: 600; margin-top: 10px; }
.fact-card {
  background: linear-gradient(140deg, #0E1B2C 0%, #14304C 100%); color: #fff;
  border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 12px;
  animation: cardIn .45s ease both;
}
.fact-card .fact-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #9FDCFF; background: rgba(0,174,239,.16); border: 1px solid rgba(0,174,239,.4);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 9px;
}
.fact-card p { font-size: 13.5px; line-height: 1.6; color: #DCE8F2; }
.fact-cta { padding: 18px 20px; border-top: 4px solid var(--orange); }

@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pod { padding: 12px 8px; }
  .pod-pts { font-size: 17px; }
  .qa-count { display: none; }
}

/* ====================================================================
   v1.7 — My Account
   ==================================================================== */
.nav-account {
  display: flex; align-items: center; gap: 12px; color: inherit;
  padding: 5px 10px; border-radius: 10px; transition: background .15s ease;
}
.nav-account:hover { background: rgba(255,255,255,.08); }
.nav-account.active { background: rgba(0,174,239,.16); box-shadow: inset 0 0 0 1px rgba(0,174,239,.35); }
.nav-account .who .n { color: #fff; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; max-width: 1100px; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.ok-note {
  display: none; background: var(--green-bg); color: var(--green); font-size: 13px; font-weight: 600;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 12px;
}
.pw-meter { height: 5px; background: #EDF1F5; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.pw-meter > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s ease, background .2s ease; }

/* ============ v1.10.1 — UI polish: logo, recording tab, back button ============ */
.brand-mark svg { width: 100%; height: 100%; display: block; }
.play-ic {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 8px; padding-left: 2px;
  margin-right: 8px; vertical-align: -3px;
}
.mode-tab.active .play-ic { background: #fff; color: var(--navy); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--blue-dark); font-weight: 700; font-size: 12.5px;
  padding: 4px 12px 4px 9px; margin-right: 10px;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.back-link span { font-size: 14px; line-height: 1; }
.back-link:hover { border-color: var(--blue); background: #F4FBFE; }
.back-link:active { transform: scale(.96); }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.crumb-sep { width: 1px; height: 16px; background: var(--line); margin-right: 10px; }

/* ============ v1.8 — admin user provisioning ============ */
.add-user-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 860px) { .add-user-grid { grid-template-columns: 1fr; } }
.ask-card code { background: #EDF1F5; padding: 1px 7px; border-radius: 5px; font-size: 12px; }

/* ====================================================================
   v1.11 — Dark mode
   Light stays the default; [data-theme="dark"] flips the token set and
   patches the handful of hardcoded light surfaces.
   ==================================================================== */
.theme-btn { font-size: 15px; line-height: 1; padding: 6px 10px; }
.auth-theme { position: absolute; top: 16px; right: 16px; color: var(--slate); border-color: var(--line); z-index: 5; }
.auth-form-side { position: relative; }

[data-theme="dark"] {
  --ink: #E8EEF4;
  --slate: #9FB0C2;
  --line: #263648;
  --bg: #0C131D;
  --card: #151F2C;
  --blue-dark: #54C4F2;
  --green-bg: rgba(34,197,94,.16);
  --red-bg: rgba(239,68,68,.16);
  --amber-bg: rgba(245,158,11,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.45), 0 16px 48px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .quiz-pill.pass { color: #4ADE80; }
[data-theme="dark"] .quiz-pill.fail { color: #F87171; }
[data-theme="dark"] .status-pill.done { color: #4ADE80; }
[data-theme="dark"] .verdict.pass { color: #4ADE80; }
[data-theme="dark"] .verdict.fail { color: #F87171; }
[data-theme="dark"] .kpi .v { color: var(--ink); }

/* hardcoded light surfaces → dark equivalents */
[data-theme="dark"] .pbar, [data-theme="dark"] .mini-bar, [data-theme="dark"] .hbar,
[data-theme="dark"] .pw-meter, [data-theme="dark"] .opt .letter,
[data-theme="dark"] .quiz-pill.none, [data-theme="dark"] .status-pill.zero,
[data-theme="dark"] .ask-card code, [data-theme="dark"] .news-tag { background: #243245; color: var(--slate); }
[data-theme="dark"] table.data td { border-bottom-color: #1E2C3C; }
[data-theme="dark"] table.data tr:hover td { background: #1A2636; }
[data-theme="dark"] tr.rowlink:hover td { background: #1C3140 !important; }
[data-theme="dark"] tr.me-row td { background: rgba(0,174,239,.12) !important; }
[data-theme="dark"] .fact-row { border-bottom-color: #1E2C3C; }
[data-theme="dark"] .about-covers li { border-bottom-color: #1E2C3C; }
[data-theme="dark"] .review-item { border-top-color: var(--line); }
[data-theme="dark"] .page-head {
  background:
    radial-gradient(600px 120px at 0% 0%, rgba(0,174,239,.12), transparent 70%),
    linear-gradient(120deg, #131D2A 0%, #14222F 60%, #1A2230 100%);
  border-color: #233242;
}
[data-theme="dark"] .btn.secondary { background: #243245; color: var(--ink); }
[data-theme="dark"] .btn.secondary:hover { background: #2D3F56; }
[data-theme="dark"] .tab { background: var(--card); border-color: var(--line); color: var(--slate); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select,
[data-theme="dark"] .ask-card textarea, [data-theme="dark"] .forum-bar input[type="search"] {
  background: #0F1722; color: var(--ink); border-color: var(--line);
}
[data-theme="dark"] .field input:disabled { background: #1A2533 !important; color: var(--slate) !important; }
[data-theme="dark"] .opt:hover { border-color: var(--blue); background: rgba(0,174,239,.08); }
[data-theme="dark"] .opt.sel { border-color: var(--blue); background: rgba(0,174,239,.14); }
[data-theme="dark"] .demo-creds { background: rgba(0,174,239,.08); border-color: rgba(0,174,239,.3); }
[data-theme="dark"] .demo-creds code { background: #0F1722; }
[data-theme="dark"] .ra.correct { color: #86EFAC; }
[data-theme="dark"] .ra.wrong { color: #FCA5A5; }
[data-theme="dark"] .qa-course { background: rgba(0,174,239,.14); }
[data-theme="dark"] .quiz-pill.video { background: rgba(0,174,239,.14); }
[data-theme="dark"] .status-pill.prog { background: rgba(0,174,239,.14); }
[data-theme="dark"] .thread-a.trainer-a { background: linear-gradient(120deg, #151F2C 0%, #15293A 100%); }
[data-theme="dark"] .role-chip.trainer { background: rgba(0,174,239,.12); border-color: rgba(0,174,239,.35); }
[data-theme="dark"] .role-chip.admin { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .news-tag.t-program { background: rgba(0,174,239,.14); color: var(--blue-dark); }
[data-theme="dark"] .news-tag.t-ainews { background: rgba(124,92,252,.16); color: #A78BFA; }
[data-theme="dark"] .news-tag.t-platform { background: var(--green-bg); color: #4ADE80; }
[data-theme="dark"] .news-tag.t-community { background: rgba(242,107,58,.14); color: #FB923C; }
[data-theme="dark"] .news-tag.t-milestones { background: var(--amber-bg); color: #FBBF24; }
[data-theme="dark"] .news-item p { color: var(--slate); }
[data-theme="dark"] .pod { background: var(--card); }
[data-theme="dark"] .pod.first { background: linear-gradient(160deg, #1F2A1F 0%, #2A2616 100%); border-color: #4D431F; }
[data-theme="dark"] .pod.first .pod-pts { color: #E8C35A; }
[data-theme="dark"] .week-col li { filter: brightness(1.15); }
[data-theme="dark"] .fact-cta { border-top-color: var(--orange); }
[data-theme="dark"] .auth-form-side { background: var(--bg); }
[data-theme="dark"] .ok-note { color: #4ADE80; }
[data-theme="dark"] .empty { color: var(--slate); }

/* video pill on course tiles (both themes) */
.quiz-pill.video { background: #EAF7FD; color: var(--blue-dark); cursor: pointer; }
.quiz-pill.video:hover { box-shadow: 0 0 0 2px rgba(0,174,239,.25); }

/* ---------- prompt library ---------- */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.prompt-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-fn { font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.pc-source { font-size: 10.5px; color: var(--slate); background: rgba(0,0,0,.05); padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.prompt-card h3 { font-size: 15.5px; letter-spacing: -.2px; }
.pc-teaser { font-size: 13px; color: var(--slate); line-height: 1.45; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { font-size: 11px; color: var(--blue-dark); background: rgba(0,174,239,.10); padding: 2px 9px; border-radius: 20px; }
.pc-rctco { display: none; }
.open .pc-rctco { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 3px; }
.pc-rctco > div b { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-dark); }
.pc-rctco > div p { font-size: 12.5px; color: var(--ink); margin-top: 2px; line-height: 1.45; }
.pc-actions { display: flex; gap: 8px; margin-top: 6px; }
[data-theme="dark"] .pc-source { background: rgba(255,255,255,.07); }

/* view toggle */
.pl-view { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.pl-view button { background: var(--card); color: var(--slate); border: none; padding: 0 14px; height: 42px; font-size: 13px; font-weight: 600; }
.pl-view button.active { background: var(--blue); color: #fff; }

/* list view */
.prompt-list { display: flex; flex-direction: column; gap: 8px; }
.prompt-row { padding: 12px 16px; }
.pr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-title { font-weight: 700; font-size: 14.5px; flex: 1; min-width: 200px; letter-spacing: -.2px; }
.prompt-row .pc-tags { margin-top: 8px; }
.prompt-row .pc-rctco { margin-top: 8px; }

/* ---------- calendar ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.cal-leg-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.cal-leg-item i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; }
.cal-week { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.cal-week-head { padding: 12px 13px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0,174,239,.06), transparent); }
.cal-week-n { font-family: "Sora", var(--font); font-weight: 700; font-size: 14px; color: var(--ink); }
.cal-week-theme { font-size: 11.5px; font-weight: 600; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.cal-week-date { font-size: 11px; color: var(--slate); margin-top: 3px; }
.cal-week-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cal-sess { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; transition: box-shadow .15s, transform .15s; }
.cal-sess:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.cal-sess-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cal-code { font-weight: 800; font-size: 12.5px; letter-spacing: .01em; }
.cal-dur { font-size: 10.5px; color: var(--slate); font-weight: 600; }
.cal-title { font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.3; margin-top: 3px; }
.cal-waves { font-size: 10.5px; color: var(--slate); margin-top: 5px; }
.cal-empty { color: var(--slate); text-align: center; font-size: 13px; padding: 8px 0; }
.cal-wave-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
@media (max-width: 1024px) { .cal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cal-grid { grid-template-columns: repeat(2, 1fr); } }
[data-theme="dark"] .cal-week-head { background: linear-gradient(180deg, rgba(0,174,239,.10), transparent); }
[data-theme="dark"] .cal-sess { background: rgba(255,255,255,.02); }

/* ====================================================================
   v2.8 — Unified UX: forms, login, motion, focus, search inputs
   ==================================================================== */

/* page enter animation (all authenticated pages) */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn .35s ease both; }

/* unified form controls */
.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-wrap .input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .55; pointer-events: none; line-height: 1;
}
.input-wrap input,
.input-wrap select {
  width: 100%; padding-left: 40px !important;
}
.input-wrap.has-action input,
.input-wrap.has-action select { padding-right: 58px !important; }
.input-action {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--blue-dark);
  font-size: 12px; font-weight: 700; padding: 6px 8px; border-radius: 6px;
}
.input-action:hover { background: rgba(0,174,239,.10); }
.field input, .field select, .field textarea,
.ask-card textarea, .forum-bar input[type="search"],
.mu-toolbar input[type="search"], #plSearch {
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover,
.ask-card textarea:hover, .forum-bar input[type="search"]:hover,
.mu-toolbar input[type="search"]:hover, #plSearch:hover {
  border-color: #C5D4E0;
}
.field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; font-family: var(--font);
  resize: vertical; color: var(--ink); min-height: 96px;
}
.field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,174,239,.14);
}
.form-hint { font-size: 11.5px; color: #93A3B3; margin-top: 6px; line-height: 1.45; }

/* buttons */
.btn-block { width: 100%; margin-top: 4px; }
.btn.is-loading { opacity: .85; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .65s linear infinite;
}
.btn.secondary.is-loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* focus-visible for keyboard users */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:focus-visible, .tab:focus-visible, .opt:focus-visible { outline-offset: 3px; }

/* login — form panel */
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-form-side {
  background:
    radial-gradient(520px 280px at 80% 0%, rgba(0,174,239,.07), transparent 70%),
    var(--bg);
}
.auth-card-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.auth-card-logo {
  width: 46px; height: 46px; flex: none;
  display: none;
}
.auth-card-top h2 { margin-bottom: 2px; }
.auth-card-top .sub { margin-bottom: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px; color: var(--slate); font-size: 12px; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.quick-login { margin-bottom: 4px; }
.ql-label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--slate);
  letter-spacing: .3px; margin-bottom: 8px; text-transform: uppercase;
}
.ql-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ql-chip {
  flex: 1; min-width: 88px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--ink);
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.ql-chip:hover { border-color: var(--blue); background: #F4FBFE; color: var(--blue-dark); }
.ql-chip:active { transform: scale(.97); }
.help-box {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: #F4F8FB; border: 1px solid #D8E6F0;
  font-size: 12.5px; color: var(--slate); line-height: 1.55;
}
.help-box strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* mobile login header (replaces hidden hero) */
.auth-mobile-bar {
  display: none; align-items: center; gap: 12px;
  padding: 16px 20px; background: linear-gradient(100deg, #0A1624, #103657);
  color: #fff; border-bottom: 1px solid rgba(0,174,239,.25);
}
.auth-mobile-bar .brand-name { font-size: 15px; font-weight: 700; }
.auth-mobile-bar .brand-sub { font-size: 11px; color: #9FB2C5; margin-top: 1px; }
.auth-mobile-bar .brand-sub b { color: var(--orange); }
.auth-mobile-bar .brand-mark { width: 40px; height: 40px; flex: none; }

.ask-card h3, .chart-card h3 { font-family: var(--display); letter-spacing: -.2px; }

/* search bars — unified look */
.forum-bar input[type="search"],
.mu-toolbar input[type="search"],
#plSearch {
  border-radius: 12px; padding: 12px 16px; font-size: 14.5px;
  background: var(--card); border: 1.5px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,34,46,.04);
}
#plSearch { width: 100%; margin-bottom: 0; }

/* empty states */
.empty {
  text-align: center; padding: 36px 24px; color: var(--slate);
  font-size: 14px; line-height: 1.55;
}

/* error / success alerts */
.auth-err {
  animation: pageIn .25s ease both;
}

@media (min-width: 981px) {
  .auth-card-logo { display: grid; }
}

@media (max-width: 980px) {
  .auth-form-side { min-height: calc(100vh - 72px); align-content: center; }
  .auth-card { box-shadow: var(--shadow); }
}

[data-theme="dark"] .help-box { background: rgba(0,174,239,.06); border-color: rgba(0,174,239,.2); }
[data-theme="dark"] .help-box strong { color: var(--ink); }
[data-theme="dark"] .ql-chip { background: var(--card); }
[data-theme="dark"] .ql-chip:hover { background: rgba(0,174,239,.10); }
[data-theme="dark"] .auth-divider::before, [data-theme="dark"] .auth-divider::after { background: var(--line); }
[data-theme="dark"] .field textarea { background: #0F1722; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .forum-bar input[type="search"],
[data-theme="dark"] .mu-toolbar input[type="search"],
[data-theme="dark"] #plSearch { box-shadow: none; }

/* ====================================================================
   v2.8.1 — Dashboard UX refresh
   ==================================================================== */

.dash-top {
  background: linear-gradient(125deg, #0A1624 0%, #103657 55%, #0C4A72 100%);
  border-radius: 16px; color: #fff; padding: 22px 26px 20px;
  box-shadow: var(--shadow-lg); margin-bottom: 18px;
}
.dash-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  color: #9FDCFF; text-transform: uppercase; margin-bottom: 4px;
}
.dash-greeting h2 {
  font-family: var(--display); font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -.5px; line-height: 1.15;
}
.dash-status { color: #B9C9D9; font-size: 14px; margin-top: 6px; max-width: 52ch; }
.dash-greet-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.dash-ring-wrap { flex: none; opacity: .95; }
.dash-ring-wrap .ring .pct { font-size: 22px; }
.dash-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px;
}
.dash-stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; padding: 12px 14px;
}
.dash-stat .ds-val {
  display: block; font-family: var(--display); font-size: 22px;
  font-weight: 800; color: #36c7ff; letter-spacing: -.4px; line-height: 1;
}
.dash-stat .ds-val small { font-size: 14px; color: #9FB2C5; font-weight: 700; }
.dash-stat .ds-lbl { display: block; font-size: 11px; font-weight: 700; color: #9FB2C5; margin-top: 4px; letter-spacing: .3px; }

.dash-quick {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
}
.dash-quick-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16,34,46,.05);
  transition: border-color .12s ease, transform .08s ease, box-shadow .12s ease;
}
.dash-quick-link:hover { border-color: var(--blue); color: var(--blue-dark); box-shadow: var(--shadow); transform: translateY(-1px); }
.dash-quick-link .dql-ic { font-size: 15px; line-height: 1; }

.dash-spotlight {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 0; padding: 0; overflow: hidden; margin-bottom: 8px;
  border: 1px solid var(--line);
  align-items: stretch;
}
.ds-visual { position: relative; background: var(--navy); min-height: 180px; }
.ds-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.ds-week {
  position: absolute; top: 10px; left: 10px;
  background: rgba(14,27,44,.88); color: #fff; backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.ds-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.35);
}
.ds-progress > div { height: 100%; background: var(--blue); transition: width .3s ease; }
.ds-content { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ds-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 6px;
}
.ds-content h2 {
  font-family: var(--display); font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -.35px; line-height: 1.25; margin-bottom: 6px;
}
.ds-tagline {
  font-size: 13.5px; color: var(--slate); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; font-weight: 600; color: #93A3B3; margin-top: 10px;
}
.ds-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dash-spotlight > .ring { align-self: center; margin: 16px 20px 16px 0; flex: none; }

.section-title.dash-section { margin: 26px 0 12px; }
.section-title.dash-section h2 { font-family: var(--display); font-size: 18px; }

.dash-course-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.dash-course-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.dash-course-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(0,174,239,.35);
}
.dcc-cover { position: relative; aspect-ratio: 16/10; background: var(--navy); overflow: hidden; }
.dcc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dash-course-card:hover .dcc-cover img { transform: scale(1.04); }
.dcc-week {
  position: absolute; top: 8px; left: 8px;
  background: rgba(14,27,44,.85); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.dcc-pct {
  position: absolute; bottom: 8px; right: 8px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.dcc-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dcc-body h3 { font-size: 13px; font-weight: 800; color: var(--blue-dark); letter-spacing: .2px; }
.dcc-body p {
  font-size: 13px; font-weight: 600; line-height: 1.35; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dcc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 11.5px; color: #93A3B3; font-weight: 600;
}
.dcc-cta { color: var(--blue-dark); font-weight: 800; font-size: 12px; }

.dash-assess { padding: 0; overflow: hidden; }
.da-main {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.da-icon { font-size: 32px; flex: none; }
.da-main h3 { font-family: var(--display); font-size: 16px; letter-spacing: -.2px; }
.da-main p { font-size: 13px; color: var(--slate); margin-top: 3px; }
.da-main .btn { margin-left: auto; flex: none; }
.da-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.da-stat {
  padding: 14px 16px; text-align: center; border-right: 1px solid var(--line);
}
.da-stat:last-child { border-right: none; }
.da-stat b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.da-stat span { font-size: 11px; font-weight: 700; color: var(--slate); margin-top: 2px; display: block; }

@media (max-width: 900px) {
  .dash-spotlight { grid-template-columns: 1fr; }
  .ds-visual { min-height: 140px; max-height: 160px; }
  .dash-spotlight > .ring { display: none; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .da-stats { grid-template-columns: repeat(2, 1fr); }
  .da-stat:nth-child(2) { border-right: none; }
  .da-stat { border-bottom: 1px solid var(--line); }
  .da-stat:nth-last-child(-n+2) { border-bottom: none; }
  .da-main .btn { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .dash-top { padding: 18px 18px 16px; }
  .dash-greet-row { flex-direction: column; }
  .dash-ring-wrap { align-self: flex-start; }
  .dash-quick { gap: 8px; }
  .dash-quick-link { padding: 7px 12px; font-size: 12px; }
  .dash-course-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

[data-theme="dark"] .dash-quick-link { background: var(--card); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .dash-quick-link:hover { border-color: var(--blue); }
[data-theme="dark"] .dash-spotlight { border-color: var(--line); }
[data-theme="dark"] .da-main { border-bottom-color: var(--line); }
[data-theme="dark"] .da-stat { border-color: var(--line); }
[data-theme="dark"] .dash-course-card { border-color: var(--line); }

/* ====================================================================
   v2.9 — Left sidebar layout (ClaudeMesh-style)
   ==================================================================== */
:root {
  --sidebar-w: 248px;
  --sidebar-collapsed-w: 72px;
  --topbar-h: 62px;
}

.app-shell {
  display: flex; min-height: 100vh; width: 100%;
  --sidebar-current: var(--sidebar-w);
}
.app-shell[data-sidebar="collapsed"] { --sidebar-current: var(--sidebar-collapsed-w); }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(14,27,44,.45);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.app-shell.sidebar-mobile-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

.sidebar {
  width: var(--sidebar-current); flex: none;
  background: #FAFBFC; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100vh;
  position: sticky; top: 0; z-index: 100;
  transition: width .22s ease; overflow: hidden;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px; border-bottom: 1px solid var(--line); min-height: 68px;
}
.sidebar-brand .brand-mark { width: 40px; height: 40px; flex: none; }
.sidebar-brand-text { min-width: 0; overflow: hidden; }
.sidebar-brand-text .brand-name { font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; white-space: nowrap; }
.sidebar-brand-text .brand-sub { font-size: 10px; color: var(--slate); margin-top: 1px; white-space: nowrap; }
.sidebar-brand-text .brand-sub b { color: var(--orange); }

.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px 8px 16px; scrollbar-width: thin;
}
.sidebar-ic {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center;
  color: var(--slate);
}
.sidebar-ic svg { width: 18px; height: 18px; display: block; }
.sidebar-label { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 2px; border-radius: 10px;
  color: var(--ink); transition: background .12s ease, color .12s ease;
}
.sidebar-link:hover { background: rgba(0,174,239,.07); color: var(--blue-dark); }
.sidebar-link:hover .sidebar-ic { color: var(--blue-dark); }
.sidebar-link.active {
  background: rgba(242,107,58,.10); color: var(--orange);
}
.sidebar-link.active .sidebar-ic { color: var(--orange); }

.nav-group { margin-bottom: 4px; }
.nav-group-hd {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 11px; border: none; background: transparent; border-radius: 10px;
  color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: left;
  transition: background .12s ease;
}
.nav-group-hd:hover { background: rgba(0,0,0,.04); }
.nav-chevron {
  margin-left: auto; width: 16px; height: 16px; color: #93A3B3;
  transition: transform .18s ease; display: grid; place-items: center;
}
.nav-chevron svg { width: 14px; height: 14px; }
.nav-group.open .nav-chevron { transform: rotate(90deg); }
.nav-group-items { display: none; padding: 2px 0 6px 8px; }
.nav-group.open .nav-group-items { display: block; }
.nav-group-items .sidebar-link { padding-left: 14px; }
.nav-group-items .sidebar-link .sidebar-ic svg { width: 16px; height: 16px; }

.sidebar-collapse {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 14px; border: none; border-top: 1px solid var(--line);
  background: transparent; color: var(--slate); font-size: 13px; font-weight: 600;
  margin-top: auto; cursor: pointer;
}
.sidebar-collapse:hover { background: rgba(0,0,0,.03); color: var(--ink); }
.app-shell[data-sidebar="collapsed"] .sidebar-collapse .sidebar-ic { transform: scaleX(-1); }

.app-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  height: 100vh; overflow: hidden; background: var(--bg);
}
.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 2.5vw, 28px);
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16,34,46,.04);
}
.topbar-icon {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 9px; width: 38px; height: 38px; font-size: 18px; color: var(--ink);
}
.topbar-icon:hover { border-color: var(--blue); background: #F4FBFE; }
.topbar-search { flex: 1; max-width: 480px; min-width: 0; }
.topbar-search input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 38px; font-size: 14px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393A3B3' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E") 14px center no-repeat;
  color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.topbar-search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,174,239,.12); background-color: var(--card);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.topbar-user {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 12px;
  border-radius: 999px; border: 1px solid transparent; color: inherit;
  transition: border-color .12s ease, background .12s ease;
}
.topbar-user:hover { background: var(--bg); border-color: var(--line); }
.topbar-user.active { border-color: rgba(0,174,239,.35); background: rgba(0,174,239,.06); }
.topbar-user-meta { text-align: right; line-height: 1.2; }
.topbar-user-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.topbar-user-role { display: block; font-size: 11px; color: var(--slate); font-weight: 600; }
.topbar-user .avatar { width: 34px; height: 34px; font-size: 12px; }
.topbar-signout {
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--slate);
}
.topbar-signout:hover { border-color: var(--blue); color: var(--blue-dark); background: #F4FBFE; }

.app-main > .wrap {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  max-width: none; width: 100%; margin: 0;
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.5vw, 36px) 60px;
}

/* collapsed sidebar */
.app-shell[data-sidebar="collapsed"] .sidebar-label,
.app-shell[data-sidebar="collapsed"] .sidebar-brand-text,
.app-shell[data-sidebar="collapsed"] .nav-chevron,
.app-shell[data-sidebar="collapsed"] .nav-group-items { display: none; }
.app-shell[data-sidebar="collapsed"] .sidebar-brand { justify-content: center; padding-inline: 8px; }
.app-shell[data-sidebar="collapsed"] .sidebar-link,
.app-shell[data-sidebar="collapsed"] .nav-group-hd,
.app-shell[data-sidebar="collapsed"] .sidebar-collapse { justify-content: center; padding-inline: 10px; }
.app-shell[data-sidebar="collapsed"] .sidebar-collapse .sidebar-label { display: none; }

@media (max-width: 980px) {
  .topbar-icon#mobileMenuBtn { display: grid; place-items: center; }
  .topbar-user-meta, .topbar-signout { display: none; }
  .topbar-search { max-width: none; }
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .22s ease, width .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-shell.sidebar-mobile-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { display: block; }
  .app-shell[data-sidebar="collapsed"] .sidebar-label,
  .app-shell[data-sidebar="collapsed"] .sidebar-brand-text,
  .app-shell[data-sidebar="collapsed"] .nav-chevron,
  .app-shell[data-sidebar="collapsed"] .nav-group-items { display: revert; }
  .app-shell[data-sidebar="collapsed"] .nav-group.open .nav-group-items { display: block; }
  .app-shell[data-sidebar="collapsed"] .sidebar-brand { justify-content: flex-start; }
}

[data-theme="dark"] .sidebar { background: #111A26; border-color: var(--line); }
[data-theme="dark"] .sidebar-brand { border-color: var(--line); }
[data-theme="dark"] .sidebar-brand-text .brand-name { color: var(--ink); }
[data-theme="dark"] .nav-group-hd:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .sidebar-collapse { border-color: var(--line); }
[data-theme="dark"] .sidebar-collapse:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .topbar { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .topbar-search input { background-color: var(--bg); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .topbar-search input:focus { background-color: #0F1722; }
[data-theme="dark"] .topbar-user:hover { background: #0F1722; }
[data-theme="dark"] .sidebar-link.active { background: rgba(242,107,58,.14); }

/* ====================================================================
   v2.9.2 — Dashboard v3: light header, hero banner, two-column layout
   ==================================================================== */
.dash-v3 { display: flex; flex-direction: column; gap: 22px; }

.dash-welcome {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px 20px; box-shadow: var(--shadow);
}
.dw-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.dw-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 4px;
}
.dash-welcome h1 {
  font-family: var(--display); font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: -.6px; line-height: 1.12;
}
.dw-sub { color: var(--slate); font-size: 14px; margin-top: 6px; max-width: 56ch; }
.dw-ring { flex: none; }
.dw-ring .ring .pct { font-size: 20px; color: var(--ink); }

.dw-journey { margin-top: 18px; }
.dw-journey-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 8px;
}
.dw-journey-label b { color: var(--blue-dark); font-family: var(--display); font-size: 14px; }
.dw-journey-bar {
  height: 8px; background: #EDF1F5; border-radius: 999px; overflow: hidden;
}
.dw-journey-bar > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #36c7ff);
  transition: width .4s ease;
}

.dash-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 22px; align-items: start;
}
.dash-col-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dash-col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 12px; }

/* hero spotlight — clean card, no background image */
.dash-hero-card {
  display: grid; grid-template-columns: 108px 1fr; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.dhc-accent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 12px; background: color-mix(in srgb, var(--track, var(--blue)) 8%, var(--card));
  border-right: 1px solid var(--line);
}
.dhc-code {
  font-family: var(--display); font-size: 15px; font-weight: 800;
  color: var(--track, var(--blue-dark)); letter-spacing: -.2px; text-align: center; line-height: 1.2;
}
.dhc-week-label {
  font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--slate); text-align: center;
}
.dhc-main { padding: 22px 24px 20px; min-width: 0; display: flex; flex-direction: column; }
.dhc-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px;
}
.dhc-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dhc-kicker {
  font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.dhc-track {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--track, var(--blue)) 12%, var(--bg));
  color: var(--track, var(--blue-dark));
}
.dhc-title {
  font-family: var(--display); font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -.35px; line-height: 1.25; color: var(--ink);
}
.dhc-desc {
  font-size: 14px; color: var(--slate); line-height: 1.55; margin-top: 6px; max-width: 62ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dhc-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.dhc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero {
  background: var(--blue); color: #fff; font-weight: 800; padding: 11px 20px;
  box-shadow: 0 2px 8px rgba(0,174,239,.25);
}
.btn-hero:hover { background: var(--blue-dark); color: #fff; }
.btn-hero-ghost {
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700;
}
.btn-hero-ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: #F4FBFE; }
.dhc-meta { font-size: 12px; color: var(--slate); font-weight: 600; min-width: 160px; text-align: right; }
.dhc-bar {
  height: 5px; background: #EDF1F5; border-radius: 999px; margin-top: 6px; overflow: hidden;
}
.dhc-bar > div { height: 100%; background: linear-gradient(90deg, var(--track, var(--blue)), var(--blue)); border-radius: 999px; }
.dhc-ring { flex: none; }

/* up next list */
.dash-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.dash-block-head h2 { font-family: var(--display); font-size: 17px; letter-spacing: -.3px; }
.dash-block-head a { font-size: 13px; font-weight: 700; }
.dash-next-list {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.dash-next-row {
  display: grid; grid-template-columns: 28px 8px 1fr auto auto; gap: 12px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background .1s ease;
}
.dash-next-row:last-child { border-bottom: none; }
.dash-next-row:hover { background: #F4FBFE; }
.dnr-num {
  font-size: 11px; font-weight: 800; color: #93A3B3; font-variant-numeric: tabular-nums;
}
.dnr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dnr-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dnr-code { font-size: 11px; font-weight: 800; color: var(--blue-dark); letter-spacing: .2px; }
.dnr-title {
  font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dnr-meta { font-size: 11.5px; color: #93A3B3; font-weight: 600; white-space: nowrap; }
.dnr-pct {
  font-size: 11px; font-weight: 800; color: var(--blue-dark);
  background: #EAF7FD; padding: 3px 9px; border-radius: 999px;
}
.dnr-cta { font-size: 12px; font-weight: 800; color: var(--blue-dark); white-space: nowrap; }

/* sidebar cards */
.dash-side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.dash-side-card h3 { font-family: var(--display); font-size: 14px; letter-spacing: -.2px; margin-bottom: 12px; }
.dash-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dms {
  background: var(--bg); border-radius: 10px; padding: 12px 12px 10px;
  border: 1px solid var(--line);
}
.dms-v {
  display: block; font-family: var(--display); font-size: 22px; font-weight: 800;
  color: var(--blue-dark); letter-spacing: -.4px; line-height: 1;
}
.dms-v small { font-size: 13px; color: var(--slate); font-weight: 700; }
.dms-l { display: block; font-size: 10.5px; font-weight: 700; color: var(--slate); margin-top: 3px; }

.dsa-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.dsa-icon { font-size: 28px; line-height: 1; flex: none; }
.dsa-head h3 { margin-bottom: 2px; }
.dsa-head p { font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.dsa-meter { margin-bottom: 14px; }
.dsa-meter > span:first-child { font-size: 11px; font-weight: 700; color: var(--slate); display: block; margin-bottom: 6px; }
.dsa-bar { height: 6px; background: #EDF1F5; border-radius: 999px; overflow: hidden; }
.dsa-bar > div { height: 100%; background: linear-gradient(90deg, var(--orange), #FF9B6B); border-radius: 999px; }
.dsa-count { font-size: 11px; font-weight: 700; color: var(--slate); margin-top: 4px; display: block; }
.dash-side-link { display: block; text-align: center; font-size: 12.5px; font-weight: 700; margin-top: 10px; }

.dash-side-tip {
  background: linear-gradient(140deg, #F4FBFE 0%, #FFF8F4 100%);
  border-color: #D8ECF5;
}
.dash-side-tip p { font-size: 13px; color: var(--slate); line-height: 1.55; }
.dash-side-tip code { background: rgba(0,174,239,.1); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-col-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .dhc-ring { display: none; }
}

@media (max-width: 640px) {
  .dash-welcome { padding: 18px 18px 16px; }
  .dw-head { flex-direction: column; }
  .dash-hero-card { grid-template-columns: 1fr; }
  .dhc-accent {
    flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 16px;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .dhc-main { padding: 16px 18px 18px; }
  .dhc-top { flex-direction: column; gap: 10px; }
  .dhc-foot { flex-direction: column; align-items: stretch; }
  .dhc-meta { text-align: left; min-width: 0; }
  .dhc-actions { width: 100%; }
  .dhc-actions .btn { flex: 1; text-align: center; justify-content: center; }
  .dash-next-row { grid-template-columns: 24px 8px 1fr auto; }
  .dnr-meta { display: none; }
  .dash-col-side { grid-template-columns: 1fr; }
}

[data-theme="dark"] .dash-hero-card { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .dhc-accent { background: color-mix(in srgb, var(--track, var(--blue)) 14%, var(--card)); border-color: var(--line); }
[data-theme="dark"] .dhc-foot { border-color: var(--line); }
[data-theme="dark"] .dhc-bar { background: #243245; }
[data-theme="dark"] .btn-hero-ghost { background: var(--bg); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .btn-hero-ghost:hover { background: rgba(0,174,239,.1); }
[data-theme="dark"] .dash-welcome { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .dw-journey-bar { background: #243245; }
[data-theme="dark"] .dash-next-list { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .dash-next-row { border-color: var(--line); }
[data-theme="dark"] .dash-next-row:hover { background: rgba(0,174,239,.08); }
[data-theme="dark"] .dms { background: #0F1722; border-color: var(--line); }
[data-theme="dark"] .dash-side-tip { background: linear-gradient(140deg, #131D2A 0%, #1A2230 100%); border-color: var(--line); }
[data-theme="dark"] .dsa-bar { background: #243245; }
[data-theme="dark"] .dnr-pct { background: rgba(0,174,239,.14); }

/* ====================================================================
   v2.9.6 — Course player page redesign
   ==================================================================== */
.course-page { display: flex; flex-direction: column; gap: 18px; }
.crumb-slash { color: #C5D0DB; margin: 0 6px; font-weight: 600; }

.course-hero {
  display: grid; grid-template-columns: 108px 1fr; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.course-hero-accent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 12px;
  background: color-mix(in srgb, var(--track, var(--blue)) 8%, var(--card));
  border-right: 1px solid var(--line);
}
.cha-code {
  font-family: var(--display); font-size: 15px; font-weight: 800;
  color: var(--track, var(--blue-dark)); letter-spacing: -.2px; text-align: center;
}
.cha-week { font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--slate); }
.course-hero-main { padding: 20px 24px 18px; min-width: 0; }
.course-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.cha-track {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--track, var(--blue)) 12%, var(--bg));
  color: var(--track, var(--blue-dark));
}
.course-hero-main h1 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.4px; line-height: 1.2;
}
.course-hero-main > p { color: var(--slate); font-size: 14px; margin-top: 6px; max-width: 62ch; line-height: 1.5; }
.course-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.course-hero-chips span {
  font-size: 11.5px; font-weight: 700; color: var(--slate);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

.player-v2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }

.viewer-v2 {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.viewer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.mode-tabs-v2 { display: flex; gap: 6px; }
.mode-tab-v2 {
  background: transparent; border: 1px solid transparent; color: var(--slate);
  padding: 7px 14px; font-size: 13px; font-weight: 700; border-radius: 999px;
  cursor: pointer; font-family: var(--font);
}
.mode-tab-v2:hover { color: var(--ink); background: var(--card); border-color: var(--line); }
.mode-tab-v2.active {
  background: var(--card); color: var(--blue-dark); border-color: var(--line);
  box-shadow: 0 1px 3px rgba(16,34,46,.06);
}
.viewer-slide-label {
  font-size: 12px; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap;
}

.stage-v2 {
  position: relative; aspect-ratio: 16/10; background: #E8EDF2;
}
.stage-v2 canvas {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; box-shadow: 0 4px 24px rgba(14,27,44,.12);
  border-radius: 2px;
}
.stage-v2 video { width: 100%; height: 100%; object-fit: contain; background: #0A1522; }

.viewer-foot { border-top: 1px solid var(--line); background: var(--card); }
.vbar-v2 { height: 3px; background: #EDF1F5; }
.vbar-v2 > div { height: 100%; background: linear-gradient(90deg, var(--blue), #36c7ff); transition: width .2s ease; }
.controls-v2 {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
}
.controls-v2 .spacer { flex: 1; }
.save-state { font-size: 12px; font-weight: 600; color: var(--slate); }
.nav-btn-v2 {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 18px; font-weight: 700;
  cursor: pointer; display: grid; place-items: center;
}
.nav-btn-v2:hover { border-color: var(--blue); color: var(--blue-dark); background: #F4FBFE; }
.tool-btn {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 12.5px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-grid; place-items: center;
}
.tool-btn:hover { border-color: var(--blue); color: var(--blue-dark); background: #F4FBFE; }

.video-placeholder-v2 { background: #E8EDF2; }
.video-placeholder-v2 .inner { color: var(--slate); }
.video-placeholder-v2 .pp {
  background: var(--card); border: 2px dashed var(--line); color: var(--blue-dark);
}
.video-placeholder-v2 h3 { color: var(--ink); }

.side-panel-v2 { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.session-card, .quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.session-card h3, .quiz-card h3 {
  font-family: var(--display); font-size: 14px; letter-spacing: -.2px; margin-bottom: 8px;
}
.session-desc { font-size: 13px; color: var(--slate); line-height: 1.55; margin-bottom: 14px; }
.session-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px 8px;
}
.ss-v { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--blue-dark); line-height: 1; }
.ss-l { display: block; font-size: 10px; font-weight: 700; color: var(--slate); margin-top: 2px; text-transform: uppercase; letter-spacing: .3px; }
.quiz-card p { font-size: 13px; color: var(--slate); line-height: 1.55; margin-bottom: 14px; }
.quiz-card .btn { margin-top: 0; }
.quiz-card .btn + .btn { margin-top: 8px; }

.viewer-v2:fullscreen, .viewer-v2:-webkit-full-screen {
  display: flex; flex-direction: column; border-radius: 0; background: var(--navy);
  border-color: transparent;
}
.viewer-v2:fullscreen .viewer-top, .viewer-v2:-webkit-full-screen .viewer-top { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.viewer-v2:fullscreen .mode-tab-v2, .viewer-v2:-webkit-full-screen .mode-tab-v2 { color: #9FB2C5; }
.viewer-v2:fullscreen .mode-tab-v2.active, .viewer-v2:-webkit-full-screen .mode-tab-v2.active { background: #0A1522; color: #fff; border-color: transparent; }
.viewer-v2:fullscreen .viewer-slide-label, .viewer-v2:-webkit-full-screen .viewer-slide-label { color: #9FB2C5; }
.viewer-v2:fullscreen .stage-v2, .viewer-v2:-webkit-full-screen .stage-v2 { flex: 1; aspect-ratio: auto; background: #0A1522; }
.viewer-v2:fullscreen .viewer-foot, .viewer-v2:-webkit-full-screen .viewer-foot { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.viewer-v2:fullscreen .vbar-v2, .viewer-v2:-webkit-full-screen .vbar-v2 { background: rgba(255,255,255,.12); }
.viewer-v2:fullscreen .controls-v2, .viewer-v2:-webkit-full-screen .controls-v2 { color: #C6D3E0; }
.viewer-v2:fullscreen .nav-btn-v2, .viewer-v2:-webkit-full-screen .nav-btn-v2,
.viewer-v2:fullscreen .tool-btn, .viewer-v2:-webkit-full-screen .tool-btn {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); color: #fff;
}
.viewer-v2:fullscreen .nav-btn-v2:hover, .viewer-v2:-webkit-full-screen .nav-btn-v2:hover,
.viewer-v2:fullscreen .tool-btn:hover, .viewer-v2:-webkit-full-screen .tool-btn:hover {
  background: rgba(0,174,239,.35); border-color: transparent;
}
.viewer-v2:fullscreen .save-state, .viewer-v2:-webkit-full-screen .save-state { color: #9FB2C5; }

@media (max-width: 1024px) {
  .player-v2 { grid-template-columns: 1fr; }
  .side-panel-v2 { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 640px) {
  .course-hero { grid-template-columns: 1fr; }
  .course-hero-accent { flex-direction: row; justify-content: flex-start; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--line); }
  .course-hero-main { padding: 16px 18px; }
  .viewer-top { flex-wrap: wrap; }
  .side-panel-v2 { grid-template-columns: 1fr; }
}

[data-theme="dark"] .course-hero { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .course-hero-accent { background: color-mix(in srgb, var(--track, var(--blue)) 14%, var(--card)); border-color: var(--line); }
[data-theme="dark"] .course-hero-chips span { background: #0F1722; border-color: var(--line); }
[data-theme="dark"] .viewer-v2 { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .viewer-top { background: #0F1722; border-color: var(--line); }
[data-theme="dark"] .stage-v2 { background: #0A1522; }
[data-theme="dark"] .stage-v2 canvas { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
[data-theme="dark"] .vbar-v2 { background: #243245; }
[data-theme="dark"] .nav-btn-v2, [data-theme="dark"] .tool-btn { background: #0F1722; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .session-card, [data-theme="dark"] .quiz-card { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .ss { background: #0F1722; border-color: var(--line); }
[data-theme="dark"] .video-placeholder-v2 { background: #0A1522; }
[data-theme="dark"] .mode-tab-v2.active { background: #151F2C; }

/* Flat UI — no rounded corners anywhere */
*, *::before, *::after {
  border-radius: 0 !important;
}

/* No thick accent left borders — uniform edge on all sides */
.dash-welcome,
.dash-hero-card,
.dash-next-list,
.dash-side-card,
.dash-assess,
.page-head,
.course-hero,
.dash-spotlight,
.cohort-card,
.me-rank,
.quiz-card,
.cal-sess {
  border-left-width: 1px !important;
  border-left-style: solid !important;
}
.dash-welcome,
.dash-hero-card,
.dash-next-list,
.dash-side-card,
.dash-assess,
.course-hero,
.dash-spotlight,
.cohort-card,
.me-rank,
.quiz-card,
.cal-sess {
  border-left-color: var(--line) !important;
}
.page-head {
  border-left-color: #E2ECF3 !important;
}
[data-theme="dark"] .page-head {
  border-left-color: #233242 !important;
}
