@import "https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap";*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#15110d;--bg-rgb:21, 17, 13;--surface:#1e1812c7;--surface-rgb:30, 24, 18;--surface-solid:#1e1812;--surface2:#2b221a;--surface2-rgb:43, 34, 26;--sidebar:#1b1612;--border:#2e261e;--border-strong:#3a3026;--accent:#f2a03d;--accent-rgb:242, 160, 61;--accent-hover:#f7bc6e;--accent-deep:#d98a2b;--accent-glow:#f2a03d4d;--on-accent:#1f1408;--accent-2:#f09a80;--accent-2-rgb:240, 154, 128;--text:#f5ede3;--text-soft:#b3a594;--text-muted:#a89a89;--font-display:"Bricolage Grotesque", "DM Sans", sans-serif;--correct:#4cc38a;--correct-glow:#4cc38a4d;--wrong:#f87171;--wrong-glow:#f871714d;--white-04:#ffffff0a;--white-05:#ffffff0d;--white-06:#ffffff0f;--white-08:#ffffff14;--white-10:#ffffff1a;--white-12:#ffffff1f;--white-14:#ffffff24;--white-18:#ffffff2e;--white-20:#fff3;--white-28:#ffffff47;--radius:12px;--radius-sm:9px;--radius-card:22px;--tabbar-h:4rem;--safe-bottom:env(safe-area-inset-bottom,0px);--shadow:0 8px 28px #00000061;--shadow-sm:0 3px 12px #00000042;--ease-out:cubic-bezier(.22, 1, .36, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}html{-webkit-tap-highlight-color:transparent}body{background:var(--bg);color:var(--text);min-height:100dvh;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;overflow-x:hidden}a{color:var(--accent);text-decoration:none}.app{flex-direction:column;max-width:480px;height:100dvh;min-height:100dvh;margin:0 auto;display:flex;position:relative;overflow:hidden}.app-bg{z-index:-1;background:radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--accent-rgb), .18), transparent), radial-gradient(ellipse 60% 40% at 100% 80%, rgba(var(--surface2-rgb), .5), transparent), radial-gradient(ellipse 50% 30% at 0% 60%, rgba(var(--accent-2-rgb), .07), transparent), var(--bg);position:fixed;inset:0}.header{padding:.6rem .75rem;padding-top:calc(.6rem + env(safe-area-inset-top,0px));background:rgba(var(--bg-rgb), .75);-webkit-backdrop-filter:blur(16px)saturate(1.4);border-bottom:1px solid var(--white-06);z-index:100;flex-shrink:0;justify-content:space-between;align-items:center;gap:.5rem;display:flex;overflow:visible}.logo{color:var(--text);min-width:0;transition:transform .2s var(--ease-out);flex-shrink:0;align-items:center;gap:.4rem;font-size:.95rem;font-weight:700;display:flex}.logo:active{transform:scale(.97)}.logo-mark{flex-shrink:0;width:1.4em;height:1.4em;font-size:1.15rem;line-height:1;display:block}.logo-flag{font-size:1.2rem;animation:3s ease-in-out infinite flagWave}@keyframes flagWave{0%,to{transform:rotate(0)}25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}.logo-text{background:linear-gradient(135deg, var(--text) 40%, var(--accent));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.header-actions{flex:1;justify-content:flex-end;align-items:center;gap:.5rem;min-width:0;display:flex;overflow:visible}.header-start{flex-shrink:0;align-items:center;gap:.35rem;min-width:0;display:flex}.header-badges{flex-shrink:0;align-items:center;gap:.35rem;display:flex}.header-lang-toggle{border:1px solid var(--white-10);background:var(--white-04);cursor:pointer;transition:background .2s, border-color .2s, transform .2s var(--ease-out);border-radius:999px;justify-content:center;align-items:center;padding:.25rem .45rem;display:flex}.header-lang-toggle:hover{background:var(--white-08);border-color:var(--white-18)}.header-lang-toggle:active{transform:scale(.95)}.header-streak{color:#fdba74;background:#fb923c1a;border:1px solid #fb923c40;border-radius:999px;flex-shrink:0;align-items:center;gap:.2rem;padding:.25rem .55rem;font-size:.82rem;font-weight:700;display:flex}.header-streak--idle{border-color:var(--white-08);background:var(--white-04);color:var(--text-muted)}.streak-icon{transition:filter .3s var(--ease-out), opacity .3s var(--ease-out);font-size:.95rem;line-height:1}.header-streak--idle .streak-icon{filter:grayscale();opacity:.55}.streak-count{text-align:center;min-width:.75rem}.header-nav{flex-shrink:0;justify-content:flex-end;align-items:center;gap:.25rem;min-width:0;display:flex}.header-account{display:block;position:relative}.header-icon-btn{border:1px solid var(--white-10);background:var(--white-04);width:1.9rem;height:1.9rem;color:var(--text-muted);cursor:pointer;transition:color .2s, background .2s, border-color .2s, transform .15s var(--ease-out);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.header-icon-btn:hover{color:var(--text);background:var(--white-08);border-color:#ffffff29}.header-icon-btn:active{transform:scale(.94)}.header-icon-btn--active{color:var(--text);background:rgba(var(--accent-rgb), .2);border-color:rgba(var(--accent-rgb), .35)}.header-icon-btn--cta{color:var(--accent);background:rgba(var(--accent-rgb), .15);border-color:rgba(var(--accent-rgb), .25)}.header-icon-btn--cta.header-icon-btn--active{color:var(--on-accent);background:var(--accent);border-color:var(--accent)}.header-icon-btn__glyph{font-size:1rem;line-height:1}.header-icon-btn--cta .header-icon-btn__glyph{font-size:1.2rem;font-weight:700}.header-dropdown{border:1px solid var(--white-10);background:rgba(var(--surface-rgb), .98);-webkit-backdrop-filter:blur(16px)saturate(1.4);z-index:30;border-radius:.85rem;min-width:11.5rem;padding:.35rem;position:absolute;top:calc(100% + .45rem);right:0;box-shadow:0 12px 40px #00000073}.header-dropdown__user{color:var(--text-muted);border-bottom:1px solid var(--white-06);white-space:nowrap;text-overflow:ellipsis;margin:0 0 .2rem;padding:.45rem .65rem .35rem;font-size:.72rem;font-weight:600;overflow:hidden}.header-dropdown__item{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:.55rem;padding:.55rem .65rem;font-family:inherit;font-size:.85rem;font-weight:600;text-decoration:none;transition:background .15s,color .15s;display:block}.header-dropdown__item:hover{background:var(--white-06)}.header-dropdown__item--danger{color:var(--wrong);border-top:1px solid var(--white-06);border-radius:0 0 .55rem .55rem;margin-top:.15rem;padding-top:.65rem}.header-dropdown__item--danger:hover{background:#ff6b6b1a}.nav-cta-plus{font-size:1rem;font-weight:700;line-height:1}@media (width<=767px){.header-icon-btn{width:2rem;height:2rem}.header-lang-toggle{padding:.2rem .4rem}.header-streak{padding:.2rem .45rem;font-size:.78rem}.logo-flag{font-size:1.05rem}}.main{min-height:0;padding:.9rem;padding-bottom:calc(1.25rem + var(--safe-bottom));flex:1;overflow-y:auto}.page-enter{animation:pageEnter .45s var(--ease-out) backwards}@keyframes pageEnter{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.page-title{font-family:var(--font-display);letter-spacing:-.02em;margin-bottom:.85rem;font-size:1.3rem;font-weight:700}.page-title-count{background:var(--white-08);color:var(--text-muted);vertical-align:middle;border-radius:999px;margin-left:.5rem;padding:.1rem .55rem;font-size:.9rem;font-weight:600}.page-title--with-icon{align-items:center;gap:.6rem;display:flex}.page-title-icon{animation:iconPop .5s var(--ease-spring) both;font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:1.8rem;line-height:1}@keyframes iconPop{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.back-link{color:var(--text-muted);transition:color .2s, transform .2s var(--ease-out);align-items:center;gap:.25rem;margin-bottom:.75rem;font-size:.9rem;display:inline-flex}.back-link:hover{color:var(--text);transform:translate(-3px)}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:1.25rem;padding:4rem 1rem;display:flex}.loading-spinner{gap:.4rem;display:flex}.loading-spinner span{background:var(--accent);border-radius:50%;width:10px;height:10px;animation:1.2s ease-in-out infinite bounce}.loading-spinner span:nth-child(2){animation-delay:.15s}.loading-spinner span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{opacity:.4;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}.loading-label{color:var(--text-muted);font-size:.9rem;animation:2s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:.6}50%{opacity:1}}.status{text-align:center;color:var(--text-muted);padding:2rem}.status.error{color:var(--wrong);animation:.4s shake}.status.success{color:var(--correct,#4ecdc4);white-space:pre-line}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.banner{border-radius:var(--radius);color:var(--text);border:1px solid var(--white-08);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .25s var(--ease-out), box-shadow .25s, border-color .25s;animation:slideUp .5s var(--ease-out) both;align-items:center;gap:.7rem;margin-bottom:.6rem;padding:.7rem .9rem;display:flex}.banner:nth-child(2){animation-delay:80ms}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.banner:active{transform:scale(.98)}.banner--practice{border-color:rgba(var(--accent-rgb), .3);background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--surface2-rgb), .5))}.banner--practice:hover{border-color:rgba(var(--accent-rgb), .5);box-shadow:0 8px 24px var(--accent-glow);transform:translateY(-2px)}.banner--grammar{border-color:rgba(var(--accent-2-rgb), .3);background:linear-gradient(135deg, rgba(var(--accent-2-rgb), .1), rgba(var(--surface2-rgb), .5))}.banner--grammar:hover{border-color:rgba(var(--accent-2-rgb), .5);box-shadow:0 8px 24px rgba(var(--accent-2-rgb), .25);transform:translateY(-2px)}.banner--reading{background:linear-gradient(135deg, #38bdf81a, rgba(var(--surface2-rgb), .5));border-color:#38bdf84d}.banner--reading:hover{border-color:#38bdf880;transform:translateY(-2px);box-shadow:0 8px 24px #38bdf838}.banner--pinned{border-color:rgba(var(--accent-2-rgb), .35);background:linear-gradient(135deg, rgba(var(--accent-2-rgb), .12), rgba(var(--surface2-rgb), .5))}.banner--pinned:hover{border-color:rgba(var(--accent-2-rgb), .6);box-shadow:0 8px 24px rgba(var(--accent-2-rgb), .28);transform:translateY(-2px)}.banner--due{background:linear-gradient(135deg, #34d3991a, rgba(var(--surface2-rgb), .5));animation:slideUp .5s var(--ease-out) both, glowPulse 3s ease-in-out 3;border-color:#34d3994d}@keyframes glowPulse{0%,to{box-shadow:var(--shadow-sm)}50%{box-shadow:0 4px 24px var(--correct-glow)}}.banner--due:hover{transform:translateY(-2px)}.banner-icon{flex-shrink:0;font-size:1.3rem}.banner-content{flex-direction:column;flex:1;gap:.15rem;display:flex}.banner-title{font-size:.9rem;font-weight:700}.banner-sub{color:var(--text-muted);font-size:.75rem}.banner-arrow{color:var(--text-muted);transition:transform .2s var(--ease-out);font-size:1rem}.banner:hover .banner-arrow{color:var(--accent);transform:translate(4px)}.banner-badge{background:var(--correct);color:var(--bg);min-width:1.7rem;height:1.7rem;animation:badgePop .6s var(--ease-spring) .3s both;border-radius:999px;justify-content:center;align-items:center;font-size:.78rem;font-weight:700;display:flex}@keyframes badgePop{0%{transform:scale(0)}to{transform:scale(1)}}.section-title{color:var(--text-muted);margin:1.5rem 0 .75rem;font-size:1.05rem;font-weight:700}.search-bar{align-items:center;margin-bottom:1rem;display:flex;position:relative}.search-bar-icon{color:var(--text-muted);pointer-events:none;display:flex;position:absolute;left:14px}.search-bar-input{border-radius:var(--radius);background:var(--surface-solid);width:100%;height:44px;color:var(--text);border:1px solid #33291f;padding:0 2.4rem 0 42px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}.search-bar-input::placeholder{color:var(--text-muted)}.search-bar-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);outline:none}.search-bar-clear{background:var(--white-08);width:1.6rem;height:1.6rem;color:var(--text-muted);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:.7rem;transition:background .2s,color .2s;display:flex;position:absolute;right:.6rem}.search-bar-clear:hover{color:var(--text);background:#ffffff26}.category-reorder-hint{color:var(--text-muted);margin:0 0 .6rem;font-size:.8rem}.delete-deck-modal{max-width:440px}.delete-deck-modal-header{align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.delete-deck-modal-icon{font-size:1.7rem;line-height:1}.delete-deck-modal-desc{color:var(--text-muted);margin-bottom:1.35rem;font-size:.95rem;line-height:1.55}.empty{text-align:center;color:var(--text-muted);padding:3rem 1rem}.empty--enter,.empty--celebrate{animation:fadeIn .5s var(--ease-out) both}.empty--celebrate .empty-icon{animation:celebrate .8s var(--ease-spring) both}@keyframes celebrate{0%{opacity:0;transform:scale(0)rotate(-20deg)}60%{transform:scale(1.2)rotate(5deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.empty-icon{margin-bottom:1rem;font-size:3rem;display:block}.empty p{margin-bottom:1.25rem;font-size:1.05rem}.empty-actions{flex-direction:column;align-items:center;gap:.75rem;display:flex}.practice-limit-picker{color:var(--text-muted);align-items:center;gap:.55rem;font-size:.88rem;font-weight:600;display:flex}.practice-limit-picker select{border-radius:var(--radius-sm);border:1px solid var(--white-12);background:var(--surface-solid);color:var(--text);font:inherit;padding:.45rem .65rem;font-size:.95rem}.btn{border-radius:var(--radius-sm);cursor:pointer;transition:background .2s, transform .15s var(--ease-out), box-shadow .2s;border:none;justify-content:center;align-items:center;padding:.6rem 1.15rem;font-family:inherit;font-size:.9rem;font-weight:600;display:inline-flex}.btn:active:not(:disabled){transform:scale(.96)}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--surface-solid);color:var(--text);border:1px solid var(--white-10)}.btn-secondary:hover:not(:disabled){background:var(--surface2);border-color:#ffffff26}.btn--wide{flex:1;width:100%}.btn--large{border-radius:var(--radius);min-height:52px;font-size:16px;font-weight:700}.btn-correct{background:linear-gradient(135deg, var(--correct), #059669);color:#fff;box-shadow:0 4px 16px var(--correct-glow);flex:1}.btn-correct:hover:not(:disabled){box-shadow:0 6px 24px var(--correct-glow);transform:translateY(-1px)}.btn-danger,.btn-wrong{background:linear-gradient(135deg, var(--wrong), #dc2626);color:#fff;box-shadow:0 4px 16px var(--wrong-glow);flex:1}.btn-danger:hover:not(:disabled),.btn-wrong:hover:not(:disabled){box-shadow:0 6px 24px var(--wrong-glow);transform:translateY(-1px)}.difficulty-badge{animation:fadeIn .3s var(--ease-out) both;border-radius:999px;align-self:flex-start;margin-bottom:.5rem;padding:.25rem .7rem;font-size:.75rem;font-weight:600;display:inline-block}@keyframes cardEnterFade{0%{opacity:0}to{opacity:1}}@keyframes cardExitFade{to{opacity:0}}@keyframes cardEnterMove{0%{transform:translateY(24px)scale(.96)}to{transform:translateY(0)scale(1)}}@keyframes cardExitMove{to{transform:translate(40px)scale(.95)}}.speak-btn{background:var(--white-10);color:#fff;cursor:pointer;width:2.1rem;height:2.1rem;transition:background .2s, transform .15s var(--ease-out), border-color .2s;border:1px solid #ffffff40;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.05rem;display:inline-flex}.speak-btn:hover{background:var(--white-20);border-color:#fff6}.speak-btn:active{transform:scale(.92)}.speak-btn--active{border-color:var(--accent);background:var(--accent-glow);animation:.9s ease-in-out infinite speakPulse}@keyframes speakPulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.speak-btn--inline{vertical-align:middle;width:1.6rem;height:1.6rem;margin-left:.4rem;font-size:.8rem}@media (width<=767px){.review-actions{flex-direction:column}.review-actions .btn{width:100%}}.label{text-transform:uppercase;letter-spacing:.12em;color:#f0e4d6d9;margin-bottom:.65rem;font-size:.72rem;font-weight:600}.hint{color:#d6ccc0a6;text-align:center;opacity:1;flex-shrink:0;margin-top:.75rem;font-size:.78rem;line-height:1.3;animation:2.5s ease-in-out infinite hintPulse}@keyframes hintPulse{0%,to{opacity:.5}50%{opacity:.9}}.review-actions{gap:.75rem;display:flex}.review-actions--enter{animation:slideUp .35s var(--ease-out) .1s both}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.form-panel{animation:fadeIn .35s var(--ease-out) both}.tabs{background:var(--white-04);border-radius:calc(var(--radius) + 2px);-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:.35rem;margin-bottom:1.25rem;padding:.3rem;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tab{border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;white-space:nowrap;transition:background .25s, color .25s, transform .15s var(--ease-out);background:0 0;border:none;flex:1 0 auto;padding:.65rem .85rem;font-family:inherit;font-size:.9rem;font-weight:600;line-height:1.2}.tab-label--short{display:none}.tab:hover:not(.active){color:var(--text);background:var(--white-05)}.tab.active{background:var(--accent);color:var(--on-accent);box-shadow:0 4px 12px var(--accent-glow)}.tab:active{transform:scale(.97)}@media (width<=767px){.tabs{gap:.25rem;padding:.25rem}.tab{flex:1 1 0;min-width:0;padding:.55rem .35rem;font-size:.78rem}.tab-label--full{display:none}.tab-label--short{display:inline}}.form{flex-direction:column;gap:1rem;display:flex}.lookup-search{gap:.6rem;margin:.35rem 0 1rem;display:flex}.lookup-search .btn{flex-shrink:0}.lookup-search input{flex:1;min-width:0}.lookup-kind{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.65rem;font-size:.78rem;font-weight:700}.lookup-results{flex-direction:column;gap:.5rem;margin-bottom:1.1rem;list-style:none;display:flex}.lookup-result{text-align:left;border:1px solid var(--white-10);background:var(--white-04);width:100%;color:var(--text);cursor:pointer;font:inherit;border-radius:14px;flex-wrap:wrap;align-items:baseline;gap:.35rem .55rem;padding:.8rem .9rem;display:flex}.lookup-result:hover{border-color:var(--white-18);background:#ffffff12}.lookup-result--active{border-color:rgba(var(--accent-rgb), .55);background:rgba(var(--accent-rgb), .16);box-shadow:0 0 0 1px rgba(var(--accent-rgb), .2)}.lookup-result-front{font-size:1.02rem;font-weight:700}.lookup-result-pos{color:var(--text-muted);text-transform:lowercase;font-size:.72rem;font-weight:650}.lookup-result-back{color:#f0e8ded1;flex-basis:100%;font-size:.9rem}.lookup-add{border-top:1px solid var(--white-08);padding-top:.25rem}.lookup-field-row{align-items:center;gap:.45rem;display:flex}.lookup-field-row input{flex:1;min-width:0}.lookup-meta{color:var(--text-muted);font-size:.82rem}.lookup-manual-toggle{width:100%;color:var(--accent);font:inherit;cursor:pointer;text-align:center;background:0 0;border:none;margin-top:1.1rem;padding:.45rem;font-size:.88rem;font-weight:650;display:block}.lookup-manual-toggle:hover{color:var(--text)}.ui-lang-fieldset{border:1px solid var(--white-10);border-radius:var(--radius-sm);flex-direction:column;gap:.65rem;margin:0;padding:.9rem 1rem 1rem;display:flex}.ui-lang-fieldset legend{padding:0 .35rem;font-size:.9rem;font-weight:600}.ui-lang-option{cursor:pointer;align-items:flex-start;gap:.65rem;font-weight:400;flex-direction:row!important;display:flex!important}.ui-lang-option input{width:auto;accent-color:var(--accent);margin-top:.2rem}.form label{flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:500;display:flex}.form input,.form select,.lookup-search input,.word-practice__input{border-radius:var(--radius-sm);border:1px solid var(--white-10);background:var(--surface-solid);color:var(--text);transition:border-color .2s, box-shadow .2s, transform .15s var(--ease-out);padding:.6rem .75rem;font-family:inherit;font-size:1rem}.form input:focus,.form select:focus,.lookup-search input:focus,.word-practice__input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);outline:none}.form input:-webkit-autofill{-webkit-text-fill-color:var(--text);-webkit-box-shadow:0 0 0 100px var(--surface-solid) inset;caret-color:var(--text)}.form input:-webkit-autofill:hover{-webkit-text-fill-color:var(--text);-webkit-box-shadow:0 0 0 100px var(--surface-solid) inset;caret-color:var(--text)}.form input:-webkit-autofill:focus{-webkit-text-fill-color:var(--text);-webkit-box-shadow:0 0 0 100px var(--surface-solid) inset;caret-color:var(--text)}.form input[type=color]{cursor:pointer;height:48px;padding:.3rem}.field-hint{color:var(--text-muted);margin-top:-.5rem;font-size:.8rem}.auth-page{background:var(--bg);min-height:100dvh;display:flex}.auth-logo{font-family:var(--font-display);align-items:center;gap:12px;font-size:26px;font-weight:700;display:flex}.auth-logo img{border-radius:10px;width:40px;height:40px}.auth-logo--compact{gap:10px;font-size:22px}.auth-logo--compact img{border-radius:8px;width:32px;height:32px}.auth-hero{display:none}.auth-hero__body{flex-direction:column;gap:32px;margin:auto 0;display:flex}.auth-hero__title{font-family:var(--font-display);letter-spacing:-1px;font-size:46px;font-weight:700;line-height:1.05}.auth-hero__title span{color:var(--accent)}.auth-features{flex-direction:column;gap:18px;list-style:none;display:flex}.auth-features li{color:#d8ccbe;align-items:center;gap:14px;font-size:16px;display:flex}.auth-feature-icon{border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.auth-feature-icon--amber{color:#f2c07a;background:#3a2a12}.auth-feature-icon--coral{color:#f09a80;background:#3a1f1a}.auth-feature-icon--violet{color:#b3a0f5;background:#2a2140}.auth-main{min-width:0;padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px));padding-top:calc(16px + env(safe-area-inset-top,0px));flex-direction:column;flex:1;align-items:center;display:flex}.auth-main__top{justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:400px;margin-bottom:40px;display:flex}.auth-card{flex-direction:column;gap:22px;width:100%;max-width:400px;margin:auto 0;display:flex}.auth-card .form{gap:22px}.auth-card .form label{gap:8px;font-size:14px;font-weight:600}.auth-card .form input,.auth-card .form select{border-radius:var(--radius);border-color:var(--border-strong);background:var(--surface-solid);height:50px;padding:0 16px;font-size:15px}.auth-card .field-hint{margin-top:-14px}.ui-language-picker{color:#c4b6a5;cursor:pointer;border:1px solid #33291f;border-radius:10px;align-items:center;gap:8px;height:40px;padding:0 12px;transition:border-color .2s;display:flex}.ui-language-picker:hover,.ui-language-picker:focus-within{border-color:var(--accent)}.ui-language-picker select{color:var(--text);cursor:pointer;background:0 0;border:0;outline:none;font-family:inherit;font-size:14px}.ui-language-picker option{background:var(--surface-solid)}.auth-brand{flex-direction:column;gap:8px;display:flex}.auth-title{font-family:var(--font-display);letter-spacing:-.5px;font-size:30px;font-weight:700;line-height:1.15}.auth-subtitle{color:var(--text-soft);font-size:16px}.auth-footer{text-align:center;color:var(--text-soft);font-size:15px}.auth-footer a{font-weight:700}.auth-footer a:hover{color:var(--accent-hover)}.password-field{display:flex;position:relative}.password-field input,.form .password-field input{flex:1;min-width:0;padding-right:52px}.password-field__toggle{width:40px;height:40px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.password-field__toggle:hover{color:var(--text)}@media (width>=1024px){.auth-hero{border-right:1px solid var(--border);background:#1e1812;flex-direction:column;flex-shrink:0;gap:40px;width:min(600px,47vw);padding:48px 64px;display:flex}.auth-main{justify-content:center;padding:40px 48px;position:relative}.auth-main__top{width:auto;max-width:none;margin:0;position:absolute;top:40px;right:48px}.auth-logo--compact{display:none}.auth-card{margin:0}.auth-title{font-size:34px}}.modal-overlay{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0009;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{border-radius:var(--radius-sm,.85rem);border:1px solid var(--white-12);background:var(--surface,#16181f);flex-direction:column;gap:.85rem;width:min(26rem,100%);padding:1.35rem;display:flex;box-shadow:0 18px 45px #00000073}.modal--error{border-color:#f8717159}.modal-title{margin:0;font-size:1.05rem}.modal--error .modal-title{color:#f87171}.modal-body{color:var(--text-muted);flex-direction:column;gap:.5rem;font-size:.9rem;line-height:1.5;display:flex}.modal-body p{margin:0}.modal-detail{color:var(--text);font-weight:600}.language-setup-options{grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.5rem;margin-top:.35rem;display:grid}.language-setup-option{border:1px solid var(--white-12);background:var(--white-04);color:var(--text);text-align:left;cursor:pointer;border-radius:.65rem;align-items:center;gap:.5rem;padding:.6rem .75rem;font-family:inherit;font-size:.9rem;transition:background .2s,border-color .2s;display:flex}.language-setup-option:hover:not(:disabled){background:var(--white-08)}.language-setup-option--active{border-color:var(--accent);background:rgba(var(--accent-rgb), .18)}.admin-table .admin-name{color:var(--text);display:block}.admin-table .admin-email{color:var(--text-muted);font-size:.75rem;display:block}.admin-badge{border:1px solid #0000;border-radius:999px;padding:.2rem .55rem;font-size:.7rem;display:inline-block}.admin-badge--active{color:#4ade80;background:#4ade801a;border-color:#4ade8066}.admin-badge--blocked{color:#f87171;background:#f871711a;border-color:#f8717166}.admin-self{color:var(--text-muted);font-size:.75rem}.btn--small{padding:.3rem .7rem;font-size:.75rem}.auth-divider{color:var(--text-muted);align-items:center;gap:12px;font-size:13px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.google-signin{justify-content:center;width:100%;min-height:44px;display:flex}.import-panel{flex-direction:column;gap:1rem;display:flex}.import-hint{color:var(--text-muted);margin:0;font-size:.9rem;line-height:1.5}.import-template-btn{align-self:flex-start}.import-dropzone{flex-direction:column;gap:.5rem;display:flex}.import-file-input{display:none}.import-preview{border-radius:var(--radius-sm);border:1px solid var(--white-08);background:#ffffff08;flex-direction:column;gap:.75rem;padding:1rem;display:flex}.import-preview-title{margin:0;font-weight:600}.import-checkbox{cursor:pointer;align-items:center;gap:.5rem;font-size:.95rem;display:flex}.import-checkbox input{width:1.1rem;height:1.1rem;accent-color:var(--accent)}.import-table-wrap{overflow-x:auto}.import-table{border-collapse:collapse;width:100%;font-size:.85rem}.import-table th,.import-table td{text-align:left;border-bottom:1px solid var(--white-06);padding:.5rem .75rem}.import-table th{color:var(--text-muted);font-weight:500}.import-more{color:var(--text-muted);margin:.25rem 0 0;font-size:.8rem}.import-format-help{color:var(--text-muted);font-size:.85rem}.import-format-help summary{cursor:pointer;-webkit-user-select:none;user-select:none}.import-format-body{flex-direction:column;gap:.4rem;margin-top:.5rem;line-height:1.5;display:flex}.import-format-body p{margin:0}.ai-generate-form{flex-direction:column;gap:1rem;display:flex}.ai-generate-form label{flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:500;display:flex}.ai-generate-form textarea{border-radius:var(--radius-sm);border:1px solid var(--white-10);background:var(--surface-solid);color:var(--text);resize:vertical;min-height:6rem;padding:.8rem .9rem;font-family:inherit;font-size:1rem;line-height:1.5;transition:border-color .2s,box-shadow .2s}.ai-generate-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);outline:none}.ai-generate-form textarea:disabled{opacity:.6;cursor:not-allowed}.ai-example-prompts{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.ai-example-label{color:var(--text-muted);font-size:.8rem}.ai-example-btn{border:1px solid var(--white-12);background:var(--white-04);color:var(--text-muted);cursor:pointer;border-radius:999px;padding:.35rem .65rem;font-family:inherit;font-size:.75rem;transition:background .2s,color .2s,border-color .2s}.ai-example-btn:hover:not(:disabled){background:var(--white-08);color:var(--text);border-color:var(--white-20)}.ai-example-btn:disabled{opacity:.5;cursor:not-allowed}.ai-saved-prompts{flex-direction:column;gap:.5rem;display:flex}.ai-saved-list{flex-wrap:wrap;gap:.5rem;display:flex}.ai-saved-chip{border:1px solid var(--white-12);background:var(--white-04);border-radius:999px;align-items:center;display:inline-flex;overflow:hidden}.ai-saved-chip-load,.ai-saved-chip-delete{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-family:inherit;font-size:.75rem;transition:background .2s,color .2s}.ai-saved-chip-load{text-overflow:ellipsis;white-space:nowrap;max-width:14rem;padding:.35rem .5rem .35rem .65rem;overflow:hidden}.ai-saved-chip-delete{padding:.35rem .6rem .35rem .35rem;font-size:.9rem;line-height:1}.ai-saved-chip-load:hover:not(:disabled),.ai-saved-chip-delete:hover:not(:disabled){background:var(--white-08);color:var(--text)}.ai-saved-chip-load:disabled,.ai-saved-chip-delete:disabled{opacity:.5;cursor:not-allowed}.ai-save-form{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.ai-save-form input{flex:12rem;min-width:0}.ai-image-attach{display:flex}.ai-image-preview{border-radius:var(--radius-sm,.85rem);border:1px solid var(--white-12);background:var(--white-04);align-items:flex-start;gap:.75rem;width:100%;padding:.6rem;display:flex}.ai-image-preview img{object-fit:cover;object-position:top;border-radius:.5rem;flex-shrink:0;width:4.5rem;max-height:7rem}.ai-image-preview-info{flex-direction:column;align-items:flex-start;gap:.5rem;min-width:0;display:flex}.modal--scroll{max-height:calc(100dvh - 2rem)}.image-words-hint{color:var(--text-muted);margin:0;font-size:.85rem}.image-words-bulk{gap:.5rem;display:flex}.image-words-list{flex-direction:column;flex:auto;gap:.25rem;min-height:0;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.image-words-item{cursor:pointer;border-radius:.5rem;flex-wrap:wrap;align-items:baseline;gap:.25rem .6rem;padding:.5rem .4rem;display:flex}.image-words-item:hover{background:var(--white-04)}.image-words-item input{align-self:center}.image-words-text{color:var(--text);font-weight:600}.image-words-translation{color:var(--text-muted);font-size:.85rem}.image-words-saved{border:1px solid var(--white-12);color:var(--text-muted);border-radius:999px;padding:.1rem .45rem;font-size:.7rem}.modal--scroll .modal-actions{margin-top:.5rem}.ai-form-actions{flex-wrap:wrap;gap:.5rem;display:flex}.grammar-exercise{background:var(--surface);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius);border:1px solid var(--white-08);box-shadow:var(--shadow-sm);animation:pageEnter .4s var(--ease-out) backwards;padding:1.25rem}.grammar-exercise--correct{border-color:#34d39966}.grammar-exercise--wrong{border-color:#f8717166}.grammar-exercise-type{text-transform:uppercase;letter-spacing:.04em;color:var(--accent);background:rgba(var(--accent-rgb), .15);border-radius:999px;margin-bottom:.75rem;padding:.2rem .55rem;font-size:.72rem;font-weight:600;display:inline-block}.grammar-exercise-prompt{margin-bottom:1rem;font-size:1.1rem;font-weight:500;line-height:1.5}.grammar-exercise-form{flex-direction:column;gap:.65rem;display:flex}.grammar-exercise-input{border-radius:var(--radius-sm);border:1px solid var(--white-10);background:var(--surface-solid);color:var(--text);padding:.8rem .9rem;font-family:inherit;font-size:1rem;transition:border-color .2s,box-shadow .2s}.grammar-exercise-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);outline:none}.grammar-exercise-input:disabled{opacity:.7}.grammar-options{flex-direction:column;gap:.5rem;display:flex}.grammar-option{text-align:left;border-radius:var(--radius-sm);border:1px solid var(--white-10);background:var(--surface-solid);color:var(--text);cursor:pointer;transition:all .2s var(--ease-out);padding:.85rem 1rem;font-family:inherit;font-size:.95rem}.grammar-option:hover:not(:disabled){border-color:var(--white-20);transform:translate(3px)}.grammar-option--selected{border-color:var(--accent);background:rgba(var(--accent-rgb), .12)}.grammar-option--correct{border-color:var(--correct);color:var(--correct);background:#34d39926;font-weight:600}.grammar-option--wrong{border-color:var(--wrong);color:var(--wrong);background:#f871711f}.grammar-feedback{border-top:1px solid var(--white-08);animation:fadeIn .3s var(--ease-out) both;margin-top:1rem;padding-top:1rem}.grammar-feedback-result{margin-bottom:.4rem;font-weight:700}.grammar-feedback-result--correct{color:var(--correct)}.grammar-feedback-result--wrong{color:var(--wrong)}.grammar-feedback-explanation{color:var(--text-muted);font-size:.9rem;line-height:1.5}.grammar-report-btn{font:inherit;color:var(--text-muted);cursor:pointer;background:0 0;border:none;margin-top:.75rem;padding:0;font-size:.8rem;text-decoration:underline}.grammar-report-btn:disabled{opacity:.6;cursor:default}.grammar-report-status{color:var(--text-muted);margin-top:.75rem;font-size:.8rem}.grammar-report-status--error{color:var(--wrong)}.grammar-results-title{color:var(--text);margin-bottom:.35rem;font-size:1.4rem;font-weight:700}.grammar-results-topic{color:var(--text-muted);margin-bottom:1rem;font-size:.9rem}@media (width>=768px){.app{max-width:960px}.main{padding:1.5rem 2rem}.header{padding:.85rem 2rem;padding-top:calc(.85rem + env(safe-area-inset-top,0px));gap:1rem}.logo{gap:.5rem;font-size:1.05rem}.header-start .header-badges{margin-left:.25rem}.header-start{gap:.75rem}.header-actions{flex:initial;gap:.75rem}.main--immersive,body.category-reviewing .main{padding:.75rem 1.25rem 1rem;padding-top:calc(.55rem + env(safe-area-inset-top,0px))}}@media (width>=1100px){.app{max-width:1200px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.modal-overlay{z-index:1000;background:rgba(var(--bg-rgb), .82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fadeIn .25s var(--ease-out);justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal-content{background:var(--surface-solid);border:1px solid var(--white-10);border-radius:var(--radius);width:100%;max-width:440px;box-shadow:var(--shadow);animation:modalEnter .3s var(--ease-spring);padding:1.75rem 1.5rem 1.5rem;position:relative}.modal-title{color:var(--text);margin-bottom:1.25rem;font-size:1.25rem;font-weight:700}.modal-close{background:var(--white-05);border:1px solid var(--white-08);color:var(--text-muted);cursor:pointer;border-radius:8px;padding:.35rem .5rem;font-size:.9rem;line-height:1;transition:all .2s;position:absolute;top:1rem;right:1rem}.modal-close:hover{background:var(--white-10);color:var(--text)}.modal-actions{justify-content:flex-end;gap:.75rem;margin-top:1.5rem;display:flex}@keyframes modalEnter{0%{opacity:0;transform:scale(.92)translateY(16px)}to{opacity:1;transform:scale(1)translateY(0)}}.pinned-list-count{color:var(--text-muted);margin:0 0 .75rem}.pinned-list{flex-direction:column;gap:.5rem;margin:0 0 1.25rem;padding:0;list-style:none;display:flex}.pinned-list-item{background:var(--surface);border:1px solid var(--white-06);border-radius:12px;align-items:center;gap:.75rem;padding:.6rem .75rem;display:flex}.pinned-list-word{min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;align-items:flex-start;padding:0;display:flex}.pinned-list-front{overflow-wrap:anywhere;font-weight:600}.pinned-list-back{color:var(--text-muted);overflow-wrap:anywhere;font-size:.9em}.pinned-list-learned{white-space:nowrap;flex-shrink:0}.tabbar{background:rgba(var(--bg-rgb), .9);-webkit-backdrop-filter:blur(18px)saturate(1.4);border-top:1px solid var(--white-08);z-index:120;touch-action:manipulation;-webkit-user-select:none;user-select:none;flex-shrink:0;grid-template-columns:repeat(4,1fr);padding:0 .45rem;display:grid}.tabbar-link{min-width:0;min-height:2.9rem;padding:.4rem .15rem calc(.45rem + var(--safe-bottom));color:var(--text-muted);letter-spacing:.01em;-webkit-touch-callout:none;-webkit-user-drag:none;touch-action:manipulation;flex-direction:column;justify-content:center;align-items:center;gap:.2rem;font-size:.62rem;font-weight:600;text-decoration:none;display:flex}.tabbar-icon{border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;width:1.85rem;height:1.85rem;transition:color .2s,background .2s,border-color .2s,box-shadow .2s,transform .12s;display:inline-flex}.tabbar-link:active .tabbar-icon{background:var(--white-08);transform:scale(.88)}.tabbar-icon svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:1.15rem;height:1.15rem}.tabbar-me{min-width:0;position:relative}.tabbar-me>.tabbar-link{cursor:pointer;background:0 0;border:none;width:100%;font-family:inherit}.tabbar-menu{border:1px solid var(--white-10);border-radius:var(--radius);background:var(--surface-solid);min-width:12rem;box-shadow:var(--shadow);animation:tabbar-menu-in .16s var(--ease-out);flex-direction:column;gap:.15rem;padding:.3rem;display:flex;position:absolute;bottom:calc(100% - .3rem);right:.15rem}@keyframes tabbar-menu-in{0%{opacity:0;transform:translateY(6px)}}.tabbar-menu__item{border-radius:var(--radius-sm);color:var(--text);text-align:left;white-space:nowrap;align-items:center;gap:.55rem;padding:.6rem .65rem;font-size:.85rem;font-weight:600;display:flex}.tabbar-menu__item:active{background:var(--white-08)}.tabbar-menu__icon{color:var(--accent);display:inline-flex}.tabbar-menu__icon svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:1.05rem;height:1.05rem}.tabbar-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.tabbar-link--active{color:var(--text)}.tabbar-link--active .tabbar-icon{color:var(--accent);border-color:rgba(var(--accent-rgb), .7);background:rgba(var(--accent-rgb), .14);box-shadow:0 0 0 2px rgba(var(--accent-rgb), .16)}.app--immersive .header,body.category-reviewing .header{display:none}.main--immersive,body.category-reviewing .main{padding:.55rem .7rem .85rem;padding-top:calc(.45rem + env(safe-area-inset-top,0px))}.main--immersive .page-enter,body.category-reviewing .main .page-enter{height:100%;animation:none;transform:none}@media (width>=768px){.tabbar{padding-left:1.5rem;padding-right:1.5rem}}.reading-intro{margin-bottom:1rem}.reading-upload{width:100%;margin-bottom:1.25rem}.reading-list{flex-direction:column;gap:.75rem;list-style:none;display:flex}.reading-card{background:var(--surface);border:1px solid var(--white-08);border-radius:var(--radius);align-items:stretch;gap:.15rem;display:flex;overflow:hidden}.reading-card-main{min-width:0;color:inherit;flex:1;gap:.85rem;padding:.75rem;display:flex}.reading-cover{object-fit:cover;background:var(--surface2);border-radius:8px;flex-shrink:0;width:3.4rem;height:4.6rem}.reading-cover--placeholder{justify-content:center;align-items:center;font-size:1.4rem;display:flex}.reading-card-text{flex-direction:column;gap:.15rem;min-width:0;display:flex}.reading-card-title{font-size:.95rem;font-weight:700}.reading-card-author{color:var(--text-muted);font-size:.8rem}.reading-card-action{color:var(--accent);margin-top:auto;font-size:.78rem;font-weight:600}.reading-delete{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:none;padding:.75rem .85rem;font-size:.75rem}.reading-delete:hover{color:var(--wrong)}.app--reading .tabbar{display:none}.main.main--reading{padding:calc(.3rem + env(safe-area-inset-top,0px)) .3rem calc(.3rem + var(--safe-bottom))}.app--reading .word-sheet{padding-bottom:calc(1rem + var(--safe-bottom))}.reader{flex-direction:column;gap:.3rem;height:100%;min-height:0;display:flex}.reader-toolbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:0 .35rem;display:grid}.reader-back{white-space:nowrap;font-size:.85rem;font-weight:600}.reader-title{text-align:center;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:700;overflow:hidden}.reader-page{color:var(--text-muted);text-align:right;min-width:3.6rem;font-size:.75rem}.reader-viewport-wrap{flex:1;min-height:240px;position:relative}.reader-viewport{background:var(--bg);border:1px solid var(--white-08);border-radius:var(--radius);height:100%;min-height:240px;position:relative;overflow:hidden}@media (width<=767px){.reader-viewport{border:none;border-radius:.6rem}}.status-detail{opacity:.75;overflow-wrap:anywhere;margin-top:.3rem;font-size:.72rem;display:block}.reader-touch-layer{z-index:1;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;position:absolute;inset:0}.reader-loading{z-index:2;background:rgba(var(--bg-rgb), .55);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.reader-loading .loading-screen{padding:1rem}.reader-nav{display:none}@media (width>=768px){.reader-nav{justify-content:space-between;gap:.5rem;display:flex}}.reader-nav .btn{padding:.65rem .7rem;font-size:.85rem}.word-sheet-backdrop{z-index:200;background:rgba(var(--bg-rgb), .55);justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.word-sheet{width:min(480px,100%);max-height:min(72dvh,34rem);padding:.65rem 1rem calc(1rem + var(--tabbar-h) + var(--safe-bottom));background:var(--surface-solid);border:1px solid var(--white-10);border-bottom:none;border-radius:18px 18px 0 0;overflow-y:auto;box-shadow:0 -12px 40px #0006}.word-sheet-handle{background:var(--white-18);border-radius:999px;width:2.6rem;height:4px;margin:.15rem auto .75rem}.word-sheet-title-row{align-items:center;gap:.5rem;display:flex}.word-sheet-word{letter-spacing:-.02em;font-size:1.35rem}.word-sheet-pos,.word-sheet-ipa{color:var(--text-muted);font-size:.82rem}.word-sheet-ipa{font-family:ui-serif,Georgia,serif}.word-sheet-status{padding:.75rem 0}.word-sheet-body{flex-direction:column;gap:.9rem;margin:.85rem 0 1rem;display:flex}.word-sheet-body h3{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:.25rem;font-size:.72rem}.word-sheet-example{font-style:italic}.word-sheet-example-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.word-sheet-extend{flex-wrap:wrap;gap:.4rem;margin-top:.7rem;display:flex}.word-sheet-extend .word-sheet-sense:disabled{opacity:.35;cursor:default}.word-sheet-add-btn{width:100%;margin-bottom:.6rem}.word-sheet-add{gap:.6rem;margin-bottom:.9rem}.word-sheet-add-done{margin-bottom:.9rem}.word-sheet-senses{flex-wrap:wrap;gap:.4rem;display:flex}.word-sheet-sense{border:1px solid var(--white-12);background:var(--white-04);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:.3rem .7rem;font-size:.78rem}.word-sheet-sense--active{border-color:rgba(var(--accent-rgb), .7);background:rgba(var(--accent-rgb), .18)}.word-sheet-close{width:100%}.image-picker{flex-direction:column;gap:.45rem;display:flex}.image-picker-label{color:var(--text-muted);font-size:.85rem}.image-picker-strip{-webkit-overflow-scrolling:touch;gap:.4rem;padding-bottom:.25rem;scroll-padding:3px;display:flex;overflow-x:auto}.image-picker-tile{border:1px solid var(--white-10);border-radius:var(--radius-sm);background:var(--surface2);cursor:pointer;flex:none;width:72px;height:54px;padding:0;transition:border-color .15s,box-shadow .15s;overflow:hidden}.image-picker-tile img{object-fit:cover;width:100%;height:100%;display:block}.image-picker-tile.is-selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-glow)}.image-picker-none{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:.1rem;font-size:.95rem;display:flex}.image-picker-none-text{text-align:center;font-size:.6rem;line-height:1.1}.image-picker-search{gap:.4rem;display:flex}.image-picker-search input{flex:1;min-width:0}.image-picker-search .btn{flex:none;padding-inline:.8rem}.tour{z-index:1200;position:fixed;inset:0}.tour-hole{pointer-events:none;box-shadow:0 0 0 2px var(--accent), 0 0 0 9999px #000000b8;transition:top .22s var(--ease-out), left .22s var(--ease-out), width .22s var(--ease-out), height .22s var(--ease-out);border-radius:12px;position:absolute}.tour-bubble{border-radius:var(--radius);border:1px solid var(--white-10);background:var(--surface-solid);box-shadow:var(--shadow);padding:1rem 1.1rem .9rem;position:absolute}.tour-arrow{background:var(--surface-solid);border-top:1px solid var(--white-10);border-left:1px solid var(--white-10);width:12px;height:12px;margin-left:-6px;position:absolute;top:-6px;transform:rotate(45deg)}.tour-bubble--above .tour-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}.tour-title{color:var(--text);margin:0 0 .4rem;font-size:1.05rem;font-weight:700}.tour-body{color:var(--text-muted);margin:0 0 .9rem;font-size:.92rem;line-height:1.5}.tour-actions{align-items:center;gap:.5rem;display:flex}.tour-progress{color:var(--text-muted);font-variant-numeric:tabular-nums;margin-right:auto;font-size:.78rem}.tour-skip{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:.4rem .5rem;font-family:inherit;font-size:.85rem}.tour-skip:hover{color:var(--text)}@media (prefers-reduced-motion:reduce){.tour-hole{transition:none}}.banner--talk{background:linear-gradient(135deg, #a78bfa1f, rgba(var(--surface2-rgb), .5));border-color:#a78bfa52}.banner--talk:hover{border-color:#a78bfa8c;transform:translateY(-2px);box-shadow:0 8px 24px #a78bfa3d}.talk-page{text-align:center;flex-direction:column;align-items:center;display:flex}.talk-page .back-link{align-self:flex-start}.talk-intro{max-width:30rem;color:var(--text-muted);margin-bottom:1.2rem;font-size:.85rem}.talk-wheel{aspect-ratio:1;width:min(86vw,20rem);margin-bottom:1.2rem;position:relative}.talk-wheel-svg{filter:drop-shadow(0 10px 28px #0006);transform-origin:50%;width:100%;height:100%}.talk-wheel-rim{fill:none;stroke:var(--white-12);stroke-width:6px}.talk-wheel-slice{stroke:var(--white-10);stroke-width:1px;transition:fill .4s var(--ease-out)}.talk-wheel-slice--a{fill:rgba(var(--accent-rgb), .18)}.talk-wheel-slice--b{fill:rgba(var(--accent-2-rgb), .14)}.talk-wheel-slice--won{fill:rgba(var(--accent-rgb), .45)}.talk-wheel-emoji{text-anchor:middle}.talk-wheel-label{fill:var(--text);text-anchor:middle;letter-spacing:.02em;font-size:8.5px;font-weight:600}.talk-wheel-hub{fill:var(--surface-solid);stroke:var(--white-18);stroke-width:2px}.talk-wheel-pointer{z-index:1;border-left:9px solid #0000;border-right:9px solid #0000;border-top:18px solid var(--accent);filter:drop-shadow(0 2px 4px #00000080);width:0;height:0;position:absolute;top:-2px;left:50%;transform:translate(-50%)}.talk-topic-card{border:1px solid rgba(var(--accent-rgb), .3);border-radius:var(--radius-card);background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--surface2-rgb), .6));width:100%;max-width:26rem;animation:slideUp .45s var(--ease-out) both;flex-direction:column;align-items:center;gap:.3rem;margin-bottom:1rem;padding:1rem 1.1rem;display:flex}.talk-topic-emoji{font-size:1.9rem;line-height:1}.talk-topic-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.7rem}.talk-topic-prompt{font-size:1rem;font-weight:600;line-height:1.35}.talk-actions{flex-direction:column;gap:.5rem;width:100%;max-width:26rem;display:flex}.talk-speaking,.talk-review{flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:26rem;display:flex}.talk-speaking-prompt{font-size:1rem;font-weight:600;line-height:1.35}.talk-timer{flex-direction:column;align-items:center;gap:.2rem;display:flex}.talk-timer-clock{font-variant-numeric:tabular-nums;font-size:3.2rem;font-weight:700;line-height:1}.talk-timer--ending .talk-timer-clock{color:var(--wrong)}.talk-timer-label{color:var(--text-muted);font-size:.8rem}.talk-timer-bar{background:var(--white-08);border-radius:999px;width:100%;height:6px;overflow:hidden}.talk-timer-bar-fill{background:linear-gradient(90deg, var(--accent), var(--accent-2));border-radius:999px;height:100%;transition:width .3s linear;display:block}.talk-review-title{font-size:1.1rem}.talk-review-meta{color:var(--text-muted);font-size:.8rem}.audio-player{border:1px solid var(--white-08);border-radius:var(--radius-card);background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-2-rgb), .06)), var(--surface);width:100%;box-shadow:var(--shadow-sm);transition:border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);align-items:center;gap:.7rem;padding:.6rem .8rem;display:flex}.audio-player--playing{border-color:rgba(var(--accent-rgb), .45);box-shadow:var(--shadow-sm), 0 0 18px var(--accent-glow)}.audio-player-toggle{background:linear-gradient(135deg, var(--accent), var(--accent-deep));width:2.75rem;height:2.75rem;color:var(--on-accent);cursor:pointer;transition:transform .2s var(--ease-spring), box-shadow .2s var(--ease-out);border:none;border-radius:50%;flex:none;place-items:center;display:grid}.audio-player-toggle:active{transform:scale(.92)}.audio-player--playing .audio-player-toggle{box-shadow:0 0 0 4px var(--accent-glow)}.audio-player-toggle svg{fill:currentColor;width:1.25rem;height:1.25rem}.audio-player-wave{cursor:pointer;touch-action:none;flex:1;align-items:center;gap:2px;height:2.2rem;display:flex}.audio-player-bar{background:var(--white-14);border-radius:999px;flex:1;min-width:2px;transition:background-color .15s linear,opacity .15s linear}.audio-player-bar--played{background:linear-gradient(180deg, var(--accent), var(--accent-2))}.audio-player-time{text-align:right;min-width:2.6rem;color:var(--text-muted);font-variant-numeric:tabular-nums;flex:none;font-size:.8rem}.talk-pending{border:1px dashed var(--white-18);border-radius:var(--radius);color:var(--text-muted);padding:.8rem .9rem;font-size:.82rem;line-height:1.45}.talk-analyzing{flex-direction:column;align-items:center;gap:.3rem;display:flex}.talk-analyzing-title{font-weight:600}.talk-analyzing-sub{color:var(--text-muted);font-size:.8rem}.speaking-feedback{text-align:left;width:100%}.speaking-count{color:var(--text-muted);margin-bottom:.7rem;font-size:.8rem}.speaking-transcript{border:1px solid var(--white-08);border-radius:var(--radius);background:var(--surface);padding:.9rem;font-size:.95rem;line-height:2}.seg--ok{color:var(--correct)}.seg--error{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:inline}.seg-wrong{color:var(--wrong);-webkit-text-decoration:line-through #f8717199;text-decoration:line-through #f8717199}.seg-fix{border-radius:var(--radius-sm);color:var(--correct);background:#34d39929;margin-left:.3rem;padding:.05rem .35rem;font-weight:600}.seg--open .seg-fix{background:#34d3994d;box-shadow:0 0 0 1px #34d39980}.speaking-hint{border-left:2px solid rgba(var(--accent-rgb), .5);min-height:2.4rem;color:var(--text-muted);margin-top:.6rem;padding:.5rem .7rem;font-size:.82rem;line-height:1.45}.speaking-note{border:1px solid var(--white-08);border-radius:var(--radius);background:var(--surface);margin-top:.9rem;padding:.8rem .9rem;font-size:.85rem;line-height:1.5}.speaking-note-title{color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem;font-size:.72rem}.pron-scores{grid-template-columns:repeat(3,1fr);gap:.5rem;margin:.5rem 0 .9rem;display:grid}.pron-score{border-radius:var(--radius-sm);background:var(--white-08);flex-direction:column;align-items:center;gap:.1rem;padding:.55rem .4rem;display:flex}.pron-score__value{font-family:var(--font-display);font-size:1.35rem;font-weight:700}.pron-score__label{color:var(--text-muted);font-size:.72rem}.pron-score--good .pron-score__value,.pron-word__score.pron-score--good{color:var(--correct)}.pron-score--ok .pron-score__value,.pron-word__score.pron-score--ok{color:var(--accent)}.pron-score--low .pron-score__value,.pron-word__score.pron-score--low{color:var(--wrong)}.pron-words__title{margin-bottom:.4rem;font-size:.8rem;font-weight:600}.pron-words__empty{color:var(--text-muted)}.pron-words{flex-wrap:wrap;gap:.4rem;list-style:none;display:flex}.pron-word{border:1px solid var(--white-08);border-radius:999px;align-items:baseline;gap:.35rem;padding:.3rem .55rem;display:inline-flex}.pron-word__text{font-weight:600}.pron-word__score{font-size:.75rem;font-weight:700}.pron-word__sounds{color:var(--text-muted);font-size:.75rem}.talk-modes{justify-content:center;gap:.5rem;margin-bottom:1rem;display:flex}.word-practice{flex-direction:column;align-items:center;width:100%;display:flex}.word-practice__input{width:100%;max-width:26rem;margin-bottom:.5rem;font-size:1.1rem}.word-practice .word-attempt{width:100%;max-width:26rem}.word-attempt{border:1px solid var(--white-08);border-radius:var(--radius);background:var(--surface);text-align:center;margin-top:1.1rem;padding:1rem}.word-attempt__score .pron-score__value{font-size:2.4rem}.word-attempt__verdict{margin:.2rem 0 .9rem;font-weight:600}.word-attempt__words{flex-wrap:wrap;justify-content:center;gap:.9rem;display:flex}.word-attempt__word{flex-direction:column;align-items:center;gap:.35rem;display:flex}.word-attempt__text{font-family:var(--font-display);font-size:1.3rem;font-weight:700}.word-attempt__word--missing .word-attempt__text{color:var(--text-muted);text-decoration:line-through}.word-attempt__sounds{gap:.25rem;display:flex}.word-sound{border-radius:var(--radius-sm);min-width:1.8rem;padding:.2rem .35rem;font-weight:600}.word-sound--good{color:var(--correct);background:#4cc38a29}.word-sound--ok{background:rgba(var(--accent-rgb), .16);color:var(--accent)}.word-sound--low{color:var(--wrong);background:#f8717129}.word-attempt__note{color:var(--text-muted);margin-top:.7rem;font-size:.82rem}.word-attempt__stats{color:var(--text-muted);margin-top:.5rem;font-size:.78rem}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.6rem;margin-top:.9rem;display:grid}.stats-tile{border:1px solid var(--white-08);border-radius:var(--radius-card);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 65%), var(--surface);flex-direction:column;align-items:flex-start;gap:.1rem;padding:.8rem .9rem;display:flex}.stats-tile__icon{margin-bottom:.25rem;font-size:1.1rem;line-height:1}.stats-tile__value{font-variant-numeric:tabular-nums;font-size:1.9rem;font-weight:700;line-height:1}.stats-tile__label{color:var(--text-muted);font-size:.78rem}.stats-section-title{margin-top:1.4rem;margin-bottom:.6rem;font-size:1rem}.stats-bars{flex-direction:column;gap:.5rem;list-style:none;display:flex}.stats-bar{grid-template-columns:minmax(4.5rem,8rem) 1fr auto;align-items:center;gap:.6rem;font-size:.82rem;display:grid}.stats-bar__name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stats-bar__track{background:var(--white-08);border-radius:999px;height:8px;overflow:hidden}.stats-bar__fill{background:linear-gradient(90deg, var(--accent), var(--accent-2));border-radius:999px;height:100%;display:block}.stats-bar__value{color:var(--text-muted);font-variant-numeric:tabular-nums}.admin-totals{grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:.5rem;margin:.9rem 0 1.2rem;display:grid}.admin-totals .stats-tile{padding:.65rem .75rem}.admin-totals .stats-tile__value{font-size:1.5rem}.admin-number{font-variant-numeric:tabular-nums;text-align:right}.app-column{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.sidebar{display:none}.btn-outline{color:var(--text);background:0 0;border:1px solid #4a3620}.btn-outline:hover:not(:disabled){background:rgba(var(--accent-rgb), .08)}@media (width>=1024px){.app{flex-direction:row;max-width:none}.app-bg{background:var(--bg)}.app-column>.header,.app-column>.tabbar{display:none}.main{padding:40px 56px}.main:not(.main--immersive)>.page-enter{max-width:1100px;margin:0 auto}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:24px;width:232px;height:100%;padding:24px 16px;display:flex;overflow-y:auto}}.sidebar-logo{color:var(--text);font-family:var(--font-display);align-items:center;gap:10px;padding:0 8px;font-size:22px;font-weight:700;display:flex}.sidebar-logo img{border-radius:8px;width:32px;height:32px}.sidebar-new{border-radius:var(--radius);gap:8px;height:44px;font-size:15px;font-weight:700}.sidebar-links{flex-direction:column;gap:4px;display:flex}.sidebar-link{height:44px;color:var(--text-soft);border-radius:10px;align-items:center;gap:12px;padding:0 12px;font-size:15px;font-weight:500;transition:background .15s,color .15s;display:flex}.sidebar-link:hover{color:var(--text);background:rgba(var(--surface2-rgb), .6)}.sidebar-link--active{background:var(--surface2);color:var(--text);font-weight:600}.sidebar-spacer{flex-grow:1}.sidebar-streak{background:#221b14;border:1px solid #33291f;border-radius:14px;flex-direction:column;gap:14px;padding:16px;display:flex}.sidebar-streak__head{align-items:center;gap:10px;display:flex}.sidebar-streak__flame{color:var(--text-muted);display:flex}.sidebar-streak__flame.is-lit{color:var(--accent)}.sidebar-streak__count{font-size:15px;font-weight:700}.sidebar-streak__hint{color:var(--text-muted);font-size:13px}.sidebar-week{text-align:center;color:var(--text-muted);grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;font-size:11px;display:grid}.sidebar-week__day{text-transform:uppercase;flex-direction:column;align-items:center;gap:4px;display:flex}.sidebar-week__dot{border:1.5px solid #3d3226;border-radius:50%;width:18px;height:18px}.sidebar-week__day--future .sidebar-week__dot{border-style:dashed}.sidebar-week__day--today{color:var(--accent);font-weight:700}.sidebar-week__day--today .sidebar-week__dot{border-color:var(--accent)}.sidebar-week__day--done .sidebar-week__dot{background:var(--accent);border-color:var(--accent)}.sidebar-account{position:relative}.sidebar-profile{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:6px 8px;font-family:inherit;display:flex}.sidebar-profile:hover,.sidebar-profile[aria-expanded=true]{background:rgba(var(--surface2-rgb), .6)}.sidebar-profile__avatar{color:#f2c98f;background:#3a2e22;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-weight:700;display:flex}.sidebar-profile__text{flex-direction:column;min-width:0;display:flex}.sidebar-profile__name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.sidebar-profile__sub{color:var(--text-muted);font-size:12px}.sidebar-menu{background:var(--surface-solid);border:1px solid var(--border-strong);box-shadow:var(--shadow);z-index:10;border-radius:12px;flex-direction:column;padding:6px;display:flex;position:absolute;bottom:calc(100% + 8px);left:0;right:0}.sidebar-menu__item{color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px;font-family:inherit;font-size:14px}.sidebar-menu__item:hover{background:var(--surface2)}.sidebar-menu__item--danger{color:var(--wrong)}.home{flex-direction:column;gap:28px;display:flex}.home-header{flex-direction:column;gap:6px;display:flex}.home-title{font-family:var(--font-display);letter-spacing:-.5px;font-size:28px;font-weight:700;line-height:1.15}.home-subtitle{color:var(--text-soft);font-size:16px}.home-hero{background:#231a11;border:1px solid #4a3620;border-radius:20px;align-items:center;gap:40px;padding:24px 20px;display:flex}.home-hero__body{flex-direction:column;flex-grow:1;gap:12px;min-width:0;display:flex}.home-hero__eyebrow{letter-spacing:1.4px;text-transform:uppercase;color:var(--accent);font-size:12px;font-weight:700}.home-hero__title{font-family:var(--font-display);letter-spacing:-.5px;font-size:28px;font-weight:700;line-height:1.1}.home-hero__sub{color:#c4b6a5;font-size:16px}.home-hero__actions{flex-wrap:wrap;gap:12px;margin-top:8px;display:flex}.home-hero__actions .btn{min-height:50px;padding:0 22px}.home-hero__start{gap:10px}.home-hero__stack{display:none}.home-section{flex-direction:column;gap:16px;display:flex}.home-section__head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.home-section__title{font-size:18px;font-weight:700}.home-section__link{font-size:14px;font-weight:600}.home-section__link:hover{color:var(--accent-hover)}.home-practice-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;display:grid}.home-practice-card{background:var(--surface-solid);border:1px solid var(--border);color:var(--text);transition:border-color .15s, transform .15s var(--ease-out);border-radius:16px;align-items:center;gap:14px;padding:16px;display:flex}.home-practice-card:hover{border-color:var(--border-strong);transform:translateY(-1px)}.home-practice-card__icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.home-practice-card__text{flex-direction:column;gap:4px;display:flex}.home-practice-card__title{font-size:16px;font-weight:700}.home-practice-card__sub{color:var(--text-muted);font-size:14px;line-height:1.4}.home-tone--amber{color:#f2c07a;background:#3a2a12}.home-tone--coral{color:#f09a80;background:#3a1f1a}.home-tone--teal{color:#6cd2be;background:#15302b}.home-tone--violet{color:#b3a0f5;background:#2a2140}.home-tone--yellow{color:#f2c14e;background:#33280f}.home-decks{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;display:grid}.home-deck{background:var(--surface-solid);border:1px solid var(--border);color:var(--text-muted);border-radius:16px;align-items:center;gap:14px;padding:14px 16px;transition:border-color .15s;display:flex}.home-deck:hover{border-color:var(--border-strong)}.deck-badge{--cat-color:#c2b2fa;background:color-mix(in srgb, var(--cat-color) 20%, var(--surface-solid));color:var(--cat-color);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:15px;font-weight:700;display:flex}.home-deck__name{min-width:0;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex-grow:1;font-size:15px;font-weight:700;overflow:hidden}@media (width>=1024px){.home{gap:32px}.home-title{font-size:34px}.home-hero{padding:32px 36px}.home-hero__title{font-size:36px}.home-practice-card{flex-direction:column;align-items:flex-start;padding:20px}.home-hero__stack{flex-shrink:0;width:230px;height:170px;display:block;position:relative}.home-hero__stack img{object-fit:cover;background:var(--surface2);border:3px solid #2e2317;border-radius:12px;width:150px;height:110px;position:absolute}.home-hero__stack img:first-child{top:30px;left:40px}.home-hero__stack--2 img:first-child,.home-hero__stack--3 img:first-child{left:0;transform:rotate(-8deg)}.home-hero__stack img:nth-child(2){top:8px;left:76px;transform:rotate(6deg)}.home-hero__stack img:nth-child(3){width:160px;height:116px;top:52px;left:40px}}.study-session{flex-direction:column;gap:16px;min-height:100%;display:flex}.session-header{border-bottom:1px solid #2a221a;flex-shrink:0;align-items:center;gap:12px;padding-bottom:12px;display:flex}.session-header__exit{border-radius:var(--radius);color:#c4b6a5;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;height:44px;padding:0 10px;font-family:inherit;font-size:15px;font-weight:600;display:flex}.session-header__exit:hover{background:var(--surface-solid);color:var(--text)}.session-header__progress{flex-direction:column;flex-grow:1;gap:8px;min-width:0;display:flex}.session-header__meta{color:var(--text-muted);justify-content:space-between;gap:12px;font-size:13px;display:flex}.session-header__label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.session-header__meta strong{color:var(--text)}.session-header__track{background:#2a221a;border-radius:4px;height:8px;display:flex}.session-header__track span{background:var(--accent);transition:width .3s var(--ease-out);border-radius:4px}.session-header__streak{color:#f2c98f;background:#231b13;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;height:36px;padding:0 12px;font-size:14px;font-weight:700;display:flex}.study{flex-direction:column;gap:16px;width:100%;max-width:620px;margin:0 auto;display:flex}.study-card{background:var(--surface-solid);border:1px solid var(--border);border-radius:24px;flex-direction:column;display:flex;overflow:hidden}.study-card__image{object-fit:cover;width:100%;height:150px;display:block}.study-card__body{text-align:center;flex-direction:column;align-items:center;gap:18px;padding:24px 20px;display:flex}.study-card__head{flex-direction:column;align-items:center;gap:8px;display:flex}.study-card__word{font-family:var(--font-display);letter-spacing:-1px;overflow-wrap:anywhere;font-size:38px;font-weight:700;line-height:1.05}.study-card__pron{color:var(--text-soft);align-items:center;gap:10px;font-size:18px;display:flex}.study-card__speak{width:44px;height:44px;color:var(--accent);cursor:pointer;transition:transform .15s var(--ease-out);background:#33261a;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.study-card__speak:hover,.study-card__speak.is-active{background:#3f2e1c;transform:scale(1.06)}.study-card__speak--small{vertical-align:middle;width:32px;height:32px;margin-left:8px}.study-card__reveal{color:#c4b6a5;cursor:pointer;background:0 0;border:1.5px dashed #4a3c2e;border-radius:16px;justify-content:center;align-items:center;gap:10px;width:100%;min-height:76px;font-family:inherit;font-size:16px;font-weight:600;transition:border-color .15s,color .15s;display:flex}.study-card__reveal:hover{border-color:var(--accent);color:var(--text)}.kbd-hint{color:var(--text-muted);border:1px solid #4a3c2e;border-radius:6px;padding:2px 8px;font-family:inherit;font-size:12px}.difficulty-rate__btn .kbd-hint{color:inherit;font-size:inherit;border:0;padding:0}@media (hover:none){.kbd-hint{display:none}}.study-card__answer{width:100%;min-height:76px;animation:fadeIn .25s var(--ease-out) both;background:#251d15;border-radius:16px;flex-direction:column;gap:6px;padding:16px 20px;display:flex}.study-card__translation{color:#f2c98f;font-size:22px;font-weight:700}.study-card__example{color:var(--text-soft);font-size:15px;font-style:italic}.study-sentence{background:#1a1510;border:1px solid #2a221a;border-radius:16px;flex-direction:column;gap:12px;padding:14px 16px;display:flex}.study-sentence__row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.study-sentence__prompt{flex:180px;font-size:15px;font-weight:600}.study-sentence__btn{border-radius:var(--radius);border:1px solid var(--border-strong);height:44px;color:var(--text);cursor:pointer;background:0 0;align-items:center;gap:8px;padding:0 16px;font-family:inherit;font-size:14px;font-weight:600;display:flex}.study-sentence__btn:hover,.study-sentence__btn.is-active{border-color:var(--accent)}.study-sentence__btn.is-live{border-color:var(--wrong);color:var(--wrong)}.study-sentence__form{gap:10px;display:flex}.study-sentence__form input{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--surface-solid);min-width:0;height:44px;color:var(--text);flex:1;padding:0 14px;font-family:inherit;font-size:15px}.study-sentence__form input:focus{border-color:var(--accent);outline:none}.study-sentence__form .btn{border-radius:var(--radius)}.study-sentence__transcript{color:var(--text-soft);font-style:italic}.study-sentence__feedback{color:var(--text-muted);font-size:14px}.study-sentence__feedback--good{color:var(--correct)}.study-sentence__feedback--try{color:#f2c98f}.study-footer{flex-direction:column;align-items:center;gap:12px;width:100%;max-width:620px;margin:auto auto 0;padding-top:8px;display:flex}.difficulty-rate{width:100%;animation:fadeIn .25s var(--ease-out) both;flex-direction:column;align-items:center;gap:12px;display:flex}.difficulty-rate__question{color:var(--text-muted);font-size:14px}.difficulty-rate__buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;display:grid}.difficulty-rate__btn{cursor:pointer;min-height:60px;transition:transform .15s var(--ease-out), filter .15s;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:6px;font-family:inherit;font-size:16px;font-weight:700;display:flex}.difficulty-rate__btn:hover:not(:disabled){filter:brightness(1.12)}.difficulty-rate__btn:active:not(:disabled){transform:scale(.97)}.difficulty-rate__btn:disabled{opacity:.6;cursor:wait}.difficulty-rate__btn>span{font-size:12px;font-weight:500}.difficulty-rate__btn--hard{color:#f5b0a6;background:#2e1a17;border:1px solid #5a2b26}.difficulty-rate__btn--hard>span{color:#c98e86}.difficulty-rate__btn--medium{color:#f5d38a;background:#2e2412;border:1px solid #5a4520}.difficulty-rate__btn--medium>span{color:#c8ae72}.difficulty-rate__btn--easy{color:#0e2418;background:#3daf7a;border:0}.difficulty-rate__btn--easy>span{color:#123524;font-weight:600}.study-footer__nav{justify-content:space-between;gap:8px;width:100%;display:flex}.study-nav-btn{height:40px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:6px;padding:0 10px;font-family:inherit;font-size:14px;font-weight:600;display:flex}.study-nav-btn:hover:not(:disabled){color:var(--text);background:var(--surface-solid)}.study-nav-btn:disabled{visibility:hidden}.study-nav-btn--learned{color:var(--correct)}@media (width<=480px){.session-header__exit span{display:none}}@media (width>=1024px){body.category-reviewing .sidebar{display:none}.main.main--immersive,body.category-reviewing .main{padding:0}.study-session{gap:0}.session-header{gap:32px;height:76px;padding:0 40px}.session-header__exit{padding:0 14px}.study{gap:20px;padding-top:36px}.study-card__image{height:172px}.study-card__body{padding:28px 36px 32px}.study-card__word{font-size:48px}.study-footer{padding:20px 0 32px}.difficulty-rate__buttons{gap:12px}}.decks{flex-direction:column;gap:20px;display:flex}.decks-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.decks-header__title{align-items:baseline;gap:12px;display:flex}.decks-header__title h1{font-family:var(--font-display);letter-spacing:-.5px;font-size:28px;font-weight:700}.decks-header__title span{color:var(--text-muted);font-size:16px}.decks-header__actions{flex:280px;justify-content:flex-end;align-items:center;gap:12px;display:flex}.decks-header__actions .search-bar{flex:1;max-width:280px;margin:0}.decks-new{border-radius:var(--radius);flex-shrink:0;gap:8px;height:44px;padding:0 18px;font-size:15px;font-weight:700}.decks-filters{scrollbar-width:none;gap:8px;display:flex;overflow-x:auto}.decks-filters::-webkit-scrollbar{display:none}.decks-filter{border:1px solid var(--border-strong);color:#c4b6a5;cursor:pointer;background:0 0;border-radius:999px;flex-shrink:0;height:36px;padding:0 16px;font-family:inherit;font-size:14px;font-weight:500}.decks-filter:hover{color:var(--text)}.decks-filter.is-active{background:var(--text);border-color:var(--text);color:#1b1612;font-weight:600}.decks-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px;list-style:none;display:grid}.decks-grid:not(.decks-grid--static) .deck-card{animation:fadeIn .3s var(--ease-out) both}.deck-card{-webkit-touch-callout:none;position:relative}.deck-card.is-dragging{z-index:5}.deck-card:has(.options-menu__btn[aria-expanded=true]){z-index:30}.deck-card.is-dragging .deck-card__link{border-color:rgba(var(--accent-rgb), .5);cursor:grabbing;transform:scale(1.03);box-shadow:0 10px 28px #00000059}.deck-card__link{background:var(--surface-solid);border:1px solid var(--border);height:100%;color:var(--text);-webkit-user-select:none;user-select:none;transition:border-color .15s, transform .15s var(--ease-out);border-radius:16px;align-items:center;gap:14px;padding:16px 52px 16px 16px;display:flex}.deck-card__link:hover{border-color:var(--border-strong)}.deck-card__text{flex-direction:column;gap:3px;min-width:0;max-width:100%;display:flex}.deck-card__name{overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:16px;font-weight:700;line-height:1.3;display:-webkit-box;overflow:hidden}.deck-card__meta{color:var(--text-muted);font-size:13px}.options-menu.deck-card__menu{position:absolute;top:12px;right:10px}@media (width>=1024px){.decks{gap:24px}.decks-header__title h1{font-size:34px}.deck-card__link{flex-direction:column;align-items:flex-start;padding:18px}.deck-card__text{align-self:stretch}.decks-grid{gap:16px}}.options-menu{position:relative}.options-menu__btn{width:36px;height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:flex}.options-menu__btn:hover,.options-menu__btn[aria-expanded=true]{background:var(--surface2);color:var(--text)}.options-menu__list{background:var(--surface-solid);border:1px solid var(--border-strong);min-width:190px;box-shadow:var(--shadow);z-index:20;border-radius:12px;padding:6px;position:absolute;top:calc(100% + 4px);right:0}.options-menu__item{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px;font-family:inherit;font-size:14px}.options-menu__item:hover{background:var(--surface2)}.options-menu__item--danger{color:var(--wrong)}.deck{flex-direction:column;gap:20px;display:flex}.deck-breadcrumb{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;display:flex}.deck-breadcrumb a{color:#c4b6a5}.deck-breadcrumb a:hover,.deck-breadcrumb [aria-current=page]{color:var(--text)}.deck-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.deck-header__title{align-items:center;gap:16px;min-width:0;display:flex}.deck-header__title .deck-badge{border-radius:14px;font-size:18px}.deck-header__title div{flex-direction:column;gap:4px;min-width:0;display:flex}.deck-header__title h1{font-family:var(--font-display);letter-spacing:-.5px;overflow-wrap:anywhere;font-size:26px;font-weight:700;line-height:1.15}.deck-header__title span{color:var(--text-muted);font-size:14px}.deck-header__actions{align-items:center;gap:10px;display:flex}.deck-action{border-radius:var(--radius);gap:6px;height:40px;padding:0 14px;font-size:14px;font-weight:700}.deck-action.btn-outline{border-color:var(--border-strong);font-weight:600}.deck-header__menu .options-menu__btn{border-radius:var(--radius);border:1px solid var(--border-strong);color:#c4b6a5;width:40px;height:40px}.deck-subs{flex-direction:column;gap:16px;display:flex}.deck-subs .search-bar{max-width:320px;margin:0}.deck-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.deck-toolbar .search-bar{flex:220px;max-width:280px;margin:0}.deck-tabs{border-radius:var(--radius);background:var(--surface-solid);border:1px solid var(--border);scrollbar-width:none;gap:4px;padding:4px;display:flex;overflow-x:auto}.deck-tabs::-webkit-scrollbar{display:none}.deck-tab{color:#c4b6a5;cursor:pointer;background:0 0;border:0;border-radius:9px;flex-shrink:0;align-items:center;gap:8px;height:36px;padding:0 14px;font-family:inherit;font-size:14px;font-weight:600;display:flex}.deck-tab:hover{color:var(--text)}.deck-tab.is-active{background:var(--text);color:#1b1612}.deck-tab__count{opacity:.75;font-weight:500}.deck-tab__dot{border-radius:50%;width:8px;height:8px}.difficulty-dot--easy{background:#6fd6a3}.difficulty-dot--medium{background:#f2c14e}.difficulty-dot--hard{background:#f08a7c}.deck-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:14px;list-style:none;display:grid}.deck-tile{perspective:1000px;cursor:pointer;-webkit-tap-highlight-color:transparent;height:100%;min-height:280px;position:relative}.deck-tile:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:16px}.deck-tile__face{background:var(--surface-solid);border:1px solid var(--border);backface-visibility:hidden;transition:transform .45s var(--ease-out);border-radius:16px;flex-direction:column;display:flex;position:absolute;inset:0}.deck-tile__face--front{transform:rotateY(0)}.deck-tile__face--back{text-align:center;background:#221b14;border-color:#4a3620;justify-content:center;align-items:center;gap:12px;padding:24px 22px;overflow-y:auto;transform:rotateY(-180deg)}.deck-tile.is-flipped .deck-tile__face--front{transform:rotateY(180deg)}.deck-tile.is-flipped .deck-tile__face--back{transform:rotateY(0)}.deck-grid li:has(.options-menu__btn[aria-expanded=true]){z-index:30;position:relative}.deck-tile__image{object-fit:cover;border-radius:15px 15px 0 0;flex-shrink:0;width:100%;height:140px;display:block}.deck-tile__image--empty{background:radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), .18), transparent 60%), var(--surface2)}.deck-tile__pin{color:#e8ddd0;cursor:pointer;background:#14100cb8;border:0;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:flex;position:absolute;top:8px;right:8px}.deck-tile__pin.is-pinned{color:#f2c14e}.deck-tile__pin.is-pinned svg{fill:currentColor}.deck-tile__body{flex-direction:column;flex:1;justify-content:space-between;gap:12px;padding:14px 16px;display:flex}.deck-tile__head{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;display:flex}.deck-tile__word{overflow-wrap:anywhere;font-size:18px;font-weight:700;line-height:1.25}.deck-tile__pron{justify-content:center;align-items:center;gap:8px;max-width:100%;display:flex}.deck-tile__ipa{min-width:0;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.deck-tile__lang{letter-spacing:1.2px;text-transform:uppercase;color:var(--accent);font-size:11px;font-weight:700}.deck-tile__back{color:#f2c98f;overflow-wrap:anywhere;font-size:17px;font-weight:700;line-height:1.3}.deck-tile__example{color:var(--text-soft);font-size:14px;font-style:italic;line-height:1.5}.deck-tile__speak{border:1px solid var(--border-strong);width:30px;height:30px;color:var(--accent);cursor:pointer;background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.deck-tile__speak:hover,.deck-tile__speak.is-active{background:#33261a}.deck-tile__speak--inline{vertical-align:middle;width:26px;height:26px;margin-left:6px}.deck-tile__foot{justify-content:space-between;align-items:center;gap:8px;margin-bottom:-4px;margin-right:-6px;display:flex}.deck-tile__foot .options-menu__btn{width:32px;height:32px}@media (prefers-reduced-motion:reduce){.deck-tile__face{transition:none}}.difficulty-tag{border-radius:999px;align-items:center;gap:6px;height:24px;padding:0 10px;font-size:12px;font-weight:600;display:inline-flex}.difficulty-tag:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.difficulty-tag--easy{color:#6fd6a3;background:#173326}.difficulty-tag--medium{color:#f2c14e;background:#3a2c10}.difficulty-tag--hard{color:#f08a7c;background:#3a1c1a}@media (width<=767px){.deck-header__actions{width:100%}.deck-action{min-width:0;padding:0 12px;font-size:13px}.deck-toolbar{flex-direction:column;align-items:stretch}.deck-toolbar .search-bar{flex:none;max-width:none}.deck-tabs{align-self:stretch}.deck-tab{flex:1 0 auto;justify-content:center;padding:0 12px}}@media (width>=1024px){.deck{gap:22px}.deck-header__title h1{font-size:32px}.deck-grid{gap:16px}}.grammar{flex-direction:column;gap:24px;display:flex}.grammar-header{flex-direction:column;gap:6px;display:flex}.grammar-header h1{font-family:var(--font-display);letter-spacing:-.5px;font-size:28px;font-weight:700}.grammar-header p{color:var(--text-soft);font-size:16px}.grammar-config{flex-direction:column;gap:16px;display:flex}.grammar-panel{background:var(--surface-solid);border:1px solid var(--border);border-radius:20px;flex-direction:column;gap:16px;padding:20px;display:flex}.grammar-panel__row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.grammar-panel__label{color:#c4b6a5;font-size:14px;font-weight:600}.grammar-levels{border-radius:var(--radius);background:var(--bg);gap:4px;padding:4px;display:flex}.grammar-level{color:#c4b6a5;cursor:pointer;background:0 0;border:0;border-radius:9px;min-width:48px;height:38px;padding:0 10px;font-family:inherit;font-size:15px;font-weight:700}.grammar-level:hover:not(.is-active){color:var(--text)}.grammar-level.is-active{background:var(--correct);color:#0e2418}.grammar-level-info{flex-direction:column;gap:6px;display:flex}.grammar-level-info h2{font-family:var(--font-display);font-size:22px;font-weight:700}.grammar-level-info p{color:var(--text-soft);font-size:15px;line-height:1.5}.grammar-counts{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px;display:grid}.grammar-count{border:1px solid var(--border-strong);color:#c4b6a5;cursor:pointer;background:0 0;border-radius:10px;height:44px;font-family:inherit;font-size:15px;font-weight:700}.grammar-count:hover:not(.is-active){color:var(--text)}.grammar-count.is-active{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.grammar-topics{flex-direction:column;gap:16px;display:flex}.grammar-topics__grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px;display:grid}.grammar-topic{background:var(--surface-solid);border:1px solid var(--border);color:var(--text);text-align:left;cursor:pointer;border-radius:16px;align-items:center;gap:16px;padding:16px;font-family:inherit;transition:border-color .15s;display:flex}.grammar-topic:hover:not(:disabled){border-color:var(--border-strong)}.grammar-topic:disabled{opacity:.6;cursor:wait}.grammar-topic__mark{width:48px;height:48px;font-family:var(--font-display);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:20px;font-weight:700;display:flex}.grammar-topic__text{flex-direction:column;flex-grow:1;gap:3px;min-width:0;display:flex}.grammar-topic__title{font-size:16px;font-weight:700}.grammar-topic__meta{color:var(--text-muted);font-size:13px}.grammar-topic__start{border-radius:var(--radius);color:#f2c98f;background:#2a1f14;border:1px solid #4a3620;flex-shrink:0;align-items:center;gap:6px;height:40px;padding:0 14px;font-size:14px;font-weight:700;display:flex}.grammar-topic:hover:not(:disabled) .grammar-topic__start{background:#33261a}.grammar-session{flex-direction:column;gap:20px;display:flex}@media (width<=480px){.grammar-topic__start{padding:0 10px}}@media (width>=1024px){.grammar{gap:28px}.grammar-header h1{font-size:34px}.grammar-config{flex-direction:row;align-items:stretch;gap:24px}.grammar-panel{padding:24px}.grammar-panel--level{flex-grow:1}.grammar-panel--count{flex-shrink:0;width:300px}.grammar-topics__grid{gap:16px}.grammar-topic{padding:18px 18px 18px 20px}.grammar-session .session-header{height:auto;padding:0 0 16px}}.btn,.sidebar-link,.tabbar-label,.sidebar-menu__item,.options-menu__item,.study-card__reveal,.study-sentence__btn,.study-nav-btn,.session-header__exit,.difficulty-rate__btn,.decks-filter,.deck-tab,.grammar-topic__start,.grammar-report-btn{text-transform:lowercase}.difficulty-rate__btn>span{text-transform:none;letter-spacing:normal}
