:root{color:#1d2428;background:#f6f7f2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f6f7f2}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 12px;background:#fffffff0;border-bottom:1px solid #dfe4dc}nav{display:flex;gap:12px;align-items:center;overflow-x:auto;white-space:nowrap;width:100%;justify-content:center}nav a,.linkButton{color:#50605a;border:0;background:transparent;padding:8px 2px}.page{width:min(980px,100%);margin:0 auto;padding:22px 16px 48px}.centerPage{min-height:100vh;display:grid;place-items:center;padding:20px}.loginCard,.panel,.heroPanel,.practiceShell{background:#fff;border:1px solid #dfe4dc;border-radius:14px;box-shadow:0 12px 40px #2e3e3514}.loginCard{width:min(420px,100%);padding:26px;display:grid;gap:16px}.panel{padding:18px;margin-top:16px}.heroPanel{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px}h1{margin:0 0 8px;font-size:clamp(30px,8vw,56px);line-height:1.02}h2{margin:0 0 12px}.muted,.hint{color:#66756f}.eyebrow,.label{color:#3a7a5b;font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase}label{display:grid;gap:7px;font-weight:700}input,textarea,select{width:100%;border:1px solid #ccd5cd;border-radius:10px;padding:14px;background:#fbfcfb}textarea{resize:vertical}.bigButton,.primaryLink,.secondaryButton,.secondaryLink{min-height:56px;border:0;border-radius:12px;padding:16px 22px;font-weight:900;font-size:18px;cursor:pointer}.bigButton,.primaryLink{background:#246b4b;color:#fff;display:inline-flex;align-items:center;justify-content:center}.secondaryButton,.secondaryLink{background:#e7eee8;color:#274033;display:inline-flex;align-items:center;justify-content:center}.error{color:#a21d1d;background:#fff0f0;border:1px solid #f1c5c5;padding:12px;border-radius:10px}.success{color:#17623c;background:#eefaf3;border:1px solid #bfe8ce;padding:12px;border-radius:10px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.dashboardPage{height:calc(100dvh - 48px);overflow:hidden;display:grid;grid-template-rows:auto auto auto;gap:12px;padding-bottom:16px}.dashboardHero{padding:18px}.dashboardHero h1{font-size:clamp(30px,7vw,48px)}.dashboardStats{grid-template-columns:repeat(4,1fr);margin-top:0}.statBox{background:#fff;border:1px solid #dfe4dc;border-radius:12px;padding:16px}.statBox span{color:#66756f}.statBox strong{display:block;font-size:34px}.progressPanel{display:grid;gap:12px}.progressPanel h2{margin:0 0 6px}.progressPanel p{margin:0;font-size:28px;font-weight:900;color:#246b4b}progress{width:100%;height:18px;border:0;border-radius:999px;overflow:hidden;background:#e7eee8}progress::-webkit-progress-bar{background:#e7eee8;border-radius:999px}progress::-webkit-progress-value{background:#246b4b;border-radius:999px}progress::-moz-progress-bar{background:#246b4b;border-radius:999px}.flow{font-size:24px;font-weight:800}.sentenceList{display:grid;gap:8px}.compactHero h1{font-size:clamp(28px,7vw,44px)}.sortBox{min-width:min(260px,100%)}.topicHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.topicHeader h2{margin:0}.topicHeader span{color:#66756f;font-weight:800}.sentenceRow,.resultRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:12px;border:1px solid #e3e8e1;border-radius:10px}.resultRow{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto}.practicePage{width:min(760px,100%);height:calc(100dvh - 50px);padding:8px;overflow:hidden}.practiceShell{position:relative;padding:10px;height:100%;overflow:hidden}.stopButton{background:#ffe1df;color:#982b24}.stopButton:disabled{opacity:.45;cursor:not-allowed}.practiceShell>.error{position:absolute;z-index:3;top:10px;left:10px;right:10px;margin:0}.currentSentence{position:absolute;inset:30% 10px 15%;display:grid;grid-template-rows:48% 12% 0 40%;gap:0;text-align:center;padding:0;overflow:hidden}.currentSentence .label{display:none}.practiceText{margin:0;height:100%;display:grid;align-items:end;justify-items:center;font-size:clamp(22px,6.8vw,42px);line-height:1.1;overflow:hidden}.rubyLine{display:block;max-width:100%;white-space:normal;text-align:center;word-break:normal;overflow-wrap:anywhere;line-break:loose;writing-mode:horizontal-tb}.rubyLine span{display:inline}.practiceText ruby,.recognized ruby{ruby-position:over;display:ruby}.practiceText rt,.recognized rt{display:ruby-text;font-size:.34em;line-height:1;color:#3a7a5b;font-weight:800}.translation{margin:0;height:100%;display:flex;align-items:start;justify-content:center;color:#66756f;font-size:clamp(15px,4vw,20px);line-height:1.16;font-weight:800;overflow:hidden}.reading{margin:0;font-size:clamp(18px,5.6vw,28px);line-height:1.15;color:#66756f;overflow-wrap:anywhere}.recognized{min-height:100%;height:auto;overflow:visible;border-radius:14px;background:#f1f5ef;display:grid;place-items:center;padding:12px;font-size:clamp(20px,5.8vw,30px);line-height:1.16;font-weight:800;align-self:stretch}.recognized rt{font-size:.38em}.recognitionError{background:#ffdede;color:#9b1c1c;border-radius:6px;padding:0 2px}.scorePanel{position:absolute;left:10px;right:10px;bottom:10px;height:10%;min-height:54px;display:grid;grid-template-columns:1fr}.scorePanel div{border-radius:12px;background:#f1f5ef;padding:8px 10px;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;align-items:center;gap:8px;text-align:left}.scorePanel span{color:#66756f;font-size:13px;font-weight:800}.scorePanel strong{font-size:clamp(22px,6.2vw,32px);line-height:1;white-space:nowrap}.scorePanel em{color:#3a7a5b;font-style:normal;font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottomControl{min-height:38px;border:0;border-radius:10px;padding:8px 12px;background:#e7eee8;color:#274033;font-weight:900;white-space:nowrap}.primaryControl{background:#246b4b;color:#fff}.stopControl{background:#ffe1df;color:#982b24}.bottomControl:disabled{opacity:.45}.resultActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:min(320px,100%)}.autoNext{margin:12px 0 0;padding:12px;border-radius:12px;background:#eefaf3;color:#17623c;font-weight:900;text-align:center}.scoreBadge{border-radius:999px;padding:6px 10px;font-weight:900;display:inline-flex;font-size:14px}.sgood{background:#def5e8;color:#17623c}.smid{background:#fff2cc;color:#775400}.slow{background:#ffe1df;color:#982b24}.settings{display:grid;gap:18px}.loading{min-height:100vh;display:grid;place-items:center;font-size:22px;font-weight:900}@media(max-width:680px){.topbar{align-items:center}nav{justify-content:flex-start;font-size:14px}.heroPanel{align-items:stretch;flex-direction:column}.grid3{grid-template-columns:1fr}.dashboardPage{height:calc(100dvh - 42px);gap:10px;padding:12px}.dashboardHero{padding:16px}.dashboardHero h1{font-size:clamp(28px,8vw,40px)}.dashboardStats{grid-template-columns:repeat(2,1fr);gap:8px}.dashboardStats .statBox{padding:12px}.dashboardStats .statBox strong{font-size:28px}.sentenceRow,.resultRow{grid-template-columns:1fr}.bigButton,.primaryLink,.secondaryButton{width:100%;min-height:58px;font-size:19px}}@media(max-height:720px){.topbar{padding:4px 10px}nav a,.linkButton{padding:6px 0}.practicePage{height:calc(100dvh - 38px);padding:6px}.practiceShell{gap:6px;padding:8px}.practiceText{font-size:clamp(24px,7.4vw,44px)}.reading{font-size:clamp(16px,4.8vw,23px)}.recognized{min-height:100%;max-height:none}.error{padding:8px;margin:0;font-size:13px}.scorePanel div{gap:6px;padding:7px 8px}.bottomControl{padding:7px 9px}}
