@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Noto+Serif+SC:wght@400;500&display=swap');
:root{--paper:#f7f5ef;--white:#fffefa;--ink:#203a36;--muted:#707a72;--line:#dedfd4;--green:#254e49;--sage:#e4eadf;--yellow:#efe9c7;--orange:#ab5939;--serif:Georgia,'Times New Roman',serif;--hanzi:'Noto Serif SC','Songti SC','SimSun',serif;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be8b40;outline-offset:5px}button:disabled{opacity:.4;cursor:default}button{color:inherit}.site-header{max-width:1232px;margin:auto;padding:29px 40px;display:flex;justify-content:space-between;gap:30px;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-weight:650;font-size:21px;letter-spacing:-.7px;text-decoration:none}.brand-mark{background:var(--green);color:var(--paper);width:35px;height:35px;border-radius:9px;display:grid;place-items:center;font-family:var(--hanzi);font-size:24px}.beta{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:500;margin-left:6px}nav{display:flex;gap:31px}nav a{font-size:13px;text-decoration:none;color:var(--muted);white-space:nowrap}nav a[aria-current=page]{color:var(--ink);font-weight:700}nav a span{padding:2px 6px;background:var(--sage);border-radius:5px;font-size:11px;margin-left:3px}
main{max-width:1152px;min-height:calc(100vh - 210px);margin:auto;padding:44px 40px 54px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--muted)}.today-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:37px;font-size:12px;color:var(--muted)}.status-dot:before{content:'';display:inline-block;width:6px;height:6px;background:#819177;border-radius:50%;margin-right:8px}h1,h2,h3,p{margin-top:0}h1{font-family:var(--serif);font-weight:400;font-size:clamp(42px,4.6vw,67px);letter-spacing:-2.3px;line-height:1.08;margin-bottom:25px}h1 em{font-weight:400;color:var(--orange)}.hero{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:70px;margin-bottom:46px}.hero-copy .eyebrow{display:flex;gap:9px;align-items:center;margin-bottom:22px}.little-line{height:1px;width:25px;background:var(--orange)}.intro{max-width:440px;font-size:15px;line-height:1.8;color:var(--muted);margin-bottom:26px}.button{background:var(--green);border:1px solid var(--green);border-radius:7px;color:white;padding:13px 21px;font-weight:550;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:22px;text-decoration:none}.button:hover{background:#32645c}.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.button.secondary:hover{background:var(--sage)}.button.small{padding:9px 14px;font-size:12px}.subnote{color:var(--muted);font-size:11px;margin-top:12px}.sample-scene{position:relative;padding:23px 35px 26px;display:flex;justify-content:center}.sample-card{width:260px;height:306px;background:var(--white);border:1px solid var(--line);border-radius:13px;transform:rotate(6deg);box-shadow:0 17px 30px #203a3609;position:relative;text-align:center;padding:22px}.sample-card:before{content:'';position:absolute;inset:8px -9px -9px 8px;transform:rotate(-10deg);border:1px solid #d5d7c7;background:#e8eadf;border-radius:13px;z-index:-1}.sample-card .eyebrow{font-size:9px;letter-spacing:2px}.sample-character{font-family:var(--hanzi);font-size:128px;line-height:1.6;display:block}.sample-divider{width:29px;margin:0 auto 10px;border-top:1px solid var(--line)}.sample-card .caption{font-size:10px;color:var(--muted)}.float-note{background:var(--yellow);border:1px solid #e3dbb1;padding:9px 12px;position:absolute;bottom:12px;right:0;font-size:11px;transform:rotate(-5deg);border-radius:4px}.float-note span{font-family:var(--serif);font-style:italic;font-size:15px}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:9px;margin-bottom:32px;background:#fffefa66}.stat{padding:21px 25px}.stat+.stat{border-left:1px solid var(--line)}.stat .label{font-size:11px;color:var(--muted);margin-bottom:7px}.stat strong{font-size:27px;font-weight:500;letter-spacing:-1px}.stat .detail{font-size:11px;color:var(--muted);margin-top:3px}.section-line{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.section-line h2{font-size:15px;font-weight:550;margin:0}.section-line>span{font-size:11px;color:var(--muted)}.practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.practice-card{padding:23px;border:1px solid var(--line);border-radius:9px;background:var(--white);display:flex;gap:17px;align-items:flex-start}.practice-icon{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;background:var(--sage);font-size:20px}.practice-icon.warm{background:var(--yellow)}.practice-card h3{font-size:14px;margin:0 0 6px;font-weight:600}.practice-card p{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.7}.text-button{padding:0;background:transparent;border:0;text-decoration:none;font-size:12px;color:var(--green);font-weight:600}.text-button:hover{text-decoration:underline}.site-footer{max-width:1152px;margin:auto;padding:21px 40px 25px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted)}.site-footer a{text-decoration:none}.site-footer .text-button{font-size:10px;font-weight:500;color:var(--muted)}
.page-title{font-size:44px;letter-spacing:-1.5px;margin:10px 0 14px}.page-intro{font-size:14px;color:var(--muted);max-width:640px;line-height:1.8}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:25px 0}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:6px;background:var(--white);padding:10px 13px;font-size:12px}.toolbar input{flex:1;min-width:180px}.empty{padding:46px 24px;text-align:center;border:1px dashed #c8cdbf;border-radius:10px;margin-top:24px}.empty .empty-character{font:70px var(--hanzi);color:#8b9a80;margin-bottom:14px}.empty h2{font:25px var(--serif);margin-bottom:12px}.empty p{font-size:13px;color:var(--muted);max-width:430px;margin:0 auto 20px}.char-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.char-row{display:flex;gap:17px;border:1px solid var(--line);border-radius:8px;padding:18px;background:var(--white);align-items:center}.char-row .glyph{font:46px var(--hanzi);min-width:52px;text-align:center}.char-row .reading{font-size:13px;font-weight:600}.char-row .meaning{font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px;overflow-wrap:anywhere}.char-row .rank{font-size:9px;letter-spacing:.6px;color:var(--muted);margin-top:6px;text-transform:uppercase}.pagination{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:24px;font-size:12px}.history-list{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-top:28px}.history-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;background:var(--white);padding:18px 22px;font-size:12px;align-items:center}.history-row+.history-row{border-top:1px solid var(--line)}.history-row strong{font-size:22px;font-weight:500}.history-row small{color:var(--muted)}.storage-panel{padding:23px;background:var(--sage);border-radius:8px;margin-top:28px}.storage-panel h3{font-size:14px;margin-bottom:8px}.storage-panel p{font-size:12px;color:#5a695c;margin-bottom:13px}.storage-panel .actions{display:flex;gap:18px}.spark-bars{height:160px;display:flex;align-items:flex-end;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);margin-top:24px}.spark-bar{flex:1;background:#88a396;border-radius:4px 4px 0 0;min-height:3px;position:relative;max-width:65px}.spark-bar:hover{background:var(--green)}
.quiz-wrap{max-width:575px;margin:0 auto}.quiz-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:17px}.quiz-label{font-size:11px;color:var(--muted)}.progress-track{height:3px;background:var(--line);border-radius:3px;overflow:hidden;margin-bottom:27px}.progress-fill{height:100%;background:#8b9c7e;transition:width .2s}.question{text-align:center;font:25px var(--serif);margin-bottom:6px}.question-note{text-align:center;font-size:12px;color:var(--muted);margin-bottom:21px}.flashcard{position:relative;background:var(--white);border:1px solid var(--line);border-radius:13px;min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;touch-action:pan-y;user-select:none;box-shadow:0 8px 25px #203a3604;padding:22px;outline:0}.flashcard .glyph{font:clamp(110px,18vw,160px)/1.35 var(--hanzi);color:var(--ink)}.flashcard.revealed .glyph{font-size:83px}.flashcard .card-label{position:absolute;top:20px;font-size:9px;color:var(--muted);letter-spacing:2px}.card-bottom{position:absolute;bottom:22px;color:var(--muted);font-size:10px;letter-spacing:.6px}.definition{text-align:center;margin:6px 0 12px;max-height:200px;overflow:auto;user-select:text}.definition .pinyin{font-size:18px;color:var(--orange);margin-bottom:5px}.definition p{font-size:13px;margin:0 0 10px;line-height:1.7}.definition .alternate{font-size:11px;color:var(--muted)}.answer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:18px 0}.answer{border:1px solid var(--line);border-radius:8px;background:transparent;padding:17px 14px;font-size:13px;display:flex;justify-content:center;align-items:center;gap:15px}.answer.no{color:#925338}.answer.no:hover{background:#f1e5d9}.answer.yes{background:var(--green);border-color:var(--green);color:white}.answer.yes:hover{background:#32645c}.answer .arrow{font-size:20px;font-weight:400}.quiz-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:4px}.quiz-hint{text-align:center;font-size:10px;color:var(--muted);margin:23px 0}.last-answer{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;font-size:12px;color:var(--muted);display:flex;gap:13px;align-items:center}.last-answer .glyph{font:32px var(--hanzi);color:var(--ink)}.last-answer strong{font-weight:500;color:var(--ink)}.result{text-align:center;max-width:680px;margin:20px auto}.result h1{font-size:43px;margin-top:18px}.result-number{font-family:var(--serif);font-size:91px;letter-spacing:-4px;line-height:1.2;color:var(--green);margin:28px 0 4px}.result .range{font-size:13px;color:var(--muted);margin-bottom:28px}.result .actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.method-note{font-size:11px;color:var(--muted);max-width:500px;margin:25px auto 35px;line-height:1.8}.result-list{text-align:left;margin-top:35px}.pill{background:var(--sage);font-size:10px;border-radius:20px;padding:4px 9px}.warning{max-width:1072px;margin:20px auto 0;background:#f7dfc1;border:1px solid #d6b081;border-radius:5px;padding:12px;font-size:13px}.notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:11px 20px;background:var(--ink);color:white;border-radius:7px;font-size:12px;max-width:90%;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s}.notice.visible{opacity:1}.loading{padding:90px 10px;text-align:center;font:25px var(--serif)}.prose{max-width:720px}.prose h1{font-size:47px;margin-top:20px}.prose h2{font:25px var(--serif);margin:34px 0 15px}.prose p,.prose li{font-size:14px;line-height:1.9;color:#59665d}.prose code{font-size:12px}.prose a{color:var(--green)}
@media(min-width:1400px){main{padding-top:55px}.hero{margin-bottom:52px}.sample-scene{padding-top:35px;padding-bottom:35px}}
@media(max-width:850px){.beta{display:none}.site-header{padding:23px 24px;gap:15px}.brand{font-size:19px}nav{gap:17px}nav a{font-size:12px}main{padding:32px 24px 42px}.hero{gap:25px}.sample-card{width:220px;height:282px}.sample-character{font-size:110px}.sample-scene{padding:15px 10px}.float-note{right:-4px}.site-footer{padding:20px 24px;flex-wrap:wrap}.char-list{grid-template-columns:1fr}.intro{font-size:14px}}
@media(max-width:600px){.site-header{padding:18px 20px;flex-wrap:wrap;gap:19px}.brand{font-size:20px;width:100%}nav{justify-content:space-between;width:100%}nav a{font-size:12px}main{padding:27px 20px 38px}.today-line{margin-bottom:28px;font-size:10px}.hero{display:block;margin-bottom:30px}.hero h1{font-size:49px;letter-spacing:-1.8px}.hero-copy .eyebrow{margin-bottom:18px}.intro{font-size:13px;max-width:345px}.sample-scene{display:none}.stats{margin-bottom:28px}.stat{padding:15px 11px}.stat strong{font-size:23px}.stat .label{font-size:9px}.stat .detail{font-size:9px}.practice-grid{grid-template-columns:1fr}.practice-card{padding:20px}.section-line>span{font-size:10px}.site-footer{padding:20px;font-size:9px;gap:13px}.site-footer>span:last-child{width:100%}.page-title{font-size:38px}.page-intro{font-size:13px}.toolbar{gap:8px}.toolbar input{min-width:100%;width:100%}.quiz-wrap{padding-top:0}.question{font-size:24px}.flashcard{min-height:285px}.answer{padding:16px 9px;gap:10px}.quiz-hint{margin:18px 0}.quiz-tools .text-button{font-size:11px}.quiz-top{font-size:11px}.last-answer{font-size:11px}.result-number{font-size:80px}.result h1{font-size:35px}.history-row{grid-template-columns:1fr 1fr;padding:16px;gap:10px}.history-row>small{grid-column:1/-1}.prose h1{font-size:37px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.other-readings{font-size:11px;color:var(--muted);margin-top:7px}.other-readings summary{cursor:pointer;color:var(--green)}.other-readings p{margin:8px 0 0;line-height:1.7}
.glyph-toggle{padding:0 12px;border:0;background:transparent;border-radius:10px;line-height:1;display:block;touch-action:pan-y}.glyph-toggle .glyph{display:block}.glyph-toggle:hover{background:#e4eadf55}.glyph-toggle:focus-visible{outline:2px solid #be8b40;outline-offset:6px}.tap-hint{font-size:10px;color:var(--muted)}.definition[hidden]{display:none}.flashcard .card-bottom{font-size:9px;letter-spacing:.8px}.flashcard.revealed .glyph-toggle{margin-top:18px}.flashcard .definition{margin-bottom:0}
.login-panel{max-width:410px;margin:35px auto}.login-panel form>label:not(.check-line){display:block;font-size:12px;margin:18px 0 7px}.login-panel input:not([type=checkbox]){display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--white)}.login-panel .check-line{font-size:12px;display:flex;gap:9px;align-items:center;margin:20px 0}.login-panel .actions{display:flex;flex-wrap:wrap;gap:12px}.form-error{font-size:12px;color:#925338;margin:15px 0}.login-panel .page-intro{font-size:13px}

/* Give tone marks more size and vertical space. */
.definition .pinyin{font-size:32px;font-weight:600;line-height:1.7;color:var(--orange);padding-top:3px}
.char-row .reading,.other-readings strong{font-size:20px;line-height:1.7}
.last-answer strong{font-size:18px;line-height:1.7}
.is-quizzing,.is-quizzing body{height:100%;overflow:hidden;overscroll-behavior:none}
.is-quizzing body{position:fixed;inset:0;height:var(--practice-height,100dvh);display:flex;flex-direction:column}
.is-quizzing .site-header,.is-quizzing .site-footer{display:none}
.is-quizzing main{width:100%;max-width:700px;min-height:0;flex:1;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.is-quizzing .quiz-wrap{height:100%;width:100%;display:flex;flex-direction:column;touch-action:pinch-zoom}
.is-quizzing .quiz-top{flex-shrink:0;min-height:30px;margin-bottom:10px}
.is-quizzing .quiz-top .text-button{min-height:30px}
.is-quizzing .progress-track{flex-shrink:0;margin-bottom:12px}
.is-quizzing .question{font-size:24px;letter-spacing:-.5px;flex-shrink:0;margin-bottom:6px}
.is-quizzing .question-note{flex-shrink:0;margin-bottom:12px}
.is-quizzing .flashcard{flex:1;min-height:0;padding:22px 18px 12px;overflow:hidden;touch-action:pinch-zoom}
.is-quizzing .glyph-toggle{touch-action:pinch-zoom;flex-shrink:0}
.is-quizzing .flashcard .glyph{font-size:clamp(90px,22dvh,170px);line-height:1.25}
.is-quizzing .flashcard.revealed .glyph{font-size:clamp(72px,12dvh,96px)}
.is-quizzing .flashcard.revealed .glyph-toggle{margin-top:12px}
.is-quizzing .flashcard .card-label{top:10px}
.is-quizzing .definition{max-height:none;overflow:hidden;user-select:none;flex-shrink:1;touch-action:pinch-zoom;margin:0}
.is-quizzing .definition p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:20px;line-height:1.6;margin-bottom:4px}
.is-quizzing .answer-buttons{flex-shrink:0;margin:10px 0;gap:10px}
.is-quizzing .answer{min-height:50px;padding:10px}
.is-quizzing .quiz-tools{flex-shrink:0;padding:0;min-height:42px}
.is-quizzing .back-button{min-height:40px}
.is-quizzing .quiz-hint,.is-quizzing .last-answer{display:none}
.result .actions .button:not(:first-child){background:transparent;color:var(--ink);border-color:var(--line)}
.result .actions .button:not(:first-child):hover{background:var(--sage)}
.char-row>div{flex:1;min-width:0}
.char-row .reading,.char-row .other-readings strong{font-size:24px;line-height:1.7}
.char-row .meaning,.char-row .other-readings p{font-size:18px;line-height:1.75;color:#344b43}
.char-row .rank{font-size:12px;line-height:1.6;letter-spacing:.3px;margin-top:10px}
.char-row .pill{font-size:14px}
.char-row .other-readings{font-size:18px;line-height:1.75}
.char-row .other-readings summary{font-size:16px;line-height:1.6;padding:8px 0}
@media(max-height:650px){.is-quizzing .question-note{display:none}.is-quizzing .definition p{-webkit-line-clamp:2}.is-quizzing .flashcard.revealed .glyph{font-size:72px}}
@media(max-height:500px) and (min-width:600px){
  .is-quizzing .quiz-wrap{display:grid;max-width:none;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);grid-template-rows:30px 3px 1fr auto;gap:8px 16px}
  .is-quizzing .quiz-top{grid-column:1/-1;margin:0}.is-quizzing .progress-track{grid-column:1/-1;margin:0}
  .is-quizzing .question,.is-quizzing .question-note{display:none}
  .is-quizzing .flashcard{grid-column:1;grid-row:3/5;height:100%}
  .is-quizzing .answer-buttons{grid-column:2;grid-row:3;display:flex;flex-direction:column;align-self:center;margin:0}
  .is-quizzing .quiz-tools{grid-column:2;grid-row:4}
}

@media(max-height:500px) and (min-width:600px){.is-quizzing .flashcard.revealed{flex-direction:row;gap:14px}.is-quizzing .flashcard.revealed .glyph-toggle{margin:0;padding:0;flex:0 0 auto}.is-quizzing .flashcard.revealed .glyph{font-size:64px}.is-quizzing .flashcard.revealed .definition{text-align:left;min-width:0}}

@media(max-height:500px) and (max-width:599px){.is-quizzing .flashcard.revealed .glyph{font-size:48px}}

/* A swipe-first card, with just Back and Reveal below it. */
.is-quizzing .quiz-wrap.swipe-layout{display:flex;flex-direction:column}
.is-quizzing .swipe-layout .flashcard{height:auto;grid-area:auto}
.is-quizzing .swipe-layout .flashcard:not(.revealed) .glyph{font-size:min(34dvh,62vw,260px);line-height:1.15}
.is-quizzing .swipe-layout .quiz-tools{grid-area:auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:16px;min-height:0;flex-shrink:0}
.is-quizzing .quiz-control{min-height:68px;border:1px solid var(--line);border-radius:16px;background:var(--sage);color:var(--green);display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;font-size:15px;font-weight:600}
.quiz-control svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quiz-control.reveal-control{background:var(--green);border-color:var(--green);color:white}
.quiz-control.reveal-control.is-open{background:#f1e3d7;border-color:#ddc4b1;color:#793f2a}
.is-quizzing .swipe-layout.meaning-open,.is-quizzing .swipe-layout .flashcard.revealed{touch-action:auto}
.is-quizzing .swipe-layout .flashcard.revealed{display:block;padding:24px}
.is-quizzing .swipe-layout .definition{width:100%;height:100%;max-height:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;user-select:text;text-align:left;margin:0;padding:0 5px 0 0}
.is-quizzing .swipe-layout .definition .pinyin{font-size:48px;line-height:1.4;padding:0;margin:0 0 12px;color:var(--ink);font-weight:600}
.is-quizzing .swipe-layout .definition p{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:32px;line-height:1.5;margin:0;color:var(--ink);overflow-wrap:anywhere}
.reading-block+.reading-block{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.is-quizzing .accessible-answers{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;grid-area:auto}
.is-quizzing .accessible-answers:focus-within{position:fixed;left:16px;right:16px;bottom:100px;width:auto;height:auto;max-width:575px;padding:8px;margin:0 auto;clip-path:none;overflow:visible;background:var(--paper);border:1px solid var(--line);border-radius:10px;z-index:5;white-space:normal;display:grid;grid-template-columns:1fr 1fr}
@media(max-height:500px){.is-quizzing .swipe-layout .quiz-tools{padding-top:8px}.is-quizzing .quiz-control{min-height:56px;padding:8px 12px}.is-quizzing .swipe-layout .flashcard{padding:12px}.is-quizzing .swipe-layout .flashcard.revealed{padding:16px}}

/* Reading pages deliberately scroll; the fixed-height rules remain quiz-only. */
.study-tag{display:inline-flex;gap:12px;align-items:center;min-height:44px;margin-top:10px;padding:8px 13px;border-radius:8px;background:var(--sage);color:var(--green);font-size:16px;font-weight:650;text-decoration:none}
.study-tag:hover{background:#d4dfcf}.study-page{max-width:760px;margin:0 auto}.study-page-links{display:flex;justify-content:space-between;gap:20px;align-items:center}.study-page-links a,.study-back{display:inline-flex;align-items:center;min-height:44px;font-size:16px;color:var(--green);text-decoration:none}.study-page-links a:hover,.study-back:hover{text-decoration:underline}
.study-heading{text-align:center;padding:30px 0 25px}.study-heading h1{font:120px/1.35 var(--hanzi);letter-spacing:0;margin:0 0 10px}.study-pinyin{font-size:36px;line-height:1.6;font-weight:600}.study-heading p{font-size:24px;line-height:1.6;margin:5px 0 12px}.study-heading small{font-size:13px;color:var(--muted)}
.study-usage{padding:24px;border-radius:12px;background:var(--sage);margin-bottom:34px}.study-usage h2,.study-section-title{font-size:23px;line-height:1.4;margin-bottom:12px;font-weight:600}.study-usage p{font-size:20px;line-height:1.8;margin:0;overflow-wrap:anywhere}.study-order-note{font-size:16px;line-height:1.7;color:#52645a;margin-bottom:22px}.study-words{display:grid;gap:16px}.study-word{padding:25px;border:1px solid var(--line);border-radius:12px;background:var(--white);overflow-wrap:anywhere}.study-word-top{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:6px}.study-word h3{font:36px/1.6 var(--hanzi);margin:0;letter-spacing:1px}.word-label{font-size:13px;line-height:1.5;background:var(--sage);padding:4px 8px;border-radius:5px;color:#435c4e}.study-word-pinyin{font-size:28px;line-height:1.7;color:var(--green);margin-bottom:6px}.study-word p{font-size:22px;line-height:1.65;margin:0;color:var(--ink)}.study-traditional{font-size:16px;color:#52645a;margin-top:14px}.study-traditional span{font-size:20px}
.study-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:26px}.study-tile{display:flex;gap:18px;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:22px;text-decoration:none}.study-tile:hover{border-color:#8da18d;background:#eef1e7}.study-tile-glyph{font:62px/1.5 var(--hanzi)}.study-tile>span:last-child{min-width:0}.study-tile strong{display:block;font-size:26px;line-height:1.7;font-weight:600}.study-tile span span{display:block;font-size:18px;line-height:1.6;overflow-wrap:anywhere}.study-tile small{display:block;font-size:15px;color:var(--green);font-weight:600;margin-top:10px}.study-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:24px 0;margin-top:16px;border-bottom:1px solid var(--line)}.study-pagination a{font-size:17px;min-height:44px;display:flex;align-items:center;text-decoration:none;color:var(--green)}.study-pagination span[lang]{font:27px var(--hanzi);margin:0 8px}.study-source-note{font-size:13px;line-height:1.8;color:#52645a;margin:24px 0 0}
@media(max-width:600px){.site-header nav{gap:18px;flex-wrap:wrap;justify-content:center}.study-index{grid-template-columns:1fr}.study-heading{padding-top:22px}.study-heading h1{font-size:108px}.study-usage{padding:20px}.study-word{padding:22px 20px}.study-page-links a{font-size:14px}.study-pagination{gap:7px}}

.study-test-start{margin:22px 0 26px}.study-test-start .button{font-size:16px;min-height:48px}.study-test-start p{font-size:15px;color:#52645a;line-height:1.7;margin:12px 0 0;max-width:650px}

.page-intro .library-link{display:flex;align-items:center;width:fit-content;max-width:100%;min-height:44px;margin-top:8px;font-weight:600;color:var(--green)}

/* List pages begin with compact controls and the first character. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.collection-page .study-test-start,.study-list-controls .study-test-start{margin:0}
.collection-page .toolbar{margin:16px 0}
.study-list-controls{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-bottom:18px}
.study-list-controls .library-link{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--green);text-decoration:none}
.study-list-controls .library-link:hover{text-decoration:underline}
.study-page-list .study-index{margin-top:0}

/* Reading stays scrollable, with the next-character actions always within reach. */
.is-reading main{padding-bottom:190px}
.reading-session-line{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:14px;color:#52645a;min-height:44px}
.reading-session-line .study-test-start{margin:0}
.reading-session-line .button{min-height:44px;padding:0;border:0;background:transparent;color:var(--green);font-size:14px}
.reading-controls{position:fixed;bottom:0;left:0;right:0;z-index:6;max-width:800px;margin:0 auto;padding:10px 20px max(14px,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -8px 20px #203a3608}
.reading-secondary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}
.reading-secondary button{min-height:40px;font-size:15px}
.reading-primary{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.reading-primary .button{justify-content:center;font-size:18px;min-height:56px;padding:14px}
.reading-controls button:disabled{opacity:.4;cursor:default}
.study-complete{padding:28px 0}.study-complete .actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:25px}
.is-reading .study-heading{padding-top:14px}
.is-reading .study-heading h1:focus{outline:none}
@media(max-width:600px){.reading-controls{padding-left:20px;padding-right:20px}.reading-session-line .button{font-size:13px}.reading-session-line{font-size:13px}}
