@font-face { font-family: Inter; src: url("/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { font-family: Inter, system-ui, sans-serif; color: hsl(var(--ink)); background: hsl(var(--surface)); line-height: 1.5; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: hsl(var(--brand-text)); }
button, .btn { font: inherit; }
:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }

/* Top bar: the shared SEADS bar */
.top { position: sticky; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: hsl(var(--surface)); border-bottom: 1px solid hsl(var(--border)); }
.mark { display: flex; align-items: center; gap: 10px; color: hsl(var(--ink)); text-decoration: none; font-weight: 600; font-size: 16px; }
.mark img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: hsl(var(--ink)); text-decoration: none; font-size: 15px; }
.nav a[aria-current] { background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); font-weight: 600; }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ghost { min-height: 44px; padding: 0 12px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: none; color: hsl(var(--ink)); cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); display: grid; place-items: center; font-weight: 600; font-size: 13px; }

/* Phone bottom bar replaces the top navigation */
.tabs { display: none; }

main { max-width: 1120px; margin: 0 auto; padding: 32px; }
.narrow { max-width: 760px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 600; margin: 8px 0 8px; }
h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.lead { font-size: 18px; color: hsl(var(--muted)); margin: 0 0 24px; max-width: 640px; }
.muted { color: hsl(var(--muted)); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; background: hsl(var(--brand-fill)); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; }
.btn:hover { background: hsl(var(--brand-fill-hover)); }
.btn.secondary { background: hsl(var(--surface)); color: hsl(var(--brand-text)); border-color: hsl(var(--border)); }
.card { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 24px; }
.panel { background: hsl(var(--panel)); border-radius: 8px; padding: 20px 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: hsl(var(--panel)); color: hsl(var(--ink)); }
.chip.ok { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
.chip.soon { background: hsl(var(--panel)); color: hsl(var(--muted)); }
.bar { height: 8px; border-radius: 999px; background: hsl(var(--panel)); overflow: hidden; }
.bar > span { display: block; height: 100%; background: hsl(var(--brand)); border-radius: 999px; }

/* Catalogue */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.resume { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid hsl(var(--brand)); }
.resume .bar { width: 220px; margin-top: 8px; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course { display: flex; flex-direction: column; gap: 12px; }
.course .icon { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; font-family: ui-monospace, monospace; font-weight: 700; font-size: 16px; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); }
.course p { margin: 0; color: hsl(var(--muted)); font-size: 15px; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; }
.course .btn { margin-top: auto; align-self: flex-start; }

/* Course page */
.crumb { font-size: 14px; color: hsl(var(--muted)); }
.crumb a { color: hsl(var(--brand-text)); text-decoration: none; }
.course-head { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.learn { margin: 0; padding-left: 20px; }
.learn li { margin: 4px 0; }
.lessons { list-style: none; margin: 0; padding: 0; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.lessons li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid hsl(var(--border)); }
.lessons li:first-child { border-top: 0; }
.lessons .n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 2px solid hsl(var(--border)); color: hsl(var(--muted)); }
.lessons .done .n { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.lessons .now { background: hsl(var(--brand-tint)); }
.lessons .now .n { border-color: hsl(var(--brand)); color: hsl(var(--brand-text)); }
.lessons .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }      /* a lesson row never widens the page (320 px, seads-test #534) */
.lessons li > .muted:last-child { text-align: right; }
.lessons .t strong { display: block; font-weight: 600; }
.lessons .t span { font-size: 14px; color: hsl(var(--muted)); }
.side { position: sticky; top: 80px; display: grid; gap: 12px; }

/* Lesson */
.lesson-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.lesson-top .bar { flex: 1; min-width: 160px; max-width: 320px; }
.lesson { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.explain p { margin: 0 0 12px; font-size: 16px; }
pre, code, textarea { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
code { background: hsl(var(--panel)); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
pre.example { background: hsl(var(--panel)); border-radius: 8px; padding: 16px; font-size: 14px; overflow-x: auto; margin: 0 0 8px; }
table { border-collapse: collapse; font-size: 14px; width: 100%; }
th, td { text-align: left; white-space: nowrap; padding: 8px 12px; border-bottom: 1px solid hsl(var(--border)); }
th { background: hsl(var(--panel)); font-weight: 600; }
.practice { position: sticky; top: 80px; display: grid; gap: 16px; }
.task { font-size: 16px; margin: 0; }
.editor { width: 100%; min-height: 120px; padding: 12px; border: 1px solid hsl(var(--muted)); border-radius: 8px; font-size: 15px; background: hsl(var(--surface)); color: hsl(var(--ink)); resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.verdict { border-radius: 8px; padding: 16px 20px; display: grid; gap: 4px; }
.verdict.ok { background: hsl(var(--success) / .1); border: 1px solid hsl(var(--success) / .4); }
.verdict.no { background: hsl(var(--warning) / .12); border: 1px solid hsl(var(--warning) / .5); }
.verdict strong { font-size: 16px; }
.verdict.ok strong { color: hsl(var(--success)); }
.verdict.no strong { color: hsl(var(--warning-text)); }
.result { border: 1px solid hsl(var(--border)); border-radius: 8px; overflow: auto; max-height: 220px; }
.next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid hsl(var(--border)); padding-top: 16px; }

/* Progress */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat strong { display: block; font-size: 28px; font-weight: 600; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.skills li { display: grid; grid-template-columns: 1fr 180px 110px; gap: 16px; align-items: center; }
.level { font-size: 14px; font-weight: 500; text-align: right; }

.note { margin: 48px auto 0; max-width: 1120px; padding: 12px 32px 32px; font-size: 13px; color: hsl(var(--muted)); border-top: 1px dashed hsl(var(--border)); }
.screens a { margin-right: 12px; }

@media (max-width: 768px) {
  .top { padding: 0 16px; }
  .nav { display: none; }
  main { padding: 16px 16px 96px; }
  h1 { font-size: 26px; }
  .lead { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .course-head, .lesson { grid-template-columns: minmax(0, 1fr); gap: 24px; }      /* minmax: a long word or a wide child never widens the page past the phone (reflow at 320 px) */
  .side, .practice { position: static; }
  .resume .bar { width: 100%; }
  .skills li { grid-template-columns: 1fr 90px; }
  .skills li .bar { grid-column: 1 / -1; grid-row: 2; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: hsl(var(--surface)); border-top: 1px solid hsl(var(--border)); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; justify-content: center; font-size: 13px; color: hsl(var(--muted)); text-decoration: none; }
  .tabs a[aria-current] { color: hsl(var(--brand-text)); font-weight: 600; }
  .tabs svg { width: 22px; height: 22px; }
  .note { padding: 12px 16px 96px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .nav a { transition: background-color .15s; } }
/* #534 round 2: lesson parts, quiz, result, assessment, weekly goal */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: hsl(var(--panel)); font-size: 14px; color: hsl(var(--muted)); }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.steps li.done { color: hsl(var(--success)); } .steps li.done span { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.steps li.now { background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); font-weight: 600; } .steps li.now span { border-color: hsl(var(--brand)); }
.narrowcol { max-width: 720px; display: grid; gap: 16px; }
.quizq h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.4; }
.choices { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.choices li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.choices .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid hsl(var(--border)); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.choices .is-right { border-color: hsl(var(--success)); background: hsl(var(--success) / .08); } .choices .is-right .dot { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.choices .is-wrong { border-color: hsl(var(--danger)); background: hsl(var(--danger) / .06); } .choices .is-wrong .dot { background: hsl(var(--danger-fill)); border-color: hsl(var(--danger-fill)); color: #fff; }
.choices .is-answer { border-style: dashed; border-color: hsl(var(--success)); }
.choices code { background: none; padding: 0; font-size: 15px; }
.tag { margin-left: auto; font-size: 13px; color: hsl(var(--success)); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feedback { margin: 0 0 8px; font-size: 15px; } .feedback.ok { color: hsl(var(--success)); } .feedback.no { color: hsl(var(--danger)); }
.score strong { font-size: 20px; }
.center { margin: 0 auto; text-align: center; justify-items: center; } .big { font-size: 48px; margin: 16px 0 0; }
.stats.three { width: 100%; } .row.centered { justify-content: center; }
.goal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .goal > div { flex: 1; min-width: 200px; } .goal .bar { margin-top: 8px; }
.cert { text-align: center; border: 2px solid hsl(var(--accent)); } .cert p { margin: 4px 0; } .certname { font-size: 22px; font-weight: 600; }
@media (max-width: 768px) { .stats.three { grid-template-columns: repeat(3, 1fr); } .stats.three .stat strong { font-size: 20px; } }
/* /learn page (#534 build): skip link, screen-reader text, a heading styled as h3 */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: hsl(var(--surface)); color: hsl(var(--brand-text)); padding: 10px 16px; border: 2px solid hsl(var(--brand)); border-radius: 8px; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-size: 18px; margin: 4px 0 0; }
button.btn:disabled { opacity: .6; cursor: progress; }
main:focus { outline: none; }
.top .ghost { white-space: nowrap; }
.mark span { white-space: nowrap; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 32px 32px; }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 14px; color: hsl(var(--brand-text)); text-decoration: underline; cursor: pointer; }
@media (max-width: 768px) { .top .long { display: none; } .foot { padding: 0 16px 96px; } }
.big-num { font-size: 24px; font-weight: 600; margin: 4px 0 8px; }
.btn.wide { width: 100%; margin-top: 16px; }
h2.first { margin-top: 0; }
.nowrap { white-space: nowrap; }
.phone-only { display: none; }
@media (max-width: 768px) { .phone-only { display: block; margin-top: 16px; } .wide-only { display: none; } }
.m0 { margin: 0; } .mt4 { margin: 4px 0 0; }

/* #534 round 2: lesson parts, quiz, result, assessment, weekly goal */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: hsl(var(--panel)); font-size: 14px; color: hsl(var(--muted)); }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.steps li.done { color: hsl(var(--success)); } .steps li.done span { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.steps li.now { background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); font-weight: 600; } .steps li.now span { border-color: hsl(var(--brand)); }
.narrowcol { max-width: 720px; display: grid; gap: 16px; }
.quizq h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.4; }
.choices { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.choices li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.choices .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid hsl(var(--border)); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.choices .is-right { border-color: hsl(var(--success)); background: hsl(var(--success) / .08); } .choices .is-right .dot { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.choices .is-wrong { border-color: hsl(var(--danger)); background: hsl(var(--danger) / .06); } .choices .is-wrong .dot { background: hsl(var(--danger-fill)); border-color: hsl(var(--danger-fill)); color: #fff; }
.choices .is-answer { border-style: dashed; border-color: hsl(var(--success)); }
.choices code { background: none; padding: 0; font-size: 15px; }
.tag { margin-left: auto; font-size: 13px; color: hsl(var(--success)); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feedback { margin: 0 0 8px; font-size: 15px; } .feedback.ok { color: hsl(var(--success)); } .feedback.no { color: hsl(var(--danger)); }
.score strong { font-size: 20px; }
.center { margin: 0 auto; text-align: center; justify-items: center; } .big { font-size: 48px; margin: 16px 0 0; }
.stats.three { width: 100%; } .row.centered { justify-content: center; }
.goal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .goal > div { flex: 1; min-width: 200px; } .goal .bar { margin-top: 8px; }
.cert { text-align: center; border: 2px solid hsl(var(--accent)); } .cert p { margin: 4px 0; } .certname { font-size: 22px; font-weight: 600; }
@media (max-width: 768px) { .stats.three { grid-template-columns: repeat(3, 1fr); } .stats.three .stat strong { font-size: 20px; } }

/* lesson page (#534 step 3) */
fieldset.quizq { margin: 0; } fieldset.quizq legend { font-size: 18px; font-weight: 600; line-height: 1.4; padding: 0; margin-bottom: 12px; }
fieldset.quizq legend .muted { display: block; font-size: 14px; font-weight: 500; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; cursor: pointer; }
.choices label input { width: 20px; height: 20px; flex: none; margin: 0; }
.choices label.is-right { border-color: hsl(var(--success)); background: hsl(var(--success) / .08); }
.choices label.is-wrong { border-color: hsl(var(--danger)); background: hsl(var(--danger) / .06); }
.choices label.is-answer { border-style: dashed; border-color: hsl(var(--success)); }
.choices { display: grid; gap: 8px; margin-bottom: 12px; }
.querycard { margin-top: 16px; } .querycard h3 { margin-top: 0; }
.quiz { margin-top: 32px; } .done-box { margin: 0 0 24px; } .done-box .row { margin-top: 8px; }
.exam-note { color: hsl(var(--warning-text)); background: hsl(var(--warning) / .1); border-radius: 8px; padding: 8px 12px; }
.draft-note { font-size: 14px; color: hsl(var(--warning-text)); background: hsl(var(--warning) / .1); border-radius: 8px; padding: 8px 12px; }
.lesson-link { color: hsl(var(--ink)); text-decoration: none; } .lesson-link:hover { text-decoration: underline; }
.lesson-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* the question sits inside its card, not on the border (staging 7c948e1) */
fieldset.quizq legend { float: left; width: 100%; } fieldset.quizq legend + * { clear: both; }
/* My progress (#534 step 4) */
.prog-course { margin-bottom: 16px; } .prog-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .prog-head > div { flex: 1; min-width: 220px; }
.prog-head .bar { margin-top: 8px; } .h4 { font-size: 16px; margin: 20px 0 8px; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .scores li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid hsl(var(--border)); }
.scores a { color: hsl(var(--ink)); } .stats { margin: 16px 0; }
/* home page (#534 step 5) */
.hero { max-width: 760px; } .hero .lead { margin-bottom: 16px; }
.notice-bar { background: hsl(var(--brand-tint)); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; } .foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: hsl(var(--brand-text)); }
.top .short { display: none; }
@media (max-width: 768px) { .top .short { display: inline; } }
/* My progress on a phone: the three numbers side by side, compact */
@media (max-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stats .stat { padding: 12px; } .stats .stat strong { font-size: 22px; } .stats .stat .muted { font-size: 13px; } }
/* #534 walk: links inside text are underlined, not told apart by colour only (axe link-in-text-block) */
.crumb a { text-decoration: underline; }
/* final assessment (#534 point 6) */
.timer { position: sticky; top: 64px; z-index: 4; display: inline-block; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 8px 14px; font-weight: 600; margin: 0 0 16px; }
.final-card { display: grid; gap: 4px; text-decoration: none; color: hsl(var(--ink)); border-left: 4px solid hsl(var(--accent)); }
.exam-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .exam-results li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 8px; border: 1px solid hsl(var(--border)); }
.exam-results li.ok strong { color: hsl(var(--success)); } .exam-results li.no strong { color: hsl(var(--danger)); } .exam-score { margin: 16px 0; } .exam-score h2 { margin: 0; }
@media (max-width: 768px) { .timer { top: 64px; } }
/* as designed (#534 owner check): the Continue card's bar fills its column; marked answers show ✓ / ✗ instead of a greyed radio */
.resume .grow { flex: 1; min-width: 220px; } .resume .bar { width: 100%; max-width: 360px; margin-top: 8px; }
.choices .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid hsl(var(--border)); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.choices label.is-right .mark { background: hsl(var(--success)); border-color: hsl(var(--success)); color: hsl(var(--surface)); }
.choices label.is-wrong .mark { background: hsl(var(--danger-fill)); border-color: hsl(var(--danger-fill)); color: #fff; }
/* as designed (#534 comparison): who is signed in, lesson subtitles, the progress page */
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; } .who .avatar { width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
@media (max-width: 768px) { .who .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }      /* only the initials show; the name still names the link */
.lessons .sub { display: block; font-size: 14px; color: hsl(var(--muted)); }
.lesson-top .bar { flex: 1; min-width: 120px; max-width: 320px; }
.resume { border-left: 4px solid hsl(var(--brand)); margin-bottom: 8px; }
.goal-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; } .goal-form select { min-height: 44px; }
.skills { list-style: none; padding: 16px 20px; margin: 0; display: grid; gap: 12px; } .skills li { display: grid; grid-template-columns: 1fr 180px 130px; gap: 16px; align-items: center; }
.skills .level { font-size: 14px; text-align: right; } .skills .level.mastered { color: hsl(var(--success)); } .skills .level.none { color: hsl(var(--muted)); }
@media (max-width: 768px) { .skills li { grid-template-columns: 1fr auto; } .skills li .bar { grid-column: 1 / -1; grid-row: 2; } }
.donehead { font-size: 28px; margin: 8px 0 16px; } main { scroll-margin-top: 72px; }
.who[hidden] { display: none; }
/* hidden always wins over a display rule (staging a7e7897: the Change goal form showed on load) */
[hidden] { display: none !important; }
/* form controls follow the theme (dark: a native white select stood out) */
select, .goal-form select { font: inherit; background: hsl(var(--surface)); color: hsl(var(--ink)); border: 1px solid hsl(var(--muted)); border-radius: 8px; padding: 0 10px; min-height: 44px; }
textarea.editor { background: hsl(var(--surface)); color: hsl(var(--ink)); }
/* as designed: the lesson's way back to its course is plain (it stands alone, not inside text) */
.lesson-top a.crumb { text-decoration: none; } .lesson-top a.crumb:hover { text-decoration: underline; }
.hint { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: hsl(var(--brand-tint)); color: hsl(var(--ink)); font-size: 15px; }
/* the Data panel (#534, owner 13 Nov) */
.data-panel { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px 16px; margin-top: 12px; background: hsl(var(--panel)); }
.data-panel summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.tabs-row { display: flex; gap: 4px; margin: 12px 0; flex-wrap: wrap; } .tabs-row button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--surface)); color: hsl(var(--ink)); cursor: pointer; }
.tabs-row button[aria-selected="true"] { background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); border-color: hsl(var(--brand)); font-weight: 600; }
.data-body { display: grid; gap: 12px; max-height: 420px; overflow: auto; } .dt h4, .dt h3 { margin: 0 0 4px; font-size: 17px; } .dt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dt li { font-size: 16px; line-height: 1.6; }      /* platform standard 01, owner 13 Nov: body text at least 16 px; the owner found the panel hard to read */ .dt .key { font-size: 12px; font-weight: 600; color: hsl(var(--brand-text)); } .dt dl { margin: 6px 0; font-size: 16px; line-height: 1.6; } .dt dt { margin-top: 8px; } .dt dd { margin: 0 0 0 12px; color: hsl(var(--ink)); }
.ins { font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: none; border: 0; padding: 2px 4px; min-height: 28px; color: hsl(var(--brand-text)); cursor: pointer; border-radius: 4px; text-decoration: underline dotted; }
.ins:hover { background: hsl(var(--brand-tint)); }
.erd { overflow-x: auto; } .erd svg { display: block; max-width: 100%; height: auto; } .erd-box { fill: hsl(var(--surface)); stroke: hsl(var(--border)); } .erd-title { fill: hsl(var(--ink)); font-weight: 600; font-size: 14px; font-family: ui-monospace, Menlo, monospace; }
.erd-col { fill: hsl(var(--muted)); font-size: 13px; font-family: ui-monospace, Menlo, monospace; } .erd-key { fill: hsl(var(--brand-text)); } .erd-link { fill: none; stroke: hsl(var(--brand)); stroke-width: 2; }
/* The case page (#534: a use case with datasets, reached from a course, never a course card) */
.case-page { display: grid; gap: 16px; } .case-page h1, .case-page h2, .case-page .lead { margin: 0; } .case-page > .card { display: grid; gap: 16px; }
.case-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-steps .step { font: inherit; font-size: 14px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 22px; border: 1px solid hsl(var(--border)); background: hsl(var(--surface)); color: hsl(var(--ink)); cursor: pointer; text-align: left; }
.case-steps .step[aria-current] { background: hsl(var(--brand-tint)); border-color: hsl(var(--brand)); font-weight: 600; }
.case-steps .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; border: 2px solid hsl(var(--border)); color: hsl(var(--muted)); }
.case-steps .done .n { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.case-switches { font-size: 14px; } .case-switches dl { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; } .case-switches dd { margin: 0; }
@media (max-width: 480px) { .case-switches dl { grid-template-columns: 1fr; } .case-switches dd { margin-bottom: 6px; } }
.case-page .data-panel > p { display: none; }      /* the story is already the page lead */
/* Forced colours (Windows contrast themes): backgrounds are replaced by the system's, so what was shown by a tint alone gets a border
   or an outline: progress bars, the current page, tab and step, chips, a disabled button, and the diagram, whose SVG colours are not replaced. */
@media (forced-colors: active) {
  .bar { border: 1px solid CanvasText; } .bar > span { forced-color-adjust: none; background: Highlight; }
  .chip { border: 1px solid CanvasText; }
  .nav a[aria-current], .tabs a[aria-current], .tabs-row button[aria-selected="true"], .case-steps .step[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
  .nav a[aria-current]:focus-visible, .tabs a[aria-current]:focus-visible, .tabs-row button[aria-selected="true"]:focus-visible { outline: 3px solid CanvasText; outline-offset: 3px; }
  button.btn:disabled { opacity: 1; color: GrayText; border-color: GrayText; }
  .erd-box { fill: Canvas; stroke: CanvasText; } .erd-title, .erd-col, .erd-key { fill: CanvasText; } .erd-link { stroke: Highlight; }
}

/* My progress as a path of stages (owner approval 13 Nov, #534; mock-up /design/engage). Theme tokens only, so dark mode follows. */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--brand-text)); }
.btn.big { min-height: 48px; padding: 0 24px; font-size: 16px; font-weight: 600; }
.continue { display: flex; align-items: center; gap: 24px; padding: 24px 28px; margin: 8px 0 28px; border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); }
.continue .c-text { flex: 1; min-width: 0; } .continue h2 { margin: 6px 0 4px; font-size: 22px; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pg-side { display: grid; gap: 16px; position: sticky; top: 80px; } .pg-side .goal { display: grid; gap: 12px; margin: 0; } .pg-side .stats { grid-template-columns: 1fr; margin: 0; }
.path-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 0 12px; } .path-title .muted { font-size: 16px; font-weight: 400; }
.path { position: relative; display: grid; gap: 16px; margin-bottom: 32px; }
.path::before { content: ""; position: absolute; left: 47px; z-index: 0; top: 40px; bottom: 40px; width: 4px; border-radius: 2px; background: hsl(var(--border)); }
.stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: center; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 20px; }
.stage.current { border-color: hsl(var(--brand)); } .stage.locked { background: hsl(var(--panel)); }
.st-main { min-width: 0; } .st-body { grid-column: 1 / -1; min-width: 0; }      /* the lessons use the card's full width (own look, staging 79df040) */ .st-main h3 { margin: 2px 0 0; font-size: 20px; }
.sbadge { flex: none; width: 56px; height: 56px; } .sbadge svg { width: 100%; height: 100%; display: block; }
.sbadge .b-ring { fill: hsl(var(--border)); } .sbadge .b-core { fill: hsl(var(--surface)); } .sbadge .b-num { font: 700 20px Inter, system-ui, sans-serif; fill: hsl(var(--muted)); }
.sbadge.current .b-ring { fill: hsl(var(--brand)); } .sbadge.current .b-num { fill: hsl(var(--brand-text)); }
.sbadge.cleared .b-ring { fill: hsl(var(--warning)); } .sbadge.cleared .b-num { fill: hsl(var(--warning-text)); }
.stage .ok { color: hsl(var(--success)); }
.ps-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.ps { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; } .ps.now { background: hsl(var(--brand-tint)); }
.ps .dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 2px solid hsl(var(--border)); color: hsl(var(--muted)); background: hsl(var(--surface)); }
.ps .dot svg { width: 16px; height: 16px; }
.ps.done .dot { background: hsl(var(--success)); border-color: hsl(var(--success)); color: hsl(var(--surface)); } .ps.now .dot { border-color: hsl(var(--brand)); color: hsl(var(--brand-text)); }
.ps .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; } .ps .lt > span { font-size: 15px; color: hsl(var(--muted)); }
.ps .lt a { color: hsl(var(--ink)); text-decoration: none; } .ps .lt a:hover strong { text-decoration: underline; }
.chip.now { background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); border: 1px solid hsl(var(--brand)); }
.unlocks { margin: 12px 0 0; color: hsl(var(--muted)); } .unlocks svg { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 768px) {
  .continue { flex-direction: column; align-items: stretch; padding: 20px; } .continue .btn { width: 100%; }
  .pg-grid { grid-template-columns: minmax(0, 1fr); } .pg-side { position: static; grid-row: 1; } .pg-side .stats { grid-template-columns: repeat(3, 1fr); }
  .path::before { left: 39px; } .stage { padding: 16px; gap: 12px; } .sbadge { width: 48px; height: 48px; }
  .ps { padding: 8px 6px; gap: 10px; } .ps .chip.soon { display: none; }
}
@media (forced-colors: active) { .ps.now, .stage.current { outline: 2px solid Highlight; outline-offset: -2px; } .sbadge .b-ring { fill: CanvasText; } .sbadge .b-core { fill: Canvas; } .sbadge .b-num { fill: CanvasText; } }

/* The data panel as table cards (owner approval 13 Nov, #534; mock-up /design/engage). Theme tokens only. */
.small { font-size: 14px; }
.data-panel .seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: hsl(var(--panel)); }
.data-panel .seg button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: none; font-weight: 600; color: hsl(var(--muted)); }
.data-panel .seg button[aria-selected="true"] { background: hsl(var(--surface)); color: hsl(var(--ink)); border: 0; box-shadow: 0 1px 3px hsl(0 0% 0% / .15); }
.dsearch input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; font: inherit; background: hsl(var(--surface)); color: hsl(var(--ink)); }
.tcard { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 12px 16px; background: hsl(var(--surface)); }
.tcard header { display: flex; align-items: baseline; gap: 10px; } .tcard .tm { margin: 2px 0 8px; color: hsl(var(--muted)); }
.tcard .ins.tn { font-size: 17px; }
.cols { list-style: none; margin: 0; padding: 0; } .cols li { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid hsl(var(--border)); }
.cols .cn { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; } .cols .k { width: 18px; flex: none; } .cols .k svg { width: 16px; height: 16px; vertical-align: -3px; }
.cols .k.pk { color: hsl(var(--warning-text)); } .cols .k.fk { color: hsl(var(--brand-text)); }
.cols .cm { font-size: 16px; } .cols .ref { display: block; font-size: 14px; color: hsl(var(--brand-text)); }
.ty { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: hsl(var(--panel)); color: hsl(var(--muted)); white-space: nowrap; }
.ty.money { color: hsl(var(--warning-text)); } .ty.date { color: hsl(var(--brand-text)); }
.tcard .ex { margin-top: 6px; } .tcard .ex summary { cursor: pointer; font-weight: 600; font-size: 15px; color: hsl(var(--brand-text)); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 768px) { .cols li { grid-template-columns: minmax(0, 1fr) auto; } .cols .cm { grid-column: 1 / -1; grid-row: 2; padding-left: 24px; } }

/* seads-test's look-and-read review of My progress (#534, staging da32e7a): reading text at 16 px, rows at least 44 px tall, a won card */
.pg-grid .muted, .continue .muted, .stat .muted, .ps .lt > span, .st-main > .muted { font-size: 16px; }
.ps { min-height: 52px; } .ps .lt a { display: block; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.ps .chip svg { width: 14px; height: 14px; vertical-align: -2px; }
.continue.won { border-color: hsl(var(--success)); background: hsl(var(--success) / .1); }

/* The data panel beside the lesson (owner approval 13 Nov, #534 step 2b): on a wide screen the explanation and the practice on the
   left, the data on the right at full height; on a phone a bar above the tabs that opens as a bottom sheet. */
@media (min-width: 1100px) {
  main:has(.lesson.with-data) { max-width: 1360px; }
  .lesson.with-data { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .lesson.with-data > .explain, .lesson.with-data > .practice { grid-column: 1; } .lesson.with-data > .practice { position: static; }
  .lesson-data { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 72px; }
  .lesson-data .data-panel { margin: 0; max-height: calc(100vh - 96px); overflow: auto; } .lesson-data .data-body { max-height: none; }
}
@media (min-width: 769px) and (max-width: 1099px) { .lesson.with-data > .lesson-data { grid-column: 1 / -1; } }
@media (max-width: 768px) {
  .lesson-data .data-panel { position: fixed; left: 0; right: 0; bottom: 60px; z-index: 6; margin: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px hsl(0 0% 0% / .2); background: hsl(var(--surface)); }
  .lesson-data .data-panel[open] { max-height: 75vh; overflow: auto; }
  .lesson-data .data-panel > summary { position: sticky; top: 0; background: hsl(var(--surface)); justify-content: center; }
  .lesson-data .data-panel .data-body { max-height: none; }
  main:has(.lesson-data) { padding-bottom: 140px; }      /* the bar never covers the last button */
}

/* Rewards on My progress (owner approval 13 Nov, #534 step 3) */
.rewards { display: grid; gap: 10px; } .rewards h2 .big { font-size: 28px; } .rewards .bar > span { background: hsl(var(--warning)); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: 13px; line-height: 1.3; color: hsl(var(--muted)); }
.badges .sbadge { width: 44px; height: 44px; margin: 0 auto 4px; display: block; } .badges li:not(.won) .sbadge { opacity: .5; } .badges li.won { color: hsl(var(--ink)); font-weight: 600; }
.cleared-moment { display: flex; gap: 20px; align-items: center; margin: 8px 0 20px; border-color: hsl(var(--warning)); background: hsl(var(--warning) / .1); }
.cleared-moment .sbadge { width: 72px; height: 72px; } .cleared-moment h2 { margin: 4px 0; }
@media (prefers-reduced-motion: no-preference) { .cleared-moment .sbadge { animation: pop .6s ease-out both; } @keyframes pop { from { transform: scale(.6); opacity: 0; } } }
@media (max-width: 768px) { .data-panel .ins { min-height: 44px; display: inline-flex; align-items: center; } }      /* tap targets in the sheet (seads-test) */

/* A stage's real-world win (#534 step 4) */
.story { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px dashed hsl(var(--border)); }
.story > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .story.won { border-style: solid; border-color: hsl(var(--success)); background: hsl(var(--success) / .08); }

/* Easy to read (owner, platform standard 01: body text at least 16 px): reading text at 16 px, data and code at 15 px; labels (navigation,
   chips, tabs, step names, dots, badges, eyebrows) keep their size. */
.course p, .lessons .t span, .lessons .sub, .feedback, .hint, .case-switches, .draft-note, fieldset.quizq legend .muted, .choices code,
pre.example, .editor, .small, p.muted, .cols .ref, .tcard .ex summary { font-size: 16px; }
.feedback, .hint, .case-switches, p.muted { line-height: 1.6; }
table, code { font-size: 15px; }

/* The learner's first-time setup as a guided flow (owner approval 14 Nov, #534; from the mock-up /design/start; platform standard 01) */
.flow { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.flow-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.flow-top .back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; } .count { color: hsl(var(--muted)); font-size: 15px; }
.flow-bar { height: 8px; border-radius: 999px; background: hsl(var(--panel)); overflow: hidden; } .flow-bar > span { display: block; height: 100%; background: hsl(var(--brand)); border-radius: 999px; }
.flow-bar .w1 { width: 25%; } .flow-bar .w2 { width: 50%; } .flow-bar .w3 { width: 75%; } .flow-bar .w4 { width: 100%; }
.flow-card { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 28px; }
.flow-card h1 { margin: 6px 0 12px; font-size: 28px; line-height: 1.25; } .flow-card .lead { font-size: 18px; color: hsl(var(--muted)); }
.help { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: hsl(var(--panel)); color: hsl(var(--muted)); font-size: 15px; }
.what, .sum, .ob-next { padding-left: 20px; } .what li { margin: 10px 0; } .what li span { display: block; color: hsl(var(--muted)); }
.ob-next li { margin: 8px 0; }
.notice-strong { padding: 12px 14px; border-left: 4px solid hsl(var(--brand)); background: hsl(var(--brand-tint)); border-radius: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 14px; border: 2px solid hsl(var(--brand)); border-radius: 12px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.ob-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; } .ob-choices.one { grid-template-columns: 1fr; }
.ob-choice { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 16px; border: 2px solid hsl(var(--border)); border-radius: 12px; cursor: pointer; }
.ob-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-choice strong { font-size: 32px; line-height: 1; color: hsl(var(--brand-text)); } .ob-choice span { color: hsl(var(--muted)); font-size: 15px; } .ob-choice b { color: hsl(var(--ink)); }
.ob-choice.on { border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); } .ob-choice:has(input:focus-visible) { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
.ob-choice.wide { flex-direction: row; align-items: center; gap: 14px; } .ob-choice.off { opacity: .6; cursor: default; }
.ob-choice .icon { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); }
.flow-actions { display: grid; gap: 10px; } .btn.big { min-height: 52px; font-size: 17px; font-weight: 600; }
.end { text-align: center; } .end .ob-next { text-align: left; display: inline-block; }
.tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: hsl(var(--success)); color: #fff; font-size: 32px; font-weight: 700; }
@media (max-width: 768px) {
  .ob-choices { grid-template-columns: 1fr; } .ob-choice { flex-direction: row; align-items: center; gap: 14px; } .ob-choice strong { width: 44px; text-align: center; }
  .flow-actions { position: sticky; bottom: 0; padding: 12px 0; background: hsl(var(--surface)); }      
}
.sofar { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 4px 16px; background: hsl(var(--panel)); } .sofar summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.review { margin: 0 0 8px; } .review > div { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid hsl(var(--border)); }
.review dt { color: hsl(var(--muted)); font-size: 14px; } .review dd { margin: 0; font-size: 15px; } .review a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 768px) { .review > div { grid-template-columns: minmax(0, 1fr) auto; } .review dd { grid-column: 1; grid-row: 2; } }
@media (max-width: 768px) { .flow > .sofar { order: 1; } .flow > .flow-actions { order: 2; } }      
.review > div { grid-template-columns: 140px minmax(0, 1fr) !important; } .review dd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; grid-column: auto !important; grid-row: auto !important; }
.review dd > span { min-width: 0; overflow-wrap: anywhere; }
.check { min-height: 48px; align-items: center; } .check input { width: 24px; height: 24px; margin: 0; }
@media (max-width: 768px) { .review > div { grid-template-columns: minmax(0, 1fr) !important; } }
.flow-card p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }      
.fwrap { display: grid; grid-template-columns: 240px minmax(0, 560px); gap: 32px; justify-content: center; align-items: start; }
.fmap { position: sticky; top: 80px; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--surface)); }
.fmap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fmap li { display: flex; align-items: center; gap: 10px; min-height: 40px; color: hsl(var(--muted)); }
.fmap .fdot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid hsl(var(--border)); background: hsl(var(--surface)); }
.fmap li.done { color: hsl(var(--ink)); } .fmap li.done .fdot { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.fmap li.now { color: hsl(var(--ink)); font-weight: 700; } .fmap li.now .fdot { border-color: hsl(var(--brand)); color: hsl(var(--brand-text)); }
.fleft { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid hsl(var(--border)); font-size: 15px; color: hsl(var(--muted)); }
.fbar { display: none; }
.fnext { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed hsl(var(--border)); color: hsl(var(--muted)); }
.needs { padding: 12px 14px; border-radius: 10px; background: hsl(var(--brand-tint)); }
.confetti { position: relative; height: 0; } .confetti i { position: absolute; top: 0; width: 8px; height: 14px; border-radius: 2px; opacity: .85; }
.confetti i:nth-child(1) { left: 5%; background: hsl(0 80% 55%); transform: rotate(0deg) translateY(20px); }
.confetti i:nth-child(2) { left: 10%; background: hsl(47 80% 55%); transform: rotate(33deg) translateY(23px); }
.confetti i:nth-child(3) { left: 15%; background: hsl(94 80% 55%); transform: rotate(66deg) translateY(26px); }
.confetti i:nth-child(4) { left: 20%; background: hsl(141 80% 55%); transform: rotate(99deg) translateY(29px); }
.confetti i:nth-child(5) { left: 25%; background: hsl(188 80% 55%); transform: rotate(132deg) translateY(32px); }
.confetti i:nth-child(6) { left: 30%; background: hsl(235 80% 55%); transform: rotate(165deg) translateY(35px); }
.confetti i:nth-child(7) { left: 35%; background: hsl(282 80% 55%); transform: rotate(198deg) translateY(38px); }
.confetti i:nth-child(8) { left: 40%; background: hsl(329 80% 55%); transform: rotate(231deg) translateY(41px); }
.confetti i:nth-child(9) { left: 45%; background: hsl(16 80% 55%); transform: rotate(264deg) translateY(44px); }
.confetti i:nth-child(10) { left: 50%; background: hsl(63 80% 55%); transform: rotate(297deg) translateY(47px); }
.confetti i:nth-child(11) { left: 55%; background: hsl(110 80% 55%); transform: rotate(330deg) translateY(50px); }
.confetti i:nth-child(12) { left: 60%; background: hsl(157 80% 55%); transform: rotate(363deg) translateY(53px); }
.confetti i:nth-child(13) { left: 65%; background: hsl(204 80% 55%); transform: rotate(396deg) translateY(56px); }
.confetti i:nth-child(14) { left: 70%; background: hsl(251 80% 55%); transform: rotate(429deg) translateY(59px); }
.confetti i:nth-child(15) { left: 75%; background: hsl(298 80% 55%); transform: rotate(462deg) translateY(62px); }
.confetti i:nth-child(16) { left: 80%; background: hsl(345 80% 55%); transform: rotate(495deg) translateY(65px); }
.confetti i:nth-child(17) { left: 85%; background: hsl(32 80% 55%); transform: rotate(528deg) translateY(68px); }
.confetti i:nth-child(18) { left: 90%; background: hsl(79 80% 55%); transform: rotate(561deg) translateY(71px); }
@media (prefers-reduced-motion: no-preference) { .confetti i { animation: fall 2.4s ease-out both; } @keyframes fall { from { transform: translateY(-40px) rotate(0); opacity: 1; } } }
@media (max-width: 900px) {
  .fwrap { grid-template-columns: minmax(0, 1fr); } .fmap { display: none; }
  .fbar { display: grid; gap: 4px; font-size: 15px; } .fbar .flow-bar { margin-top: 6px; }
}
.review dd > a { flex: none; white-space: nowrap; }
.fbar .bar { margin-top: 6px; } .doc-link { display: inline-flex; align-items: center; min-height: 44px; } .field-note { margin: 6px 0 0; color: hsl(var(--danger)); font-weight: 600; }
.sofar summary .phone-only { margin-top: 0; }      /* the folded line on a phone: no gap above it */
.signed-as { margin: 0 0 12px; color: hsl(var(--muted)); font-size: 16px; } .signed-as .linkish { min-height: 44px; }      /* one line, first step only (standard 01) */

/* Text sizes, one rule (owner, platform standard 01, #546): running text 16 px; dense data (tables, code) and card labels 14 px;
   12 px only for captions and legal footers. This block comes last, so it decides. */
.chip, .tag, .eyebrow, .badges, .avatar, .who .avatar, .tabs a, .steps li span, .choices .dot, .choices .mark, .ty, .stats .stat .muted,
.erd-col, .case-steps .n, .fmap .fdot, .note, .ps .dot, .lessons .n, .level, .skills .level, .crumb, .tabs-row button, .ins, .erd-title,
.case-steps .step, .cols .ref, .review dt, .fleft, .fbar, .count, table, code, pre.example, .editor { font-size: 14px; }
.nav a, .btn, .feedback, .hint, .help, .review dd, .ob-choice span, .tcard .ex summary, .ps .lt > span, .choices code, .course p,
.lessons .t span, .lessons .sub, .case-switches, .draft-note, fieldset.quizq legend .muted, .small, p.muted, .ghost, .linkish, .who, .muted { font-size: 16px; }
.sofar summary .phone-only { margin-top: 0; }
/* At 320 px the three progress figures share one row: let their 14 px labels wrap instead of widening the page. */
@media (max-width: 900px) { .stats, .pg-side .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats .stat { min-width: 0; overflow-wrap: anywhere; hyphens: auto; } }
@media (max-width: 360px) { .stats .stat { padding: 10px 8px; } }
/* The four badges in the rewards card: at 14 px a long name ("Persévérant") outgrew its column at 320 px; columns may shrink, names wrap. */
.badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } .badges li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
/* Certificates of completion, stage 3: the card on the done screen and My achievements (course-completion-rewards plan). */
.cert { display: grid; gap: 12px; text-align: left; justify-items: start; width: 100%; } .cert h2, .cert h3 { margin: 0; } .cert code { overflow-wrap: anywhere; }
.center .cert { border-color: hsl(var(--success)); background: hsl(var(--success) / .08); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; } .cert-actions .btn { white-space: normal; text-align: center; }
.certs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.cert.revoked { background: hsl(var(--surface)); } .chip.no { background: hsl(var(--danger) / .1); color: hsl(var(--danger)); }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 16px; } .toggle input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: hsl(var(--brand-fill)); }
.cert .confirm { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid hsl(var(--danger)); border-radius: 8px; font-size: 16px; }
.btn.danger { background: hsl(var(--danger-fill)); } .btn.danger:hover { background: hsl(var(--danger-fill)); filter: brightness(.92); }
.cert .chip, .cert code { font-size: 14px; }
/* Tool practice in a programme course (docs/programme-courses.md): the learner's files and figure checks */
.howto { margin-top: 20px; } .howto h3, .howto-alt h3 { margin: 0 0 8px; }
.howto-steps { margin: 0; padding-left: 1.6em; } .howto-steps li { margin: 0 0 8px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }      /* formulas are long words */
.howto-alt { margin-top: 20px; }
.trainer { margin-top: 24px; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }      /* staff-only material: collapsed, tokens only */
.trainer summary { cursor: pointer; } .trainer-h { display: inline; margin: 0; font-size: 1.15rem; }
.trainer h3 { margin: 16px 0 8px; } .trainer p { font-size: 16px; }
.tool-practice { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } .tool-practice h2 { margin: 0; }
.tool-practice > *, .figure > * { min-width: 0; overflow-wrap: anywhere; }      /* a grid item may shrink below its longest word, so 320 px holds */
.figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid hsl(var(--border)); }
.figure-q { font-size: 16px; font-weight: 600; }
.figure-row { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.figure-input { flex: 1 1 12em; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; border: 1px solid hsl(var(--muted)); border-radius: 8px; background: hsl(var(--surface)); color: hsl(var(--ink)); }
.figure-unit { font-size: 16px; color: hsl(var(--ink)); }
.figure-fb .feedback, .figure-fb .hint { font-size: 16px; }
.dataset-label { margin: 0; font-size: 16px; }

/* The space switcher (owner 18 Nov, infrastructure #196): only when the person learns in more than one space. */
.org-pick { display: flex; align-items: center; gap: 6px; min-width: 0; }
.org-pick[hidden] { display: none; }
.org-pick select { max-width: 220px; text-overflow: ellipsis; }
/* Up to 1280 px the switcher takes its own row (seads-test 21 Nov: from 1101 to 1163 px it overflowed by up to 58 px) under the bar (seads-test 21 Nov: in the bar it pushed EN and the avatar off a 390 px
   screen; the trainer check found the same at 780 px, where the bar also holds the navigation). */
@media (max-width: 1280px) {
  .top:has(.org-pick:not([hidden])) { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 0; }
  .top:has(.org-pick:not([hidden])) .right { display: contents; }
  .top:has(.org-pick:not([hidden])) #lang { margin-left: auto; }
  .org-pick { order: 99; flex-basis: 100%; padding: 0 0 8px; }
  .org-pick select { flex: 1; min-width: 0; max-width: none; }
}

/* Bottom tabs: short words, and a long one wraps inside its own tab instead of crowding the next (seads-test 21 Nov). */
.tabs a { min-width: 0; padding: 0 2px; text-align: center; line-height: 1.15; }      /* words never break inside (seads-test 21 Nov: « Progressio/n » at 320) */
@media (max-width: 360px) { .tabs a { font-size: 14px; } }
/* Course cards (owner, 23 Nov 2026): the title, one line, where the learner stands, one button at the bottom; every card as tall as the
   tallest, two columns on a tablet and one on a phone */
.courses { grid-auto-rows: 1fr; }
.course h3 { margin: 0; }
.course .line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.course .standing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 960px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .courses { grid-template-columns: minmax(0, 1fr); } }
/* The signed-in name in the top bar opens My account */
a.who { color: hsl(var(--ink)); text-decoration: none; min-height: 44px; padding: 0 6px; border-radius: 8px; }
a.who:hover .name, a.who[aria-current] .name { text-decoration: underline; }
/* My account: who and where, the links, and Delete my saved work with its confirmation */
.account-facts { display: grid; gap: 8px; margin: 0 0 16px; } .account-facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.account-facts dt { color: hsl(var(--muted)); min-width: 160px; } .account-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.account-links { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; } .account-links a { display: inline-flex; align-items: center; min-height: 44px; }
.erase { display: grid; gap: 12px; justify-items: start; max-width: 640px; } .erase h2 { margin: 0; }
.erase .confirm { display: grid; gap: 12px; width: 100%; padding: 16px; border: 1px solid hsl(var(--danger)); border-radius: 8px; font-size: 16px; }
.erase .feedback { margin: 0; }
/* The verified result of a passed case question and its downloads (Parcours 2 evidence) */
.verified { margin: 0; overflow-wrap: anywhere; } .verified a { display: inline-flex; align-items: center; min-height: 44px; }

/* « Mes formations » (owner, 23 Nov 2026): a trainer's course page, one block per lesson with its trainer sheet open */
.teach-lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.teach-lessons > li { border-top: 1px solid var(--line, #ccc); padding-top: 1rem; min-width: 0; overflow-wrap: anywhere; }
.teach-lessons .trainer { margin-top: .75rem; }
/* Training presentations (#deck/<curriculum>/<deck>): one slide at a time, 16:9, SEADS blue and gold, readable when projected. */
.decks { margin-top: 16px; } .decks-h { margin: 0 0 8px; font-size: 1.15rem; } .deck-list { margin: 0; padding: 0; list-style: none; }
.deck-list li { margin: 0 0 12px; line-height: 1.6; }
.deck { aspect-ratio: 16 / 9; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 8px; overflow: auto; }
.deck:fullscreen { border: 0; border-radius: 0; font-size: 1.6vw; }
.slide { min-height: 100%; box-sizing: border-box; padding: 0 0 24px; font-size: clamp(15px, 1.5vw, 26px); line-height: 1.45; color: hsl(var(--ink)); }
.slide h2 { margin: 0; padding: 0.8em 1.4em 0.6em; background: hsl(var(--brand-fill)); color: #fff; border-bottom: 0.25em solid hsl(var(--accent)); font-size: 1.5em; line-height: 1.2; }
.slide-sub { margin: 0.6em 1.6em 0; color: hsl(var(--muted)); }
.slide-points { margin: 0.8em 1.6em 0 2.6em; padding: 0; } .slide-points li { margin: 0 0 0.6em; }
.slide-title, .slide-section, .slide-end { background: hsl(var(--brand-fill)); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.slide-title h2, .slide-section h2, .slide-end h2 { font-size: 2.2em; border: 0; padding-bottom: 0.2em; }
.slide-title .slide-sub, .slide-section .slide-sub, .slide-end .slide-sub { color: #fff; font-size: 1.3em; border-top: 0.15em solid hsl(var(--accent)); padding-top: 0.4em; width: fit-content; }
.slide-title .slide-points, .slide-end .slide-points { list-style: none; margin-left: 1.6em; }
.slide-lesson h2 { background: none; color: hsl(var(--ink)); border-bottom: 0.15em solid hsl(var(--accent)); font-size: 1.9em; padding-top: 2em; }
.deck-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; } .deck-count { min-width: 10em; text-align: center; }
.deck-title { font-size: 1.4rem; }
.slide[hidden], .deck-notes[hidden] { display: none; }
