@font-face{font-family:Libre Baskerville;src:url('/vendor/libre-baskerville/LibreBaskerville-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
:root{--paper:#f6f1e8;--ink:#332e29;--muted:#71675e;--line:#d9d0c3;--wine:#783e47;--green:#345d49;--serif:'Libre Baskerville',Georgia,'Songti SC',SimSun,serif;--sans:'Helvetica Neue',Helvetica,Arial,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper);font-family:var(--sans);font-size:16px;line-height:1.6}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{opacity:.46;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9b6539;outline-offset:4px}button{min-height:44px}button:not(.primary):hover{background:#ece4d7}h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.3}h1{font-size:clamp(36px,5vw,60px);letter-spacing:-.045em;margin:16px 0 24px}h2{font-size:30px;margin:0 0 18px}h3{font-size:20px;margin:0 0 8px}p{margin:0 0 20px}.header{max-width:1220px;margin:auto;padding:26px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{font-family:var(--serif);font-size:21px;letter-spacing:.07em;text-decoration:none}.brand span{font-family:var(--sans);font-size:14px;letter-spacing:0;color:var(--muted)}nav{display:flex;gap:25px;align-items:center;font-size:13px}nav a{text-decoration:none}nav button,.text-btn{border:0;background:none;padding:8px 12px}.notice:empty{display:none}.notice{padding:12px 24px;text-align:center;font-size:14px;background:#eee2ca}main{max-width:1140px;margin:0 auto;padding:54px 0 70px;min-height:75vh}.eyebrow{font:12px var(--sans);text-transform:uppercase;letter-spacing:.16em;color:var(--wine);margin-bottom:16px}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;align-items:center;padding:15px 0 60px}.hero .intro{font-size:17px;color:var(--muted);line-height:1.8;max-width:470px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--wine);border-radius:3px;min-height:48px;padding:11px 22px;font-size:14px;text-decoration:none}.primary{color:white;background:var(--wine)}.primary:hover{background:#5d2f37}.secondary{background:transparent;border-color:var(--line)}.small{font-size:13px;color:var(--muted)}.hero .small{margin-top:17px}.paper{background:#fff;border:1px solid #e7e1d8;padding:30px;box-shadow:0 9px 40px #503b2208}.paper .eyebrow{color:var(--muted)}.paper h3{font-size:25px}.paper-caption{margin:18px 0 0;font-size:14px;color:var(--muted)}.section-head{display:flex;gap:20px;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:0}.section-head h2{font-size:24px;margin:0}.lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px}.lesson-card{border-bottom:1px solid var(--line);padding:28px 0;display:flex;flex-direction:column;gap:6px}.lesson-card .number{font-size:12px;color:var(--wine);letter-spacing:.08em}.lesson-card p{font-size:14px;color:var(--muted);margin:0 0 13px}.lesson-card a{align-self:start;font-size:14px;margin-top:auto}.meta{display:flex;gap:16px;color:var(--muted);font-size:13px}.lesson-shell{max-width:760px;margin:auto}.back{font-size:14px;text-decoration:none;display:inline-block;margin-bottom:30px}.lesson-shell h1{font-size:42px}.lesson-prose{font-family:var(--serif);font-size:17px;line-height:1.95}.lesson-prose:lang(zh){font-family:var(--sans)}.rule{border-left:3px solid var(--wine);padding:10px 24px;margin:24px 0;color:#53443b;background:#eee6d970}.lesson-shell .paper{margin:28px 0}.exercise{max-width:760px;margin:auto}.exercise-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.exercise-top a{font-size:13px;text-decoration:none}.progress{height:3px;background:#e2d8cd;margin:22px 0 32px}.progress div{height:3px;background:var(--wine)}.exercise h1{font-size:26px;line-height:1.6;letter-spacing:0}.score{color:#111;background:white;overflow:auto;min-height:150px;border-radius:2px}.score svg{display:block;margin:auto;max-width:100%}.score-box{background:white;border:1px solid #e4ddd3;padding:18px 12px;margin:20px 0 26px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}.choice{border:1px solid var(--line);border-radius:3px;background:#fcfaf6;padding:14px 16px;min-height:62px;display:flex;align-items:center;gap:12px;text-align:left;line-height:1.5}.choice[aria-checked=true]{border:2px solid var(--wine);padding:13px 15px;background:#f1e5e5}.choice .symbol{flex:0 0 38px;display:grid;place-items:center}.symbol svg{width:38px;max-height:54px;overflow:visible}.choice .choice-key{font-size:12px;color:var(--muted);flex:0 0 16px}.exercise-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.feedback{border:1px solid #ccc6b7;border-left:4px solid var(--wine);padding:24px;margin-top:25px;background:#fffdf8}.feedback.correct{border-left-color:var(--green)}.feedback h2{font-family:var(--sans);font-weight:600;font-size:17px}.feedback p{font-size:16px;line-height:1.85;margin-bottom:12px}.feedback .actions{margin-top:20px}.hint{background:#eee5d6;padding:15px 20px;border-radius:3px;font-size:14px;margin:16px 0}.result-stat{font:64px var(--serif);color:var(--wine);margin:25px 0 8px}.result-list{padding:0;list-style:none;margin:24px 0}.result-list li{padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.banner{border:1px solid var(--line);padding:20px 24px;margin:20px 0 35px;display:flex;align-items:center;justify-content:space-between;gap:20px}.banner p{margin:0}.review-card{background:#fff;border:1px solid var(--line);padding:25px;margin:20px 0}.review-card h2{font:18px var(--sans)}.review-card .score{max-width:730px}.review-card pre{white-space:pre-wrap;font-size:12px}.review-toolbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap}select{min-height:44px;border:1px solid var(--line);background:white;padding:8px 12px}footer{max-width:1140px;margin:auto;border-top:1px solid var(--line);padding:25px 0 32px;display:flex;justify-content:space-between;gap:22px;font-size:12px;color:var(--muted)}footer div{display:flex;gap:18px;align-items:center}footer button{font:inherit;border:0;background:none;padding:0}dialog{border:1px solid var(--line);background:var(--paper);padding:35px;max-width:560px;width:calc(100% - 32px);max-height:90dvh;overflow:auto}dialog::backdrop{background:#26201b70}dialog .close{float:right;border:0;background:none;font-size:25px;margin:-18px -15px 0 0;width:44px}dialog .actions{margin:15px 0}dialog h2{font-size:26px}dialog p{font-size:14px}.skip{position:absolute;top:-100px;left:15px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.staff-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.staff-controls button{border:1px solid var(--line);background:white;padding:9px 16px}.answer-position{font-size:14px}.preview-label{color:var(--muted);font-size:12px}.error{color:#8f253c}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1200px){main,footer{margin-left:40px;margin-right:40px}}@media(max-width:800px){.hero{grid-template-columns:1fr;gap:30px}.hero h1{max-width:560px}.hero .intro{max-width:600px}.lesson-grid{grid-template-columns:1fr 1fr}.header{padding:20px 24px}main,footer{margin-left:24px;margin-right:24px}.hero .paper{max-width:580px}.header nav{gap:10px}.brand span{display:none}main{padding-top:30px}.lesson-shell h1{font-size:34px}}@media(max-width:520px){main,footer{margin-left:18px;margin-right:18px}.header{padding:17px 18px}.brand{font-size:18px}nav{font-size:12px;gap:8px}.hero{padding-bottom:36px}.hero h1{font-size:39px}.hero .intro{font-size:16px}.paper{padding:22px 15px}.lesson-grid{grid-template-columns:1fr}.lesson-card{padding:23px 0}.section-head{flex-wrap:wrap;gap:5px}.section-head h2{font-size:23px}.choices{gap:9px}.choice{font-size:14px;padding:11px 10px;gap:6px}.choice[aria-checked=true]{padding:10px 9px}.choice .choice-key{display:none}.exercise h1{font-size:21px}.score-box{padding:12px 0}.feedback{padding:18px}.exercise-tools{align-items:flex-start;flex-wrap:wrap}.exercise-tools .primary{flex:1}.lesson-prose{font-size:16px}footer{flex-direction:column;gap:10px}.banner{padding:18px;flex-wrap:wrap}.lesson-shell h1{font-size:31px}.review-card{padding:15px}.choice .symbol{flex-basis:30px}.symbol svg{width:30px}dialog{padding:25px}}

.prerequisites{margin:34px 0;padding-top:24px;border-top:1px solid var(--line)}.prerequisites h2{font-size:24px}.prerequisites h3{font:600 16px var(--sans);margin:20px 0 10px}.prerequisites p{font-size:15px}.definition-grid{margin:25px 0;border-top:1px solid var(--line)}.definition-row{display:grid;grid-template-columns:1fr 1fr 90px;gap:15px;border-bottom:1px solid var(--line);align-items:center;padding:12px 0;font-size:13px}.definition-row>div{display:flex;gap:12px;align-items:center}.definition-symbol{background:white;flex:0 0 44px;height:60px;display:grid;place-items:center}.definition-symbol svg{max-width:44px;height:54px}.definition-row strong{font-weight:500}.prerequisites .small{line-height:1.8}@media(max-width:520px){.definition-row{gap:6px;grid-template-columns:1fr 1fr 48px;font-size:11px}.definition-row>div{gap:4px}.definition-symbol{flex-basis:32px}.definition-symbol svg{width:30px}}

/* Practice has its own clear, predominantly sans-serif learning interface. */
h1,h2,h3,.lesson-prose,.result-stat{font-family:var(--sans)}h1{font-weight:600;letter-spacing:-.045em;line-height:1.16}h2{font-weight:550;letter-spacing:-.02em}h3{font-weight:550}.hero h1{font-size:clamp(37px,4.6vw,58px)}.lesson-shell h1{font-size:38px}.lesson-prose{font-size:17px;line-height:1.85}.step-nav{display:flex;gap:0;margin:26px 0 30px;border-bottom:1px solid var(--line)}.step-nav button{flex:1;border:0;background:none;border-bottom:3px solid transparent;padding:12px 8px;color:var(--muted);font-size:14px}.step-nav button[aria-current=step]{border-bottom-color:var(--wine);color:var(--wine);font-weight:600}.learning-panel{background:#fffdf9;border:1px solid var(--line);padding:28px 30px;margin-bottom:24px}.learning-panel h2{font-size:23px}.learning-panel p{font-size:16px;line-height:1.85}.learning-panel .paper{box-shadow:none;margin:20px 0}.learning-panel .definition-grid{margin-bottom:20px}.lesson-actions{display:flex;gap:12px;justify-content:space-between;align-items:center}.warmup{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.warmup .warmup-options{display:flex;gap:10px}.warmup-options button{min-width:70px;background:white;border:1px solid var(--line);border-radius:3px}.warmup-options button[aria-pressed=true]{border:2px solid var(--wine);background:#f0e1e3}.warmup p{font-size:14px}.warmup-feedback{padding-top:15px;min-height:60px}.lesson-kicker{font-size:14px;color:var(--muted)}@media(max-width:520px){.learning-panel{padding:20px 16px}.lesson-shell h1{font-size:30px}.lesson-actions{align-items:stretch;flex-direction:column}.definition-row{grid-template-columns:1fr 1fr 40px}.learning-panel p{font-size:15px}.step-nav button{font-size:12px}.hero h1{font-size:38px}}

.dot-tip{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.dot-tip h3{font-size:17px}.dot-row{display:flex;gap:20px;align-items:center;margin:12px 0}.dot-tip p{font-size:14px}

@media(max-width:520px){.definition-row{font-size:13px}.definition-row>div{align-items:flex-start}.definition-row strong{font-size:12px}}

/* R0.3: textbook-scale notation diagrams; never squeeze a staff into an icon slot. */
.choice{gap:14px;min-height:128px}.choice .symbol,.definition-symbol{flex:0 0 112px;width:112px;height:100px;display:grid;place-items:center;background:white}.choice .symbol svg,.definition-symbol svg{display:block;width:112px;height:100px;max-width:none;max-height:none;overflow:hidden}.definition-row{grid-template-columns:1fr 1fr 76px;gap:18px;padding:14px 0}.definition-row>div{align-items:center;gap:14px}.score svg{height:auto}.score-box{padding:15px 24px}.score{min-height:170px}.answer-score{background:white;border:1px solid var(--line);margin:20px 0;padding:8px 12px}.answer-score .score{min-height:0}.score-help{text-align:center;font-size:12px;color:var(--muted);margin:0 0 8px}.symbol{line-height:0}

.practice-lab{margin:38px 0 0;padding:28px;border:1px solid var(--line);background:#fffdf8}.practice-lab h2{font-size:24px}.practice-lab p{font-size:15px}.practice-lab select{display:block;margin:10px 0 14px;max-width:100%;width:100%}.practice-lab label{font-size:14px}

/* Grade 1: readable notation answers and quiet text-only term cards. */
.choice:not(:has(.symbol)):not(:has(.choice-score)){min-height:78px}
.choice.notation-choice{display:grid;grid-template-columns:24px 1fr;gap:4px 12px;min-height:180px;text-align:left}
.choice-score{display:block;min-width:0;grid-column:2}.choice-score svg{max-width:100%;height:auto}.notation-choice>span:last-child{grid-column:2;font-size:12px;color:var(--muted)}
.large-symbol{display:grid;place-items:center;min-height:170px}.large-symbol svg{width:168px!important;height:150px!important;max-width:none}
.term-example{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;min-height:170px}.term-example strong{font-size:34px;font-weight:500;letter-spacing:-.02em}.term-example>span{font-size:27px;font-family:Georgia,serif;font-style:italic}.term-example.term-prompt{font-size:14px;color:var(--muted)}
.score{overflow-x:auto}.theory-symbol-card .definition-symbol{flex-basis:auto}.lesson-grid .lesson-progress{font-size:12px;color:var(--muted);margin-top:12px}.course-summary{display:flex;gap:30px;padding:20px 0;margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

/* Quiet answer feedback: only a new submission receives the animation class. */
.feedback.correct{--feedback-color:#345d49;--feedback-tint:#e9f1eb;border-left-color:var(--feedback-color)}
.feedback.needs-review{--feedback-color:#795719;--feedback-tint:#f5edda;border-left-color:var(--feedback-color)}
.feedback-heading{display:flex;align-items:center;gap:12px;color:var(--feedback-color)}
.feedback-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--feedback-tint);font-size:24px;line-height:1}
.feedback-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.feedback-animate .feedback-heading{animation:feedback-arrive .28s ease-out both}
.feedback-animate.correct .feedback-icon path{stroke-dasharray:25;stroke-dashoffset:0;animation:feedback-check .36s ease-out both}
.feedback-animate.needs-review .feedback-heading{animation-duration:.2s}
@keyframes feedback-arrive{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes feedback-check{from{stroke-dashoffset:25}to{stroke-dashoffset:0}}
.mastery-card{--mastery:#345d49;--mastery-bg:#edf3ed;margin:28px 0 18px;padding:25px 28px;border:1px solid var(--line);border-left:4px solid var(--mastery);border-radius:4px;background:var(--mastery-bg)}
.mastery-green{--mastery:#345d49;--mastery-bg:#edf3ed}.mastery-yellow{--mastery:#795719;--mastery-bg:#f8f0dd}.mastery-red{--mastery:#8b4138;--mastery-bg:#f8ebe6}
.mastery-heading{display:flex;align-items:center;gap:14px;color:var(--mastery)}
.mastery-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid currentColor;border-radius:50%;font-size:25px}
.mastery-heading .eyebrow{font-size:11px;letter-spacing:.08em;color:var(--mastery);margin:0 0 5px}
.mastery-heading h2{font-size:23px;margin:0;font-weight:600}
.mastery-percentage{margin-left:auto;font-size:29px;line-height:1.2;font-weight:600;text-align:right}
.mastery-percentage span{display:block;font-size:12px;font-weight:400;margin-top:6px}
.mastery-track{height:5px;background:#ffffffb8;margin-top:22px;border-radius:4px;overflow:hidden}.mastery-track>span{display:block;height:100%;background:var(--mastery)}
.result-counts{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;align-items:end;margin-top:20px}
.result-counts .result-stat{margin:0;font-size:45px;line-height:1.2;color:var(--ink);font-weight:600}
.result-counts .result-stat span,.result-secondary-stat span{font-size:17px;font-weight:400;color:var(--muted)}
.result-secondary-stat{display:block;font-size:29px;line-height:1.2;font-weight:600}
.result-counts p{font-size:13px;margin:7px 0 0;color:var(--muted)}
.result-history{margin-bottom:16px}.mastery-rules{margin:0 0 16px;font-size:13px;color:var(--muted)}.mastery-rules summary{cursor:pointer;color:var(--ink);padding:8px 0}.mastery-rules p{margin:10px 0;line-height:1.8}.mastery-rules summary:focus-visible{outline:3px solid #9b6539;outline-offset:3px}
@media(max-width:520px){.mastery-card{padding:20px 16px}.mastery-heading{gap:10px}.mastery-heading h2{font-size:19px}.mastery-icon{width:34px;height:34px;flex-basis:34px;font-size:22px}.mastery-percentage{font-size:25px}.mastery-percentage span{font-size:10px}.result-counts{gap:12px;grid-template-columns:1fr 1fr 1fr}.result-counts .result-stat{font-size:34px}.result-secondary-stat{font-size:25px}.result-counts .result-stat span,.result-secondary-stat span{font-size:14px}.result-counts p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.feedback-animate .feedback-heading,.feedback-animate.correct .feedback-icon path{animation:none!important;transform:none!important;stroke-dashoffset:0!important}}
