:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#23302d;background:#f5f1e9;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}.app-shell{min-height:100dvh;max-width:740px;margin:auto;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.setup{display:grid;align-content:center;gap:24px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.page-header>div{min-width:0}.page-header h1,.auth-card h1,.account-card h1{margin:6px 0 20px;line-height:1.15}.page-header p:last-child{margin:0}.account-control{display:inline-flex;flex:none;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid #bdd0c6;border-radius:999px;background:#fffdf9;color:#164b3e;font-weight:700;cursor:pointer;box-shadow:0 2px 5px #3d2e170d}.account-control:hover{background:#edf5f1}.account-control svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.account-control span{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eyebrow,.review-label{text-transform:uppercase;letter-spacing:.08em;color:#536c61;font-size:.78rem;font-weight:750;margin:0}.eyebrow{letter-spacing:.12em}.card{background:#fffdf9;border:1px solid #e3ddd1;border-radius:22px;padding:24px;box-shadow:0 12px 30px #3d2e1710}.setup-form,.direction-picker,.preference-group,.lesson-card,.feedback{display:grid;gap:16px}.direction-picker{gap:14px;padding:18px;border:1px solid #dbe5df;border-radius:16px;background:#f4f8f5}label{display:grid;gap:7px;font-weight:650}select,input,textarea{width:100%;border:1px solid #aab6af;border-radius:12px;padding:13px;background:#fff;color:#18221f}.direction-divider{display:flex;align-items:center;gap:10px}.direction-divider>span{height:1px;flex:1;background:#c9d7cf}.swap{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:999px;padding:7px 11px;background:#e1ece6;color:#12604e;font-weight:700;cursor:pointer}.swap span,.text-button{text-decoration:underline}.preference-group{gap:12px;margin:0;padding:0;border:0}.preference-group legend{padding:0 0 4px;font-size:.92rem;font-weight:750}.preference-toggle{display:flex;align-items:flex-start;gap:10px;font-weight:600;cursor:pointer}.preference-toggle input{width:20px;height:20px;flex:none;padding:0;margin-top:1px}.preference-copy{display:grid;gap:2px}.preference-copy small,.muted,.audio-state,.cloze-helper{color:#61736b;font-size:.84rem;font-weight:450;line-height:1.35}.primary,.secondary,.text-button,.icon-button,.audio-icon{border:0;border-radius:12px;min-height:44px;padding:10px 16px;cursor:pointer}.primary{background:#12604e;color:#fff;font-weight:700}.secondary,.audio-icon{background:#e4ede9;color:#164b3e;font-weight:700}.text-button{background:transparent;color:#12604e}.lesson{display:grid;align-content:center}.lesson-header,.lesson-tools,.prompt-row,.feedback-actions,.answer-heading{display:flex;align-items:center}.lesson-header{justify-content:space-between;gap:16px;margin-bottom:16px}.lesson-tools{gap:8px}.session-toggle{display:inline-flex;gap:8px;cursor:pointer;font-size:.9rem;font-weight:650;white-space:nowrap}.session-toggle input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:24px;padding:0;border:0;border-radius:999px;background:#c8d4ce;position:relative}.session-toggle input:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #23302d55}.session-toggle input:checked{background:#12604e}.session-toggle input:checked:after{transform:translate(16px)}.toggle-track{display:none}.instruction{margin:0;color:#61736b;font-weight:700}.prompt-row{align-items:flex-start;gap:12px}.prompt{flex:1;font-size:clamp(1.5rem,7vw,2.25rem);line-height:1.25;margin:0}.audio-icon{display:grid;place-items:center;width:44px;flex:none;padding:10px}.audio-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.answer-form{display:grid;gap:14px;margin-top:2px}.answer-form .primary{justify-self:end}.cloze-exercise{display:grid;gap:8px}.cloze{margin:0;font-size:clamp(1.2rem,5vw,1.45rem);line-height:1.75}.blank-wrap{display:inline}.blank-wrap input{width:auto;min-width:0;padding:0 0 .05em;border:0;border-bottom:2px solid #12604e;border-radius:0;background:transparent;color:#164b3e;font:inherit;font-weight:650;line-height:inherit;vertical-align:baseline;box-shadow:none}.blank-wrap input:focus{border-bottom-color:#d78e31}.cloze-helper{margin:0}.feedback{gap:12px}.feedback-result{margin:4px 0 0;font-size:1.25rem}.feedback-actions{gap:12px;flex-wrap:wrap}.review-block{margin:0;padding:14px 16px;border:1px solid #e2e7e2;border-radius:14px}.question-review{background:#f6f8f5}.learner-review.correct{background:#eff8f3;border-color:#c8e0d1}.learner-review.correct_with_minor_errors,.learner-review.incorrect{background:#fff8ed;border-color:#ebdcc3}.expected-answer{background:#eff7fc;border-color:#c9ddea}.review-label{margin:0 0 5px}.review-answer{margin:0;font-size:1.05rem;font-weight:600}.answer-heading{justify-content:space-between;gap:12px;margin-bottom:4px}.answer-heading .audio-icon{width:40px;min-height:40px;padding:8px}.answer-words{margin:0;font-size:clamp(1.12rem,4.5vw,1.35rem);line-height:1.8}.word-hint{position:relative;display:inline;color:#164b3e;background:transparent;border:0;border-radius:0;padding:0 1px;margin:0 4px 0 0;font-weight:700;line-height:inherit;cursor:pointer;text-decoration:underline dotted 1.5px;text-underline-offset:4px}.word-tooltip{position:absolute;z-index:2;left:50%;bottom:calc(100% + 10px);width:max-content;max-width:min(240px,75vw);transform:translate(-50%);padding:7px 9px;border-radius:8px;background:#183b31;color:#fffdf9;font-size:.78rem;font-weight:600;line-height:1.3;text-align:center;opacity:0;pointer-events:none;visibility:hidden}.word-hint:hover .word-tooltip,.word-hint:focus-visible .word-tooltip{opacity:1;visibility:visible}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#10251d77;display:flex;align-items:end;z-index:10}.word-sheet{background:#fffdf9;width:100%;border-radius:22px 22px 0 0;padding:24px max(24px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom));position:relative}.icon-button{position:absolute;right:12px;top:12px;background:#edf3ef;font-size:1.4rem}.error{color:#9b3224;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:3px solid #d78e31;outline-offset:3px}@media (max-width: 560px){.page-header{gap:12px}.page-header h1{margin-bottom:12px}.lesson-header{align-items:flex-start}.lesson-tools{align-items:flex-end;flex-direction:column;gap:2px}.session-toggle{font-size:.8rem}.direction-picker{padding:14px}.answer-form .primary{justify-self:stretch}}@media (min-width: 760px){.app-shell{padding-top:64px;padding-bottom:64px}.lesson-card{padding:36px}}@media (prefers-reduced-motion: reduce){*{transition:none!important}}.playback-speed{display:inline-flex;align-items:center;gap:5px;font-size:.84rem;font-weight:650;white-space:nowrap}.playback-speed select{width:auto;min-height:36px;padding:5px 26px 5px 8px;border-radius:9px;font-weight:700}.audio-notice{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #c9ddea;border-radius:12px;background:#eff7fc;color:#35627a;font-size:.84rem;line-height:1.4}.audio-notice svg{width:18px;height:18px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.lesson-menu{position:relative}.lesson-menu-button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:0;border-radius:10px;background:#e4ede9;color:#164b3e;font-weight:700;cursor:pointer}.lesson-menu-button svg,.menu-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.lesson-menu-panel{position:absolute;z-index:4;right:0;top:calc(100% + 8px);display:grid;gap:12px;min-width:235px;padding:13px;border:1px solid #c9ddea;border-radius:14px;background:#fffdf9;box-shadow:0 10px 24px #3d2e1722}.menu-audio-settings{display:grid;gap:12px}.menu-section-label{margin:0;color:#536c61;font-size:.76rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.lesson-menu-panel .session-toggle{display:flex;align-items:center}.lesson-menu-panel .playback-speed{justify-content:space-between}.menu-actions{display:grid;gap:2px;padding-top:4px;border-top:1px solid #dbe5df}.menu-action{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:8px 7px;border:0;border-radius:9px;background:transparent;color:#164b3e;font-weight:650;text-align:left;cursor:pointer}.menu-action:hover{background:#edf5f1}.menu-action svg{width:18px;height:18px}.auth-shell{display:grid;align-content:center;gap:24px}.compact-header{max-width:470px;width:100%;margin:0 auto;align-items:center}.auth-card,.account-card{display:grid;width:100%;max-width:470px;margin:0 auto;gap:14px}.auth-card h1,.account-card h1{margin:0}.auth-card>.muted,.account-card>.muted{margin:0}.auth-form{display:grid;gap:13px}.auth-switch{margin:0;color:#61736b;font-size:.9rem}.text-link{padding:0;border:0;background:transparent;color:#12604e;font-weight:700;text-decoration:underline;cursor:pointer}.account-email{margin:-7px 0 4px;color:#61736b}.account-actions{display:grid;gap:12px;align-items:start}.account-actions>.primary{width:fit-content}.account-import{display:grid;gap:7px;padding:15px;border:1px solid #dbe5df;border-radius:14px;background:#f7faf8}.account-import p{margin:0}.account-import .secondary{justify-self:start}.account-logout{justify-self:start;padding-left:0;color:#8d4536}.progress-card{display:grid;gap:18px}.progress-actions,.history-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.progress-card h2{margin:0;font-size:1rem}.progress-language-list,.word-bank ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.progress-language{display:grid;grid-template-columns:1.1fr repeat(3,auto);gap:10px;align-items:center;padding:12px;border:1px solid #dbe5df;border-radius:12px;background:#f7faf8;font-size:.86rem}.word-bank{display:grid;gap:8px}.word-bank li{display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;padding:10px 12px;border:1px solid #dbe5df;border-radius:12px}.word-bank li>span:first-child{display:grid;gap:1px}.word-bank small{color:#61736b;font-size:.76rem}.word-evidence{min-width:1.5rem;text-align:center;color:#61736b;font-size:.82rem}.word-bank .audio-icon{width:38px;min-height:38px;padding:7px}.history-card,.history-filters,.history-list{display:grid;gap:16px}.history-filters{grid-template-columns:minmax(0,1fr) minmax(130px,.42fr);align-items:end}.history-entry{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px;border:1px solid #e4ddd1;border-radius:14px}.history-entry.correct{border-color:#bbddc8;background:#f1faf4}.history-entry.review{border-color:#ead09e;background:#fff9ed}.history-entry p{margin:0 0 6px}.history-entry p:last-child{margin-bottom:0}.history-status{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#4d9069;color:#fff;font-weight:800}.history-entry.review .history-status{background:#bb7d1f}.history-pagination{justify-content:space-between}.history-pagination span{color:#61736b;font-size:.9rem}@media (max-width: 560px){.progress-language{grid-template-columns:1fr 1fr}.history-filters{grid-template-columns:1fr}.progress-language strong{grid-column:1 / -1}}
