:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#172520;background:#fff;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{border-bottom:1px solid #e6ebe7;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px max(5vw,calc((100vw - 1040px)/2))}a{color:inherit;text-decoration:none}.brand{font-weight:850;white-space:nowrap}.brand span{font-weight:650}nav{display:flex;gap:20px}nav a:hover{text-decoration:underline}main,footer{width:min(1040px,90%);margin:38px auto}h1{font-size:clamp(2.2rem,6vw,4.5rem);letter-spacing:-.065em;line-height:1.02;margin:.2em 0}h2{margin-top:0}small,.muted,footer{color:#54645d}footer{border-top:1px solid #e6ebe7;padding-top:18px}.hero,.panel,.tile{border-radius:24px;padding:clamp(18px,4vw,32px)}.hero{background:#d7f755;margin:28px 0}.hero strong{font-size:clamp(2.2rem,6vw,4.2rem);display:block;line-height:1.15}progress{width:100%;accent-color:#243c27}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:14px}.tile{display:block;font-weight:750;min-height:115px}.tile:hover{outline:2px solid #243c27}.tile small{display:block;font-weight:550}.tile:nth-child(1){background:#dceeff}.tile:nth-child(2){background:#ffe4c9}.tile:nth-child(3){background:#eae2ff}.tile:nth-child(4){background:#ffe0ea}.tile:nth-child(5){background:#dcf4e8}.tile:nth-child(6){background:#fff2bf}.panel{border:1px solid #e0e7e0;margin:16px 0;overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}button,input,textarea,select{font:inherit}button{border:0;border-radius:12px;padding:10px 15px;background:#eaf1eb;color:inherit;cursor:pointer}button.primary{background:#223e2e;color:white}button:disabled{opacity:.5;cursor:default}label{display:block;margin:8px 0}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid #c6d1c9;border-radius:10px;padding:9px;background:white;color:inherit}textarea{min-height:105px}.narrow{max-width:520px}.row{padding:9px 0;border-bottom:1px solid #e6ebe7}.row summary{cursor:pointer}.table{max-height:320px;overflow:auto}.focus{font-size:clamp(1.5rem,5vw,3rem);font-weight:800}.tag{color:#475951}#status{background:#fff1ce;border-radius:10px;padding:10px 14px}[hidden]{display:none!important}:focus-visible{outline:3px solid #48794a;outline-offset:3px}
.study{padding:clamp(10px,3vw,26px)}.study-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.study-title{font-size:1.2rem;letter-spacing:0;margin:0}.study-count{font-size:.875rem;color:#4e6256;background:#eaf2eb;padding:3px 10px;border-radius:20px;white-space:nowrap}.study-filters{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,2fr) minmax(86px,.7fr);gap:7px;margin-bottom:12px}.study-filters select{min-width:0;font-size:.875rem;padding:8px 5px}.study-card{border-radius:20px;padding:clamp(15px,4vw,29px);background:#f4f7ff;border:1px solid #e0e8ff}.study-word{color:#16336c;font-size:clamp(1.55rem,5vw,2.8rem);line-height:1.2;font-weight:820;overflow-wrap:anywhere}.study-ipa{display:inline-block;color:#592e86;background:#efe4ff;border-radius:10px;padding:4px 10px;font-size:1.05rem;overflow-wrap:anywhere}.study-meaning{color:#165839;background:#e4f4e9;border-radius:12px;padding:8px 11px;margin-top:7px;font-size:clamp(1.05rem,3vw,1.4rem);font-weight:680}.study-pos{display:inline-block;color:#61572e;margin-left:8px;font-size:.875rem}.study-example{color:#414557}.study-sound .actions{gap:7px;margin:10px 0}.study-sound button,.study-answer button{color:#244b7e;background:#dceaff;font-size:.9rem;padding:7px 11px}.study-grading{padding:10px 4px 0;margin-top:10px;border-top:1px solid #dfe7df}.study-grading p{margin:0;font-size:.9rem}.study-grading .actions{margin:5px 0 0}.study-grading button{flex:1;white-space:nowrap}.study-grading .grade-0{background:#ffe4e7;color:#7b283b}.study-grading .grade-2{background:#fff0cf;color:#673c16}@media(max-width:460px){.study-filters{grid-template-columns:1fr 1fr}.study-filters select:nth-child(2){grid-row:2;grid-column:1/-1}}
.home-heading h1{font-size:clamp(1.8rem,5vw,3.4rem);letter-spacing:-.055em}.home-heading p{margin-bottom:4px}.home-goal{padding:clamp(14px,4vw,28px);margin:16px 0}.home-goal strong{font-size:clamp(2.4rem,8vw,4rem)}.home-goal .actions{display:inline-flex;margin:8px 12px 0 0}.home-goal a{display:inline-block;font-size:.9rem;text-decoration:underline}.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-grid .tile{min-height:82px;padding:14px;border-radius:17px}.home-grid .tile small{margin-top:3px;font-size:.84rem;overflow-wrap:anywhere}.home-grid .tile-blue{background:#dceeff}.home-grid .tile-pink{background:#ffe0ea}.home-grid .tile-lilac{background:#eae2ff}.home-grid .tile-apricot{background:#ffe4c9}.home-grid .tile-mint{background:#dcf4e8}.home-grid .tile-yellow{background:#fff2bf}.library-group{border-bottom:1px solid #e0e7e0;padding:12px 0}.library-group summary,.study-more summary{cursor:pointer;font-weight:700}.library-group button{display:block;width:100%;text-align:left;margin:7px 0 0}.focused-study .study-bar{justify-content:flex-end;flex-wrap:wrap}.focused-study .study-count{margin-inline-end:auto}.focused-study .study-bar button{font-size:.85rem;padding:6px 10px}.focused-study .study-filters{grid-template-columns:1fr 1.7fr;align-items:center}.focused-study .study-card{padding:clamp(16px,4vw,30px)}.focused-study .study-ipa{margin-top:8px}.focused-study .study-grading{position:sticky;bottom:0;background:#fff;padding:8px 4px max(8px,env(safe-area-inset-bottom));z-index:1}.study-more{margin-top:12px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #dce5ef}.study-more p{margin:7px 0}.study-more mark{background:#e1ecff;color:#16336c;border-radius:4px;padding:0 2px}.root-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}.root-map div{background:#e7f2ff;border:1px solid #c9dcf2;border-radius:9px;padding:7px;overflow-wrap:anywhere}.root-map small{display:block}.vessel-figure{margin:10px 0;color:#3e4d63;font-size:.875rem}.vessels{display:flex;align-items:center;height:44px}.vessels span{flex:1;background:#ce4f64;border-radius:999px;height:22px}.vessels span:nth-child(2){height:12px;background:#d47889}.vessels span:nth-child(3){height:19px;background:repeating-linear-gradient(0deg,#aa4672 0 2px,transparent 2px 6px)}
.focused-study .chapter-picker{display:block}.chapter-heading{margin:0 0 14px}.chapter-heading h1{font-size:clamp(1.45rem,4.8vw,2.2rem);letter-spacing:-.03em}.chapter-heading p{margin:6px 0}.system-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(118px,46%),1fr));gap:8px;margin-bottom:14px}.system-choice,.chapter-choice{width:100%;text-align:left;border:1px solid #dde8e1;background:#f4f8f5;overflow-wrap:anywhere}.system-choice[aria-pressed=true],.chapter-choice[aria-pressed=true]{border-color:#527a5a;background:#e4f3e6;box-shadow:inset 0 0 0 1px #527a5a}.system-choice small,.chapter-choice small{display:block;margin-top:3px}.chapter-list{display:grid;gap:7px}.chapter-start{display:grid;grid-template-columns:minmax(90px,1fr) minmax(140px,2fr);align-items:end;gap:10px;margin-top:13px}.chapter-start label{margin:0;font-size:.85rem}.chapter-start select{margin-top:3px}.chapter-start button{min-height:44px}.guide-ipa{color:#613d86;font-size:.9rem;margin:2px 0}.root-map a,.vessel-figure a{text-decoration:underline;color:#265981;font-size:.83rem}.vessel-figure img{display:block;width:100%;height:auto;max-width:840px;margin:0 auto 8px;background:#fff;border:1px solid #e2e9e5;border-radius:12px}
.goal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.home-goal .goal-library{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:5px;min-height:38px;padding:6px 10px;border:1px solid #5c7529;border-radius:12px;background:#ecffa5;color:#273a16;font-weight:760;text-decoration:none}.goal-library span{font-size:.78rem;font-weight:600}.home-goal .goal-library:hover{background:#f4ffcb}
.chapter-guide{display:inline-flex;margin:9px 0 2px;padding:5px 8px;color:#265981;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}
:root{color:#373c29;background:#faf5e9}body{background:#faf5e9;color:#373c29;padding-bottom:72px}main{width:min(760px,94%);margin:16px auto 32px}
.desk-header{position:relative;isolation:isolate;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:10px max(3vw,calc((100vw - 760px)/2));background:#fffaf0;border-bottom:1px solid #e4dac4;min-height:62px}
.desk-header .wordmark,.head-actions{position:relative;z-index:1}.desk-header .wordmark{display:inline-flex;align-items:center;gap:7px;min-width:0;color:#34462d;font:600 clamp(.9rem,4vw,1.27rem)/1.14 Georgia,"Times New Roman",serif;white-space:normal;letter-spacing:-.02em}
.desk-leaves{position:absolute;inset:0;overflow:hidden;pointer-events:none}.desk-leaves i{position:absolute;display:block;width:30%;height:145%;top:-25%;background:url('/cats.jpg') left top / 450px auto no-repeat;opacity:.25;mask-image:radial-gradient(ellipse at 28% 34%,#000 16%,#0009 40%,transparent 73%)}
.desk-leaves i:nth-child(1){left:-5%;transform:rotate(-13deg)}.desk-leaves i:nth-child(2){left:16%;top:2%;opacity:.15;transform:scaleX(-1) rotate(17deg)}.desk-leaves i:nth-child(3){left:41%;top:-37%;transform:rotate(-12deg)}.desk-leaves i:nth-child(4){left:64%;top:18%;transform:rotate(164deg)}.desk-leaves i:nth-child(5){left:82%;top:-20%;transform:scaleX(-1) rotate(-5deg)}
.clover{position:relative;display:grid;flex:0 0 17px;width:17px;height:17px;grid-template:repeat(2,1fr)/repeat(2,1fr);gap:1px;transform:rotate(-10deg)}
.clover i{display:block;background:#6f884d;border-radius:58% 55% 28% 55%}.clover i:nth-child(2){transform:rotate(90deg);background:#86a25d}.clover i:nth-child(3){transform:rotate(-90deg);background:#8ea366}.clover i:nth-child(4){transform:rotate(180deg);background:#68834b}.clover::after{content:"";position:absolute;width:2px;height:7px;background:#617b47;border-radius:2px;left:8px;top:12px;transform:rotate(24deg)}
.head-actions{display:flex;align-items:center;gap:5px;flex:none}.head-actions button{font-size:.8rem;padding:7px 8px;background:#fffdf6;border:1px solid #e4dac4;min-height:40px}.buddy-button{display:flex;align-items:center;gap:5px;white-space:nowrap}
.cat-avatar{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#f4e6cc url('/cats.jpg') no-repeat;background-size:216px 144px}.cat-avatar[data-face="0"]{background-position:-50px -48px}.cat-avatar[data-face="1"]{background-position:-105px -32px}.cat-avatar[data-face="2"]{background-position:-160px -35px}
.home-date{color:#575f4b;font-size:.86rem;font-variant-numeric:tabular-nums}.home-goal{background:#e7ebd1;color:#373c29;margin:9px 0 12px}.home-goal button{min-height:42px}.home-goal progress{accent-color:#42563a}.home-goal .goal-library{background:#fffdf6;color:#34462d;border-color:#cbd4b5}.goal-note{font-size:.86rem;margin:9px 0 0;color:#4a583e}
.home-grid{gap:8px}.home-grid .tile{min-width:0;min-height:72px;border:1px solid #e4dac4;background:#fffdf6;padding:9px 12px;border-radius:15px}.home-grid .tile small{font-size:.8rem}.home-grid .tile-main{grid-column:1/-1;background:#42563a;color:#fff;border-color:#42563a}.home-grid .tile-main small{color:#f5f5ed}.home-grid .tile-pink{background:#f3e5db}.home-grid .tile-lilac{background:#f0ebe5}.home-grid .tile-apricot{background:#f5e8d0}.home-grid .tile-mint{background:#ebeee2}
.home-portrait{margin:0;min-height:72px;border-radius:15px;display:grid;place-items:center;background:#f7ead4;overflow:hidden}.portrait-frame{position:relative;width:min(100%,164px);aspect-ratio:2.4;overflow:hidden}.portrait-frame img{position:absolute;top:-25%;left:0;width:100%;height:auto}
.desk-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px max(3vw,calc((100vw - 760px)/2)) max(8px,env(safe-area-inset-bottom));background:#fffdf6;border-top:1px solid #e4dac4;z-index:4}
.desk-nav a{display:grid;place-items:center;min-height:43px;padding:4px;border-radius:10px;font-size:.91rem}.desk-nav a[aria-current=page]{background:#e7ebd1;font-weight:700}
.panel,.focused-study .study-grading{background:#fffdf6;border-color:#e4dac4}.focused-study .study-grading{bottom:62px}.panel .primary,.home-goal .primary,dialog .primary{background:#42563a;color:white}
.system-choice:nth-child(5n+1){background:#e8eddc}.system-choice:nth-child(5n+2){background:#e4eef4}.system-choice:nth-child(5n+3){background:#f3e4dd}.system-choice:nth-child(5n+4){background:#f3ead5}.system-choice:nth-child(5n+5){background:#eee7f2}.system-choice[aria-pressed=true],.chapter-choice[aria-pressed=true]{border-color:#526647;box-shadow:inset 0 0 0 1px #526647}
.chapter-start{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-start>.primary{grid-column:1/-1}
.custom-goal{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.custom-goal>label{flex:1;min-width:min(140px,100%);margin:0}.custom-goal input{min-height:42px}
#buddy-dialog{width:min(94vw,450px);max-height:85vh;padding:14px;border:1px solid #d5c9b0;border-radius:19px;background:#fffdf6;color:#373c29}
#buddy-dialog::backdrop{background:#34352d8a}.buddy-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.buddy-heading h2{font-size:1.12rem;margin:0}.buddy-heading button{min-height:42px}
.cat-art{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:12px;margin:8px auto}.focus-frame{position:relative;margin:8px auto;overflow:hidden;border-radius:12px;max-width:420px;aspect-ratio:var(--pose-ratio)}
.focus-frame .cat-art{position:absolute;inset:0;margin:0;border-radius:0;max-height:none;transform:translateY(var(--pose-shift))}
.focus-frame[data-pose="0"]{--pose-ratio:2.56;--pose-shift:0%}.focus-frame[data-pose="1"]{--pose-ratio:2.24;--pose-shift:-31.5%}.focus-frame[data-pose="2"]{--pose-ratio:2.48;--pose-shift:-67.55%}
.desk-clock{text-align:center;font-size:clamp(1.9rem,8vw,3rem);font-weight:720;font-variant-numeric:tabular-nums}.desk-bell{display:flex;align-items:center;gap:7px}.desk-bell input{margin:0}#buddy-dialog button[aria-pressed=true]{outline:1px solid #42563a;background:#e7ebd1}
@media(max-width:360px){.desk-header .head-actions button{padding:5px}.cat-avatar{display:none}.home-grid .tile{padding:8px}}
