:root{--bg: #f6f8f3;--surface: #ffffff;--surface-2: #eef3ea;--ink: #1f2d25;--ink-soft: #5a6b61;--line: #dbe4d7;--accent: #2f8f52;--accent-ink: #1e6b3a;--accent-soft: #dcf0e2;--amber: #e9a61f;--amber-soft: #fbefd2;--red: #d64545;--red-soft: #fbe3e3;--blue: #3e72c4;--ring-track: #e3eadf;--shadow: 0 1px 2px rgba(31, 45, 37, .06), 0 4px 14px rgba(31, 45, 37, .06);--radius: 18px;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #111814;--surface: #1a231e;--surface-2: #222d26;--ink: #e6eee8;--ink-soft: #9db0a3;--line: #2f3d35;--accent: #4fb374;--accent-ink: #79d39a;--accent-soft: #1f3a29;--amber: #f0b543;--amber-soft: #3a3020;--red: #ef6b6b;--red-soft: #3d2222;--blue: #7aa3e6;--ring-track: #26332b;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);color-scheme:dark}}:root[data-theme=dark]{--bg: #111814;--surface: #1a231e;--surface-2: #222d26;--ink: #e6eee8;--ink-soft: #9db0a3;--line: #2f3d35;--accent: #4fb374;--accent-ink: #79d39a;--accent-soft: #1f3a29;--amber: #f0b543;--amber-soft: #3a3020;--red: #ef6b6b;--red-soft: #3d2222;--blue: #7aa3e6;--ring-track: #26332b;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.5 Nunito,ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}h1,h2,h3{margin:0;line-height:1.2;text-wrap:balance}h1{font-size:1.6rem;font-weight:800}h2{font-size:1.15rem;font-weight:800}p{margin:0}button,input,select{font:inherit;color:inherit}input,select{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);min-height:48px}input:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}button{cursor:pointer}button:disabled{cursor:default}.muted{color:var(--ink-soft)}.small-text{font-size:.85rem}.center{text-align:center}.center-text{text-align:center;align-items:center}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;gap:10px;align-items:center}.row.wrap{flex-wrap:wrap}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error-text{color:var(--red);font-weight:600}.app{min-height:100dvh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.page{max-width:560px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 16px 24px}.center-screen{min-height:100dvh;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;padding:24px;text-align:center}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.tab{flex:1;max-width:120px;border:0;background:none;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink-soft);font-size:.75rem;font-weight:700;border-radius:12px}.tab svg{width:24px;height:24px}.tab.active{color:var(--accent-ink);background:var(--accent-soft)}.act-banner{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:var(--blue);color:#fff;font-size:.9rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 18px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-weight:800;letter-spacing:.01em;box-shadow:0 3px 0 var(--accent-ink);transition:transform .08s ease,box-shadow .08s ease,opacity .2s}.btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--accent-ink)}.btn:disabled{opacity:.45}.btn.big{min-height:56px;font-size:1.1rem;width:100%}.btn.small{min-height:38px;padding:6px 12px;font-size:.88rem;box-shadow:none}.btn.secondary{background:var(--surface-2);color:var(--ink);box-shadow:0 3px 0 var(--line)}.btn.secondary.small{box-shadow:none}.btn.light{background:#fff3;color:#fff;box-shadow:none}.btn.danger{background:var(--red-soft);color:var(--red);box-shadow:none}.icon-btn{border:0;background:none;padding:8px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-soft);min-width:44px;min-height:44px}.icon-btn:active{background:var(--surface-2)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;text-align:left}button.card{width:100%;border:1px solid var(--line)}button.card:active{transform:scale(.99)}.card-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.78rem;font-weight:800;background:var(--surface-2);color:var(--ink-soft)}.pill.due{background:var(--amber-soft);color:#9a6500}.pill.new,.pill.done{background:var(--accent-soft);color:var(--accent-ink)}.pill.exam{background:#e3ebfa;color:var(--blue)}.pill.tiny{font-size:.7rem;padding:1px 7px}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .pill.due{color:var(--amber)}:root:not([data-theme=light]) .pill.exam{background:#1e2a40}}.avatar{font-size:2.2rem;line-height:1;width:52px;height:52px;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);border-radius:50%;flex:none}.avatar.small{font-size:1.3rem;width:34px;height:34px}.avatar.big{font-size:3rem;width:76px;height:76px}.home-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.hello{display:flex;align-items:center;gap:12px;min-width:0}.streak{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;background:var(--surface-2);color:var(--ink-soft);font-size:1.1rem;flex:none}.streak.on{background:var(--amber-soft);color:#c26a00}.streak.on svg{fill:#f59e0b;color:#e86f00}.today{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center}.today .go{grid-column:1 / -1}.today-side{display:flex;flex-direction:column;gap:8px}.stat-line{display:flex;justify-content:space-between;border-bottom:1px dashed var(--line);padding-bottom:4px}.stat-line b{font-size:1.15rem}.ring{position:relative;flex:none}.ring-inner{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-num{font-size:2.6rem;font-weight:900;line-height:1}.ring-sub{font-size:.85rem;color:var(--ink-soft);font-weight:700}@media(max-width:360px){.today{grid-template-columns:1fr;justify-items:center}.today-side{width:100%}}.subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.subject{display:flex;flex-direction:column;gap:4px;padding:14px}.subject .flag{font-size:1.8rem;line-height:1}.subject-name{font-weight:800}.subject-meta{display:flex;gap:4px;flex-wrap:wrap;font-size:.85rem;color:var(--ink-soft)}.duel{display:flex;flex-direction:column;gap:12px}.duel-row{display:flex;align-items:center;gap:10px}.duel-row.me .duel-bar>div{background:var(--accent)}.duel-bar-wrap{flex:1;min-width:0}.duel-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.95rem}.crown{color:var(--amber);fill:var(--amber)}.duel-bar{height:12px;background:var(--surface-2);border-radius:999px;overflow:hidden;margin-top:4px}.duel-bar>div{height:100%;background:var(--blue);border-radius:999px;transition:width .6s ease;min-width:4px}.duel-xp{font-variant-numeric:tabular-nums;min-width:64px;text-align:right}.duel-hint{font-weight:700;color:var(--accent-ink);font-size:.92rem}.exam-btn{display:flex;align-items:center;gap:14px;color:var(--blue)}.exam-btn div{display:flex;flex-direction:column;color:var(--ink)}.week-bars{display:flex;justify-content:space-between;gap:6px;margin-top:10px}.week-day{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.78rem;color:var(--ink-soft);font-weight:700}.week-bar{width:100%;max-width:30px;height:64px;background:var(--surface-2);border-radius:8px;display:flex;align-items:flex-end;overflow:hidden}.week-bar>div{width:100%;background:var(--accent);border-radius:8px;min-height:0}.week-day.goal .week-bar>div{background:var(--amber)}.empty-start{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;color:var(--ink-soft)}.empty-start h2{color:var(--ink)}.session{min-height:100dvh;max-width:560px;margin:0 auto;display:flex;flex-direction:column;padding:calc(8px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom))}.session-head{display:flex;align-items:center;gap:10px}.session-progress{flex:1;height:14px;background:var(--ring-track);border-radius:999px;overflow:hidden}.session-progress>div{height:100%;background:var(--accent);border-radius:999px;transition:width .5s ease}.session-progress>div.full{background:var(--amber)}.session-xp{display:inline-flex;align-items:center;gap:4px;font-weight:800;color:var(--amber);min-width:54px;justify-content:flex-end}.session-meta{display:flex;gap:8px;align-items:center;margin:10px 0 4px;color:var(--ink-soft);font-size:.88rem;font-weight:700}.exercise{flex:1;display:flex;flex-direction:column;gap:16px;padding-top:8px}.ex-label{display:inline-flex;gap:6px;align-items:center;color:var(--ink-soft);font-weight:800;font-size:.9rem}.prompt{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:18px 0 6px}.word-big{font-size:clamp(1.8rem,8vw,2.5rem);font-weight:900;line-height:1.15;display:inline-flex;align-items:center;gap:6px;justify-content:center;flex-wrap:wrap;overflow-wrap:anywhere}.word-big.de{color:var(--blue)}.phonetic{color:var(--ink-soft);font-size:1.05rem}.speak{color:var(--accent)}.word-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px 18px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.word-card .divider{width:60px;height:3px;background:var(--line);border-radius:2px;margin:8px 0}.word-de{font-size:1.5rem;font-weight:800;color:var(--blue)}.example{color:var(--ink-soft);font-style:italic}.intro .ex-label{color:var(--accent-ink);align-self:center}.bottom{margin-top:auto}.options{display:grid;gap:10px}.option{width:100%;min-height:58px;padding:12px 16px;border-radius:16px;text-align:left;font-weight:700;font-size:1.08rem;background:var(--surface);border:2px solid var(--line);box-shadow:0 3px 0 var(--line);overflow-wrap:anywhere}.option:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--line)}.option.right{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 3px 0 var(--accent);animation:pop .3s ease}.option.wrong{border-color:var(--red);background:var(--red-soft);box-shadow:0 3px 0 var(--red);animation:shake .35s ease}.option.dim{opacity:.45}@keyframes pop{50%{transform:scale(1.03)}}@keyframes shake{20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}.reveal{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px;background:var(--surface-2);border-radius:var(--radius);text-align:center}.rate-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rate{min-height:58px;font-size:1.05rem}.rate.r1{background:var(--red);box-shadow:0 3px #a33}.rate.r2{background:var(--amber);box-shadow:0 3px #b07800;color:#3a2700}.type-form{display:flex;flex-direction:column;gap:10px}.type-input{font-size:1.4rem;text-align:center;font-weight:700;min-height:60px;border-width:2px}.type-input.correct{border-color:var(--accent);background:var(--accent-soft)}.type-input.almost{border-color:var(--amber);background:var(--amber-soft)}.type-input.wrong{border-color:var(--red);background:var(--red-soft)}.accent-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.accent-row button,.cyr-kbd button{min-width:40px;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-size:1.15rem;font-weight:700;box-shadow:0 2px 0 var(--line)}.cyr-kbd{display:flex;flex-direction:column;gap:6px}.cyr-kbd>div{display:flex;gap:4px;justify-content:center}.cyr-kbd button{flex:1;min-width:0;max-width:40px;padding:0}.cyr-kbd button.wide{max-width:none;flex:5;font-size:.9rem}.cyr-kbd button:active,.accent-row button:active{background:var(--accent-soft);transform:translateY(1px)}.feedback{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--radius);margin-top:auto;animation:up .2s ease}.feedback.correct{background:var(--accent-soft);color:var(--accent-ink)}.feedback.almost{background:var(--amber-soft)}.feedback.wrong{background:var(--red-soft)}.feedback .btn.big{margin-top:4px}.fb-title{display:flex;align-items:center;gap:6px;font-size:1.2rem;font-weight:900}.hint{font-weight:700}@keyframes up{0%{transform:translateY(12px);opacity:0}}.goal-overlay{position:fixed;inset:0;z-index:40;background:#0a140e8c;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade .2s}.goal-card{background:var(--surface);border-radius:24px;padding:28px 22px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;max-width:360px;width:100%;animation:pop .4s ease}.goal-card .row{width:100%}.goal-card .row .btn{flex:1}.goal-flame{color:#e86f00;fill:#f59e0b}@keyframes fade{0%{opacity:0}}.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:50}.summary{padding-top:30px;text-align:center}.summary-emoji{font-size:4rem;text-align:center}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-stats div,.kid-stats div{background:var(--surface-2);border-radius:14px;padding:10px 4px;display:flex;flex-direction:column;align-items:center}.summary-stats b{font-size:1.6rem}.summary-stats span,.kid-stats span{font-size:.78rem;color:var(--ink-soft);font-weight:700}.seg{display:flex;background:var(--surface-2);border-radius:14px;padding:4px;gap:4px}.seg button{flex:1;border:0;background:none;padding:8px;border-radius:10px;font-weight:700;color:var(--ink-soft);min-height:40px}.seg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.seg.big button{min-height:48px}.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.shot{position:relative;aspect-ratio:3 / 4;border-radius:14px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line)}.shot img{width:100%;height:100%;object-fit:cover}.shot-pdf{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;text-align:center;overflow-wrap:anywhere}.shot-x{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;border:0;background:#0009;color:#fff;display:flex;align-items:center;justify-content:center}.shot.add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px dashed var(--accent);color:var(--accent-ink);font-weight:800;background:var(--accent-soft)}.tips ul{margin:6px 0 0;padding-left:20px;color:var(--ink-soft);font-size:.92rem}.reading .scan-anim{color:var(--accent);animation:bob 1.4s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-8px) rotate(-3deg)}}.rows{display:flex;flex-direction:column;gap:8px}.row-entry{display:flex;gap:8px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px}.row-entry.off{opacity:.5}.row-entry .check{flex:none;width:30px;height:30px;margin-top:8px;border-radius:8px;border:2px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:center;color:#fff}.row-entry .check.on{background:var(--accent);border-color:var(--accent)}.row-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.row-fields input{min-height:38px;padding:6px 10px;border-radius:9px;border-color:transparent;background:var(--surface-2)}.row-fields input.term{font-weight:800}.row-meta{display:flex;gap:6px;align-items:center;font-size:.82rem;flex-wrap:wrap}.row-meta input.unit{width:110px;min-height:30px;font-size:.82rem}.sticky-actions{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));display:flex;gap:10px;padding:10px 0;background:linear-gradient(transparent,var(--bg) 30%)}.sticky-actions .btn.big{width:auto}.sticky-actions .btn.secondary{flex:none}.list-btn{display:flex;align-items:center;gap:12px}.list-btn .grow{display:flex;flex-direction:column;gap:2px}.list-btn .flag{font-size:1.8rem}.title-row{display:flex;align-items:center;gap:6px}.ready{display:block;height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden;margin-top:4px}.ready>span{display:block;height:100%;background:var(--accent);border-radius:999px}.ready-num{font-weight:800;color:var(--accent-ink);font-variant-numeric:tabular-nums}.word-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.word-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left}.word-row:last-child{border-bottom:0}.w-term{font-weight:800;overflow-wrap:anywhere}.w-de{color:var(--ink-soft);overflow-wrap:anywhere}.unit-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.unit-chip{border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:10px;text-align:left;display:flex;flex-direction:column;gap:2px}.unit-chip.on{border-color:var(--accent);background:var(--accent-soft)}.unit-chip small{color:var(--ink-soft)}.kid-card{display:flex;flex-direction:column;gap:12px}.kid-card.off{opacity:.6}.kid-head{display:flex;gap:12px;align-items:center}.mini-bars{display:flex;gap:3px;align-items:flex-end;height:70px}.mini-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px}.mini-bar>div{width:100%;background:var(--accent);border-radius:4px 4px 0 0;min-height:2px}.mini-bar.goal>div{background:var(--amber)}.mini-bar small{font-size:.62rem;color:var(--ink-soft)}.kid-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.kid-stats b{font-size:1.15rem}.hardest summary{cursor:pointer;font-weight:700}.hardest ul{margin:8px 0 0;padding-left:18px;font-size:.92rem}.kid-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.kid-pick-btn{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.avatar-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:6px}.avatar-pick button{font-size:1.6rem;min-height:48px;border-radius:12px;border:2px solid transparent;background:var(--surface-2)}.avatar-pick button.on{border-color:var(--accent);background:var(--accent-soft)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-weight:700;min-height:40px}.chip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.qr{align-self:center;border-radius:12px;background:#fff;padding:8px}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-weight:700;font-size:.9rem;color:var(--ink-soft)}.modal-back{position:fixed;inset:0;z-index:30;background:#0a140e80;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.modal{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;border-radius:22px 22px 0 0;display:flex;flex-direction:column;animation:up .2s ease}@media(min-width:640px){.modal-back{align-items:center}.modal{border-radius:22px}}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 10px 6px 18px}.modal-body{overflow-y:auto;padding:8px 18px calc(20px + env(safe-area-inset-bottom))}.toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:60;background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:999px;font-weight:700;max-width:calc(100vw - 32px);text-align:center;animation:up .2s ease}.spinner-wrap{display:flex;flex-direction:column;align-items:center;gap:12px;padding:30px;color:var(--ink-soft);font-weight:700}.spinner{width:40px;height:40px;border:4px solid var(--ring-track);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-box{background:var(--red-soft);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:10px}.login{max-width:420px;margin:0 auto;padding:calc(40px + env(safe-area-inset-top)) 16px 30px;display:flex;flex-direction:column;gap:20px}.login-hero{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.login-hero img{border-radius:22px;box-shadow:var(--shadow)}.login-hero h1{font-size:2.2rem}.login-hero p{color:var(--ink-soft)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
