:root{--ink:#23383b;--teal:#075b64;--rust:#a64726;--paper:#fffcf7;--pale:#edf4f1;--line:#b9cdca;--muted:#516467;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--teal);padding:.7rem 1rem;cursor:pointer;font-weight:650;text-decoration:none;display:inline-block}button:hover,.button:hover{background:var(--pale)}button.primary,button[aria-pressed=true],.tabs button[aria-selected=true]{background:var(--teal);color:white;border-color:var(--teal)}button:disabled{opacity:.55;cursor:default}a{color:var(--teal);text-underline-offset:3px}input,select,textarea{border:1px solid #8ba7a5;border-radius:8px;background:white;color:var(--ink);padding:.7rem;min-height:44px;max-width:100%;width:100%}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--teal)}label{display:grid;gap:.35rem;font-size:.9rem;font-weight:600}label.check{display:flex;align-items:center;gap:.5rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid var(--rust);outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;top:-80px;background:white;padding:1rem;z-index:9}.skip:focus{top:0}header{max-width:1380px;margin:auto;padding:1.4rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:1rem}.brand img{width:140px;height:auto}.brand strong{display:block;font-size:1.4rem}.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;font-weight:750;color:var(--rust)}.shell{max-width:1380px;margin:auto;padding:1.5rem 2rem;display:grid;grid-template-columns:245px minmax(0,1fr);gap:2rem}.focus .shell{grid-template-columns:1fr}.focus aside{display:none}aside summary{font-weight:750;padding:.65rem 0;cursor:pointer}.topic{width:100%;text-align:left;margin:.25rem 0;font-size:.92rem;display:flex;justify-content:space-between;gap:.3rem;border-color:transparent;background:transparent}.topic small{white-space:nowrap;color:inherit;opacity:.8}.aside-note{font-size:.85rem;line-height:1.6;color:var(--muted);padding:1rem .7rem}.tabs{display:flex;gap:.5rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:1rem}.tabs button{flex:1;white-space:nowrap;font-size:.87rem}.toolbar{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;font-size:.85rem;margin:1rem 0}.toolbar .check{font-size:.82rem}.hero{display:grid;grid-template-columns:1fr 160px;align-items:center;gap:1rem;margin:1.5rem 0}.hero img{width:100%;border-radius:50%;aspect-ratio:1;object-fit:cover}.hero h1{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15;margin:.4rem 0}.hero p{color:var(--muted);line-height:1.6;margin:.5rem 0}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:1.4rem;margin:1rem 0;min-width:0}.tint{background:var(--pale)}h2{font-size:1.35rem;margin:.3rem 0 1rem}h3{font-size:1rem;margin:1rem 0 .5rem}p{line-height:1.65}.row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.row.spread{justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;align-items:end}.phrase{margin:1.1rem 0}.zh{font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.65;overflow-wrap:anywhere}.py{color:var(--teal);font-size:1.08rem;line-height:1.7}.clue{color:var(--muted);font-size:.9rem;line-height:1.6}.en{margin-top:.4rem;line-height:1.6}.hide-pinyin .py,.hide-clues .clue,.hide-chinese .zh,.hide-english .en{display:none}.muted,small{color:var(--muted)}.small{font-size:.84rem}.badge{border:1px solid var(--line);border-radius:20px;padding:.3rem .65rem;font-size:.75rem;display:inline-block}.feedback{border-left:4px solid var(--teal);padding:1rem;background:var(--pale);margin:1rem 0;line-height:1.7}.error{border-color:var(--rust);background:#fff1e8}.tokens button{font-size:1.3rem;min-width:48px}.chunks{display:flex;gap:.6rem;flex-wrap:wrap;margin:.7rem 0}.chunks span{border-radius:6px;border:1px solid var(--line);padding:.5rem;background:var(--pale)}.steps{display:flex;gap:.4rem;flex-wrap:wrap}.steps button{font-size:.85rem}.choices{display:grid;gap:.6rem}.choices button{text-align:left;white-space:normal}.choices button.correct{border:2px solid var(--teal)}.playing{outline:3px solid #bb7b31;outline-offset:5px}.term{border-top:1px solid var(--line);padding:.8rem 0}.term:first-child{border-top:0}details>summary{cursor:pointer;font-weight:650;padding:.8rem 0}pre,.prose{white-space:pre-wrap;font-family:inherit;line-height:1.7;overflow-wrap:anywhere}.progress-line{height:8px;border-radius:6px;background:#dce6e2;overflow:hidden;margin:.7rem 0}.progress-line i{display:block;height:100%;background:var(--teal)}footer{max-width:1380px;margin:auto;padding:1.5rem 2rem;border-top:1px solid var(--line);font-size:.8rem;line-height:1.8;color:var(--muted)}#startup{max-width:650px;margin:12vh auto;padding:2rem}#audio-status{min-height:1.6rem}.book-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.book-list button{text-align:left}.personal-list{padding-left:1.3rem}.compact{max-width:460px}.word-bank{margin:.8rem 0}.word-bank button{margin:.25rem}.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){header{padding:1rem;align-items:flex-start}.brand img{width:95px}.brand strong{font-size:1.1rem}.shell{grid-template-columns:1fr;padding:1rem;gap:.5rem}aside{border-bottom:1px solid var(--line)}.aside-note{display:none}.hero img{width:110px}.hero{grid-template-columns:1fr 110px}.tabs{gap:.35rem}.tabs button{flex:1 1 42%;white-space:normal}.card{padding:1rem}.grid,.book-list{grid-template-columns:1fr}footer{padding:1rem}}@media(max-width:420px){.hero{grid-template-columns:1fr}.hero img{display:none}.brand img{width:70px}header>.badge{display:none}.toolbar{gap:.65rem}.fields{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
