:root {
  color-scheme: light;
  --ink: #05191b;
  --accent: #82c7c7;
  --accent-dark: #226b70;
  --muted: #656c70;
  --brand-gray: #797a7d;
  --paper: #fff;
  --bg: #f5f7f8;
  --line: #dce3e5;
  --accent-pale: #edf7f7;
  --warm: #faf4e9;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
button,input,textarea,select { font: inherit; }
button,a.button { cursor: pointer; }
:focus-visible { outline: 3px solid #38898d; outline-offset: 3px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.top { max-width: 1280px; margin: auto; padding: 14px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand img { width: 154px; height: auto; display: block; }
.brand-divider { height: 28px; width: 1px; background: var(--line); }
.brand-academy { font-size: 19px; font-weight: 500; letter-spacing: -.035em; }
nav { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
nav a { font-size: 14px; font-weight: 550; color: var(--muted); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
nav a:hover,nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-account { display: flex; gap: 12px; align-items: center; border-left: 1px solid var(--line); padding-left: 22px; font-size: 13px; font-weight: 600; }
nav form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; }
.link:hover { text-decoration: underline; }
main { max-width: 1280px; margin: auto; padding: 36px; }
.signed-out { background: #fff; }
.signed-out main { max-width: none; padding: 0; }
.login-layout { display: grid; min-height: calc(100dvh - 92px); place-items: center; padding: 36px 20px 12vh; }
.login-panel { width: min(100%,440px); padding: 46px 42px; border: 1px solid var(--line); border-radius: 12px; }
.accent-rule { display: block; width: 42px; height: 4px; background: var(--accent); margin-bottom: 27px; }
.login-panel h1 { margin: 0 0 36px; font-size: clamp(32px,5vw,43px); letter-spacing: -.055em; font-weight: 520; }
.microsoft-button { width: 100%; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 13px 15px; border: 1px solid #8a9295; border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; }
.microsoft-button:hover { background: var(--bg); border-color: var(--ink); }
.page-heading,.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { margin: 8px 0 34px; }
.page-heading h1 { margin: 3px 0 0; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dark); margin: 0; }
h1,h2,h3 { letter-spacing: -.035em; font-weight: 600; line-height: 1.24; }
h1 { font-size: clamp(30px,4vw,44px); margin: 14px 0 20px; }
h2 { font-size: 23px; margin: 24px 0 16px; }
h3 { font-size: 20px; margin: 14px 0 8px; }
p { margin: 12px 0; }
.stats,.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.stats { margin-bottom: 30px; }
.stats article,.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.stats article { border-top: 3px solid var(--accent); }
.stats span { display: block; color: var(--muted); font-size: 13px; }
.stats strong { display: block; margin-top: 8px; font-weight: 520; font-size: 37px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.panel { margin-bottom: 16px; }
.cards .panel { display: flex; flex-direction: column; align-items: stretch; margin: 0; }
.cards .panel:not(.lesson-card) .button { align-self: flex-start; margin-top: auto; }
.lesson-card h3 a { text-decoration: none; color: var(--ink); }
.lesson-card h3 a:hover { color: var(--accent-dark); }
.objective { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.lesson-progress { margin-top: auto; }
.progress-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 5px; background: #e8edef; border: 0; border-radius: 3px; overflow: hidden; accent-color: var(--accent-dark); margin: 9px 0 16px; }
progress::-webkit-progress-bar { background: #e8edef; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.card-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.status-text { color: var(--muted); }
.text-action { color: var(--accent-dark); text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.text-action:hover { text-decoration: underline; }
.text-action span { margin-left: 5px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 12px; color: var(--muted); }
.meta .version { margin-left: auto; }
.ip { font-weight: 650; font-size: 11px; line-height: 1.5; border-radius: 3px; padding: 3px 6px; white-space: nowrap; }
.ip0 { background: #e7f2eb; color: #295e43; }
.ip1 { background: #edf1f3; color: #41565f; }
.ip2 { background: #f7ead5; color: #80500f; }
.disclosure { margin-left: auto; font-size: 11px; color: var(--muted); }
.muted,.source { color: var(--muted); }
.small,.source { font-size: 13px; }
.notice { padding: 12px 16px; background: var(--warm); border-left: 3px solid #b98a42; border-radius: 0 4px 4px 0; font-size: 14px; }
.primary,.button,button.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: white; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.5; }
.primary:hover,.button:hover { background: #183c3f; }
.secondary,a.secondary,button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.secondary:hover,a.secondary:hover { background: var(--accent-pale); }
.reading { max-width: 830px; margin: 0 auto; padding: 34px 46px 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.breadcrumb { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 13px; text-decoration: none; }
.breadcrumb:hover { color: var(--accent-dark); }
.lesson-meta { margin-bottom: 17px; }
.reading h1 { font-size: clamp(29px,4vw,39px); margin: 12px 0 16px; }
.lead { font-size: 18px; color: #4e6165; border-left: 3px solid var(--accent); padding-left: 17px; margin: 19px 0 30px; }
.prose { font-size: 17px; line-height: 1.83; }
.prose p { margin: 0 0 19px; }
.source { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 28px; overflow-wrap: anywhere; }
.reading .section-heading { margin-top: 22px; }
.question,.reading h1.question { font-size: clamp(24px,3vw,31px); line-height: 1.4; margin: 20px 0 28px; }
.exercise-progress { height: 3px; margin: 8px 0 25px; }
.choice { display: flex; align-items: baseline; gap: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; padding: 14px 16px; margin: 10px 0; cursor: pointer; font-weight: 450; font-size: 15px; }
.choice:hover { border-color: #9eb9bc; }
.choice:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-pale); }
.choice input { accent-color: var(--accent-dark); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
legend,label { font-weight: 600; font-size: 14px; }
textarea,input:not([type=checkbox]):not([type=radio]),select { display: block; width: 100%; border: 1px solid #b6c3c6; border-radius: 5px; padding: 10px 12px; background: var(--paper); color: var(--ink); margin: 5px 0 14px; }
textarea { resize: vertical; }
.confidence,.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.confidence .choice { margin: 3px 0; font-size: 14px; }
.actions { align-items: center; margin-top: 22px; }
.question-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.question-number { color: var(--accent-dark); font-variant-numeric: tabular-nums; padding-right: 10px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; }
.inline { display: inline-flex; gap: 7px; margin: 8px 18px 16px 0; align-items: center; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.hero { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 32px; margin-bottom: 26px; }
.narrow { max-width: 590px; margin: 5vh auto; }
.account { font-size: 12px; color: var(--muted); }
@media(max-width:980px) {
  .top { flex-wrap: wrap; gap: 8px 18px; padding: 12px 24px; }
  nav { gap: 18px; }
  .nav-account { padding-left: 14px; }
  main { padding: 26px 24px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .top { padding: 10px 16px; gap: 8px; }
  .brand img { width: 125px; }
  .brand-academy { font-size: 17px; }
  .brand { gap: 12px; }
  nav { width: 100%; gap: 17px; justify-content: flex-start; }
  nav a { padding: 7px 0; font-size: 13px; }
  .nav-account { margin-left: auto; padding-left: 11px; gap: 8px; }
  .nav-account span { display: none; }
  main { padding: 22px 15px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin: 5px 0 24px; }
  .stats { gap: 7px; }
  .stats article { padding: 12px 10px; }
  .stats span { font-size: 11px; line-height: 1.4; }
  .stats strong { font-size: 27px; }
  .cards,.form-grid { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 19px; }
  .reading { padding: 23px 18px 32px; }
  .prose { font-size: 16px; }
  .disclosure { margin-left: 0; }
  .confidence { display: block; }
  .question-row { align-items: flex-start; }
  .login-layout { min-height: calc(100dvh - 70px); }
  .login-panel { padding: 35px 24px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }
