
:root{color-scheme:light;--bg:#f4f0e7;--sidebar:#efebe2;--surface:#f7f3eb;--surface2:#e3dfd7;--text:#211f1a;--muted:#68655e;--line:#cec8bd;--accent:#963d2c;--on-accent:#fff9f1;--soft:#eadbd2;--radius:2px;--heading:"Songti SC","STSong","Noto Serif SC",serif;--body:"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;--shadow:none}
:root[data-theme=dark]{color-scheme:dark;--bg:#191917;--sidebar:#161614;--surface:#22221e;--surface2:#2b2a24;--text:#f0e9dc;--muted:#b4ada0;--line:#3c3b33;--accent:#df9b7d;--on-accent:#241910;--soft:#423229;--radius:4px;--heading:"Songti SC","STSong","Noto Serif SC",serif;--shadow:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 var(--body);transition:background-color .2s,color .2s}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{color:var(--text)}.skip{position:fixed;left:10px;top:-80px;z-index:10;padding:10px;background:var(--surface)}.skip:focus{top:10px}.sidebar{background:var(--sidebar);border-bottom:1px solid var(--line);padding:22px;display:none}.sidebar.open{display:block}.brand{display:block;font-size:24px;letter-spacing:0;font-weight:750;line-height:1.2}.brand span{display:block;font-size:12px;font-weight:450;letter-spacing:3px;color:var(--muted);margin-top:10px}nav{display:grid;gap:6px;margin-top:26px}.nav-link,.settings-link{display:flex;align-items:center;gap:14px;min-height:48px;padding:11px 15px;color:var(--muted);border-radius:calc(var(--radius) * .7)}.nav-link:hover,.settings-link:hover{background:var(--surface2);color:var(--text)}.nav-link.active{background:var(--accent);color:var(--on-accent);font-weight:600}.nav-link.active svg{stroke-width:1.8}[data-theme=dark] .nav-link.active{background:var(--soft);color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.side-bottom{margin-top:20px}.side-note{display:none}.workspace{min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 20px;background:var(--bg);position:sticky;top:0;z-index:4}.top-left,.top-actions{display:flex;align-items:center;gap:12px}.top-left{min-width:0}#breadcrumb{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#breadcrumb a:hover{color:var(--accent)}.edition{display:none;font-size:12px;letter-spacing:1px;color:var(--muted)}.theme-toggle{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:8px 11px;min-height:44px;white-space:nowrap;font-size:13px}.theme-toggle>span:first-child{display:flex}.theme-toggle svg{width:18px;height:18px}.switch-track{height:19px;width:32px;background:var(--line);border-radius:20px;display:inline-flex;padding:3px}.switch-track span{width:13px;height:13px;border-radius:50%;background:var(--surface);transition:transform .2s}[data-theme=dark] .switch-track{background:var(--accent)}[data-theme=dark] .switch-track span{background:var(--on-accent);transform:translateX(13px)}.icon-button{display:grid;place-items:center;min-height:44px;min-width:44px;border:1px solid var(--line);background:var(--surface);border-radius:8px}main{max-width:1540px;margin:auto;padding:28px 20px 20px;min-height:calc(100vh - 143px)}.eyebrow{font-size:11px;color:var(--accent);letter-spacing:2.5px;font-weight:600;margin:0 0 12px;display:flex;align-items:center;gap:9px}.eyebrow:before{content:"";width:6px;height:6px;background:var(--accent);border-radius:50%}h1,h2,h3{font-family:var(--heading);margin:0;line-height:1.3}h1{font-size:30px;letter-spacing:-.8px;font-weight:650}h1 em{font-style:normal;color:var(--accent)}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:27px}.page-intro p:not(.eyebrow){color:var(--muted);font-size:14px;margin:12px 0 0}.catalog-count{display:none;color:var(--muted);font-size:12px;white-space:nowrap;margin-bottom:4px}.catalog-count strong{color:var(--text);font-weight:600}.course-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.course-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:border-color .2s}.course-card.available:hover{border-color:var(--accent)}.cover{position:relative;aspect-ratio:2.65/1;overflow:hidden;background:var(--surface2)}.cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}.course-card.available:hover .cover img{transform:scale(1.025)}.cover:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0003,transparent 55%);pointer-events:none}.cover .cover-label{position:absolute;left:16px;bottom:12px;z-index:1;font-size:10px;letter-spacing:2px;color:#fffbef;text-shadow:0 1px 8px #000}.course-body{padding:18px 19px 20px}.course-title-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.course-title-row h2{font-size:22px;font-weight:650}.pill{background:var(--surface2);color:var(--muted);border-radius:30px;font-size:11px;padding:4px 10px;white-space:nowrap;letter-spacing:.5px}.pill.ready{background:var(--soft);color:var(--accent)}[data-theme=dark] .pill{border-radius:3px}.course-summary{color:var(--muted);font-size:12px;margin:8px 0 20px}.course-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-top:15px}.course-progress{flex:1;min-width:0}.progress-copy{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin-bottom:8px}.progress-copy b{font-weight:500;color:var(--text)}.track{height:4px;background:var(--line);border-radius:4px;overflow:hidden}.track span{height:100%;display:block;background:var(--accent)}.primary,.secondary,.coming{min-height:44px;padding:9px 17px;display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid var(--accent);border-radius:calc(var(--radius) * .6);font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--accent);color:var(--on-accent)}.primary:hover{filter:brightness(1.08)}.primary svg,.secondary svg{width:17px;height:17px}.secondary{background:transparent;color:var(--text);border-color:var(--line)}.coming{background:var(--surface2);border-color:transparent;color:var(--muted);font-weight:400}.upcoming-copy{font-size:11px;color:var(--muted);margin:0;line-height:1.9}.upcoming-copy span{display:block}.catalog-note{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--muted);margin:25px 0 0}.catalog-note svg{width:16px;height:16px;margin-top:2px}footer{max-width:1540px;margin:auto;padding:24px 20px;display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:1px;color:var(--muted);border-top:1px solid var(--line)}footer span{display:none}.loading{color:var(--muted)}.panel{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px}.panel h2{font-size:22px}.panel p{color:var(--muted)}.lesson-list{margin-top:24px;display:grid;gap:12px}.lesson-row{display:flex;align-items:center;gap:18px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.lesson-row:hover{border-color:var(--accent)}.lesson-number{font-family:Georgia,serif;font-size:29px;color:var(--accent)}.lesson-row h2{font-size:19px}.lesson-row p{font-size:12px;color:var(--muted);margin:5px 0 0}.lesson-row .pill{margin-left:auto}.course-banner{height:160px;width:100%;object-fit:cover;border-radius:var(--radius);margin:8px 0 18px}.tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:24px}.tab{border:0;border-bottom:2px solid transparent;background:none;padding:12px 17px;color:var(--muted);min-height:44px}.tab.active{border-color:var(--accent);color:var(--accent)}.reading-layout{display:grid;gap:22px}.reader{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);max-width:850px}.reader h2{font-size:22px;margin:29px 0 15px}.reader h2:first-child{margin-top:0}.reader p{line-height:1.95;margin:12px 0;font-size:16px}.reader .enumeration{padding-left:12px;border-left:2px solid var(--line)}.reader-aside{align-self:start;color:var(--muted);font-size:13px}.reader-aside strong{color:var(--text);display:block;margin-bottom:12px}.reader-aside a{display:block;padding:7px 0}.reader-aside .primary{margin-top:22px;color:var(--on-accent)}.editor-form{max-width:850px}.field{margin:0 0 28px}.field label{display:block;font-weight:500;line-height:1.8;margin-bottom:12px;font-size:15px}.field .question-type{display:block;color:var(--accent);font-size:11px;letter-spacing:1px;margin-bottom:5px}textarea,input{width:100%;padding:13px 15px;background:var(--bg);border:1px solid var(--line);border-radius:calc(var(--radius) * .5);color:var(--text);font-size:16px;line-height:1.8}textarea{min-height:140px;resize:vertical}.field textarea.creation{min-height:220px}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.save-status{font-size:12px;color:var(--muted)}.notice{padding:13px 16px;border-left:3px solid var(--accent);background:var(--surface2);font-size:13px;line-height:1.8;margin-bottom:23px;color:var(--muted)}.empty{padding:60px 25px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.empty .empty-icon{display:inline-flex;color:var(--accent);margin-bottom:15px}.empty svg{width:38px;height:38px}.empty p{font-size:14px;color:var(--muted);margin-bottom:25px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row p{font-size:13px;margin:4px 0}.work-heading{display:flex;align-items:center;gap:15px;margin-bottom:25px}.work-heading input{font-size:22px;font-family:var(--heading)}.work-text{min-height:330px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:var(--text);color:var(--bg);padding:12px 20px;border-radius:10px;font-size:13px;z-index:9;max-width:90vw;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:680px){main{padding:32px 28px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 28px}h1{font-size:37px}.course-title-row h2{font-size:20px}.course-body{padding:17px}.course-bottom{gap:10px}.primary,.coming{padding:9px 13px}.edition{display:block}footer{padding:24px 28px}footer span{display:block}.reader{padding:35px}}
@media(min-width:1060px){.sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:216px;border-right:1px solid var(--line);border-bottom:0;padding:30px 18px}.brand{padding:0 13px}nav{margin-top:45px}.side-bottom{margin-top:auto}.side-note{display:block;border-top:1px solid var(--line);padding:24px 13px 0;margin-top:22px;color:var(--muted);font-size:12px}.side-note span{display:block;font-size:9px;letter-spacing:1.7px;margin-top:15px;line-height:1.9}.workspace{margin-left:216px}.menu-button{display:none}.topbar{padding:0 36px}main{padding:36px}.catalog-count{display:block}.page-intro{margin-bottom:30px}h1{font-size:39px}.course-title-row h2{font-size:23px}.course-body{padding:20px 22px}.course-summary{font-size:13px}.course-grid{gap:22px}.cover{aspect-ratio:2.85/1}footer{padding:22px 36px}.reading-layout{grid-template-columns:minmax(0,1fr) 180px}.reader-aside{position:sticky;top:100px}}
@media(min-width:1440px){.sidebar{width:240px}.workspace{margin-left:240px}main{padding:42px 48px}.topbar{padding:0 48px}h1{font-size:45px}.course-grid{gap:25px}.course-body{padding:22px 24px}.course-summary{margin-bottom:22px}.cover{aspect-ratio:2.7/1}.course-title-row h2{font-size:26px}.progress-copy,.upcoming-copy{font-size:12px}.primary,.coming{padding:10px 20px}footer{padding:22px 48px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Light theme: the user-selected warm paper / screenplay editorial design. */
[data-theme=light] .brand{font-family:var(--heading);font-size:24px;font-weight:600}
[data-theme=light] .brand span{font-family:var(--body)}
[data-theme=light] .nav-link.active{background:var(--soft);color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
[data-theme=light] h1 em{color:var(--text)}
[data-theme=light] h1{font-weight:700}
[data-theme=light] .page-intro .eyebrow{display:none}
[data-theme=light] .course-title-row h2{font-weight:700}
[data-theme=light] .course-summary{font-family:var(--heading);font-size:16px;margin-top:5px}
[data-theme=light] .cover{border:2px solid var(--surface);border-bottom:0}
[data-theme=light] .cover-label{display:none}
[data-theme=light] .primary,[data-theme=light] .coming{border-radius:2px}
@media(min-width:1060px){[data-theme=light] h1{font-size:44px}[data-theme=light] .page-intro p:not(.eyebrow){font-family:var(--heading);font-size:19px;margin-top:6px}[data-theme=light] .course-title-row h2{font-size:27px}}
@media(min-width:1440px){[data-theme=light] h1{font-size:54px}[data-theme=light] .course-title-row h2{font-size:30px}}

/* Inline practice and evidence-based AI review, shared by both themes. */
.reader section{scroll-margin-top:95px}.guided-practice{margin-top:20px}.practice-disclosure{display:block;font-size:12px;margin-top:8px}.guided-practice .field{margin-bottom:24px}.guided-practice textarea{min-height:115px}.practice .field label{font-family:var(--body)}.primary:disabled{opacity:.65;cursor:wait}.review-region{max-width:850px;scroll-margin-top:95px}.review-card{border:1px solid var(--line);background:var(--surface);padding:22px;margin:24px 0}.review-heading,.feedback-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.review-heading{flex-wrap:wrap}.review-heading h2{margin:5px 0 0;font-size:23px}.review-card h3{font-size:20px;margin:25px 0 15px}.review-card p{line-height:1.8;font-size:15px}.score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0}.score-grid>div{padding:15px 10px;background:var(--surface2);border-top:2px solid var(--accent)}.score-grid span{display:block;color:var(--muted);font-size:12px}.score-grid strong{display:block;font-family:Georgia,var(--heading);font-size:24px;margin-top:8px}.score-grid small{font-size:13px;font-weight:400;color:var(--muted)}.review-card .review-note{font-size:12px;color:var(--muted);line-height:1.8}.feedback-item,.dimension{border-top:1px solid var(--line);padding:20px 0}.feedback-heading strong{font-size:14px;line-height:1.8}.feedback-heading>span{white-space:nowrap;font-size:12px}.review-card blockquote{margin:15px 0;padding:10px 14px;border-left:2px solid var(--accent);background:var(--surface2);font-size:14px;line-height:1.8;overflow-wrap:anywhere}.review-card .feedback-action{color:var(--muted)}.feedback-action b{color:var(--accent);display:block;font-size:12px;margin-bottom:4px}.next-steps{padding:4px 18px 12px;background:var(--surface2)}.next-steps ol{padding-left:22px;font-size:14px;line-height:1.9}.next-steps li+li{margin-top:8px}.review-pending{display:flex;align-items:flex-start;gap:15px;padding:22px;border:1px solid var(--line);background:var(--surface2);margin:24px 0}.review-pending p{font-size:13px;color:var(--muted);margin:7px 0 0}.review-spinner{width:20px;height:20px;flex-shrink:0;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:review-spin 1s linear infinite;margin-top:3px}.review-error{margin-top:24px}.review-history summary,.answer-snapshot summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;color:var(--muted)}.answer-snapshot{margin-top:20px;border-top:1px solid var(--line)}.answer-snapshot p{white-space:normal;overflow-wrap:anywhere}.review-history .review-card{margin-top:5px}.review-card,.practice{overflow-wrap:anywhere}.review-card .pill{overflow-wrap:normal}.review-region .notice p{margin:6px 0}textarea[readonly]{opacity:.75}@keyframes review-spin{to{transform:rotate(360deg)}}@media(min-width:680px){.review-card{padding:28px}.score-grid{gap:14px}.score-grid>div{padding:18px}.score-grid strong{font-size:30px}}@media(prefers-reduced-motion:reduce){.review-spinner{animation:none}}
.score-grid strong{display:flex;align-items:baseline;gap:4px;white-space:nowrap}.score-grid small{font-size:11px;white-space:nowrap}@media(min-width:680px){.score-grid small{font-size:13px}}

/* Integrated curriculum, using the existing paper and charcoal palette. */
[hidden]{display:none!important}.learning-hero{display:grid;border:1px solid var(--line);background:var(--surface);margin:0 0 28px;overflow:hidden}.learning-hero img{width:100%;height:170px;object-fit:cover}.learning-hero>div{padding:26px}.learning-hero h2{font-size:29px}.learning-hero p{color:var(--muted);font-size:14px;margin:15px 0 22px}.phase-grid{display:grid;gap:16px;margin-bottom:44px}.phase-card{display:block;border:1px solid var(--line);background:var(--surface);padding:24px;position:relative}.phase-card:hover{border-color:var(--accent)}.phase-card h2{font-size:24px}.phase-card>p{font-size:14px;color:var(--muted)}.phase-number{position:absolute;right:20px;top:12px;font:44px Georgia,serif;color:var(--line)}.phase-card .eyebrow{font-size:10px;position:relative}.phase-output{border-top:1px solid var(--line);padding-top:16px;margin:24px 0;font-size:13px}.phase-output span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.course-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.course-tools h2{font-size:27px}.search-label{font-size:12px;color:var(--muted)}.search-label input{display:block;margin-top:5px;min-width:250px}.review-note,.source-caption{color:var(--muted);font-size:12px;line-height:1.8}.phase-section,.project-phase{scroll-margin-top:96px;margin:35px 0 48px}.section-heading{display:flex;align-items:center;gap:18px;margin:25px 0}.section-heading h2{font-size:25px}.section-heading p{font-size:13px;color:var(--muted);margin:6px 0}.phase-index{font:48px Georgia,serif;color:var(--accent)}.module-block{border:1px solid var(--line);background:var(--surface);margin:12px 0}.module-block>summary{cursor:pointer;padding:18px 22px;font-weight:600;display:flex;justify-content:space-between;gap:15px;min-height:56px}.module-block>summary:before{content:'+';color:var(--accent)}.module-block[open]>summary:before{content:'−'}.module-block>summary>span:first-child{flex:1}.module-block>summary>span:last-child{font-weight:400;color:var(--muted);font-size:12px}.module-block .lesson-row{border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 22px}.curriculum-row .lesson-number{font-size:23px;min-width:30px}.curriculum-row h2{font:500 16px var(--body)}.curriculum-row>div{flex:1}.curriculum-row .pill{font-size:10px}.phase-checkpoint{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;background:var(--soft);padding:18px 22px;margin-top:16px}.phase-checkpoint p{font-size:13px;margin:0}.book-grid,.case-grid{display:grid;gap:18px}.book-card{padding:25px;border:1px solid var(--line);background:var(--surface);border-left:7px solid var(--accent)}.book-card>span{font:11px Georgia,serif;letter-spacing:3px;color:var(--muted)}.book-card>strong{display:block;font:64px Georgia,serif;color:var(--accent);margin:18px 0}.book-card h2{font-size:28px}.book-card p{font-size:13px;color:var(--muted)}.source-caption{padding:0 22px}.case-controls{display:flex;gap:20px;flex-wrap:wrap;margin:26px 0}.case-controls label{flex:1;font-size:13px;min-width:180px}.case-controls input,.case-controls select{margin-top:7px}select{width:100%;padding:14px;color:var(--text);background:var(--surface);border:1px solid var(--line);font:16px var(--body);min-height:48px}.case-card{display:block;padding:25px;border:1px solid var(--line);background:var(--surface)}.case-card:hover{border-color:var(--accent)}.case-card h2{font-size:25px;margin-top:8px}.case-card>p{font-size:14px;color:var(--muted);line-height:1.85}.case-card .case-english{font:12px Georgia,serif;letter-spacing:.3px}.case-link{font-size:13px;color:var(--accent);display:flex;align-items:center;gap:12px;margin-top:24px}.case-reader{max-width:950px;margin:auto}.case-spoiler>summary{padding:20px 0;cursor:pointer;color:var(--accent);border-bottom:1px solid var(--line)}.case-beat{margin:25px 0;border-top:1px solid var(--line);padding-top:20px}.question-type{font-size:12px;color:var(--accent)}.source-details{border-top:1px solid var(--line);padding:15px 0;margin:24px 0;color:var(--muted)}.source-details summary{cursor:pointer;min-height:32px;font-size:13px}.reader .source-details p{font-size:12px;line-height:1.7}.related-link{display:flex;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:15px;color:var(--accent)}.related-link span{color:var(--muted);font-size:12px;margin-left:auto}.related-link svg{margin-left:auto}.lesson-case{padding:22px;background:var(--surface2);margin:26px 0}.reader .lesson-case h2{margin:8px 0 12px}.reader .lesson-case p{font-size:14px}.lesson-pagination{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:34px 0 0}.lesson-pagination a{white-space:normal;text-align:left}.project-layout{display:grid;gap:25px}.project-outline{align-self:start;display:grid;gap:3px;font-size:13px}.project-outline a{padding:9px 0;color:var(--muted)}.project-outline button{margin-top:14px}.project-field{scroll-margin-top:95px}.project-field label{display:block}.project-field textarea{min-height:220px}.project-field p{font-size:14px}.project-import summary{cursor:pointer;padding:14px 0;font-size:13px;color:var(--muted)}.course-tabs{margin-bottom:28px}.project-editor{min-width:0}
@media(min-width:760px){.phase-grid,.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.phase-card{padding:22px 20px}.phase-card h2{font-size:21px}.phase-card .eyebrow{letter-spacing:1px}.phase-number{font-size:35px;top:12px;right:13px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-hero{grid-template-columns:42% 1fr}.learning-hero img{height:100%;min-height:235px}.learning-hero>div{padding:30px}.project-layout{grid-template-columns:180px minmax(0,1fr)}.project-outline{position:sticky;top:100px}}
@media(min-width:1440px){.phase-card{padding:28px}.phase-card h2{font-size:26px}.phase-number{font-size:44px}.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.practice-criteria{border:1px solid var(--line);padding:15px 20px;margin-bottom:22px;max-width:850px}.practice-criteria summary{cursor:pointer;font-size:14px;min-height:30px}.practice-criteria dl{margin:12px 0}.practice-criteria dt{font-size:14px;color:var(--accent);margin-top:15px}.practice-criteria dd{font-size:13px;line-height:1.8;color:var(--muted);margin:4px 0}
/* Choice questions: one accessible radio option per row. */
.choice-field{min-width:0;margin:0 0 32px;padding:0;border:0}.choice-field legend{width:100%;font-weight:600;line-height:1.8;padding:0}.choice-hint{font-size:13px;color:var(--muted);margin:8px 0 14px}.choice-options{display:grid;gap:10px}.field .choice-option{display:flex;align-items:flex-start;gap:12px;margin:0;padding:14px 16px;border:1px solid var(--line);background:var(--bg);font-weight:400;cursor:pointer;line-height:1.7}.choice-option:hover{border-color:var(--accent)}.choice-option:has(input:checked){border-color:var(--accent);background:var(--soft)}.choice-option:focus-within{outline:2px solid var(--accent);outline-offset:3px}.choice-option input[type=radio]{width:18px;height:18px;min-width:18px;margin:5px 0 0;padding:0;accent-color:var(--accent)}.choice-letter{font-weight:600;color:var(--accent)}.legacy-choice{margin-top:14px;color:var(--muted);font-size:13px}.legacy-choice p{white-space:pre-wrap}

/* Course catalogue is the shared entry point for every learning direction. */
.course-card{display:flex;flex-direction:column}.course-body{flex:1;display:flex;flex-direction:column}.course-bottom{margin-top:auto}.course-resume{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;font-size:11px;color:var(--muted)}.course-resume a{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:var(--accent)}.course-resume svg{width:15px;height:15px}.edition:hover{color:var(--accent)}
@media(min-width:680px){.catalog-count{display:block}.course-grid .cover{flex-shrink:0}}

/* Film examples stay in the lesson's reading flow, with no collapsed analysis. */
.lesson-case{padding:0;background:transparent;scroll-margin-top:96px}.reader .inline-case-note{font-size:12px;color:var(--muted)}.inline-film-case{border-top:1px solid var(--line);padding-top:28px;margin-top:30px;scroll-margin-top:96px}.inline-case-heading h3{font-size:28px;margin:8px 0}.reader .inline-case-heading .case-english{font:13px Georgia,serif;color:var(--muted);margin:0 0 26px}.inline-film-case h4{font:600 17px var(--body);margin:26px 0 10px}.inline-film-case h5{font:600 15px var(--body);color:var(--accent);margin:0 0 12px}.reader .inline-film-case p{font-size:16px;line-height:1.95}.inline-case-beat{margin:22px 0;padding-left:18px;border-left:2px solid var(--line)}.reader .beat-function{color:var(--muted)}.beat-function strong{display:block;font-size:13px;color:var(--accent);margin-bottom:6px}.inline-case-question{padding:18px 22px;background:var(--surface2);margin:26px 0}.inline-case-question h4{margin-top:0}.inline-case-question p:last-child{margin-bottom:0}.inline-case-sources{border-top:1px solid var(--line);padding-top:10px;margin:26px 0}.inline-case-sources h4{font-size:13px;color:var(--muted);margin:8px 0}.reader .inline-case-sources p{font-size:12px;color:var(--muted);margin:5px 0}.inline-case-sources a{display:inline-flex;align-items:center;gap:7px;color:var(--accent);font-size:12px;padding:10px 0}.inline-case-sources svg{width:14px;height:14px}.inline-case-toc a:not(:first-child){padding-left:10px;font-size:12px}

/* An explicit transition from reading into practice, with reversible completion. */
.reading-completion{margin:36px 0 32px;padding:26px;border:1px solid var(--accent);border-left:4px solid var(--accent);background:var(--soft);scroll-margin-top:96px}.reading-completion-heading{display:flex;align-items:center;gap:16px}.reading-state-icon{flex:none;display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--accent);border-radius:50%;color:var(--accent);font:22px Georgia,serif}.is-complete .reading-state-icon{background:var(--accent);color:var(--on-accent)}.reading-state-icon svg{width:27px;height:27px;stroke-width:2}.reader .reading-completion h2{margin:5px 0 0;font-size:24px;line-height:1.4}.reader .reading-completion-status{font-size:14px;line-height:1.8;margin:16px 0 20px}.reading-completion-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}.reading-completion .primary{min-height:48px;font-size:15px;white-space:normal;text-align:left}.reading-undo{background:none;border:0;border-bottom:1px solid var(--muted);padding:8px 0;min-height:44px;color:var(--muted);font-size:13px}.reading-undo:hover{color:var(--text);border-color:var(--text)}.reading-completion-hint{font-size:12px;color:var(--muted)}.practice-destination{scroll-margin-top:96px}.practice-destination>h2:focus{outline:2px solid var(--accent);outline-offset:6px}

/* Reading state: neutral grey before completion, muted sage green afterward. */
.reading-completion{--soft:#e6e7e4;--accent:#656b65;--on-accent:#ffffff;--text:#303630;--muted:#5d655e;color:var(--text);transition:background-color .25s,border-color .25s}
.reading-completion.is-complete{--soft:#dce6db;--accent:#526b57;--text:#293a2e;--muted:#536457}
[data-theme=dark] .reading-completion{--soft:#30322f;--accent:#adb3ab;--on-accent:#20261f;--text:#e8ece5;--muted:#bcc3b9}
[data-theme=dark] .reading-completion.is-complete{--soft:#34463b;--accent:#afc5ac;--on-accent:#203025;--text:#edf2e9;--muted:#c0cebc}

/* 20261012 优化：未读完为灰底，读完后沿用鼠尾草绿 */
.reading-completion:not(.is-complete){background:var(--surface2);border-color:var(--line);border-left-color:var(--muted)}
.reading-completion:not(.is-complete) .reading-state-icon{color:var(--muted)}
.case-spoiler{margin-top:8px}
.choice-letter{white-space:nowrap;flex-shrink:0;min-width:1.6em}
