:root {
  --canvas:#f8f5ef; --sidebar:#f4efe6; --paper:#fffdf8; --ink:#23372e;
  --muted:#556259; --line:#e6ded2; --jade:#254d3c; --jade-soft:#e9f0e9;
  --rust:#a54836; --peach:#f2cbb9; --peach-soft:#faeee5; --shadow:0 16px 55px #2e25100a;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--canvas); font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9c472d;outline-offset:3px}
p{line-height:1.65;margin:0 0 12px}
h1,h2,h3{margin:0;line-height:1.19}
h1,h2,.brand strong,.editorial{font-family:Georgia,"Times New Roman",serif}
h1{font-size:clamp(37px,5vw,63px);letter-spacing:-.046em;font-weight:700}
h2{font-size:clamp(24px,3vw,33px);letter-spacing:-.035em}
h3{font-size:16px}
small{font-size:12px}
[lang="zh-Hans"]{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
svg{width:20px;height:20px;flex:none;vertical-align:middle}
.skip{position:fixed;top:6px;left:6px;transform:translateY(-150%);background:var(--jade);color:white;padding:10px;z-index:10}
.skip:focus{transform:none}
.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100svh}
.sidebar{background:var(--sidebar);border-right:1px solid var(--line);padding:38px 20px 28px;position:sticky;top:0;height:100svh;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;padding:0 5px;margin-bottom:49px}
.seal{display:grid;place-items:center;width:45px;height:49px;border-radius:10px;background:var(--rust);color:#fff4e6;font-size:25px;transform:rotate(-4deg);border:3px double #f6dacb;flex:none}
.brand strong{font-size:23px;letter-spacing:-.025em;line-height:1.05;display:block}
.brand small{display:block;font-weight:750;letter-spacing:.075em;color:var(--muted);font-size:8px;margin-top:7px;white-space:nowrap}
nav{display:grid;gap:7px}
nav a{border-radius:10px;text-decoration:none;display:flex;align-items:center;gap:11px;padding:12px;font-size:14px;font-weight:650;color:var(--muted);min-height:45px}
nav a:hover{background:#eee7da}
nav a[aria-current="page"]{background:var(--jade);color:white}
nav svg{width:19px;height:19px}
.sidebar-note{margin-top:auto;border-top:1px solid var(--line);padding:23px 8px 0;color:var(--muted);font-size:12px}
.sidebar-note span{color:var(--rust);font-size:17px;letter-spacing:.12em}
.sidebar-note p{margin:5px 0 0}
main{min-width:0;width:min(100%,1330px);margin:auto;padding:0 clamp(23px,4.2vw,66px)}
.topbar{min-height:76px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);margin-bottom:29px;color:var(--muted)}
.top-name,.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em}
.top-dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:var(--rust);margin-right:6px}
.top-status{display:flex;align-items:center;gap:15px;font-size:13px}
#top-streak{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;background:var(--peach-soft);border-radius:30px;padding:7px 11px;color:#843e2c;font-weight:750}
#top-streak svg{width:15px;height:15px}
.hero{min-height:304px;position:relative;overflow:hidden;border-radius:24px;background:var(--peach);display:flex;align-items:center;box-shadow:var(--shadow)}
.hero-copy{z-index:1;padding:33px clamp(24px,4vw,50px);max-width:70%}
.hero .eyebrow{display:inline-block;background:#fff5e999;color:#703b29;border-radius:50px;padding:7px 10px;letter-spacing:.095em;margin-bottom:15px}
.hero h1{max-width:700px}
.hero p{margin:13px 0 19px;color:#4e4f42;max-width:440px}
.hero-art{position:absolute;right:0;bottom:0;width:49%;height:100%;pointer-events:none}
.hero-art svg{width:100%;height:100%;vertical-align:bottom}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:10px 14px;min-height:42px;font-weight:700;text-decoration:none;background:var(--jade);color:white;font-size:14px;text-align:center}
.btn:hover{background:#1b3c2e}
.btn.secondary{background:var(--paper);color:var(--jade);border-color:var(--line)}
.btn.secondary:hover{background:var(--jade-soft)}
.btn.ghost{background:transparent;color:var(--jade);border-color:#74675642}
.btn.ghost:hover{background:#ffffff50}
.btn:disabled{opacity:.55;cursor:default}
.btn svg{width:17px;height:17px}
.icon-btn{display:inline-grid;place-items:center;border:1px solid var(--line);background:var(--paper);color:var(--jade);width:41px;height:41px;border-radius:10px;flex:none}
.icon-btn:hover,.icon-btn[aria-pressed="true"]{background:var(--jade-soft)}
.icon-btn svg{width:19px;height:19px}
.dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);gap:21px;margin-top:26px}
.stack{display:grid;align-content:start;gap:17px}
.card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:22px;box-shadow:var(--shadow)}
.card p:last-child,.card details:last-child{margin-bottom:0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.section-head .muted{white-space:nowrap}
.muted{color:var(--muted)}
.eyebrow{color:var(--rust);display:block;margin-bottom:7px}
.row-list{display:grid;gap:8px}
.lesson-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:11px 12px;min-height:57px}
.lesson-row:hover{background:#f5f3eb;border-color:#c9c5b6}
.lesson-row .grow{flex:1;min-width:0}
.lesson-row strong{display:block;font-size:14px}
.lesson-row small{display:block;color:var(--muted);margin-top:2px}
.tile-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--jade-soft);color:var(--jade);flex:none}
.tile-icon svg{width:17px;height:17px}
.tile-icon.peach{background:var(--peach-soft);color:var(--rust)}
.progress-track{height:7px;background:#eae5da;border-radius:12px;overflow:hidden;margin:8px 0}
.progress-track span{display:block;height:100%;background:#507c61;border-radius:inherit;transition:width .2s}
.phrase{background:var(--jade);color:#fffbeb;border-color:var(--jade)}
.phrase .eyebrow,.phrase .muted{color:#d4e3d1}
.phrase .han{font-size:36px;line-height:1.35;display:block;margin:10px 0 0}
.phrase .pinyin{color:#f6ccaf}
.phrase .icon-btn{background:#ffffff17;color:white;border-color:#ffffff50}
.phrase .icon-btn:hover{background:#ffffff35}
.page-head{margin:2px 0 23px}
.page-head h1{font-size:clamp(34px,4.5vw,52px)}
.page-head p{color:var(--muted);margin-top:8px}
.page-head .actions{margin-top:12px}
.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.full{grid-column:1/-1}
.word-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr));gap:11px}
.word-card{border:1px solid var(--line);border-radius:13px;padding:13px;background:var(--paper);min-width:0}
.word-card .word-top{display:flex;align-items:start;justify-content:space-between;gap:5px}
.word-top .actions{gap:4px;flex-wrap:nowrap}
.word-top .icon-btn{width:33px;height:33px}
.word-top .icon-btn svg{width:16px;height:16px}
.han{font-size:25px;overflow-wrap:anywhere}
.pinyin{color:var(--rust);line-height:1.5}
.tag{display:inline-block;font-size:11px;color:var(--jade);background:var(--jade-soft);border-radius:20px;padding:3px 8px;font-weight:750;white-space:nowrap}
.lesson-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.stage-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.stage-tabs .btn{background:var(--paper);color:var(--jade);border-color:var(--line);min-height:38px;padding:7px 12px}
.stage-tabs .btn[aria-current="step"]{background:var(--jade);color:white;border-color:var(--jade)}
.lesson-content{display:grid;gap:15px}
.lesson-content .card{box-shadow:none}
details{border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:var(--paper);margin-bottom:8px}
summary{cursor:pointer;font-weight:750}
details[open] summary{margin-bottom:10px}
.examples{display:grid;gap:7px;padding-left:18px;margin:10px 0}
.examples li{padding-left:3px}
.examples b{font-weight:650}
.prompt-line{background:var(--jade-soft);border-radius:12px;padding:13px}
.prompt-line .han{display:block}
.note{border-left:3px solid #c16c53;padding:8px 12px;background:var(--peach-soft);border-radius:0 8px 8px 0}
.form-field{display:grid;gap:5px;min-width:0;font-weight:650;font-size:14px}
.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:15px}
input:not([type="checkbox"]),select,textarea{border:1px solid #cfc6b8;border-radius:9px;padding:10px 12px;min-height:43px;width:100%;background:#fffefa;color:var(--ink)}
textarea{resize:vertical;min-height:180px;font-weight:400}
.choice-list{display:grid;gap:7px;margin:10px 0}
.choice{width:100%;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:9px 12px;color:var(--ink)}
.choice:hover{border-color:#67816f}
.choice[data-selected="true"]{background:var(--jade-soft);border-color:#507c61;font-weight:750}
fieldset{border:1px solid var(--line);border-radius:12px;padding:12px;margin:0;min-width:0}
legend{font-weight:750;padding:0 4px}
.feedback{margin-top:8px;color:var(--jade);font-weight:700}
.feedback.wrong{color:#9b402e}
.inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.nav-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0}
.day-chip{display:grid;place-items:center;background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:9px;min-height:36px;font-size:13px;text-decoration:none;font-weight:750}
.day-chip:hover,.day-chip.done{background:var(--jade-soft)}
.day-chip.done{color:var(--jade);border-color:#a6baaa}
.review-card{text-align:center;min-height:210px;display:grid;place-content:center;justify-items:center;gap:12px}
.review-card .han{font-size:39px}
.review-card .actions{justify-content:center}
.empty{border:1px dashed #cfc6b8;border-radius:14px;padding:17px;color:var(--muted)}
footer{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;padding:22px 0 15px;margin-top:25px;border-top:1px solid var(--line)}
#toast{position:fixed;bottom:15px;right:15px;z-index:5;background:var(--jade);color:white;border-radius:12px;padding:10px 13px;max-width:min(410px,calc(100vw - 30px));box-shadow:0 3px 20px #0003}
#toast:empty{display:none}
[hidden]{display:none!important}
@media(max-width:1000px){.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-inline:12px}.topbar{min-height:65px}.hero-copy{max-width:75%}.dashboard{gap:12px}.card{padding:17px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:13px 14px;gap:12px}.brand{margin:0;gap:9px;padding:0}.brand strong{font-size:20px}.brand strong br{display:none}.brand small{margin-top:3px}.seal{width:35px;height:38px;font-size:20px}.sidebar-note{display:none}nav{display:flex;gap:5px;overflow-x:auto;padding:2px 0 4px}nav a{padding:7px 9px;min-height:36px;white-space:nowrap;font-size:12px;gap:5px}nav svg{width:15px;height:15px}main{padding:0 15px}.topbar{min-height:48px;margin-bottom:16px}.top-status{font-size:11px;gap:5px}.top-name{font-size:9px}.hero{min-height:258px;border-radius:18px}.hero-copy{padding:24px 17px;max-width:83%}.hero-art{width:57%;opacity:.59}.dashboard{margin-top:17px}.card{border-radius:15px}}
@media(max-width:540px){.dashboard,.grid-two{grid-template-columns:1fr}.top-status #top-date{display:none}.hero-copy{max-width:100%}.hero-art{opacity:.3}.hero p{font-size:14px}.filters{grid-template-columns:1fr 1fr}.filters .form-field:first-child{grid-column:1/-1}.inline-form{grid-template-columns:1fr}.inline-form .btn{justify-self:start}footer{display:grid}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.lesson-row{text-decoration:none}
.stage-tabs .btn[aria-current="page"]{background:var(--jade);color:white;border-color:var(--jade)}
.scene-image{aspect-ratio:1;flex:none;background:#ead6ba url("./cat-situations.png") no-repeat;background-size:400% 300%;border-radius:12px}
.week-preview{display:flex;gap:14px;align-items:center;min-height:77px}
.week-preview .scene-image{width:clamp(65px,9vw,102px)}
.scene-card{display:grid;grid-template-columns:minmax(120px,210px) minmax(0,1fr);align-items:center;gap:18px;margin:0;background:var(--peach-soft);border-radius:14px;overflow:hidden}
.scene-card .scene-image{width:100%;border-radius:0}
.scene-card figcaption{padding:13px 14px 13px 0}
.scene-card strong{font:700 clamp(20px,3vw,27px) Georgia,serif}
.scene-card p{margin:5px 0 0}
.milestone-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px;background:var(--jade-soft)}
.milestone-banner p{margin:6px 0 0}
.pick-field{max-width:480px}
.lesson-picker{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.lesson-picker label{flex:1 1 240px}
.translation-form,.record-card{display:grid;gap:9px;border:1px solid var(--line);border-radius:12px;padding:13px}
.translation-form .tag{margin-left:3px}
.translation-result:empty{display:none}
.record-card p{margin:0}
.record-card audio{max-width:100%}
.self-check{display:grid;gap:7px;margin:3px 0 5px}
.self-check label{display:flex;gap:7px;align-items:baseline}
.examples{list-style:none;padding:0}
.examples li{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:7px 0}
.examples li:last-child{border:0}
@media(max-width:540px){
  .scene-card{grid-template-columns:minmax(84px,32%) minmax(0,1fr);gap:9px}
  .scene-card figcaption{padding:10px 8px 10px 0;font-size:13px}
  .scene-card .eyebrow{font-size:9px}
  .milestone-banner{align-items:start;flex-direction:column}
}

.hsk-order{display:grid;gap:10px}
.hsk-response{min-height:46px;font-size:19px;overflow-wrap:anywhere}
.hsk-tokens .btn{font-size:17px}
.hsk-feedback:empty{display:none}
