@charset "UTF-8";
:root{--bg:#faf8f3;--paper:#fffdf9;--cream:#f3ead8;--ink:#43392f;--muted:#857b6e;--line:#e9e2d7;--gold:#d9ae64;--brown:#795437;--green:#697a5c;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.7}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b18440;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,.serif{font-family:Georgia,"Times New Roman","Microsoft YaHei",serif;font-weight:400}h1{font-size:44px;line-height:1.2;letter-spacing:-1.3px;margin-bottom:16px}h2{font-size:26px;line-height:1.35;margin-bottom:20px}h3{font-size:17px;font-weight:600;margin-bottom:10px}p{margin-bottom:12px}small,.muted{color:var(--muted)}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:#f3efe6;border-right:1px solid var(--line);padding:38px 23px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font:29px Georgia,serif;letter-spacing:-.7px}.brand small{display:block;font:8px "Segoe UI",sans-serif;letter-spacing:1.2px;margin-top:8px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#998d7d;margin:50px 12px 15px}nav{display:grid;gap:8px}nav a{padding:12px 16px;border-radius:11px;color:#857666;display:flex;gap:14px;align-items:center}nav a span{width:18px;font-size:21px;line-height:1}nav a.active{background:#e9d8b7;color:#62492d;font-weight:600}nav a:hover{background:#ede3d1}.side-note{margin:auto 0 25px;padding:30px 17px 5px}.side-note img{opacity:.7}.side-note p{font:22px/1.45 Georgia,serif;margin:12px 0}.side-note small{font-size:11px}.admin-link{padding:15px 11px;border-top:1px solid var(--line);font-size:12px}.admin-link span{float:right}.local-status{font-size:9px;color:#928977;padding:10px 0;white-space:nowrap}.local-status i{display:inline-block;width:5px;height:5px;background:#8a9b75;border-radius:50%;margin-right:5px}.shell{margin-left:240px}.topbar{height:84px;border-bottom:1px solid var(--line);margin:0 46px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.topbar>div{display:flex;align-items:center;gap:22px}.avatar{width:34px;height:34px;border-radius:50%;background:#ece2cd;display:grid;place-items:center;font:18px Georgia;color:var(--brown)}main{max-width:1370px;margin:auto;padding:35px 46px 70px;min-height:80vh}footer{padding:22px 46px;border-top:1px solid var(--line);font:13px Georgia;color:#9d907c;display:flex;justify-content:space-between}footer span{font:11px "Microsoft YaHei",sans-serif}.eyebrow{font-size:10px;letter-spacing:2px;color:#947243;margin-bottom:14px;text-transform:uppercase}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 28px}.page-head h1{font-size:36px;margin-bottom:10px}.page-head p{color:var(--muted);margin:0}.hero{display:grid;grid-template-columns:1.4fr .8fr;background:#f1e7d2;border:1px solid #e9ddc5;border-radius:25px;min-height:280px;padding:33px 36px;position:relative;overflow:hidden;margin-bottom:26px}.hero h1{font-size:clamp(34px,3.3vw,53px);margin:10px 0 14px}.hero p{color:#8d785c;max-width:470px;font-size:13px}.hero .eyebrow{font-size:9px}.hero img{width:100%;max-height:255px;align-self:center}.hero-text{align-self:center;z-index:1}.button,button.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--brown);border-radius:10px;padding:11px 20px;background:var(--brown);color:#fffaf0;font-weight:500;font-size:13px;line-height:1.5}.button:hover,button.primary:hover{background:#62422c}.button.light,button.light{background:var(--paper);color:var(--brown);border:1px solid var(--line)}.button.small,button.small{padding:7px 13px;font-size:12px}.text-btn{padding:6px 0;border:0;background:none;color:var(--brown);font-size:12px}.hero .button{margin-top:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:30px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px 23px}.stat-label{font-size:11px;color:var(--muted);margin-bottom:11px}.stat strong{font:31px Georgia;letter-spacing:-1px}.stat span{font-size:11px;color:var(--muted);margin-left:7px}.stat small{display:block;font-size:10px;margin-top:8px}.two-col{display:grid;grid-template-columns:1.55fr 1fr;gap:22px;margin-bottom:28px}.panel{border:1px solid var(--line);border-radius:var(--radius);padding:25px;background:var(--paper);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.panel-head h2{font:18px "Segoe UI","Microsoft YaHei",sans-serif;font-weight:600;margin:0}.panel-head small{font-size:10px}.task{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #f0ebe2}.task:last-child{border-bottom:0;padding-bottom:0}.task-icon{width:35px;height:35px;background:#f4ebdb;border-radius:10px;display:grid;place-items:center;color:var(--brown);font-size:17px;flex-shrink:0}.task p{font-size:13px;margin:0}.task small{font-size:10px}.task .push{margin-left:auto;white-space:nowrap}.bar-chart{display:flex;height:127px;gap:12px;align-items:flex-end;padding-top:10px}.bar-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.bar-col .bar{width:100%;max-width:28px;background:#e7d9bb;border-radius:5px 5px 2px 2px;min-height:3px}.bar-col.today .bar{background:#cda25a}.bar-col small{font-size:10px}.bar-col .amount{font-size:9px;color:var(--muted)}.chart-foot{font-size:11px;border-top:1px solid var(--line);padding-top:15px;margin-top:18px;color:var(--muted)}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.course-card{display:block;border:1px solid var(--line);background:var(--paper);border-radius:19px;overflow:hidden;transition:transform .2s,border-color .2s}.course-card:hover{transform:translateY(-3px);border-color:#b99a69}.course-art{padding:24px 26px;min-height:128px;background:#eae2ce;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.course-art.second{background:#e6eadf}.course-art .art-text{font:29px/1.2 Georgia;max-width:200px;letter-spacing:-.6px}.art-number{font:80px/1 Georgia;color:#d3c29b}.second .art-number{color:#bbc5ab}.course-body{padding:22px 25px}.course-body h3{margin:11px 0;font-size:17px}.course-body p{font-size:12px;color:var(--muted)}.tags{display:flex;flex-wrap:wrap;gap:7px}.tag{font-size:10px;padding:3px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.course-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;margin-top:20px;font-size:11px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:25px 0 18px}.section-title h2{font:20px "Microsoft YaHei",sans-serif;margin:0}.empty{padding:40px 20px;text-align:center;color:var(--muted);border:1px dashed #d8cbb5;border-radius:16px}.empty h3{color:var(--ink)}.empty .button{margin-top:12px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.field{display:grid;gap:7px;margin-bottom:18px}.field label{font-size:12px;font-weight:600}.field small{font-size:11px}input,select,textarea{width:100%;border:1px solid #dcd3c5;border-radius:9px;background:#fffefa;color:var(--ink);padding:11px 13px;min-height:43px}textarea{resize:vertical;min-height:120px;line-height:1.7}.toolbar input{max-width:320px}.toolbar select{width:auto}.progress-track{height:7px;background:#eee7d9;border-radius:8px;overflow:hidden}.progress-track>div{height:100%;background:#c49a51}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:20px}.calendar>div{text-align:center;min-height:37px;padding:7px;border-radius:8px;font-size:12px}.calendar .weekday{color:var(--muted);font-size:10px}.calendar .checked{background:#e7ecdF;color:#526745}.calendar .current{outline:1px solid #b69561}.calendar .other{opacity:.35}.calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}.lesson-head{padding:20px 0 28px;border-bottom:1px solid var(--line);margin-bottom:25px}.lesson-head h1{font-size:34px;margin-top:18px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:26px}.lesson-content{min-width:0}.lesson-aside{position:sticky;top:20px;align-self:start}.lesson-aside a{display:block;padding:7px 0;font-size:12px;color:var(--muted)}.lesson-aside .button{width:100%;margin-top:15px;color:white}.video-placeholder{background:#eee8db;border-radius:17px;min-height:210px;display:grid;place-content:center;text-align:center;padding:25px;margin-bottom:25px;color:#8f8169}.video-placeholder strong{font:30px Georgia;margin-bottom:10px;color:var(--brown)}video{width:100%;max-height:500px;background:#241f19;border-radius:15px;margin-bottom:25px}.summary{padding:22px 25px;background:#f2eddf;border-left:3px solid #caa15d;border-radius:0 12px 12px 0;font-size:13px;line-height:1.95;margin-bottom:30px}.expression{border-top:1px solid var(--line);padding:30px 0}.expression h2{font-size:30px;margin:5px 0}.expression .meaning{color:var(--brown);font-size:13px;margin-bottom:18px}.expression-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}.icon-btn{padding:7px 12px;border:1px solid var(--line);background:var(--paper);color:var(--brown);border-radius:8px;font-size:12px}.grammar{font-size:13px;line-height:1.95;color:#7b6b56;padding:18px 20px;background:#f0ece3;border-radius:12px;margin:18px 0}.grammar strong{display:block;color:var(--ink);margin-bottom:6px}.example{padding:12px 0;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #f0ebe4}.example-num{font:11px Georgia;color:#b4a181;padding-top:4px}.example p{margin:0;font-size:15px}.example small{font-size:12px}.example button{margin-left:auto;flex-shrink:0}.dialogue{background:var(--paper);padding:25px;border:1px solid var(--line);border-radius:16px;margin-bottom:20px}.dialogue .line{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #f1ece3}.dialogue .line:last-child{border:0}.speaker{color:#a18351;font-size:11px;padding-top:3px}.line p{margin:0}.line small{font-size:12px}.pitfall{margin:12px 0;padding:20px;border-left:3px solid #c39a74;background:#f3ece3}.wrong{color:#a35d4e}.correct{color:var(--green)}.quiz{margin:15px 0;padding:22px;border:1px solid var(--line);border-radius:14px}.quiz label{display:flex;gap:10px;align-items:center;padding:7px 0;cursor:pointer}.quiz input{width:17px;min-height:auto}.feedback{margin-top:12px;font-size:13px}.word{padding:23px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.word h3{font:26px Georgia;margin:0}.word .word-head{display:flex;justify-content:space-between;gap:8px}.word p{margin:13px 0;font-size:13px}.word select{font-size:12px;margin-top:15px}.flashcard{max-width:700px;margin:30px auto;text-align:center;padding:55px 35px;min-height:350px;background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 35px #68533407}.flashcard h2{font-size:43px;margin:30px 0 20px}.flashcard .answer{border-top:1px solid var(--line);padding-top:23px;margin-top:25px}.ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:700px;margin:auto}.ratings button{border:1px solid #d9ccb8;padding:13px 7px;border-radius:10px;background:#f1e8d7;color:var(--brown)}.note{padding:23px;border:1px solid var(--line);border-radius:14px;background:var(--paper);margin-bottom:15px}.note-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.note small{font-size:10px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.code-area{font:12px/1.7 Consolas,monospace;min-height:300px;tab-size:2}.callout{padding:15px 20px;background:#eee9db;border-radius:10px;font-size:12px;color:#806b50;margin-bottom:22px}.auth{max-width:450px;margin:50px auto;padding:35px}.admin-course{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:12px}.admin-course h3{font-size:14px;margin:0}.danger{color:#a25342}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);max-width:90vw;background:#54432f;color:#fff9ed;padding:12px 23px;border-radius:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:20px;max-width:620px;width:calc(100% - 40px);padding:30px;background:var(--bg);color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#3b302e66;backdrop-filter:blur(3px)}.modal-close{margin-top:18px}.skip{position:fixed;top:-100px;z-index:999;background:white;padding:10px}.skip:focus{top:0}.loading{padding:80px;text-align:center;color:var(--muted)}.divider{border:0;border-top:1px solid var(--line);margin:30px 0}.notice{font-size:12px;color:var(--muted);line-height:1.8}.recent{font-size:12px;padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.course-anchor{scroll-margin-top:20px}.w100{width:100%}
@media(min-width:1600px){main{padding-top:45px}.hero{min-height:320px}.hero img{max-height:285px}.stat{padding:25px}.topbar{padding:0 20px}}
@media(max-width:1150px){.sidebar{width:210px;padding:30px 17px}.brand{font-size:26px}.shell{margin-left:210px}main{padding:28px}.topbar{margin:0 28px}.hero{padding:27px;grid-template-columns:1.5fr 1fr}.hero h1{font-size:37px}.stats{gap:10px}.stat{padding:16px}.lesson-layout{grid-template-columns:minmax(0,1fr) 185px}.lesson-aside{padding:18px}.two-col{grid-template-columns:1.3fr 1fr}}
@media(max-width:900px){.sidebar{width:180px;padding:26px 12px}.brand{font-size:23px;gap:6px}.brand img{width:33px;height:33px}.brand small{font-size:6px}.shell{margin-left:180px}.nav-label{font-size:8px;margin-top:35px}nav a{padding:10px;font-size:12px}.local-status{font-size:7px}.hero{grid-template-columns:1fr .7fr;padding:24px}.hero h1{font-size:31px}.hero p{font-size:12px}.two-col,.admin-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.lesson-layout{display:block}.lesson-aside{position:static;margin:22px 0}.course-art{padding:19px}.course-art .art-text{font-size:24px}.art-number{font-size:62px}.course-body{padding:18px}.course-body h3{font-size:15px}.topbar .date{font-size:10px}}
@media(max-width:640px){body{font-size:14px}.sidebar{position:static;width:auto;padding:20px 20px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:28px}.brand img{width:38px;height:38px}.brand small{font-size:7px}.nav-label,.side-note,.local-status{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin:20px -5px 0;padding-bottom:12px;scrollbar-width:thin}.sidebar nav a{flex-shrink:0;gap:6px;font-size:11px;padding:10px 11px}.sidebar nav a span{font-size:16px;width:auto}.admin-link{position:absolute;right:21px;top:22px;border:0;font-size:11px}.admin-link span{display:none}.shell{margin:0}.topbar{height:53px;margin:0 22px;font-size:10px}.topbar>div{gap:10px}.avatar{width:26px;height:26px;font-size:14px}main{padding:24px 20px 45px}.hero{padding:25px 22px;min-height:310px;display:block;margin-bottom:19px}.hero h1{font-size:34px;max-width:250px}.hero p{max-width:210px}.hero img{position:absolute;right:-29px;bottom:0;width:180px;opacity:.82}.hero-text{position:relative}.hero .button{font-size:12px;padding:10px 14px}.hero .eyebrow{font-size:8px}.stats{gap:10px;margin-bottom:20px}.stat{padding:16px 18px}.stat strong{font-size:29px}.stat-label{font-size:10px}.stat small{font-size:9px}.panel{padding:21px}.two-col{gap:17px}.course-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-wrap:wrap}.page-head h1{font-size:31px}.page-head p{font-size:12px}.course-art{min-height:135px;padding:25px}.course-art .art-text{font-size:30px}.art-number{font-size:82px}.course-body{padding:23px}.course-body h3{font-size:18px}.page-head .button{padding:8px 14px}.toolbar input{max-width:none}.toolbar select{flex:1}.lesson-head h1{font-size:29px}.expression h2{font-size:26px}.expression-top{align-items:flex-start;flex-direction:column}.example p{font-size:14px}.example .icon-btn{padding:5px 7px}.dialogue{padding:20px}.dialogue .line{grid-template-columns:32px 1fr;gap:9px}.lesson-head .actions{margin-top:18px}.flashcard{padding:35px 22px;min-height:300px}.flashcard h2{font-size:34px}.ratings{grid-template-columns:repeat(2,1fr)}.admin-course{align-items:flex-start;flex-direction:column}.auth{margin:20px auto}.calendar>div{padding:5px;min-height:32px}footer{padding:20px;font-size:12px}footer span{font-size:9px;max-width:160px;text-align:right}.task p{font-size:12px}.task .push{font-size:11px}.section-title h2{font-size:18px}}
[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
html[data-theme="dark"]{color-scheme:dark;--bg:#191614;--paper:#26211e;--ink:#f3e9dc;--muted:#c3b5a5;--brown:#dfbd86;--line:#514439;--green:#b0cb9a}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] :is(.sidebar,.topbar,.panel,.stat,.course-card,.word,.note,.flashcard){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.hero,.side-note,.summary,.grammar,.pitfall,.callout,.video-placeholder,.course-art,.course-art.second,.task-icon,.avatar,.ratings button,.calendar .checked,nav a.active){background:#342b24;color:var(--ink)}
html[data-theme="dark"] :is(input,select,textarea,.button.light){background:#302923;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .button:not(.light){background:#a68045;color:#fffaf0}
html[data-theme="dark"] :is(.wrong,.danger){color:#f0a99a}html[data-theme="dark"] .correct{color:#b0cb9a}
html[data-theme="dark"] :is(.example,.line){border-color:var(--line)}
html[data-theme="dark"] :is(h1,h2,h3,.brand,.art-text,.video-placeholder strong){color:var(--ink)}
html[data-theme="dark"] :is(.art-number,.second .art-number){color:#ad9165}
html[data-theme="dark"] :is(.hero p,.eyebrow,.local-status,.nav-label){color:var(--muted)}
.hide-translations .translation{display:none}summary{cursor:pointer}details.dialogue>summary{font-weight:600;margin-bottom:16px}.line .icon-btn{margin:8px 0 0 12px}#engine-status{font-size:12px;color:var(--muted)}#speech-voice{width:180px;min-height:35px;padding:5px}.topbar>div{display:flex;gap:12px;align-items:center}.actions>label{font-size:12px}.actions select{display:inline-block}.translation{display:block}
@media(max-width:600px){.topbar{flex-wrap:wrap;height:auto;gap:10px;padding-block:12px}.topbar>div{flex-wrap:wrap}.dialogue{padding:16px}.expression-top{flex-wrap:wrap}#theme-toggle{font-size:11px}}

/* Only lesson prose spacing; existing theme colors, fonts and containers are inherited. */
.lesson-content .lesson-prose {overflow-wrap:anywhere}
.lesson-content .lesson-prose p {margin:.65em 0}
.lesson-content .lesson-prose h4 {font:inherit;font-weight:600;margin:1.25em 0 .5em}
.lesson-content .lesson-prose > :first-child {margin-top:.65em}
.lesson-content .lesson-knowledge + .lesson-knowledge {margin-top:1.25em}
.lesson-content .lesson-prose .translation,.lesson-content .lesson-answer {display:block;margin-top:.35em}
.lesson-content .lesson-prose-list {list-style:none;padding:0;margin:.65em 0}
.lesson-content .lesson-memory-list {padding-left:1.25em;margin:.65em 0}
.lesson-content .lesson-memory-list li + li {margin-top:.85em}
.lesson-content.hide-translations .translation,.hide-translations .lesson-content .translation {display:none}
