:root {
  color-scheme: light;
  --ink: #172c35;
  --muted: #485d64;
  --paper: #f4f6f1;
  --white: #fff;
  --line: #cbd8d4;
  --teal: #145c50;
  --mint: #def0e8;
  --yellow: #f3db8c;
  --red: #883917;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #94700c; outline-offset: 3px; }
a { color: var(--teal); text-underline-offset: .22em; }
.top { background: #152e38; color: white; }
.top-inner { max-width: 1140px; margin: auto; min-height: 74px; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.identity { display: flex; align-items: center; gap: 13px; }
.identity strong { font-size: 1.17rem; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 39px; height: 39px; background: var(--yellow); color: var(--ink); font-weight: 800; border-radius: 7px; }
.course { color: #d5e4e2; font-size: .9rem; padding-left: 13px; border-left: 1px solid #758889; }
.pdf { color: #fff; white-space: nowrap; font-size: .92rem; }
.pdf span { margin-left: .25em; color: #f3db8c; font-size: .8em; font-weight: 750; }
.shell { display: grid; grid-template-columns: minmax(220px, 275px) minmax(0, 1fr); grid-template-areas: "route lesson"; gap: 30px; max-width: 1140px; margin: auto; padding: 32px 30px 60px; align-items: start; }
main { grid-area: lesson; min-width: 0; }
.route { grid-area: route; border: 1px solid var(--line); border-radius: 15px; background: var(--white); overflow: hidden; }
.route-head { padding: 20px 18px 16px; border-bottom: 1px solid var(--line); background: #ecf4ef; }
.route h2 { font-size: 1.12rem; margin: 0; }
.route p { margin: .35rem 0 .55rem; color: var(--muted); font-size: .875rem; }
progress { display: block; width: 100%; height: .45rem; border: 0; border-radius: 99px; accent-color: var(--teal); background: #c8ded8; overflow: hidden; }
progress::-webkit-progress-bar { background: #c8ded8; }
progress::-webkit-progress-value { background: var(--teal); }
progress::-moz-progress-bar { background: var(--teal); }
nav { padding: 9px; display: grid; gap: 3px; }
.step { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 8px; color: var(--ink); padding: 8px; background: transparent; font-size: .9rem; line-height: 1.35; }
.step:not(:disabled):hover { background: #f1f6f3; }
.step[aria-current="step"] { background: var(--mint); border-color: #a9cbbd; font-weight: 750; }
.step:disabled { color: #536568; cursor: default; }
.step-number { display: grid; place-items: center; min-height: 25px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; font-weight: 800; }
.step.done .step-number { background: var(--teal); color: #fff; border-color: var(--teal); }
.hero { background: #dcefe7; border: 1px solid #bfd8cd; border-radius: 17px; padding: 23px clamp(17px,4vw,32px); }
.kicker { text-transform: uppercase; font-size: .83rem; letter-spacing: .09em; color: var(--teal); font-weight: 800; margin: 0 0 .45em; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.03; letter-spacing: -.047em; margin-bottom: .27em; text-wrap: balance; }
.hero p:last-child { margin: 0; max-width: 56ch; color: #36564f; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; margin-top: 17px; padding: 19px clamp(17px,4vw,29px) 22px; }
.panel h2 { font-size: 1.27rem; margin-bottom: .65em; }
.panel p:last-child { margin-bottom: 0; }
summary { font-size: 1.13rem; font-weight: 750; }
details .detail { margin-top: 14px; }
.example { margin-top: 14px; border-left: 4px solid #b89b3e; background: #fbf5e2; padding: 11px 14px; border-radius: 0 8px 8px 0; }
.example p:last-child { margin-bottom: 0; }
.example ol { margin: .45em 0 0; padding-left: 1.35em; }
.example li + li { margin-top: .3em; }
.formula, code { font-family: inherit; font-weight: 750; letter-spacing: .01em; }
.formula-block { display: block; margin-top: .45em; font-size: 1.14rem; }
.two-models { margin: .9em 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.model { display: grid; justify-items: center; text-align: center; margin: 0; gap: 4px; }
.model figcaption { font-size: .88rem; color: var(--muted); }
.diagram { width: 140px; height: 128px; position: relative; display: grid; place-items: center; flex: none; }
.circle, .dot, .core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.circle { border: 1px solid #6a9489; border-radius: 50%; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #165d50; }
.core { font-size: .82rem; font-weight: 750; }
.bond .circle { width: 66px; height: 66px; }
.bond .shared { background: #9b6108; }
.versus { color: var(--muted); }
.check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.check-head p { font-size: .9rem; color: var(--muted); margin: 0; }
.prompt { font-weight: 700; font-size: 1.08rem; margin: 0 0 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: baseline; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: pointer; }
.choice:has(:checked) { background: var(--mint); border-color: #709f91; }
.choice:has(:disabled) { cursor: default; }
.choice input { margin: 0; accent-color: var(--teal); }
.answer-input, textarea { color: var(--ink); background: white; width: 100%; border: 1px solid #819a93; border-radius: 8px; padding: 10px 11px; }
.answer-input { max-width: 38ch; }
textarea { min-height: 102px; resize: vertical; }
.input-guide { color: var(--muted); font-size: .9rem; margin: 7px 0; }
.keys { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.key { border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; background: white; color: var(--ink); min-width: 36px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 17px; }
.primary, .secondary { border-radius: 9px; border: 1px solid var(--teal); padding: 9px 14px; min-height: 44px; font-weight: 700; }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #0d483e; }
.secondary { background: white; color: var(--teal); }
.secondary:hover, .key:hover { background: #edf6f2; }
[hidden] { display: none !important; }
.feedback { border-radius: 8px; padding: 10px 12px; margin: 14px 0 0; background: var(--mint); }
.feedback.retry { background: #fff0db; color: var(--red); }
.review { margin-top: 13px; }
.review label { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }
.review input { accent-color: var(--teal); }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0,1fr); grid-template-areas: "lesson" "route"; gap: 18px; padding: 17px 14px 32px; }
  .top-inner { padding: 9px 14px; min-height: 63px; }
  .identity { gap: 7px; }
  .course { display: none; }
}
