:root{color-scheme:light;--bg:#f7f7fb;--surface:#fff;--surface-soft:#fafaff;--surface-muted:#f1f1f8;--ink:#202134;--sub:#76778b;--muted:#9899a9;--line:#e8e8ef;--accent:#7466e9;--accent-dark:#5847cd;--accent-soft:#efedff;--purple-ink:#4c3fc1;--success:#287b63;--success-bg:#e8f8f0;--danger:#b54d5a;--danger-bg:#fff0f1;--shadow:0 12px 44px rgba(45,40,91,.045);--radius:24px;--focus:#b7aaff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#111218;--surface:#1b1c25;--surface-soft:#20212c;--surface-muted:#272935;--ink:#f6f4ff;--sub:#b5b5c6;--muted:#85859a;--line:#343440;--accent:#a99aff;--accent-dark:#8f7df5;--accent-soft:#302c49;--purple-ink:#c8bdff;--success:#8edbb8;--success-bg:#20382e;--danger:#ff9ba7;--danger-bg:#422a34;--shadow:0 14px 54px rgba(0,0,0,.15);--focus:#c7b7ff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:#c6bef9;color:#211943}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;width:256px;flex-shrink:0;padding:33px 19px 24px 25px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:8}.brand{display:flex;align-items:center;gap:11px;margin:0 0 52px 7px}.brand-mark{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:15px;font-size:30px;font-weight:850;letter-spacing:-3px;background:var(--accent);color:white;line-height:1}.brand-mark span{color:#d3f3ab;font-size:32px;align-self:flex-end;padding-bottom:6px}.brand-name{font-size:24px;font-weight:800;letter-spacing:-1.3px;line-height:1.05}.brand-dot{color:var(--accent)}.brand-name small{display:block;color:var(--sub);font-size:10.4px;font-weight:600;letter-spacing:.05px;margin-top:7px}.side-label,.topbar-kicker,.eyebrow,.tiny-label,.overline{text-transform:uppercase;letter-spacing:1.65px;font-size:10px;font-weight:800;color:var(--muted)}.side-label{margin:0 0 14px 17px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-link{border:0;background:transparent;border-radius:15px;padding:13px 14px;color:var(--sub);display:flex;align-items:center;gap:13px;font-size:13px;font-weight:680;text-align:left;width:100%;transition:background .18s,color .18s}.nav-link svg{width:20px;height:20px;stroke-width:1.8}.nav-link:hover{background:var(--surface-muted);color:var(--ink)}.nav-link.active{background:var(--accent-soft);color:var(--purple-ink)}.nav-bubble{margin-left:auto;background:var(--accent);color:white;border-radius:50px;padding:0 6px;font-size:10px;min-width:18px;text-align:center}.side-bottom{margin-top:auto;padding:0 6px}.side-tip{background:var(--accent-soft);border-radius:20px;padding:21px 18px;margin-bottom:22px}.tip-emoji{font-size:27px;color:var(--accent);margin-bottom:12px}.side-tip b{display:block;font-size:14px;line-height:1.4}.side-tip p{font-size:11.5px;color:var(--sub);margin:9px 0 0}.tiny-label{font-size:9px;letter-spacing:.2px}.workspace{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:86px;flex-shrink:0;padding:0 clamp(20px,4vw,57px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--bg);gap:16px}.topbar-left{display:flex;align-items:center;gap:13px;font-weight:690;font-size:13px}.topbar-sep{color:var(--muted)}.topbar-kicker{color:var(--muted)}.topbar-actions{display:flex;gap:15px;align-items:center}.saved-indicator{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:11px;font-weight:600}.saved-dot{width:7px;height:7px;background:#63bd9e;border-radius:50%;box-shadow:0 0 0 3px #65ca9c22}.theme-toggle{display:flex;align-items:center;gap:9px;border:1px solid var(--line);padding:9px 12px;background:var(--surface);border-radius:12px;color:var(--ink);font-size:11.5px;font-weight:700;box-shadow:var(--shadow)}.theme-icon{font-size:17px;line-height:1}.mobile-brand{display:none}main{max-width:1400px;width:100%;margin:0 auto;padding:36px clamp(20px,4vw,57px) 64px;flex:1}.footer{padding:12px clamp(20px,4vw,57px) 28px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px}.bottom-nav{display:none}.intro-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:27px}.intro-head h1{font-size:30px;line-height:1.13;letter-spacing:-1.2px;margin:8px 0 8px;font-weight:790}.intro-head p{color:var(--sub);margin:0;font-size:13px}.heading-actions{display:flex;gap:10px;align-items:center}.small-date{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:10px 14px;font-size:11px;color:var(--sub);font-weight:650}.home-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(250px,.85fr);gap:18px;align-items:stretch}.hero{min-height:280px;border-radius:var(--radius);background:linear-gradient(125deg,#7870ed 0%,#6a5edc 61%,#5145bd 100%);color:white;padding:33px 35px;position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 12px 28px #6b61db1c}.hero:after{content:'';position:absolute;border-radius:50%;width:380px;height:380px;top:-150px;right:-94px;border:1px solid #ffffff44;box-shadow:0 0 0 40px #ffffff08,0 0 0 88px #ffffff08,0 0 0 134px #ffffff08;z-index:-1}.hero-tag{display:inline-flex;gap:7px;align-items:center;background:#ffffff28;border:1px solid #ffffff29;border-radius:50px;padding:6px 11px;font-size:10px;font-weight:740;letter-spacing:.6px}.hero h2{font-size:clamp(27px,3vw,40px);line-height:1.14;letter-spacing:-1.6px;max-width:460px;margin:21px 0 9px}.hero p{font-size:12px;color:#eeedff;margin:0 0 24px;max-width:340px}.hero .button{margin-top:auto}.hero-art{position:absolute;bottom:-43px;right:37px;width:172px;height:172px;transform:rotate(-17deg);border-radius:32px;background:#fff2;display:flex;align-items:center;justify-content:center;font-size:88px;font-weight:800;color:#ffffff70;pointer-events:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:13px;padding:12px 17px;font-size:12px;line-height:1.1;font-weight:760;transition:transform .18s,background .18s,opacity .18s;white-space:nowrap}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:var(--accent);color:white}.button.primary:hover:not(:disabled){background:var(--accent-dark)}.button.white{background:white;color:#5744bd}.button.secondary{background:var(--surface-muted);color:var(--ink)}.button.outline{background:transparent;border:1px solid var(--line);color:var(--ink)}.button.ghost{background:transparent;color:var(--accent)}.button.danger{background:var(--danger-bg);color:var(--danger)}.button.small{padding:9px 12px;font-size:11px}.button.large{padding:15px 21px;font-size:13px}.button.full{width:100%}.button svg{width:16px;height:16px}.side-stats{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-top h3,.section-title{margin:0;font-size:15px;font-weight:780;letter-spacing:-.25px}.card-top .mini{color:var(--sub);font-size:10px}.progress-donut{--percent:0;position:relative;width:110px;height:110px;margin:19px auto 15px;background:conic-gradient(var(--accent) calc(var(--percent)*1%),var(--surface-muted) 0);border-radius:50%;display:grid;place-items:center}.progress-donut:before{content:'';position:absolute;inset:11px;border-radius:50%;background:var(--surface)}.donut-label{position:relative;text-align:center}.donut-label strong{display:block;font-size:27px;line-height:1.2;letter-spacing:-.5px}.donut-label span{font-size:10px;color:var(--sub)}.stats-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;gap:12px}.stats-foot div{display:flex;flex-direction:column;gap:2px}.stats-foot b{font-size:18px;letter-spacing:-.5px}.stats-foot span{font-size:10px;color:var(--sub)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:36px 0 15px;gap:16px}.section-heading h2{font-size:19px;letter-spacing:-.5px;margin:0}.text-action{border:0;background:transparent;color:var(--accent);font-weight:780;font-size:12px;padding:8px}.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.mode-card{position:relative;border:1px solid var(--line);background:var(--surface);border-radius:20px;min-height:158px;padding:19px;display:flex;align-items:flex-start;flex-direction:column;text-align:left;box-shadow:var(--shadow);transition:transform .2s,border .2s}.mode-card:hover{border-color:var(--accent);transform:translateY(-3px)}.mode-icon{display:grid;place-items:center;font-size:20px;width:43px;height:43px;border-radius:14px;background:var(--accent-soft);color:var(--accent);margin-bottom:17px}.mode-card b{font-size:12.5px}.mode-card p{font-size:10.5px;color:var(--sub);margin:5px 0 0}.mode-arrow{position:absolute;right:15px;top:19px;font-size:16px;color:var(--muted)}.topic-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.topic-card{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:16px;min-height:124px;display:flex;flex-direction:column;text-align:left;gap:8px;transition:border .18s,transform .18s}.topic-card:hover{transform:translateY(-2px);border-color:var(--accent)}.topic-symbol{font-size:24px;width:42px;height:40px;border-radius:13px;display:grid;place-items:center;font-weight:750}.tone-lilac{color:#7869dc;background:#f0edff}.tone-blue{color:#5288d9;background:#eaf4ff}.tone-peach{color:#d98755;background:#fff1e8}.tone-mint{color:#358c78;background:#e8f7f0}.tone-rose{color:#bc6c90;background:#fff0f5}.tone-yellow{color:#af8a34;background:#fff6d9}:root[data-theme=dark] .tone-lilac{background:#332b52;color:#b8a8ff}:root[data-theme=dark] .tone-blue{background:#25384d;color:#9bc8ff}:root[data-theme=dark] .tone-peach{background:#4d352e;color:#ffc4a5}:root[data-theme=dark] .tone-mint{background:#243f38;color:#9adfc3}:root[data-theme=dark] .tone-rose{background:#4e3340;color:#ffb1d0}:root[data-theme=dark] .tone-yellow{background:#453e28;color:#f6dc80}.topic-card b{font-size:11px;line-height:1.3}.topic-card small{color:var(--sub);font-size:10px}.home-lower{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin-top:18px}.info-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px 23px;box-shadow:var(--shadow)}.info-panel p{font-size:12px;line-height:1.65;color:var(--sub);margin:8px 0 13px}.panel-row{display:flex;justify-content:space-between;gap:14px;align-items:center}.panel-number{font-size:25px;letter-spacing:-.8px;font-weight:800;color:var(--accent)}.info-pills{display:flex;flex-wrap:wrap;gap:7px}.tag{padding:6px 10px;background:var(--surface-muted);color:var(--sub);font-size:10px;font-weight:750;border-radius:30px}.view-content{max-width:980px;margin:0 auto}.practice-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.back-link{background:transparent;border:0;padding:6px 0;display:flex;align-items:center;gap:8px;color:var(--sub);font-weight:680;font-size:12px}.back-link:hover{color:var(--accent)}.practice-meta{display:flex;align-items:center;gap:9px}.pill{background:var(--accent-soft);color:var(--purple-ink);padding:7px 11px;border-radius:30px;font-size:10px;font-weight:800}.pill.ghost{color:var(--sub);background:var(--surface-muted)}.practice-panel{border:1px solid var(--line);border-radius:25px;background:var(--surface);padding:clamp(23px,4vw,43px);box-shadow:var(--shadow)}.step-label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:var(--sub);font-weight:700;margin-bottom:12px}.bar-track{height:7px;background:var(--surface-muted);border-radius:20px;overflow:hidden;margin-bottom:34px}.bar-fill{height:100%;background:linear-gradient(90deg,var(--accent),#c2b7ff);border-radius:20px;transition:width .28s}.question-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:17px}.q-tag{font-size:10px;font-weight:760;padding:6px 10px;border-radius:8px;background:var(--surface-muted);color:var(--sub)}.q-tag.accent{background:var(--accent-soft);color:var(--purple-ink)}.question-text{font-size:clamp(19px,2.4vw,25px);line-height:1.45;font-weight:760;letter-spacing:-.6px;margin:0 0 13px}.question-help{font-size:11px;color:var(--sub);margin:0 0 26px}.option-list{display:grid;gap:10px}.option{position:relative;width:100%;border:1.5px solid var(--line);border-radius:14px;padding:15px 16px;background:var(--surface);color:var(--ink);text-align:left;display:flex;align-items:center;gap:13px;line-height:1.4;font-size:13px;transition:border .15s,background .15s}.option:not(:disabled):hover{border-color:var(--accent)}.option.selected{background:var(--accent-soft);border-color:var(--accent)}.option-letter{width:27px;height:27px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;background:var(--surface-muted);font-size:11px;font-weight:820;color:var(--sub)}.option.selected .option-letter{background:var(--accent);color:white}.option-check{margin-left:auto;color:var(--accent);font-weight:900}.answer-field{width:100%;border:1.5px solid var(--line);border-radius:15px;background:var(--surface-soft);color:var(--ink);padding:16px 18px;min-height:52px;font-size:15px;outline:none}.answer-field:focus{border-color:var(--accent)}.answer-field::placeholder,textarea::placeholder{color:var(--muted)}.field-help{color:var(--sub);font-size:11px;margin-top:10px}.answer-row{display:flex;align-items:center;gap:12px}.unit-label{font-size:13px;color:var(--sub);font-weight:700}.scenario-field{min-height:148px;resize:vertical;line-height:1.55}.practice-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:29px;padding-top:22px;border-top:1px solid var(--line)}.quiet-button{border:0;background:transparent;color:var(--sub);font-size:11px;padding:12px 3px;font-weight:680}.quiet-button:hover{color:var(--accent)}.action-right{display:flex;gap:10px}.feedback{margin-top:26px;padding:22px;border-radius:19px;background:var(--surface-soft);border:1px solid var(--line)}.feedback.good{background:var(--success-bg);border-color:transparent}.feedback.bad{background:var(--danger-bg);border-color:transparent}.feedback-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;margin-bottom:10px}.status-icon{width:27px;height:27px;background:var(--success);color:var(--surface);border-radius:50%;display:grid;place-items:center;font-size:15px}.bad .status-icon{background:var(--danger)}.feedback-detail{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.detail-box{border:1px solid var(--line);background:var(--surface);padding:13px;border-radius:13px;min-width:0}.detail-box small{display:block;font-size:10px;color:var(--sub);font-weight:760;margin-bottom:6px}.detail-box b{font-size:12px;line-height:1.5;font-weight:650;overflow-wrap:anywhere;display:block}.feedback-why{font-size:12px;line-height:1.65;margin:10px 0 0;color:var(--ink)}.why-label{font-size:11px;font-weight:830;display:block;margin-top:16px}.memory-box{background:var(--accent-soft);border:1px solid #a293ff20;border-radius:15px;padding:17px 19px;margin-top:16px}.memory-title{color:var(--purple-ink);display:flex;gap:8px;align-items:center;font-size:11px;font-weight:840;margin-bottom:6px}.memory-box p{color:var(--ink);font-size:13px;font-weight:620;line-height:1.55;margin:0}.note-box{margin-top:17px;border:1px solid var(--line);border-radius:15px;padding:16px;background:var(--surface)}.note-box label{display:block;font-size:12px;font-weight:790;margin-bottom:6px}.note-box p{color:var(--sub);font-size:10px;margin:0 0 11px}.note-input{resize:vertical;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:11px;padding:13px 14px;width:100%;min-height:76px;font-size:12px;line-height:1.55}.note-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.note-hint{font-size:10px;color:var(--sub)}.next-row{display:flex;justify-content:flex-end;margin-top:18px}.order-list{display:grid;gap:10px}.order-choice{background:var(--surface);border:1.5px solid var(--line);border-radius:12px;padding:13px 15px;text-align:left;display:flex;align-items:center;gap:12px;color:var(--ink);font-size:12px}.order-choice:disabled{opacity:.5}.order-list .selected-order{border:1px dashed var(--accent);padding:15px;border-radius:14px;background:var(--accent-soft);margin-bottom:7px;color:var(--purple-ink);font-size:12px;min-height:52px}.order-number{width:25px;height:25px;display:inline-grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--purple-ink);font-size:11px;font-weight:850}.order-items{display:flex;flex-wrap:wrap;gap:6px}.order-item{background:var(--surface);padding:7px 9px;border-radius:8px}.selection-bar{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:17px 19px;display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:18px}.selection-bar label{font-size:12px;font-weight:760;display:block}.selection-bar small{font-size:11px;color:var(--sub)}.select{border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);padding:10px 36px 10px 14px;max-width:100%;font-size:12px;min-height:42px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:30px;letter-spacing:-1.2px;line-height:1.15;margin:6px 0 10px}.page-heading p{font-size:12px;color:var(--sub);max-width:600px;line-height:1.65;margin:0}.empty-state{border:1px dashed var(--line);background:var(--surface);border-radius:20px;padding:41px 25px;text-align:center}.empty-state .empty-icon{display:grid;place-items:center;margin:0 auto 16px;background:var(--accent-soft);color:var(--accent);width:62px;height:62px;border-radius:19px;font-size:28px}.empty-state h3{margin:0;font-size:17px}.empty-state p{color:var(--sub);max-width:350px;margin:9px auto 19px;font-size:12px;line-height:1.6}.review-list{display:grid;gap:13px}.review-item{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:20px 23px;box-shadow:var(--shadow)}.review-item-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.review-item h3{font-size:14px;line-height:1.45;margin:8px 0 9px}.review-item p{font-size:11.5px;line-height:1.55;color:var(--sub);margin:8px 0 0}.review-item .memory-line{background:var(--accent-soft);color:var(--ink);padding:10px 12px;border-radius:10px;font-size:11.5px;margin-top:13px}.review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.mini-tag{font-size:10px;font-weight:730;color:var(--sub);background:var(--surface-muted);border-radius:30px;padding:5px 9px}.review-item .note-preview{padding:10px 12px;border-left:3px solid var(--accent);background:var(--surface-soft);font-size:11.5px;margin-top:12px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.tab{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 15px;font-size:11px;color:var(--sub);font-weight:750}.tab.active{background:var(--accent-soft);border-color:var(--accent);color:var(--purple-ink)}.notebook{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:24px;box-shadow:var(--shadow);margin-bottom:22px}.notebook h3{font-size:15px;margin:0 0 4px}.notebook p{font-size:11px;color:var(--sub);margin:0 0 13px}.notebook textarea{min-height:160px}.notebook-foot{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:11px}.settings-panel{display:grid;gap:14px;grid-template-columns:1fr 1fr;margin-top:22px}.result-hero{border-radius:24px;background:linear-gradient(135deg,#7466e9,#5143b4);color:white;padding:32px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.result-hero .big-score{font-size:60px;line-height:1;font-weight:850;letter-spacing:-3px}.result-hero h2{font-size:25px;letter-spacing:-.8px;margin:0 0 5px}.result-hero p{font-size:12px;color:#e8e6ff;margin:0}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.result-stat{background:var(--surface);border:1px solid var(--line);padding:18px;border-radius:18px}.result-stat b{font-size:25px;display:block}.result-stat span{font-size:11px;color:var(--sub)}.result-row{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:15px 17px;margin-bottom:9px;display:flex;justify-content:space-between;align-items:center;gap:15px}.result-row .result-question{font-size:12px;font-weight:690;max-width:650px}.result-row .status{text-align:right;min-width:65px;font-size:11px;font-weight:750}.status.good{color:var(--success)}.status.bad{color:var(--danger)}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.result-detail{border-top:1px solid var(--line);padding-top:13px;margin-top:12px;font-size:12px;color:var(--sub)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.stat-tile{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:21px}.stat-tile .stat-num{font-size:33px;line-height:1.2;font-weight:850;letter-spacing:-1px;margin:7px 0}.stat-tile p{font-size:11px;color:var(--sub);margin:0}.topic-progress-list{display:grid;gap:18px}.topic-progress-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:7px;font-size:12px}.topic-progress-row span{font-weight:650}.topic-progress-row strong{color:var(--sub);font-size:11px}.progress-slim{height:8px;border-radius:50px;background:var(--surface-muted);overflow:hidden}.progress-slim div{height:100%;background:var(--accent);border-radius:50px}.disclaimer{margin-top:26px;font-size:11px;line-height:1.65;color:var(--sub);border:1px solid var(--line);background:var(--surface);border-radius:15px;padding:15px 18px}#toast{position:fixed;bottom:28px;right:24px;background:var(--ink);color:var(--surface);font-size:12px;font-weight:700;padding:12px 17px;border-radius:13px;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .18s,transform .18s;z-index:100;box-shadow:0 10px 30px #0002}#toast.show{opacity:1;transform:translateY(0)}.sparkle{color:var(--accent)}.inline-muted{font-size:11px;color:var(--sub)}.hide{display:none!important}
@media(max-width:1250px){.sidebar{width:220px;padding-left:15px;padding-right:14px}.brand-name{font-size:22px}main{padding-left:28px;padding-right:28px}.topbar{padding:0 28px}.topic-grid{grid-template-columns:repeat(5,1fr)}.topic-card{padding:12px}.hero-art{right:-12px;opacity:.6}}
@media(max-width:1100px){.home-grid{grid-template-columns:minmax(0,1.25fr) minmax(225px,.75fr)}.mode-grid{grid-template-columns:repeat(2,1fr)}.topic-grid{grid-template-columns:repeat(3,1fr)}.hero{padding:27px}.hero-art{display:none}}
@media(max-width:760px){.sidebar{display:none}.topbar{height:66px;padding:0 18px}.topbar-left{display:none}.mobile-brand{display:block;font-size:23px;font-weight:850;letter-spacing:-1.5px;line-height:1}.mobile-brand>span{color:var(--accent)}.mobile-brand small{display:block;letter-spacing:.1px;color:var(--sub);font-size:9px;font-weight:630;margin-top:3px}.saved-text{display:none}.theme-toggle{min-height:38px;padding:8px 12px}.theme-toggle #theme-label{display:none}.theme-icon{font-size:18px}main{padding:25px 17px 97px}.footer{display:none}.bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:7px 5px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -8px 36px #10102708}.bottom-nav .nav-link{font-size:9px;border-radius:12px;padding:7px 5px;gap:4px;flex-direction:column;align-items:center;justify-content:center;flex:1;max-width:100px;font-weight:720}.bottom-nav .nav-link svg{width:20px;height:20px}.bottom-nav .nav-bubble{position:absolute;right:14%;top:2px;font-size:9px}.intro-head h1,.page-heading h1{font-size:26px}.intro-head{margin-bottom:20px}.small-date{display:none}.home-grid{grid-template-columns:1fr}.hero{min-height:262px;border-radius:22px;padding:26px}.hero h2{font-size:30px;max-width:330px}.hero-art{display:flex;width:130px;height:130px;font-size:63px;right:-38px;bottom:-41px}.side-stats{display:grid;grid-template-columns:1fr 125px;gap:0 5px;align-items:center;padding:18px 20px}.side-stats .card-top{align-self:start;align-items:flex-start;flex-direction:column;gap:8px}.side-stats .progress-donut{grid-column:2;grid-row:1/3;width:97px;height:97px;margin:0 0 0 auto}.side-stats .donut-label strong{font-size:24px}.side-stats .stats-foot{grid-column:1/3;margin-top:14px}.section-heading{margin-top:29px}.mode-grid{gap:11px}.mode-card{min-height:145px;padding:15px}.mode-icon{height:36px;width:36px;font-size:18px;margin-bottom:14px}.topic-grid{grid-template-columns:repeat(2,1fr);gap:10px}.topic-card{min-height:108px;padding:14px}.home-lower{grid-template-columns:1fr}.practice-panel{padding:21px 17px;border-radius:20px}.bar-track{margin-bottom:26px}.question-text{font-size:21px;line-height:1.4}.option{padding:13px 12px;font-size:12.5px}.feedback{padding:15px}.feedback-detail{grid-template-columns:1fr}.practice-actions{flex-wrap:wrap}.action-right{margin-left:auto}.selection-bar{align-items:stretch;flex-direction:column}.selection-bar .select{width:100%}.result-hero{padding:25px}.result-hero h2{font-size:21px}.result-hero .big-score{font-size:48px}.result-stats{gap:8px}.result-stat{padding:12px}.result-stat b{font-size:22px}.result-stat span{font-size:10px}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-tile{padding:13px}.stat-tile .stat-num{font-size:23px}.stat-tile p{font-size:10px}.notebook{padding:18px}.settings-panel{grid-template-columns:1fr}#toast{bottom:88px;right:15px;left:15px;text-align:center}.review-item{padding:17px}.heading-actions{display:none}}
@media(max-width:385px){.mode-grid{grid-template-columns:1fr 1fr}.mode-card{padding:12px}.mode-card b{font-size:12px}.hero h2{font-size:26px}.question-text{font-size:19px}.action-right .button{padding:11px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.note-editor{margin-top:12px}.note-editor summary{display:inline-flex;list-style:none;cursor:pointer;font-size:11px;font-weight:750;color:var(--accent);padding:5px 0}.note-editor summary::-webkit-details-marker{display:none}.note-editor textarea{margin-top:9px}.note-editor .button{margin-top:9px}
/* Mobile: Eingaben und Feedback dürfen nicht unter der festen Navigation landen. */
@media (max-width:760px){
  html{scroll-behavior:auto}
  main{padding-bottom:155px}
  .note-actions{align-items:stretch;flex-direction:column}
  .note-actions .action-right{display:flex;justify-content:stretch;margin-left:0;flex-wrap:wrap;width:100%}
  .note-actions .action-right .button{flex:1;min-height:44px}
  .note-box,.next-row,.practice-actions{scroll-margin-bottom:140px}
  .feedback{scroll-margin-top:15px}
  .bottom-nav{min-height:66px}
}
