@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap";@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAnEABMAAAAAEmwAAAldAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjQbglgcLj9IVkFSSgZgP1NUQVSBAgBwL2oRCAqJNIc/CxoAMIc0ATYCJAMwBCAFhyYHfQwHGw4QKB6FcZsTQlGEtq0ICYntNS4ens+r79zkJcWuD2PE/iNhCVeNtbJ2BnOBm36AingqNgXPWDpCqhak5lQshfptwMScqTgTcyDU7paMJvSGr1rtX/u1+h/Sb1FfxEMlZRKhnfhitojKnSOaGBrXaAzJkvkHz+ZVp5O0WUiE1Oxl2UjXTiaHHIsrKVdflsfPIUIObQZDkJEtakuKwcXXbn4HQW1XRzg6TbNhmGuunUaB+x5ddAO4H1imbgJ3LPhmUTlgL7oJrOFsJdm7hLrMneKA/32qVBNsFzMKqyoF1W2S1/6q42LcpjQx1RgPm8VGss3OWI1eturQvQAMyHwWsXWUDCVxFqWZXLE8qmuirItojXMIWVTzpnxxCmRKSYB5XUYYpoV0dR3N1S+kdyZwhY3kg5gJIWLuHbRtC7m4oILxsYdQ2U6ujuGubp7SAU4rKIamzcBFZOTsXtxsDAyY1ZB52Fv89GQ4rP9tt6b+Ww3qW2bKiYBcBkjLF0uAiVhCqAsMZYWxGIfuo1IjgI7RIgiRMuRDIMKTYFAWcyEvySKPc1aTKDJT/Oqti2zbrqUS1fKJEa42ZWhLoiCWHVMHchZ36nckGOm2tC+9RrebK9711rQ3veKinwcraYXw+GAbQOy9qa0DCnWlhpqmwEAMYegL/5xz4DSNcKm8EBFsox6Zz7kgGpErngOiGYlzrBGtKMg1oh0lOS/6omZ2TdERojIbANpgJDAFxEYgC5SyQp9MLrdPHkSQuyeU1wszMLoxyicPtPGLT2RfZGLNaCFDdEc2uyNbXc3uVucOiJMjr+BQj52nN2+GXfc1u/FvvPR59boiuq8I0bUHMFVSTyLfuKVr8toNWTPvvY67ao57NUthaXvkLogbdZ/cDd07T18W/uiO7puPth5/617o3lauf3vL63de24vZ3eo60q4z68nOfVWMbOEjRzNIYJovjWXb2CFcqHrTCYfxHHOdH3mx6LruW41baM7Vm2WezNmzveyW37k7av/RlNdirsxfFHvoVqhdka78yHII4qJ7XNhfd8++dV6hBNG9PuRgL0V8/3XU9tatLS51icm+UlheJeZEnaYxOlY7JQvLam3UKViKDZ2AJdiqSYykOIbzHAzDbNrZGNuW7of1Q32wPigMC6MohuoVfTFfiJp4Ykl+89mDnnfjQSe6GzVZj7Igem1KWeKgnHuqfBNrxPQwSU0MXi3JiFEqYyRyF50h4bi84chZYbtuhnHPgKd46ap7K+6VBhzDK8GxuPzexSmcU5KRh56Prn4/ZwxV2cHbXNe+RNw05Wq2NKhtAAUWl9NdQy2gCo7dGn9ocvb9+4FLut5i2G/m7vmx9si+x44d2e/Hmrv2fFvjopGjlcuv/WutTfuovEdg+R7HDno8Paj8IFkFzi8/0PqUVf0qDJcnBY6aa1UYKR0jZYxm5m7prl05Zo5sRZ9RGIXB/J8oitritOSdqa3I6hvbzPfPXLj03pQW86p1rXD/7EW550917jx4sjw3dmuP4s6k++dbMG1c/nJMX4aPzcmN710sNaKGBX83TJzOKZTifUu5OdP7kLn6wV9DBxYNp6zJ5TsPDZauTM0RUS+oIWXu7b+ozZdbntovD5ULE/lNw4m2AYlkc7+dK4X1xRQra52J+pLxopzsaYJsWjI+L6F/4/fP0zFKiQRIneJyCEJgPnuwEGAkkXIdhlnujq/DOYg4SoA2oG460LW+H165ILuZFkfAwUSsrlQCYUZvhNTcW/V2mTv3rNw5fBcsPXWrmxMRBxJg/PxwzCdPts+3gA2/qNb6i2w+fVKr81MwFCVhueXGZxV2TZ2+fbMXbJxR3InS4gNDAvtv1jCJLet0rM4YTUhGz1dZl2va08KLHgEHe4GcoIdS3jseNwJY6KdrO1jnPOo2W80zuTXsEGR2LvDINyWrNRbWOaya4zhoj9Y6ae0EsZuDF+aps3m1deyoaZg7Z9HyUXawW3K/JZUlHT++NM9H7+bD4wsyVd5bpoDPOmY4nWMs/p5xsMxxj3vSdVklVZiGnYsNOta/f5DScQUrofvqt97a1DUPrh1HmnMqqpKnUa/AvKMJ2Hj8OBi5wHGrw87I/5eE7WGxLgHbe8MJuHoy6GAJXWKWm2Pe4N5yVVG+UiFHZpbi7Gkzn/fDSdBumSu/fdvW0dpmbEo4FtGAgQIhW2fDHuOHvpiHaUvWjzKErWPK+W4uPsdL7+LN4Quz69AlW8R/u1zhDb8yFlY4WatmverCPBqaHtUzzab/Jn3RVjUhiH5rve8s7f8tS8xytVz/vCmZgLV30OhvzvYHDt2Hvp47EUUdbGsGboAcRSYG4b83ve1bJ3uPnsGTtd6tJe7W7089vCaMMsFSW63Jmoe6S2GSSeE5NC7P+f8fc6cqbu/8w/T0OJ7DF/9aC7cuiQO9efZ47su6/zjGq688eeXQJBhhjCnh/OZby2BJlwBDT+fx6vIrA/qMj2Czo8RiD+afZ+9GsuMaOhNguo1wfqutNXVUZlRUTEZOGOxfUbz/fErK+fNv/OTMS+BY3N+RZNZU1VV5lQPJiVUG8+DKtW/efvzW1Tf0Nr++fLj+9lcff/7qs8cDBFKvfBk04m6JE/6bNbP2IuCd21eOAOC9CdmLTS0mhs271hRQykDwlymmuaWGaRkAAmq3iyfhyXQUZj6aO9L8czijWA/P9wsfb4jtqVfWFsMhaNuTg+1YmirmAiPCl6qlBi6PdwWHqXEaZzpxN86tGNquSYkLo6Mal6YG6dGxdDjWDdqRcTgM9QFnmj4l+UChw0nbm7gw0GlcqnsQ1wy2sUt9eIBoGG0GbhqvHbeMlY/bJhLjPiOFyDr0OwQbKdOE1qxFlf7idVKjlSE1a1Cpa5s4frmqNKp9gXSoHFijUQE5E6+h0aAMXVCaWgMq6hUlpJUVJCNbNdEVMhWqGF7Dy64txAYWt6lAK2gLdUADtL1tgwGa0WoMlClB2sqtDwI5oU1e2qwJim8AATY+DT5YriTpkttt3PYr1zu6j8RqMrvQfHMUFxvHIC+jHFS1aEeyGKgjFSFVSnO9SPN5ZaKirl1EW0mtUaujGuW+tEKzxmtKVOvyM61UxndvHJcbjQFDrRYA1xW0MdWZYFg5mJGiiDJqUY9G2b87XdVeZSP797Gl1BVdVpqDa9l8UkoGi8dsNLIpKR/kFuKySf5uxDxyM2siAA==)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-cyrillic-wght-normal-C1zWlyYG.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-greek-wght-normal--KUh6X2k.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-vietnamese-wght-normal-CvPE_C53.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-latin-ext-wght-normal-D62tbE3i.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-latin-wght-normal-DWlqe-xm.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans Variable;font-style:normal;font-display:swap;font-weight:100 1000;src:url(./dm-sans-latin-ext-wght-normal-D1bw2c55.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans Variable;font-style:normal;font-display:swap;font-weight:100 1000;src:url(./dm-sans-latin-wght-normal-DeBecvsH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color:#111;font-synthesis:none;text-rendering:optimizelegibility;font-optical-sizing:auto;background:#fff;font-family:DM Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-weight:400}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.app{--bg:#fff;--surface:#fff;--surface2:#f3f3f3;--text:#111;--muted:#626262;--line:#d6d6d6;--green:#111;--green2:#111;--soft:#ededed;background:var(--bg);min-height:100vh;color:var(--text);padding-bottom:50px}.app[data-theme=dark]{--bg:#292929;--surface:#383838;--surface2:#484848;--text:#fff;--muted:#d0d0d0;--line:#666;--green:#595959;--green2:#dedede;--soft:#4b4b4b}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;max-width:1120px;height:72px;margin:auto;padding:0 28px;display:flex}.brand-lockup{color:var(--text);letter-spacing:-1px;background:0 0;border:0;align-items:center;gap:10px;font-family:Manrope,sans-serif;font-size:22px;font-weight:800;display:flex}.brand-icon{background:var(--soft);width:40px;height:40px;color:var(--green2);border-radius:13px;place-items:center;display:grid}.top-actions{align-items:center;gap:16px;display:flex}.user-chip{color:var(--muted);align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.icon-button,.small-icon{border:1px solid var(--line);background:var(--surface);width:42px;height:42px;color:var(--text);border-radius:12px;place-items:center;display:grid}.icon-button svg{width:20px}.main{width:min(100% - 40px,850px);margin:0 auto;padding:42px 0 60px}.overline{color:var(--green2);letter-spacing:1.8px;margin:0 0 10px;font-size:10px;font-weight:800}.welcome{padding:14px 0 28px}.welcome h1,.section-heading h1{color:var(--text);letter-spacing:-1.3px;margin:0;font-family:Manrope,sans-serif;font-size:max(30px,min(5vw,42px));line-height:1.12}.welcome>p:last-child,.section-heading>p:last-child{display:none}.mode-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.mode-card{border:1px solid var(--line);background:var(--surface);min-height:112px;color:var(--text);text-align:left;border-radius:18px;align-items:center;gap:15px;padding:22px;display:flex;box-shadow:0 5px 20px #00000008}.mode-card>svg{color:var(--muted);margin-left:auto}.mode-primary{background:var(--green);border-color:var(--green);color:#fff}.mode-primary>svg{color:#d9eade}.mode-icon{background:var(--soft);width:48px;height:48px;color:var(--green2);border-radius:15px;flex-shrink:0;place-items:center;display:grid}.mode-primary .mode-icon{color:#fff;background:#ffffff20}.mode-copy{flex-direction:column;gap:6px;display:flex}.mode-copy strong{font-family:Manrope,sans-serif;font-size:17px}.mode-copy small{color:var(--muted);font-size:12px;line-height:1.4}.mode-primary .mode-copy small{color:#d5e8db}.stats-grid{display:none}.stat-card{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;gap:5px;padding:16px;display:flex}.stat-card strong{font-family:Manrope,sans-serif;font-size:24px}.stat-card span{color:var(--muted);font-size:11px}.admin-shortcut{color:var(--green2);background:0 0;border:0;align-items:center;gap:9px;margin-top:22px;padding:12px 0;font-size:13px;font-weight:700;display:flex}.admin-shortcut svg:last-child{margin-left:4px}.back-link{color:var(--muted);background:0 0;border:0;align-items:center;gap:6px;margin:0 0 24px;padding:7px 0;font-size:13px;font-weight:700;display:inline-flex}.section-heading{margin-bottom:23px}.section-heading h1{font-size:max(30px,min(5vw,40px))}.section-heading>p:last-child{margin-bottom:0}.topic-list{flex-direction:column;gap:9px;margin-bottom:20px;display:flex}.topic-row{border:1px solid var(--line);background:var(--surface);width:100%;min-height:70px;color:var(--text);text-align:left;border-radius:13px;align-items:center;gap:13px;padding:12px 15px;display:flex}.topic-symbol{background:var(--soft);width:38px;height:38px;color:var(--green2);border-radius:11px;place-items:center;display:grid}.topic-name{flex-direction:column;flex:1;gap:3px;display:flex}.topic-name strong{font-size:14px}.topic-name small{color:var(--muted);font-size:11px}.select-mark{border:1px solid var(--line);color:#fff;border-radius:7px;place-items:center;width:23px;height:23px;display:grid}.selected .select-mark{background:var(--green2);border-color:var(--green2)}.btn{border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:0 16px;font-size:13px;font-weight:750;display:inline-flex}.btn-primary{background:var(--green);color:#fff}.btn-secondary{border-color:var(--line);background:var(--surface);color:var(--text)}.full{width:100%}.reader-topbar{justify-content:flex-start;gap:12px}.reader-topbar .brand-lockup{margin-left:0}.reader-back{width:38px;height:42px;color:var(--text);background:0 0;border:0;place-items:center;padding:0;display:grid}.reader-main{flex-direction:column;flex:1;width:100%;max-width:none;min-height:0;margin:0;padding:20px 28px 0;display:flex}.app:has(.reader-view){flex-direction:column;min-height:100dvh;padding-bottom:0;display:flex}.reader-view{flex-direction:column;flex:1;min-height:0;display:flex}.reader-meta{color:var(--muted);margin:0 0 10px;font-size:12px;font-weight:600}.reader-paper{min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex:1;margin:0;padding:22px 0;overflow:auto}.reader-pagination{padding:12px 0 max(12px,env(safe-area-inset-bottom));background:0 0;flex:none;justify-content:center;align-items:center;gap:7px;margin:0;display:flex}.page-circle{background:var(--surface2);width:34px;height:34px;color:var(--text);border:0;border-radius:50%;flex:0 0 34px;place-items:center;font-size:14px;font-weight:700;display:grid}.page-circle.page-arrow{color:var(--muted);background:0 0}.page-circle:disabled{opacity:.3;cursor:not-allowed}@media (max-width:620px){.reader-main{padding:14px 20px 0}.reader-paper{padding:12px 0}.reader-pagination{padding-bottom:max(12px,env(safe-area-inset-bottom));gap:5px}.page-circle{flex-basis:31px;width:31px;height:31px;font-size:13px}.reader-topbar{height:64px;padding:0 17px}}.reader-paper{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-height:320px;padding:max(22px,min(5vw,48px));box-shadow:0 8px 30px #00000008}.reader-paper h1{letter-spacing:-1px;margin:0 0 25px;font-family:Manrope,sans-serif;font-size:max(27px,min(5vw,38px));line-height:1.2}.reader-block{margin:0 0 20px}.reader-block p,.reader-paper>p{color:var(--text);white-space:pre-wrap;font-size:15px;line-height:1.85}.reader-block img,.reader-block video{border-radius:10px;max-width:100%;max-height:520px;margin:auto;display:block}.table-wrap{overflow:auto}.table-wrap table{border-collapse:collapse;width:100%;font-size:13px}.table-wrap th,.table-wrap td{border:1px solid var(--line);text-align:left;padding:11px}.table-wrap th{background:var(--soft)}.page-controls{justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.page-controls>span{color:var(--muted);font-size:12px;font-weight:700}.empty-panel{border:1px dashed var(--line);background:var(--surface);text-align:center;color:var(--muted);border-radius:16px;flex-direction:column;align-items:center;gap:10px;padding:45px 20px;display:flex}.empty-panel h2{color:var(--text);margin:0;font-family:Manrope,sans-serif;font-size:21px}.empty-panel p{margin:0 0 8px;font-size:13px;line-height:1.6}.question-card{border:1px solid var(--line);background:var(--surface);border-radius:17px;margin:22px 0 14px;padding:max(22px,min(5vw,36px))}.tag{background:var(--soft);color:var(--green2);border-radius:7px;padding:6px 9px;font-size:10px;font-weight:800;display:inline-flex}.question-card .overline{margin-top:27px}.question-card h2{margin:0;font-family:Manrope,sans-serif;font-size:max(21px,min(4vw,29px));line-height:1.4}.answer-box{background:var(--soft);border-radius:12px;margin-top:25px;padding:17px}.answer-box strong{color:var(--green2);font-size:12px}.answer-box p{margin-bottom:0;font-size:14px;line-height:1.75}.rating-actions{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.rating-actions p{width:100%;color:var(--muted);margin:10px 0 2px;font-size:12px}.admin-tabs{background:var(--surface2);border-radius:12px;gap:6px;margin:0 0 22px;padding:5px;display:flex}.admin-tabs button{min-height:42px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;font-size:13px;font-weight:750}.admin-toolbar{justify-content:space-between;align-items:center;gap:12px;margin:18px 0 13px;display:flex}.admin-toolbar h2{margin:0;font-family:Manrope,sans-serif;font-size:19px}.chapter-list{flex-direction:column;gap:10px;display:flex}.chapter-card{border:1px solid var(--line);background:var(--surface);border-radius:13px;overflow:hidden}.chapter-head{width:100%;color:var(--text);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:15px;display:flex}.chapter-head>span{grid-template-columns:30px auto;align-items:center;gap:2px 10px;display:grid}.chapter-head>span>svg{color:var(--green2);grid-row:span 2}.chapter-head strong{font-size:14px}.chapter-head small{color:var(--muted);font-size:11px}.chapter-head>svg{color:var(--muted);transition:transform .15s}.chapter-head>svg.rotate{transform:rotate(90deg)}.chapter-pages{border-top:1px solid var(--line);padding:0 14px 14px}.admin-page-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:12px 2px;font-size:13px;display:flex}.admin-page-row>div{gap:5px;display:flex}.admin-page-row small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.small-icon{border-radius:9px;width:34px;height:34px}.small-icon.danger{color:#b45d54}.add-page-link,.text-action{color:var(--green2);background:0 0;border:0;align-items:center;gap:6px;margin:12px 8px 0 0;padding:7px 0;font-size:12px;font-weight:750;display:inline-flex}.editor-form{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:max(16px,min(4vw,26px))}.editor-head{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.editor-head h2{margin:0;font-family:Manrope,sans-serif;font-size:23px}.editor-head .overline{margin-bottom:4px}.field{color:var(--muted);margin:14px 0;font-size:12px;font-weight:750;display:block}.field input,.field textarea,.field select,.category-box input{border:1px solid var(--line);background:var(--bg);width:100%;color:var(--text);border-radius:9px;outline:none;margin-top:7px;padding:12px 13px;font-size:14px;display:block}.field input,.field select{height:46px}.field textarea{resize:vertical;line-height:1.65}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green2);box-shadow:0 0 0 3px var(--soft)}.insert-toolbar{border:1px solid var(--line);background:var(--surface2);border-radius:11px;flex-wrap:wrap;align-items:center;gap:7px;margin:18px 0 12px;padding:10px;display:flex}.insert-toolbar>span{color:var(--muted);margin:0 6px;font-size:11px;font-weight:800}.insert-toolbar button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;align-items:center;gap:6px;padding:8px 10px;font-size:12px;font-weight:700;display:flex}.paper-editor{border:1px solid var(--line);background:var(--bg);border-radius:10px;min-height:280px;padding:max(14px,min(3vw,24px))}.paper-empty{min-height:235px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}.paper-empty svg{color:var(--green2)}.paper-empty strong{color:var(--text);font-size:14px}.block-editor{border-bottom:1px solid var(--line);margin-bottom:17px;padding-bottom:15px}.block-title{color:var(--muted);justify-content:space-between;align-items:center;margin-bottom:9px;font-size:11px;font-weight:800;display:flex}.block-editor textarea,.url-input{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);resize:vertical;border-radius:8px;padding:12px;font-size:14px;line-height:1.7;display:block}.grid-table{flex-direction:column;gap:6px;display:flex;overflow:auto}.grid-table-row{gap:6px;min-width:270px;display:flex}.grid-table-row input{border:1px solid var(--line);background:var(--surface);min-width:0;height:40px;color:var(--text);border-radius:7px;flex:1;padding:0 9px;font-size:12px}.grid-table-row:first-child input{background:var(--soft);font-weight:750}.url-input{height:44px}.media-preview{border-radius:8px;max-width:100%;max-height:260px;margin:12px auto;display:block}.editor-settings{border:1px solid var(--line);background:var(--surface2);border-radius:10px;margin-top:15px;padding:12px 14px}.editor-settings summary{cursor:pointer;color:var(--text);font-size:12px;font-weight:750}.editor-settings .field{margin-bottom:0}.editor-actions{background:var(--surface);justify-content:space-between;gap:9px;margin-top:18px;padding-top:12px;display:flex;position:sticky;bottom:0}.category-box{border:1px solid var(--line);background:var(--surface);border-radius:13px;margin-top:25px;padding:17px}.category-box h3{margin:0 0 12px;font-size:14px}.category-box form{gap:8px;display:flex}.category-box input{flex:1;min-width:0;height:44px;margin:0}.notice{z-index:30;border:1px solid var(--line);background:var(--surface);max-width:calc(100% - 44px);color:var(--text);border-radius:11px;align-items:center;gap:15px;padding:13px 15px;font-size:13px;display:flex;position:fixed;bottom:20px;right:22px;box-shadow:0 8px 30px #0002}.notice button{color:var(--muted);background:0 0;border:0}.scrim{z-index:20;background:#101a1390;border:0;position:fixed;top:0;bottom:0;left:0;right:0}.drawer{z-index:21;background:var(--surface);width:min(360px,88vw);padding:22px;animation:.18s ease-out slidein;position:fixed;top:0;bottom:0;right:0;box-shadow:-15px 0 45px #0002}@keyframes slidein{0%{opacity:.5;transform:translate(18px)}to{opacity:1;transform:none}}.drawer-head{justify-content:space-between;align-items:center;display:flex}.drawer-head .brand-lockup{font-size:18px}.drawer-head .brand-icon{width:34px;height:34px}.drawer-user{background:var(--surface2);border-radius:11px;flex-direction:column;gap:4px;margin:30px 0 18px;padding:15px;display:flex}.drawer-user strong{font-size:14px}.drawer-user span{color:var(--muted);font-size:11px}.drawer-link{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;padding:13px 10px;font-size:13px;font-weight:700;display:flex}.drawer-divider{border-top:1px solid var(--line);height:1px;margin:15px 0}.theme-row{color:var(--text);justify-content:space-between;align-items:center;padding:10px 4px;font-size:13px;font-weight:700;display:flex}.theme-row>span{align-items:center;gap:9px;display:flex}.switch{background:#aab5ac;border:0;border-radius:20px;width:46px;height:26px;padding:3px}.switch i{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;display:block}.switch.on i{transform:translate(20px)}.logout{color:#bd655d;margin-top:22px}.login-screen{--green:#236344;--green2:#347d58;color:#26392e;background:radial-gradient(at 15% 10%,#e3efe6 0,#0000 40%),#f5f7f4;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:24px 18px;display:flex}.login-panel{background:#fff;border:1px solid #e0e8e1;border-radius:22px;width:min(100%,480px);padding:max(24px,min(6vw,44px));box-shadow:0 18px 55px #00000012}.login-panel .brand-lockup{margin-bottom:38px}.login-copy .overline{margin-bottom:12px}.login-copy h1{letter-spacing:-1.6px;margin:0;font-family:Manrope,sans-serif;font-size:max(32px,min(7vw,43px));line-height:1.12}.login-copy h1 em{color:#347d58;font-style:normal}.login-copy>p:last-child{color:#77867c;font-size:13px;line-height:1.6}.login-form{flex-direction:column;gap:13px;margin-top:22px;display:flex}.login-form .btn-primary{visibility:visible;opacity:1;z-index:2;flex:0 0 54px;min-height:54px;display:flex;position:relative}.login-form label{color:#516358;font-size:12px;font-weight:750}.login-form input{color:#26392e;background:#fbfcfb;border:1px solid #dfe7e0;border-radius:9px;width:100%;height:49px;margin-top:7px;padding:0 13px;font-size:14px;display:block}.login-form input:focus{border-color:#79a989;outline:2px solid #c4dfcb}.error-message{color:#b44f4a;margin:0;font-size:12px}.login-hint{color:#87948b;text-align:center;margin:2px 0 0;font-size:10px}.login-footer{color:#87948b;letter-spacing:1.5px;margin-top:22px;font-size:9px;font-weight:800}@media (max-width:620px){.login-screen{justify-content:flex-start;padding-top:max(28px,6vh)}.login-panel{margin:auto 0}.topbar{height:64px;padding:0 17px}.brand-lockup{font-size:19px}.brand-icon{width:36px;height:36px}.user-chip{font-size:0}.user-chip svg{width:18px}.main{width:calc(100% - 34px);padding:30px 0 44px}.welcome{padding-top:10px}.mode-grid{grid-template-columns:1fr;gap:10px}.mode-card{min-height:112px;padding:16px}.stats-grid{gap:7px}.stat-card{padding:12px 9px}.stat-card strong{font-size:21px}.stat-card span{font-size:10px;line-height:1.35}.admin-toolbar{align-items:flex-start}.admin-toolbar .btn{min-height:40px;padding:0 10px;font-size:11px}.insert-toolbar{grid-template-columns:repeat(4,1fr);display:grid}.insert-toolbar>span{grid-column:1/-1}.insert-toolbar button{flex-direction:column;justify-content:center;gap:4px;padding:9px 2px;font-size:10px}.category-box form{flex-direction:column}.editor-actions .btn{flex:1;padding:0 9px}.page-controls .btn{padding:0 11px;font-size:11px}.login-panel{border-radius:18px}.login-panel .brand-lockup{margin-bottom:30px}}.reader-topbar{width:100%;margin:0 auto}.reader-main{box-sizing:border-box;align-self:stretch;width:100%;min-width:0;padding:20px max(18px,min(5vw,44px)) 12px}.reader-view{width:100%;max-width:820px;min-height:0;margin:0 auto}.reader-paper{flex:none;min-height:320px;overflow:visible}.reader-pagination{border-top:1px solid var(--line);background:var(--bg);margin-top:auto}@media (max-width:620px){.reader-topbar{width:100%;height:64px;min-height:64px;margin:0;padding:0 18px}.reader-main{padding:16px 16px 10px}.reader-view{max-width:none}.reader-meta{margin:0 2px 12px}.reader-paper{border-radius:15px;min-height:0;padding:20px}.reader-pagination{padding:14px 0 max(14px,env(safe-area-inset-bottom));gap:6px}}.home-view .mode-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}@media (max-width:620px){.home-view .mode-grid{grid-template-columns:1fr}}.reader-main{padding-bottom:calc(88px + env(safe-area-inset-bottom))}.reader-pagination{left:0;right:0;z-index:25;width:100%;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);margin:0;position:fixed;bottom:0;box-shadow:0 -8px 24px #00000018}@media (max-width:620px){.reader-main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.reader-pagination{padding:12px 16px max(14px,env(safe-area-inset-bottom))}}html,body,*{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}body::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}@media (pointer:coarse){html,body{touch-action:pan-x pan-y}}@supports (-webkit-touch-callout:none){input,select,textarea{font-size:16px!important}}.reader-pagination{z-index:1000;width:auto;position:fixed;bottom:0;left:0;right:0}.topbar{width:100%;max-width:none}.main{width:100%;max-width:none;padding-left:max(16px,min(2.5vw,36px));padding-right:max(16px,min(2.5vw,36px))}.reader-view{width:100%;max-width:none}@media (max-width:620px){.main{width:100%;padding-left:16px;padding-right:16px}}.task-category-list{flex-direction:column;gap:12px;margin-top:16px;display:flex}.task-category-card{padding:0 16px}.task-category-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:14px 0;display:flex}.task-category-head>div{flex-direction:column;gap:4px;min-width:0;display:flex}.task-category-head strong{font-size:14px}.task-category-head small{color:var(--muted);font-size:11px}.task-category-head .btn{min-height:40px;padding:0 12px;font-size:12px}.task-category-card .task-admin-list{flex-direction:column;display:flex}.task-category-card .admin-page-row:last-child{border-bottom:0}.task-category-empty{color:var(--muted);margin:0;padding:16px 0;font-size:13px}@media (max-width:620px){.task-category-head{flex-direction:column;align-items:stretch}.task-category-head .btn{width:100%}}.reader-pagination{grid-template-columns:34px 198px 34px;justify-content:center;align-items:center;gap:7px;display:grid}.reader-pagination>.page-arrow:first-child{grid-area:1/1;justify-self:center;position:static}.reader-pagination>.page-arrow:last-child{grid-area:1/3;justify-self:center;position:static}.page-indicators{grid-column:2;justify-content:center;align-items:center;gap:7px;min-width:198px;display:flex}@media (max-width:620px){.reader-pagination{grid-template-columns:31px 179px 31px;gap:6px}.page-indicators{gap:6px;min-width:179px}}.reader-chapter-title{min-width:0;color:var(--text);letter-spacing:-.35px;text-overflow:ellipsis;white-space:nowrap;flex:1;font-family:Manrope,sans-serif;font-size:max(17px,min(3vw,23px));font-weight:800;overflow:hidden}.reader-block.has-text-border{border-radius:8px;padding:12px}.text-format-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding-top:12px;display:grid}.format-control{min-width:0;color:var(--muted);flex-direction:column;gap:6px;font-size:11px;font-weight:750;display:flex}.format-control input,.format-control select{border:1px solid var(--line);background:var(--surface);width:100%;height:40px;color:var(--text);font:inherit;border-radius:8px;margin:0;padding:7px 9px}.format-control input[type=color]{padding:4px}.format-control input[type=number]{font-size:13px}.text-style-settings{margin-top:12px}.media-upload-field input[type=file]{height:auto;padding:9px;font-size:12px}.media-upload-note{color:var(--muted);margin-top:-7px;font-size:11px;display:block}.user-management-heading{justify-content:space-between;align-items:center;gap:18px;margin:20px 0 18px;display:flex}.user-management-heading .overline{margin-bottom:5px}.user-management-heading h2{margin:0;font-family:Manrope,sans-serif;font-size:22px}.user-management-heading>div>p:last-child{color:var(--muted);margin:5px 0 0;font-size:13px}.user-management-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.user-count{border:1px solid var(--line);background:var(--surface);color:var(--muted);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:9px 12px;font-size:12px;font-weight:750;display:inline-flex}.user-admin-list{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;margin:0;padding:20px 22px}.user-list-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.user-list-heading h3{margin:0;font-size:16px}.user-list-heading p{color:var(--muted);margin:4px 0 0;font-size:12px;line-height:1.5}.user-admin-note{border:1px solid var(--line);background:var(--surface2);color:var(--muted);border-radius:10px;align-items:center;gap:8px;margin:14px 0;padding:10px 12px;font-size:12px;line-height:1.45;display:flex}.chapter-head[draggable=true]{cursor:grab}.chapter-head[draggable=true]:active{cursor:grabbing}.chapter-drag-handle{color:var(--muted);cursor:grab;touch-action:none;flex:none}.chapter-head-actions,.chapter-sort-controls{flex:none;align-items:center;gap:4px;display:flex}.chapter-sort-controls .small-icon{border:1px solid var(--line);background:var(--surface);width:30px;height:30px;color:var(--muted)}.chapter-sort-controls .small-icon:disabled{opacity:.32}.chapter-card.is-chapter-dragging{opacity:.48}.chapter-card.chapter-drop-before{box-shadow:inset 0 3px 0 var(--green2)}.chapter-card.chapter-drop-after{box-shadow:inset 0 -3px 0 var(--green2)}.user-account-list{margin-top:6px}.user-admin-entry{border-bottom:1px solid var(--line)}.user-account-row{justify-content:space-between;align-items:center;gap:14px;padding:14px 0;display:flex}.user-account-details{align-items:center;gap:11px;min-width:0;display:flex}.user-avatar{background:var(--surface2);width:40px;height:40px;color:var(--green2);border-radius:12px;flex:none;place-items:center;font-size:14px;font-weight:800;display:grid}.user-account-name{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.user-account-name strong{font-size:14px}.user-account-details small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.user-role-badge{background:var(--surface2);color:var(--muted);border-radius:999px;padding:4px 8px;font-size:10px;font-weight:750;display:inline-flex}.user-role-badge.is-admin{background:var(--soft);color:var(--green2)}.user-account-manage-button{border:1px solid var(--line);background:var(--surface);min-height:38px;color:var(--text);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:0 12px;font-size:12px;font-weight:750;display:inline-flex}.user-account-manage-button:hover,.user-account-manage-button[aria-expanded=true]{background:var(--surface2)}.user-account-management{border:1px solid var(--line);background:var(--surface2);border-radius:12px;flex-direction:column;gap:12px;margin:0 0 14px 51px;padding:14px;display:flex}.user-account-access{justify-content:space-between;align-items:center;gap:14px;display:flex}.user-account-access>div{flex-direction:column;gap:4px;min-width:0;display:flex}.user-account-access strong{font-size:12px}.user-account-access span{color:var(--muted);font-size:11px;line-height:1.4}.user-admin-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.user-admin-actions .btn{min-height:38px;padding:0 12px;font-size:12px}.btn-danger{color:#a34740;background:#fff8f7;border:1px solid #f0d6d2;border-radius:10px;min-height:38px;padding:0 12px;font-size:12px;font-weight:750}.user-password-form{border-top:1px solid var(--line);align-items:flex-end;gap:10px;padding-top:12px;display:flex}.user-password-form .field{flex:1;margin:0}.user-create-overlay{z-index:1500;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#101714a8;place-items:center;padding:20px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.user-create-dialog{border:1px solid var(--line);background:var(--surface);border-radius:18px;width:min(100%,480px);padding:24px;box-shadow:0 24px 80px #0004}.user-create-dialog-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.user-create-dialog-head .overline{margin-bottom:6px}.user-create-dialog-head h2{margin:0;font-family:Manrope,sans-serif;font-size:22px}.user-create-dialog-copy{color:var(--muted);margin:12px 0 20px;font-size:13px;line-height:1.55}.user-create-dialog-form .field{margin:14px 0}.user-create-dialog-actions{justify-content:flex-end;gap:9px;margin-top:22px;display:flex}@media (max-width:620px){.user-management-heading{flex-direction:column;align-items:flex-start}.user-management-tools{justify-content:space-between;width:100%}.user-management-tools>.btn{flex:1}.user-admin-list{padding:16px}.user-account-manage-button{min-height:36px;padding:0 9px}.user-account-management{margin-left:0;padding:12px}.user-account-access{flex-direction:column;align-items:stretch}.user-admin-actions{width:100%}.user-admin-actions .btn{flex:1}.user-password-form{flex-direction:column;align-items:stretch}.user-create-dialog{padding:20px}.user-create-dialog-actions .btn{flex:1}}.home-sync-toolbar{align-items:center;gap:10px;margin:-12px 0 22px;display:flex}.home-sync-toolbar .btn{min-height:39px}.home-sync-toolbar>span{color:var(--muted);font-size:12px}.sync-icon-spinning{animation:1.1s linear infinite sync-rotate}@keyframes sync-rotate{to{transform:rotate(360deg)}}.sync-overlay{z-index:1600;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#101714a8;place-items:center;padding:18px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.sync-dialog{border:1px solid var(--line);background:var(--surface);border-radius:18px;width:min(100%,620px);max-height:calc(100dvh - 36px);padding:22px;overflow:auto;box-shadow:0 24px 80px #0004}.sync-dialog-head{align-items:center;gap:12px;display:flex}.sync-dialog-icon{background:var(--soft);width:42px;height:42px;color:var(--green2);border-radius:12px;flex:none;place-items:center;display:grid}.sync-dialog-head>div{flex:1}.sync-dialog-head .overline{margin-bottom:4px}.sync-dialog-head h2{margin:0;font-family:Manrope,sans-serif;font-size:22px}.sync-intro{color:var(--muted);margin:14px 0 18px;font-size:13px;line-height:1.55}.sync-progress{color:var(--muted);align-items:center;gap:10px;padding:18px 0;font-size:13px;display:flex}.sync-progress .offline-spinner{width:20px;height:20px;margin:0}.sync-summary{flex-wrap:wrap;gap:8px;margin:0 0 16px;display:flex}.sync-summary span{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:750}.sync-change-groups{flex-direction:column;gap:12px;max-height:min(52vh,480px);display:flex;overflow:auto}.sync-change-group{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:13px}.sync-change-group h3{justify-content:space-between;align-items:center;margin:0 0 8px;font-size:13px;display:flex}.sync-change-group h3>span{background:var(--surface2);border-radius:999px;place-items:center;min-width:24px;height:24px;padding:0 6px;font-size:11px;display:grid}.sync-change-group ul{flex-direction:column;gap:7px;margin:0;padding:0;list-style:none;display:flex}.sync-change-group li{background:var(--surface2);border-radius:8px;flex-direction:column;gap:3px;padding:9px 10px;display:flex}.sync-change-group li>div{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.sync-change-group li strong{color:var(--muted);text-transform:uppercase;letter-spacing:.35px;font-size:10px}.sync-change-group li span{overflow-wrap:anywhere;color:var(--text);font-size:12px;font-weight:700}.sync-change-group li small{color:var(--muted);font-size:11px}.sync-added h3{color:#28724e}.sync-removed h3{color:#a34740}.sync-updated h3{color:#8a6717}.app[data-theme=dark] .sync-added h3{color:#8bd1a7}.app[data-theme=dark] .sync-removed h3{color:#efa39b}.app[data-theme=dark] .sync-updated h3{color:#e7c875}.sync-empty{border:1px solid var(--line);background:var(--surface2);color:var(--green2);border-radius:12px;align-items:center;gap:12px;padding:16px;display:flex}.sync-empty>div{flex-direction:column;gap:4px;display:flex}.sync-empty strong{color:var(--text);font-size:14px}.sync-empty span{color:var(--muted);font-size:12px}.sync-timestamp{color:var(--muted);text-align:right;margin:12px 0 0;font-size:11px}.sync-dialog-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;display:flex}@media (max-width:620px){.home-sync-toolbar{flex-direction:column;align-items:flex-start;margin:-12px 0 20px}.sync-dialog{padding:18px}.sync-dialog-actions .btn{flex:1}.sync-timestamp{text-align:left}}.mode-sync-card .mode-icon{color:var(--green2);background:#e8f3ec}.mode-sync-card:disabled{cursor:wait;opacity:.72}.chapter-release-toggle{border:1px solid #0000;border-radius:10px;flex:none;place-items:center;width:34px;height:34px;transition:background .16s,border-color .16s,transform .16s;display:grid}.chapter-release-toggle:hover{transform:translateY(-1px)}.chapter-release-toggle.is-locked{color:#bd3f3f;background:#fff1f1;border-color:#efc2c2}.chapter-release-toggle.is-published{color:#197345;background:#e8f6ed;border-color:#b8dfc5}.chapter-release-toggle.is-test{color:#5b4400;background:#f7d96d;border-color:#d5ae31;box-shadow:inset 0 0 0 1px #fbe9a2}.app[data-theme=dark] .mode-sync-card .mode-icon{color:#a8d8b9;background:#2d3932}.app[data-theme=dark] .chapter-release-toggle.is-locked{color:#ff9e9e;background:#422d2f;border-color:#714647}.app[data-theme=dark] .chapter-release-toggle.is-published{color:#8ee1aa;background:#263f30;border-color:#35684a}.app[data-theme=dark] .chapter-release-toggle.is-test{color:#fff0a5;background:#6b5819;border-color:#b99525}.user-admin-entry{border:1px solid var(--line);background:var(--surface2);border-radius:13px;flex-direction:column;gap:12px;margin:12px 0;padding:16px;display:flex}.user-admin-entry:first-child{margin-top:4px}.user-last-admin-badge{color:#8a6717;background:#fff8e8;border:1px solid #e8d7ad;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:750;display:inline-flex}.user-admin-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.user-admin-actions .btn,.user-admin-actions .btn-danger{white-space:normal;min-height:40px}.user-admin-actions .btn:disabled,.user-admin-actions .btn-danger:disabled{cursor:not-allowed;opacity:.5}.user-password-form{padding-top:12px}.app[data-theme=dark] .user-last-admin-badge{color:#edcf7a;background:#403722;border-color:#66532f}@media (max-width:620px){.user-admin-entry{gap:11px;padding:13px}.user-admin-actions{grid-template-columns:1fr 1fr}.user-admin-actions>:first-child{grid-column:1/-1}.user-admin-actions .btn,.user-admin-actions .btn-danger{min-height:40px;padding:7px 9px;font-size:11px}.user-password-form .btn{width:100%}}.chapter-head-actions{flex:none;grid-template-columns:repeat(4,34px);align-items:center;gap:6px;display:grid}.chapter-head-actions.has-test-people{grid-template-columns:repeat(5,34px)}.chapter-head-actions .chapter-sort-controls{display:contents}.chapter-head-actions .small-icon{width:34px;height:34px}.page-row-actions{flex:none;grid-template-columns:repeat(4,34px);align-items:center;gap:6px;display:grid}.page-sort-controls{display:contents}.page-row-actions .small-icon{width:34px;height:34px}.media-preview{max-height:360px}.reader-media{-o-object-fit:contain;object-fit:contain;border-radius:10px;max-width:100%;max-height:min(68vh,720px);margin:12px auto;display:block}@media (max-width:620px){.text-format-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reader-chapter-title{font-size:18px}}.upload-overlay{z-index:2000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#102018a8;place-items:center;padding:20px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.upload-dialog{border:1px solid var(--line);background:var(--surface);text-align:center;border-radius:20px;width:min(100%,430px);padding:30px;box-shadow:0 24px 80px #0003}.upload-spinner{border:4px solid var(--soft);border-top-color:var(--green2);border-radius:50%;width:48px;height:48px;margin:0 auto 18px;animation:.8s linear infinite upload-spin;display:block}@keyframes upload-spin{to{transform:rotate(360deg)}}.upload-dialog>.overline{margin-bottom:7px}.upload-dialog h2{margin:0;font-family:Manrope,sans-serif;font-size:23px}.upload-file-name{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:8px 0 20px;font-size:13px;overflow:hidden}.upload-progress-track{background:var(--surface2);border-radius:999px;height:9px;overflow:hidden}.upload-progress-track>span{border-radius:inherit;background:var(--green2);height:100%;transition:width .15s;display:block}.upload-progress-track.is-indeterminate>span{animation:1.2s ease-in-out infinite upload-progress}@keyframes upload-progress{0%{transform:translate(-110%)}to{transform:translate(300%)}}.upload-progress-caption{color:var(--muted);justify-content:space-between;gap:12px;margin-top:9px;font-size:11px;font-weight:700;display:flex}.upload-dialog>small{color:var(--muted);margin-top:18px;font-size:11px;display:block}@media (prefers-reduced-motion:reduce){.upload-spinner,.upload-progress-track.is-indeterminate>span{animation-duration:2.5s}}@media (max-width:620px){.upload-dialog{border-radius:18px;padding:24px 20px}}.editor-section-heading{justify-content:space-between;align-items:baseline;gap:12px;margin-top:22px;display:flex}.editor-section-heading h3{color:var(--text);margin:0;font-family:Manrope,sans-serif;font-size:16px}.editor-section-heading p{color:var(--muted);margin:0;font-size:12px}.editor-form .field{margin:12px 0}.editor-form .insert-toolbar{margin-top:12px}.paper-editor:has(.block-editor){min-height:0}.block-editor{border:1px solid var(--line);background:var(--surface);border-radius:11px;margin:0 0 12px;padding:15px}.block-editor:last-child{margin-bottom:0}.block-title{color:var(--text);font-size:12px}.editor-form>.editor-settings{background:var(--bg)}@media (max-width:620px){.editor-section-heading{flex-direction:column;align-items:flex-start;gap:4px}.block-editor{padding:12px}}.insert-toolbar .toolbar-divider-label{border-left:1px solid var(--line);margin-left:10px;padding-left:14px}.insert-toolbar .format-tool-button.selected{border-color:var(--green2);background:var(--soft);color:var(--green)}.format-toolbar-panel{border:1px solid var(--line);background:var(--surface2);border-radius:11px;margin:0 0 12px;padding:16px}.format-toolbar-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.format-toolbar-heading strong{color:var(--text);font-size:14px}.format-toolbar-heading p{color:var(--muted);margin:4px 0 0;font-size:12px}.format-toolbar-panel .field{max-width:360px}@media (max-width:620px){.insert-toolbar .toolbar-divider-label{border:0;margin:0;padding:0}.insert-toolbar .format-tool-button{grid-column:span 2}}.admin-page-row[draggable=true]{cursor:grab;transition:background .15s,opacity .15s;position:relative}.admin-page-row[draggable=true]:active{cursor:grabbing}.admin-page-row.is-dragging{opacity:.45}.admin-page-row.drop-preview-before:before,.admin-page-row.drop-preview-after:after{content:"";z-index:2;background:var(--green2);height:2px;box-shadow:0 0 0 2px var(--surface),0 1px 4px #0002;pointer-events:none;border-radius:2px;position:absolute;left:-3px;right:-3px}.admin-page-row.drop-preview-before:before{top:-2px}.admin-page-row.drop-preview-after:after{bottom:-2px}.page-drop-status{border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:9px;align-items:center;gap:8px;margin:9px 0;padding:9px 11px;font-size:12px;font-weight:650;display:flex}.page-drop-status svg{color:var(--green2);flex:none}.admin-page-title{overflow-wrap:anywhere;flex:1;align-items:center;gap:7px;min-width:0;display:flex}.admin-page-title>span{min-width:0}.page-drag-handle{color:var(--muted);cursor:grab;flex:none}.page-row-actions{flex:none;align-items:center;gap:5px;display:flex}.page-sort-controls{align-items:center;gap:2px;display:flex}.page-sort-controls .small-icon{width:30px;height:30px}.page-sort-controls .small-icon:disabled{opacity:.35;cursor:not-allowed}.login-screen{--bg:#fff;--surface:#fff;--surface2:#f3f3f3;--text:#111;--muted:#626262;--line:#d6d6d6;--green:#111;--green2:#111;--soft:#ededed;background:var(--bg);color:var(--text)}.login-panel{border-color:var(--line);background:var(--surface);box-shadow:0 18px 55px #00000012}.login-copy h1 em{color:var(--green2)}.login-copy>p:last-child,.login-form label,.login-hint,.login-footer{color:var(--muted)}.login-form input{border-color:var(--line);background:var(--surface2);color:var(--text)}.login-form input:focus{border-color:#555;outline-color:#bbb}.login-form input::placeholder{color:#777}.login-form .btn-primary{background:var(--green);color:#fff}.mode-primary>svg,.mode-primary .mode-copy small{color:#fff}.selected .select-mark{background:var(--green);border-color:var(--green);color:#fff}.page-circle.active{background:var(--green);color:#fff}.logout,.error-message{color:var(--text)}.btn-danger{border-color:var(--line);background:var(--surface2);color:var(--text)}.scrim{background:#0009}.upload-overlay{background:#000a}.lesson-menu-view .section-heading>p:last-child{color:var(--muted);margin-top:10px;font-size:14px;line-height:1.55;display:block}.lesson-page-list .topic-row{min-height:76px}.lesson-page-list .topic-name strong{font-size:15px}.lesson-page-list .topic-row>svg{color:var(--muted)}.lesson-menu-heading{justify-content:space-between;align-items:center;gap:20px;margin:4px 0 22px;display:flex}.lesson-menu-heading h1{letter-spacing:-1.2px;margin:0;font-family:Manrope,sans-serif;font-size:max(30px,min(5vw,40px));line-height:1.12}.lesson-menu-heading p{color:var(--muted);margin:9px 0 0;font-size:14px;line-height:1.5}.lesson-total{border:1px solid var(--line);background:var(--surface2);width:72px;height:72px;color:var(--text);border-radius:17px;flex-direction:column;flex:none;justify-content:center;align-items:center;font-size:22px;font-weight:800;display:flex}.lesson-total small{color:var(--muted);margin-top:1px;font-size:10px;font-weight:700}.lesson-list{gap:12px;display:grid}.lesson-card{border:1px solid var(--line);background:var(--surface);width:100%;min-height:94px;color:var(--text);text-align:left;border-radius:15px;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:15px;padding:17px;transition:transform .16s,border-color .16s,background .16s;display:grid}.lesson-card:hover{border-color:var(--muted);background:var(--surface2);transform:translateY(-1px)}.lesson-index{border:1px solid var(--line);background:var(--surface2);width:46px;height:46px;color:var(--text);font-variant-numeric:tabular-nums;border-radius:13px;place-items:center;font-size:13px;font-weight:800;display:grid}.lesson-card-copy{flex-direction:column;gap:5px;min-width:0;display:flex}.lesson-card-copy strong{color:var(--text);text-overflow:ellipsis;font-size:15px;font-weight:750;overflow:hidden}.lesson-card-copy small{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.45;display:-webkit-box;overflow:hidden}.lesson-card-open{color:var(--muted);align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.reader-view{align-self:center;gap:14px;width:min(100%,900px);max-width:900px}.reader-progress{border:1px solid var(--line);background:var(--surface);border-radius:14px;width:100%;padding:14px 18px}.reader-progress-top{justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;display:flex}.reader-progress-top>div{flex-direction:column;gap:3px;display:flex}.reader-progress-label{color:var(--muted);letter-spacing:1.4px;font-size:9px;font-weight:800}.reader-progress-top strong{color:var(--text);font-size:14px}.reader-progress-top strong small{color:var(--muted);font-size:12px;font-weight:600}.reader-progress-percent{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;font-weight:750}.reader-progress-track{background:var(--surface2);border-radius:99px;height:6px;overflow:hidden}.reader-progress-track>span{border-radius:inherit;background:var(--green2);height:100%;transition:width .24s;display:block}.reader-paper{border:1px solid var(--line);background:var(--surface);border-radius:18px;width:100%;max-width:900px;min-height:max(280px,min(42vh,460px));margin:0 auto;padding:max(24px,min(5vw,56px));box-shadow:0 10px 32px #00000012}.reader-paper h1{margin-bottom:24px;font-size:max(27px,min(4.5vw,36px))}@media (max-width:620px){.lesson-menu-heading{gap:12px;margin-bottom:16px}.lesson-menu-heading h1{font-size:30px}.lesson-menu-heading p{font-size:13px}.lesson-total{border-radius:14px;width:60px;height:60px;font-size:18px}.lesson-card{border-radius:13px;grid-template-columns:42px minmax(0,1fr) 22px;gap:11px;min-height:82px;padding:13px}.lesson-index{border-radius:11px;width:40px;height:40px}.lesson-card-copy strong{font-size:14px}.lesson-card-copy small{font-size:11px}.lesson-card-open span{display:none}.lesson-card-open svg{width:18px}.reader-view{gap:10px}.reader-progress{padding:11px 13px}.reader-paper{border-radius:15px;min-height:max(250px,min(40vh,420px));padding:22px}}.lesson-menu-view{width:100%;max-width:none;margin:0}.lesson-menu-heading{margin:8px 0 22px;display:block}.lesson-menu-heading h1{margin:0;font-size:max(30px,min(5vw,40px))}.lesson-menu-heading p{color:var(--muted);margin:8px 0 0;font-size:14px}.lesson-title-list{border-top:1px solid var(--line);flex-direction:column;display:flex}.lesson-title-row{border:0;border-bottom:1px solid var(--line);width:100%;min-height:68px;color:var(--text);text-align:left;background:0 0;border-radius:0;justify-content:space-between;align-items:center;gap:16px;padding:14px 4px;transition:background .15s;display:flex}.lesson-title-row:hover{background:var(--surface2)}.lesson-title-row>span{text-overflow:ellipsis;font-size:16px;font-weight:700;overflow:hidden}.lesson-title-row>svg{color:var(--muted);flex:none}.reader-view{gap:0;width:100%;max-width:1100px}.reader-paper{width:100%;max-width:1100px;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;margin:0 auto;padding:0}.reader-paper h1{margin:0 0 20px;font-size:max(25px,min(4vw,36px))}.reader-video-block{border:1px solid var(--line);background:#000;border-radius:16px;width:100%;margin:0 0 22px;overflow:hidden}.reader-video-block video{aspect-ratio:16/9;-o-object-fit:contain;object-fit:contain;background:#000;border-radius:0;width:100%;height:auto;max-height:min(78vh,900px);margin:0;display:block}.notice{text-align:left;justify-content:flex-start;left:22px;right:auto}.notice button{margin-left:auto}@media (max-width:620px){.lesson-title-row{min-height:60px;padding:12px 2px}.lesson-title-row>span{font-size:15px}.reader-paper h1{margin-bottom:15px}.reader-video-block{border-radius:11px}.reader-video-block video{max-height:70vh}.notice{max-width:calc(100% - 28px);left:14px;right:auto}}.reader-topbar{height:auto;min-height:68px;padding:8px 18px}.reader-header-copy{flex-direction:column;gap:2px;min-width:0;line-height:1.2;display:flex}.reader-header-copy>strong.reader-chapter-title{text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:800;overflow:hidden}.reader-page-title{color:var(--text);text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:800;line-height:1.2;display:-webkit-box;overflow:hidden}.reader-header-copy>small.reader-chapter-title{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.app:has(.reader-video-only){height:100dvh;min-height:100dvh;overflow:hidden}.app:has(.reader-video-only) .reader-topbar{flex:none}.app:has(.reader-video-only) .reader-main{min-height:0;padding:0 0 calc(58px + env(safe-area-inset-bottom));flex:1}.reader-video-only{align-self:stretch;gap:0;width:100%;max-width:none;min-height:0}.reader-video-only .reader-paper{flex:1;width:100%;max-width:none;min-height:0;padding:0;display:flex;overflow:hidden}.reader-video-only .reader-video-block{border:0;border-radius:0;flex:1;min-height:0;margin:0;display:flex}.reader-video-only .reader-video-block video{aspect-ratio:auto;-o-object-fit:contain;object-fit:contain;border-radius:0;width:100%;height:100%;min-height:0;max-height:none}@media (max-width:620px){.reader-topbar{min-height:64px;padding:7px 14px}.reader-header-copy>strong.reader-chapter-title{font-size:15px}.reader-page-title{font-size:14px}.reader-header-copy>small.reader-chapter-title{font-size:10px}}.topic-row,.lesson-title-row,.drawer-link,.chapter-head,.admin-page-row,.mode-card{border-radius:13px;transition:background .16s,border-color .16s,transform .16s}.topic-row,.lesson-title-row{border:1px solid var(--line);background:var(--surface)}.topic-row:hover,.lesson-title-row:hover,.drawer-link:hover{border-color:var(--muted);background:var(--surface2)}.lesson-title-list{border:0;gap:9px;width:100%;display:grid}.lesson-title-row{border-radius:13px;min-height:70px;padding:12px 15px}.drawer-link{border:1px solid var(--line);background:var(--surface);min-height:48px;margin:0 0 7px;padding:11px 12px;font-size:13px}.chapter-head{background:var(--surface);border-radius:12px;min-height:64px}.chapter-head:hover{background:var(--surface2)}.admin-page-row{border:1px solid var(--line);background:var(--surface);border-radius:12px;margin:8px 0;padding:9px 10px}.admin-tabs{background:0 0;gap:8px;padding:0}.admin-tabs button{border:1px solid var(--line);background:var(--surface);min-height:46px;color:var(--muted);border-radius:12px;transition:background .16s,border-color .16s,color .16s}.admin-tabs button:hover{background:var(--surface2);color:var(--text)}.admin-tabs button.active{border-color:var(--muted);background:var(--surface2);color:var(--text);box-shadow:none}.mode-card{border-radius:14px}.topic-row:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.lesson-title-row:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.drawer-link:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.chapter-head:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.admin-tabs button:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.mode-card:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.video-player{isolation:isolate;aspect-ratio:16/9;border-radius:inherit;color:#fff;background:#000;flex:1;width:100%;min-width:0;max-height:min(78vh,900px);display:flex;position:relative;overflow:hidden}.video-player>video{-o-object-fit:contain;object-fit:contain;background:#000;border:0;border-radius:0;width:100%;max-width:100%;height:100%;max-height:none;margin:0;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.video-controls{z-index:2;color:#fff;opacity:1;visibility:visible;background:linear-gradient(#0000,#000d 42%);padding:38px 14px 12px;transition:opacity .22s,visibility linear;position:absolute;bottom:0;left:0;right:0}.video-controls.is-hidden{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s,visibility 0s linear .22s}.video-seek-row{color:#fff;font-variant-numeric:tabular-nums;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:9px;margin-bottom:6px;font-size:11px;display:grid}.video-seek-row>span:last-child{text-align:right}.video-seek-row input,.video-volume input{accent-color:#fff;cursor:pointer;width:100%;height:5px;margin:0}.video-control-row{align-items:center;gap:5px;display:flex}.video-control-button{color:#fff;background:0 0;border:0;border-radius:9px;flex:none;place-items:center;width:38px;height:38px;display:grid}.video-control-button:hover{background:#ffffff24}.video-volume{align-items:center;gap:6px;width:76px;display:flex}.video-speed{color:#fff;background:#0007;border:1px solid #ffffff7a;border-radius:8px;min-width:44px;height:32px;padding:0 8px;font-size:12px;font-weight:750}.video-speed:hover{background:#ffffff24}.video-controls-spacer{flex:1}.video-center-play{z-index:1;color:#fff;background:#0009;border:1px solid #ffffff90;border-radius:50%;place-items:center;width:66px;height:66px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 24px #0008}.video-center-play:hover{background:#000c;transform:translate(-50%,-50%)scale(1.06)}.video-error{z-index:4;color:#fff;text-align:center;background:#000d;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:20px;font-size:14px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.video-error button{color:#fff;background:#ffffff18;border:1px solid #ffffff8a;border-radius:9px;min-height:38px;padding:0 14px;font-weight:700}.video-error button:hover{background:#ffffff30}.video-player:-webkit-full-screen{aspect-ratio:auto;border-radius:0;width:100vw;height:100vh;max-height:none}.video-player:fullscreen{aspect-ratio:auto;border-radius:0;width:100vw;height:100vh;max-height:none}.video-player:-webkit-full-screen video{width:100%;height:100%}.video-player:fullscreen video{width:100%;height:100%}.reader-video-only .video-player{aspect-ratio:auto;border-radius:0;width:100%;height:100%;min-height:0;max-height:none;margin:0}.reader-video-only .video-controls{padding-bottom:14px}@media (max-width:620px){.video-controls{padding:32px 9px max(8px,env(safe-area-inset-bottom))}.video-control-row{gap:2px}.video-control-button{width:36px;height:36px}.video-volume{display:none}.video-speed{min-width:42px}.video-center-play{width:58px;height:58px}.admin-tabs{gap:5px}.admin-tabs button{min-height:42px;padding:0 7px;font-size:11px}.drawer-link{min-height:46px}.topic-row{min-height:64px}}.chapter-head{background:var(--surface);width:100%;min-height:64px;color:var(--text);text-align:left;border:0;border-radius:12px;justify-content:space-between;align-items:center;gap:6px;padding:6px 10px 6px 4px;display:flex}.chapter-toggle{min-width:0;min-height:50px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;align-items:center;gap:12px;padding:8px 10px;transition:background .16s;display:flex}.chapter-toggle:hover{background:var(--surface2)}.chapter-toggle:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.chapter-edit-button:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.chapter-icon{background:var(--surface2);width:34px;height:34px;color:var(--green2);border-radius:11px;flex:0 0 34px;place-items:center;display:grid}.chapter-copy{flex-direction:column;gap:2px;min-width:0;display:flex;overflow:hidden}.chapter-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.chapter-copy small{color:var(--muted);font-size:11px}.chapter-toggle>svg{flex:none;margin-left:auto;transition:transform .16s}.chapter-edit-button{flex:none}.chapter-rename-form{border-top:1px solid var(--line);background:var(--surface2);padding:14px 15px 16px}.chapter-rename-form .field{margin-bottom:12px}.chapter-rename-actions{justify-content:flex-end;gap:8px;display:flex}@media (max-width:620px){.chapter-head{padding-right:8px}.chapter-rename-actions .btn{flex:1}}.lesson-completion{border:1px solid var(--line);background:var(--surface);width:100%;max-width:none;min-height:max(340px,min(100dvh - 176px,620px));color:var(--text);border-radius:16px;flex-direction:column;justify-content:center;gap:max(24px,min(5vh,42px));padding:max(24px,min(5vw,54px));display:flex;box-shadow:0 8px 30px #0000000c}.lesson-completion-message{max-width:720px}.lesson-completion-check{background:var(--surface2);width:48px;height:48px;color:var(--green2);border-radius:15px;place-items:center;margin-bottom:18px;display:grid}.lesson-completion-message .overline{color:var(--muted);letter-spacing:1.2px;margin:0 0 9px;font-size:11px;font-weight:800}.lesson-completion-message h1{letter-spacing:-1.3px;margin:0 0 12px;font-family:Manrope,sans-serif;font-size:max(30px,min(5vw,42px));line-height:1.1}.lesson-completion-message>p:last-child{color:var(--muted);margin:0;font-size:15px;line-height:1.6}.lesson-completion-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;display:grid}.lesson-completion-choice{border:1px solid var(--line);background:var(--surface2);min-width:0;min-height:96px;color:var(--text);text-align:left;cursor:pointer;border-radius:13px;align-items:center;gap:13px;padding:15px;transition:background .16s,border-color .16s,transform .16s;display:flex}.lesson-completion-choice:hover{border-color:var(--muted);background:var(--surface);transform:translateY(-1px)}.lesson-completion-choice:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.lesson-completion-choice-icon{background:var(--surface);width:38px;height:38px;color:var(--green2);border-radius:12px;flex:0 0 38px;place-items:center;display:grid}.lesson-completion-choice-copy{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.lesson-completion-choice-copy small{color:var(--muted);letter-spacing:1px;font-size:9px;font-weight:800}.lesson-completion-choice-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.lesson-completion-choice-copy em{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-style:normal;overflow:hidden}.lesson-completion-choice>svg{color:var(--muted);flex:none}@media (max-width:620px){.lesson-completion{justify-content:flex-start;gap:26px;min-height:calc(100dvh - 150px);margin:12px 0;padding:22px 15px}.lesson-completion-actions{grid-template-columns:1fr}.lesson-completion-choice{min-height:80px;padding:12px}.lesson-completion-message>p:last-child{font-size:14px}}.app:has(.lesson-completion){height:100vh;height:100dvh;min-height:100dvh;overflow:hidden}.app:has(.lesson-completion) .reader-main{min-height:0;padding:16px clamp(16px,2.5vw,36px) calc(64px + env(safe-area-inset-bottom));flex:1;display:flex;overflow:hidden}.app:has(.lesson-completion) .reader-view{flex:1;align-self:stretch;width:100%;max-width:none;min-height:0;display:flex;overflow:hidden}.lesson-completion{flex:1;width:100%;height:100%;min-height:0;overflow:hidden}@media (max-width:620px){.app:has(.lesson-completion) .reader-main{padding:10px 10px calc(64px + env(safe-area-inset-bottom))}}@media (max-height:650px){.lesson-completion{gap:12px;padding:14px}.lesson-completion-check{border-radius:11px;width:36px;height:36px;margin-bottom:8px}.lesson-completion-message h1{margin-bottom:6px;font-size:max(26px,min(5vh,32px))}.lesson-completion-message>p:last-child{font-size:12px;line-height:1.4}.lesson-completion-choice{min-height:64px;padding:9px}.lesson-completion-choice-icon{flex-basis:30px;width:30px;height:30px}.lesson-completion-choice-copy{gap:2px}.lesson-completion-choice-copy strong{font-size:12px}.lesson-completion-choice-copy em{font-size:10px}}.page-circle.lesson-completion-indicator{color:#fff;background:#236344;border-color:#236344;box-shadow:0 2px 9px #23634455}.page-circle.active:not(.lesson-completion-indicator){color:#171717;background:#f2c94c;box-shadow:0 2px 9px #f2c94c55}.page-row-actions{grid-template-columns:repeat(4,34px)}.page-row-actions .small-icon,.page-row-actions .page-sort-controls .small-icon{width:34px;min-width:34px;height:34px;min-height:34px;padding:0}.offline-mode-banner{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:11px;align-items:center;gap:8px;margin:0 0 16px;padding:11px 13px;font-size:12px;font-weight:700;display:flex}.offline-overlay{z-index:1800;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;place-items:center;padding:18px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.offline-dialog{border:1px solid var(--line);background:var(--surface);width:min(100%,560px);max-height:min(90dvh,760px);color:var(--text);border-radius:20px;padding:max(20px,min(4vw,30px));overflow:auto;box-shadow:0 24px 80px #0004}.offline-dialog-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.offline-dialog-head .overline{color:var(--muted);letter-spacing:1.4px;margin:0 0 6px;font-size:9px;font-weight:800}.offline-dialog-head h2{letter-spacing:-.6px;margin:0;font-family:Manrope,sans-serif;font-size:max(24px,min(5vw,30px))}.offline-intro,.install-dialog>p{color:var(--muted);margin:0 0 18px;font-size:13px;line-height:1.55}.offline-warning{color:var(--text);background:#e7ad3f15;border:1px solid #d5a14d77;border-radius:11px;align-items:flex-start;gap:9px;margin:0 0 15px;padding:12px;font-size:12px;line-height:1.45;display:flex}.offline-warning svg{color:#c28a27;flex:none}.offline-storage-card{border:1px solid var(--line);background:var(--surface2);border-radius:12px;align-items:center;gap:13px;margin:0 0 13px;padding:14px;display:flex}.offline-storage-card>svg{color:var(--green2);flex:none}.offline-storage-card>div,.offline-saver-row>div{flex-direction:column;gap:4px;min-width:0;display:flex}.offline-storage-card strong,.offline-saver-row strong{font-size:13px}.offline-storage-card span,.offline-saver-row span{color:var(--muted);font-size:11px;line-height:1.4}.offline-saver-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding:13px 2px;display:flex}.offline-download-size{color:var(--muted);margin:17px 0 10px;font-size:12px;font-weight:700}.offline-download-button{justify-content:center;gap:9px;min-height:48px;display:flex}.offline-download-button:disabled{cursor:not-allowed;opacity:.58}.offline-clear-button{justify-content:center;gap:8px;min-height:44px;margin-top:10px;display:flex}.offline-clear-button:disabled{opacity:.55}.offline-progress-track{background:var(--surface2);border-radius:99px;height:7px;margin-top:12px;overflow:hidden}.offline-progress-track>span{border-radius:inherit;background:var(--green2);height:100%;transition:width .2s;display:block}.offline-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite offline-spin}@keyframes offline-spin{to{transform:rotate(360deg)}}.offline-state-note,.offline-install-note{color:var(--muted);margin:12px 0 0;font-size:11px;line-height:1.5}.offline-install-note{border-top:1px solid var(--line);padding-top:12px}.install-steps{color:var(--muted);flex-direction:column;gap:12px;margin:0 0 18px;padding-left:22px;font-size:13px;line-height:1.55;display:flex}.install-steps strong{color:var(--text)}.media-download-required{border:1px dashed var(--line);background:var(--surface2);width:100%;min-height:170px;color:var(--muted);text-align:center;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;font-size:13px;display:flex}.media-download-required svg{color:var(--green2)}.media-download-required button{border:1px solid var(--line);background:var(--surface);min-height:38px;color:var(--text);border-radius:9px;padding:0 13px;font-size:12px;font-weight:750}.media-download-required button:hover{background:var(--surface2)}@media (max-width:620px){.offline-overlay{align-items:end;padding:0}.offline-dialog{width:100%;max-height:92dvh;padding:23px 18px max(20px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.media-download-required{min-height:140px}}.brand-logo{background:#fff;overflow:hidden}.brand-mark{-o-object-fit:cover;object-fit:cover;border-radius:inherit;width:100%;height:100%;display:block}.app-splash{min-height:100vh;color:#111;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:100dvh;display:flex}.app-splash>img{-o-object-fit:contain;object-fit:contain;border-radius:23px;width:max(110px,min(28vw,156px));height:auto}.app-splash>strong{letter-spacing:-.4px;font-family:Manrope,sans-serif;font-size:max(19px,min(5vw,24px));font-weight:850}.app-splash>.offline-spinner{border-width:2px;border-color:#111 #0000 #111 #111;width:20px;height:20px;margin-top:5px}@supports (padding-top:env(safe-area-inset-top)){.app>.topbar{height:calc(72px + env(safe-area-inset-top));min-height:calc(72px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}@media (max-width:620px){.app>.topbar{height:calc(64px + env(safe-area-inset-top));min-height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 17px 0}.app>.topbar.reader-topbar{height:auto;min-height:calc(64px + env(safe-area-inset-top));padding:calc(7px + env(safe-area-inset-top)) 14px 7px}}}.lesson-menu-progress{margin:0 0 16px}.lesson-card-meta{min-width:0;color:var(--muted);flex-wrap:wrap;align-items:center;gap:7px 14px;font-size:12px;line-height:1.35;display:flex}.lesson-video-duration,.lesson-page-type,.lesson-complete-label{color:var(--muted);align-items:center;gap:5px;font-size:11px;font-weight:650;display:inline-flex}.lesson-video-duration svg,.lesson-page-type svg{flex:none}.lesson-index.is-complete{color:#28784d;background:#e9f6ee;border-color:#b7dfc8}.chapter-progress-row{gap:12px}.chapter-progress-row>span.chapter-progress-copy{min-width:0;font-size:inherit;text-overflow:clip;flex-direction:column;flex:1;gap:5px;font-weight:400;display:flex;overflow:hidden}.chapter-progress-copy strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:750;overflow:hidden}.chapter-progress-copy small{color:var(--muted);font-size:11px;font-weight:550;line-height:1.35}.chapter-progress-track,.offline-chapter-progress-track{background:var(--surface2);border-radius:99px;height:6px;overflow:hidden}.chapter-progress-track>i,.offline-chapter-progress-track>span{border-radius:inherit;background:var(--green2);height:100%;transition:width .24s;display:block}.chapter-progress-percent{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;font-size:12px;font-weight:750}.offline-download-all{border:1px solid var(--line);background:var(--surface2);border-radius:13px;justify-content:space-between;align-items:center;gap:14px;margin:14px 0;padding:14px;display:flex}.offline-download-all>div,.offline-chapter-card-head>div{flex-direction:column;gap:4px;min-width:0;display:flex}.offline-download-all strong,.offline-chapter-card-head strong{color:var(--text);font-size:13px;font-weight:750}.offline-download-all span,.offline-chapter-card-head>div>span{color:var(--muted);font-size:11px;line-height:1.45}.offline-download-all .btn{flex:none;min-height:40px;padding:0 12px}.offline-chapter-list{gap:10px;margin-top:14px;display:grid}.offline-chapter-card{border:1px solid var(--line);background:var(--surface);border-radius:13px;gap:11px;padding:14px;display:grid}.offline-chapter-card-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.offline-chapter-status{border:1px solid var(--line);background:var(--surface2);color:var(--muted);border-radius:99px;flex:none;padding:5px 8px;font-size:10px;font-weight:750}.offline-chapter-status.is-saved{color:#28784d;background:#e9f6ee;border-color:#b7dfc8}.offline-chapter-progress-track{height:5px}.offline-chapter-actions{flex-wrap:wrap;gap:8px;display:flex}.offline-chapter-actions .btn{min-height:38px;padding:0 11px;font-size:11px}.offline-chapter-actions .btn:disabled{cursor:default;opacity:.7}.offline-chapter-note{color:var(--muted);margin:0;font-size:11px;line-height:1.45}@media (max-width:620px){.lesson-menu-heading{margin-bottom:15px}.lesson-card{grid-template-columns:40px minmax(0,1fr) 28px}.lesson-card-meta{gap:5px 10px}.chapter-progress-row{gap:9px;min-height:72px;padding:11px 12px}.chapter-progress-copy strong{font-size:14px}.chapter-progress-copy small{font-size:10px}.offline-download-all{flex-direction:column;align-items:stretch}.offline-download-all .btn{justify-content:center;width:100%}.offline-chapter-card{gap:9px;padding:12px}.offline-chapter-card-head{flex-direction:column;align-items:flex-start;gap:8px}.offline-chapter-actions{grid-template-columns:1fr;display:grid}.offline-chapter-actions .btn{justify-content:center;width:100%}}.lesson-menu-progress-row{grid-template-columns:minmax(72px,84px) minmax(0,1fr);align-items:stretch;gap:10px;margin:0 0 16px;display:grid}.lesson-menu-progress-row .lesson-total{border-radius:14px;width:auto;height:auto;min-height:82px}.lesson-menu-progress{flex-direction:column;justify-content:center;min-width:0;margin:0;padding:12px 15px;display:flex}.lesson-menu-progress .reader-progress-top{margin-bottom:9px}@media (max-width:620px){.lesson-menu-progress-row{grid-template-columns:60px minmax(0,1fr);gap:9px;margin-bottom:15px}.lesson-menu-progress-row .lesson-total{border-radius:13px;min-height:82px;font-size:17px}.lesson-menu-progress{padding:11px 12px}.lesson-menu-progress .reader-progress-label{letter-spacing:1px;font-size:8px}.lesson-menu-progress .reader-progress-top strong{font-size:12px;line-height:1.35}.lesson-menu-progress .reader-progress-percent{font-size:11px}}.chapter-progress-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.chapter-progress-meta .chapter-video-duration{color:var(--muted);align-items:center;gap:5px;font-size:10px;font-weight:650;line-height:1.35;display:inline-flex}.chapter-progress-meta .chapter-video-duration svg{flex:none}.app.content-protected main.main{-webkit-user-select:none;user-select:none}.app.content-protected img,.app.content-protected video{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}body.content-protected{-webkit-touch-callout:none}@media print{body.content-protected .app{display:none!important}}.chapter-test-people{color:#957000;background:#fff9e5;border:1px solid #e7cb73;border-radius:10px;place-items:center;width:34px;height:34px;transition:background .16s,border-color .16s,transform .16s;display:grid}.chapter-test-people:hover{background:#fff1bd;transform:translateY(-1px)}.app[data-theme=dark] .chapter-test-people{color:#f2d36b;background:#40391f;border-color:#705e2c}.test-access-overlay{z-index:1650}.test-access-dialog{width:min(100%,520px);max-height:calc(100dvh - 36px);overflow:auto}.test-access-count{color:#806100;background:#fff9e5;border:1px solid #e7cb73;border-radius:11px;align-items:center;gap:9px;margin:-6px 0 12px;padding:10px 12px;font-size:12px;font-weight:750;display:flex}.test-access-user-list{flex-direction:column;gap:7px;max-height:min(42dvh,360px);padding:2px;display:flex;overflow:auto}.test-access-user{border:1px solid var(--line);background:var(--surface2);cursor:pointer;border-radius:11px;align-items:center;gap:12px;min-height:54px;padding:10px 12px;display:flex}.test-access-user input{width:18px;height:18px;accent-color:var(--green2);flex:none}.test-access-user>span{flex-direction:column;gap:3px;min-width:0;display:flex}.test-access-user strong{font-size:13px}.test-access-user small,.test-access-note,.test-access-empty{color:var(--muted);font-size:11px;line-height:1.45}.test-access-loading{min-height:80px;color:var(--muted);align-items:center;gap:10px;font-size:13px;display:flex}.test-access-note{margin:13px 0 0}.test-access-count,.test-access-user{color:var(--text)}.test-access-count{color:#806100}.app[data-theme=dark] .test-access-count{color:#f2d36b;background:#40391f;border-color:#705e2c}.user-progress-summary{border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:11px 12px}.user-progress-top,.user-progress-details{justify-content:space-between;align-items:center;gap:10px;display:flex}.user-progress-top{color:var(--muted);font-size:11px}.user-progress-top strong{color:var(--text);font-size:12px}.user-progress-top>span:last-child{font-weight:750}.user-progress-track{background:var(--line);border-radius:999px;height:6px;margin:8px 0;overflow:hidden}.user-progress-track i{border-radius:inherit;background:var(--green2);height:100%;transition:width .25s;display:block}.user-progress-details{color:var(--muted);flex-wrap:wrap;font-size:10px}.user-progress-toggle{width:100%;color:var(--green2);text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:10px;padding:5px 2px;font-size:12px;font-weight:750;display:flex}.user-progress-toggle svg{transition:transform .18s}.user-progress-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.user-progress-detail{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex-direction:column;gap:14px;padding:13px;display:flex}.user-progress-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.user-progress-detail-stats>div{background:var(--surface2);border-radius:9px;flex-direction:column;gap:5px;min-width:0;padding:10px;display:flex}.user-progress-detail-stats span,.user-progress-topic small{color:var(--muted);font-size:10px}.user-progress-detail-stats strong{overflow-wrap:anywhere;font-size:12px}.user-progress-section{flex-direction:column;gap:8px;display:flex}.user-progress-section h4{margin:0;font-size:12px}.user-progress-chapters,.user-progress-topics{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:9px;display:grid}.user-progress-chapter,.user-progress-topic{border:1px solid var(--line);background:var(--surface2);border-radius:10px;min-width:0;padding:11px}.user-progress-chapter-head{justify-content:space-between;gap:12px;margin-bottom:7px;font-size:11px;display:flex}.user-progress-chapter-head span,.user-progress-chapter li small,.user-progress-topic span{color:var(--muted);font-size:10px}.user-progress-chapter ul{flex-direction:column;gap:5px;margin:0;padding:0;list-style:none;display:flex}.user-progress-chapter li{border-top:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:10px;padding-top:6px;font-size:11px;display:flex}.user-progress-chapter li>span{overflow-wrap:anywhere;min-width:0}.user-progress-chapter li small{text-align:right;flex:none}.user-progress-chapter li small.is-complete{color:var(--green2);font-weight:700}.user-progress-topic{justify-content:space-between;align-items:center;gap:10px;display:flex}.user-progress-topic>div{flex-direction:column;gap:3px;min-width:0;display:flex}.user-progress-topic strong{font-size:11px}.user-progress-topic small{text-align:right;flex:none}.user-progress-empty{color:var(--muted);margin:0;font-size:11px}@media (max-width:620px){.chapter-head-actions,.chapter-head-actions.has-test-people{grid-template-columns:repeat(4,30px);gap:4px}.chapter-head-actions.has-test-people{grid-template-columns:repeat(5,30px)}.chapter-head-actions .small-icon,.chapter-release-toggle,.chapter-test-people{width:30px;height:30px}.test-access-dialog{padding:18px}.test-access-dialog .user-create-dialog-actions .btn{flex:1}.user-progress-details{gap:6px}.user-progress-detail-stats{grid-template-columns:1fr 1fr}.user-progress-detail-stats>div:last-child{grid-column:1/-1}.user-progress-topic{flex-direction:column;align-items:flex-start}.user-progress-topic small{text-align:left}}.sync-history-toggle{border:1px solid var(--line);background:var(--surface2);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:12px;align-items:center;gap:12px;margin-top:15px;padding:13px 14px;display:flex}.sync-history-toggle>span:first-child{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.sync-history-toggle strong{font-size:13px}.sync-history-toggle small,.sync-history-note{color:var(--muted);font-size:11px}.sync-history-total{background:var(--surface);border-radius:999px;place-items:center;min-width:26px;height:26px;padding:0 7px;font-size:11px;display:grid}.sync-history-panel{flex-direction:column;gap:9px;max-height:min(45vh,430px);margin-top:9px;display:flex;overflow:auto}.sync-history-entry{border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:10px 12px}.sync-history-entry>summary{cursor:pointer;align-items:center;gap:10px;list-style:none;display:flex}.sync-history-entry>summary::-webkit-details-marker{display:none}.sync-history-date{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.sync-history-date strong{font-size:12px}.sync-history-date small{color:var(--muted);font-size:10px}.sync-history-counts{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.sync-history-counts i{background:var(--surface);color:var(--muted);white-space:nowrap;border-radius:999px;padding:4px 6px;font-size:9px;font-style:normal;font-weight:700}.sync-history-entry[open]>summary>svg{transform:rotate(180deg)}.sync-history-entry .sync-change-groups{max-height:300px;margin-top:10px}.sync-history-note{margin:10px 0 0}.test-preview-mark{vertical-align:middle;color:#d9a300;align-items:center;margin-left:6px;line-height:0;display:inline-flex;transform:translateY(-.5px)}.test-preview-mark svg{flex:none;width:14px;height:14px;display:block}.app[data-theme=dark] .test-preview-mark{color:#ffd35a}.mode-card:disabled,.drawer-link:disabled{opacity:.55;cursor:not-allowed}@media (max-width:620px){.sync-history-entry>summary{flex-wrap:wrap;align-items:flex-start}.sync-history-counts{justify-content:flex-start}.sync-history-entry>summary>svg{margin-left:auto}}.page-outline-row{flex-direction:column;gap:6px;display:flex}.chapter-subheading-row{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 0;padding:8px 10px;display:flex}.chapter-subheading-row strong{min-width:0;font-size:13px;font-weight:800}.chapter-subheading-row[draggable=true]{cursor:grab;transition:background .15s,opacity .15s;position:relative}.chapter-subheading-row[draggable=true]:active{cursor:grabbing}.chapter-subheading-row.is-dragging{opacity:.45}.chapter-subheading-row.drop-preview-before:before,.chapter-subheading-row.drop-preview-after:after{content:"";z-index:2;background:var(--green2);height:2px;box-shadow:0 0 0 2px var(--surface),0 1px 4px #0002;pointer-events:none;border-radius:2px;position:absolute;left:-3px;right:-3px}.chapter-subheading-row.drop-preview-before:before{top:-4px}.chapter-subheading-row.drop-preview-after:after{bottom:-4px}.chapter-add-actions{flex-wrap:wrap;gap:4px 18px;display:flex}.lesson-group{flex-direction:column;gap:8px;display:flex}.lesson-group-heading{color:var(--text);margin:14px 2px 0;font-size:max(16px,min(2.5vw,19px));font-weight:800;line-height:1.25}.lesson-group:first-child .lesson-group-heading{margin-top:0}.admin-page-row.is-dragging,.chapter-subheading-row.is-dragging{opacity:.35;filter:saturate(.72)}.admin-page-row.drop-preview-before:before,.admin-page-row.drop-preview-after:after,.chapter-subheading-row.drop-preview-before:before,.chapter-subheading-row.drop-preview-after:after{animation:.14s cubic-bezier(.22,.61,.36,1) both drop-marker-in}@keyframes drop-marker-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.admin-page-row.drop-preview-before:before,.admin-page-row.drop-preview-after:after,.chapter-subheading-row.drop-preview-before:before,.chapter-subheading-row.drop-preview-after:after{animation-duration:1ms}}.user-list-controls{grid-template-columns:minmax(220px,1fr) minmax(170px,220px) auto;align-items:center;gap:10px;margin:14px 0;display:grid}.user-search-control{min-width:0;display:block}.user-search-control input,.user-role-filter select{border:1px solid var(--line);background:var(--surface2);width:100%;height:42px;color:var(--text);font:inherit;border-radius:10px;margin:0;padding:0 12px;font-size:13px}.user-role-filter{min-width:0;display:block}.user-list-result-count{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:750}.user-account-list{flex-direction:column;gap:9px;margin-top:8px;display:flex}.user-admin-entry{border:1px solid var(--line);background:var(--surface2);border-radius:13px;padding:13px 14px}.user-admin-entry:last-child{border-bottom:1px solid var(--line)}.user-account-row{padding:0 0 11px}.user-account-details{flex:1}.user-account-details>div{min-width:0}.user-account-name{row-gap:5px}.user-account-name strong{overflow-wrap:anywhere}.user-progress-open{border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--text);white-space:nowrap;cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:7px;padding:0 11px;font-size:11px;font-weight:750;display:inline-flex}.user-progress-open:hover{background:var(--soft);color:var(--green2)}.user-admin-entry .user-progress-summary{padding:9px 11px}.user-admin-entry .user-progress-details{font-size:10px}.user-admin-entry .user-admin-actions{border-top:1px solid var(--line);padding-top:10px}.user-admin-entry .user-admin-actions .btn{min-height:34px;padding:0 10px;font-size:11px}.user-list-empty,.user-list-loading{min-height:100px;color:var(--muted);justify-content:center;align-items:center;gap:10px;margin:0;font-size:13px;display:flex}.user-list-pagination{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:13px;font-size:12px;display:flex}.user-list-pagination>div{align-items:center;gap:8px;display:flex}.user-list-pagination strong{color:var(--text);white-space:nowrap;font-size:11px}.user-list-pagination .btn{min-height:34px;padding:0 11px;font-size:11px}.user-progress-overlay{z-index:1550}.user-progress-dialog{flex-direction:column;gap:14px;width:min(100%,980px);max-height:calc(100dvh - 32px);padding:22px;display:flex;overflow:hidden}.user-progress-dialog>.user-create-dialog-head,.user-progress-dialog .user-progress-detail-stats{flex:none}.user-progress-dialog .user-progress-browser{flex:none;align-items:center;gap:12px;display:flex}.user-progress-dialog .user-search-control{flex:1}.user-progress-tabs{border:1px solid var(--line);background:var(--surface2);border-radius:10px;align-items:center;gap:5px;padding:4px;display:flex}.user-progress-tabs button{min-height:32px;color:var(--muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 10px;font-size:11px;font-weight:750}.user-progress-tabs button.is-active{background:var(--surface);color:var(--green2);box-shadow:0 1px 4px #0001}.user-progress-modal-content{min-height:0;padding:0 2px 3px;overflow:auto}.user-progress-modal-content h3{margin:0 0 9px;font-size:14px}.user-progress-modal-content .user-progress-chapters,.user-progress-modal-content .user-progress-topics{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));align-content:start}.user-progress-modal-content .user-progress-chapter{padding:0;overflow:hidden}.user-progress-modal-content .user-progress-chapter-head{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:12px;list-style:none;display:flex}.user-progress-modal-content .user-progress-chapter-head::-webkit-details-marker{display:none}.user-progress-modal-content .user-progress-chapter-head>span{white-space:nowrap;align-items:center;gap:8px;display:flex}.user-progress-modal-content .user-progress-chapter[open] .user-progress-chapter-head>span svg{transform:rotate(180deg)}.user-progress-modal-content .user-progress-chapter li{align-items:center;padding:8px 0;font-size:12px}.user-progress-modal-content .user-progress-topic{align-items:flex-start;min-height:75px;padding:12px}.user-progress-load-error{justify-content:space-between;align-items:center;gap:12px;display:flex}.user-progress-load-error .error-message{margin:0}.user-progress-dialog .user-list-loading{justify-content:flex-start;min-height:130px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:700px){.user-list-controls{grid-template-columns:minmax(0,1fr) minmax(135px,.6fr)}.user-list-result-count{grid-column:1/-1}.user-progress-dialog{padding:17px}.user-progress-dialog .user-progress-browser{flex-direction:column;align-items:stretch}.user-progress-tabs{width:100%}.user-progress-tabs button{flex:1}.user-progress-modal-content .user-progress-chapters,.user-progress-modal-content .user-progress-topics{grid-template-columns:1fr}}@media (max-width:520px){.user-admin-entry{padding:11px}.user-account-row{flex-direction:column;align-items:flex-start}.user-progress-open{align-self:flex-end;margin-top:-2px}.user-admin-entry .user-admin-actions{grid-template-columns:1fr 1fr;display:grid}.user-admin-entry .user-admin-actions .btn:last-child{grid-column:1/-1}.user-list-pagination{flex-direction:column;align-items:flex-start}.user-list-pagination>div{justify-content:space-between;width:100%}.user-progress-dialog .user-progress-detail-stats{grid-template-columns:1fr 1fr}.user-progress-dialog .user-progress-detail-stats>div:last-child{grid-column:1/-1}.user-progress-modal-content .user-progress-chapter-head{flex-direction:column;align-items:flex-start}.user-progress-modal-content .user-progress-chapter-head>span{white-space:normal}.user-progress-modal-content .user-progress-chapter li{flex-direction:column;align-items:flex-start}.user-progress-modal-content .user-progress-chapter li small{text-align:left}}.user-account-buttons{flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}.user-account-buttons .user-icon-action{cursor:pointer;width:36px;min-width:36px;height:36px;min-height:36px;padding:0}.user-account-buttons .user-icon-action:hover:not(:disabled){background:var(--soft);color:var(--green2)}.user-account-buttons .user-icon-action.danger:hover:not(:disabled){color:#a34740;background:#fff0ee}.user-account-buttons .user-icon-action:disabled{cursor:not-allowed;opacity:.42}.user-password-form .user-icon-action{flex:0 0 36px;width:36px;height:36px}.user-progress-dialog .user-progress-detail-stats{grid-template-columns:repeat(5,minmax(0,1fr))}@media (max-width:700px){.user-progress-dialog .user-progress-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:520px){.user-account-row{flex-direction:row;align-items:flex-start}.user-account-details{flex:1;min-width:0}.user-account-buttons{grid-template-columns:repeat(2,34px);gap:4px;display:grid}.user-account-buttons .user-icon-action{width:34px;min-width:34px;height:34px;min-height:34px}.user-progress-dialog .user-progress-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}.user-progress-dialog{gap:17px;width:min(100%,960px);padding:24px}.user-progress-dialog>.user-create-dialog-head{border-bottom:1px solid var(--line);align-items:center;padding-bottom:14px}.user-progress-dialog-title .overline{margin:0 0 5px}.user-progress-title-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.user-progress-title-row h2{margin:0;font-family:Manrope,sans-serif;font-size:24px;line-height:1.2}.user-progress-detail-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.user-progress-stat{border:1px solid var(--line);background:var(--surface2);border-radius:12px;flex-direction:column;justify-content:center;gap:5px;min-width:0;min-height:91px;padding:12px;display:flex}.user-progress-stat>span,.user-progress-stat-top>span{color:var(--muted);font-size:10px;font-weight:750;line-height:1.35}.user-progress-stat>strong,.user-progress-stat-top>strong{color:var(--text);overflow-wrap:anywhere;font-size:17px;font-weight:850;line-height:1.25}.user-progress-stat>small{color:var(--muted);font-size:10px;line-height:1.35}.user-progress-stat-featured{background:var(--soft);border-color:color-mix(in srgb,var(--green2) 24%,var(--line));justify-content:flex-start}.user-progress-stat-top{justify-content:space-between;align-items:center;gap:5px;display:flex}.user-progress-stat-top>strong{white-space:nowrap;font-size:14px}.user-progress-stat-featured .user-progress-track{background:var(--line);height:7px;margin:5px 0 2px}.user-progress-stat-featured .user-progress-track i{background:var(--green2)}.user-progress-stat-last>strong{font-size:12px}.user-progress-overlay{padding:2.5dvh 2.5vw}.user-progress-dialog{width:100%;max-width:none;height:100%;max-height:none}.user-progress-content-head{justify-content:space-between;align-items:flex-end;margin-top:1px;display:flex}.user-progress-content-head h3{margin:0;font-size:16px}.user-progress-content-head p{color:var(--muted);margin:4px 0 0;font-size:11px;line-height:1.4}.user-progress-dialog .user-progress-browser{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;display:grid}.user-progress-search{flex-direction:column;gap:6px;display:flex}.user-progress-search>span{color:var(--muted);font-size:11px;font-weight:750}.user-progress-search input{background:var(--surface);font-size:13px}.user-progress-tabs{align-self:end;width:auto;min-height:42px}.user-progress-tabs button{border:1px solid #0000;justify-content:center;align-items:center;gap:7px;min-width:145px;min-height:36px;padding:0 12px;font-size:12px;display:flex}.user-progress-tabs button.is-active{border-color:var(--line);color:var(--green2)}.user-progress-tabs button em{background:var(--surface2);min-width:21px;height:21px;color:var(--muted);border-radius:999px;place-items:center;padding:0 5px;font-size:10px;font-style:normal;display:grid}.user-progress-tabs button.is-active em{background:var(--soft);color:var(--green2)}.user-progress-modal-content{flex:1;min-height:130px;padding:4px 3px 4px 0}.user-progress-modal-content .user-progress-panel-heading{justify-content:space-between;align-items:center;gap:12px;margin:0 2px 10px;display:flex}.user-progress-panel-heading h3{margin:0;font-size:14px}.user-progress-panel-heading p{color:var(--muted);margin:3px 0 0;font-size:10px;line-height:1.4}.user-progress-panel-heading>span{border:1px solid var(--line);background:var(--surface2);color:var(--muted);border-radius:999px;flex:none;padding:6px 9px;font-size:10px;font-weight:750}.user-progress-modal-content .user-progress-chapters,.user-progress-modal-content .user-progress-topics{flex-direction:column;gap:7px;display:flex}.user-progress-modal-content .user-progress-chapter{background:var(--surface2);border-radius:11px;flex:none}.user-progress-modal-content .user-progress-chapter[open]{border-color:color-mix(in srgb,var(--green2) 32%,var(--line));background:var(--surface)}.user-progress-modal-content .user-progress-chapter-head{min-height:58px;padding:10px 12px}.user-progress-chapter-title{flex-direction:column;gap:3px;min-width:0;display:flex}.user-progress-chapter-title strong{overflow-wrap:anywhere;font-size:12px}.user-progress-chapter-title small{color:var(--muted);font-size:10px}.user-progress-modal-content .user-progress-chapter-head .user-progress-chapter-value{color:var(--muted);flex:none;align-items:center;gap:11px;display:flex}.user-progress-chapter-value strong{color:var(--green2);font-size:12px}.user-progress-chapter-body{padding:0 12px 11px}.user-progress-chapter-track{background:var(--line);border-radius:999px;height:5px;overflow:hidden}.user-progress-chapter-track i{border-radius:inherit;background:var(--green2);height:100%;transition:width .25s;display:block}.user-progress-modal-content .user-progress-chapter ul{padding:5px 0 0}.user-progress-modal-content .user-progress-chapter li{align-items:center;min-height:35px;padding:7px 0}.user-progress-modal-content .user-progress-chapter li>span{font-size:11px}.user-progress-modal-content .user-progress-chapter li small{font-size:10px}.user-progress-modal-content .user-progress-topics{display:flex}.user-progress-modal-content .user-progress-topic{min-height:unset;border:1px solid var(--line);background:var(--surface2);border-radius:11px;flex-direction:column;gap:9px;padding:12px;display:flex}.user-progress-topic-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.user-progress-topic-top>div{flex-direction:column;gap:3px;min-width:0;display:flex}.user-progress-topic-top>div strong{overflow-wrap:anywhere;font-size:12px}.user-progress-topic-top>div span,.user-progress-topic-foot{color:var(--muted);font-size:10px}.user-progress-topic-top>strong{color:var(--green2);flex:none;font-size:12px}.user-progress-topic-foot{justify-content:space-between;gap:12px;display:flex}.user-progress-modal-content .user-progress-empty{border:1px dashed var(--line);background:var(--surface2);text-align:center;border-radius:11px;padding:18px 12px;line-height:1.5}@media (max-width:760px){.user-progress-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.user-progress-stat{min-height:82px}.user-progress-stat-last{grid-column:span 1}}@media (max-width:600px){.user-progress-dialog{gap:13px;padding:17px}.user-progress-dialog-title h2{font-size:21px}.user-progress-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.user-progress-stat{min-height:78px;padding:10px}.user-progress-stat-last{grid-column:1/-1}.user-progress-dialog .user-progress-browser{grid-template-columns:1fr}.user-progress-tabs{width:100%}.user-progress-tabs button{flex:1;min-width:0}.user-progress-content-head h3{font-size:15px}.user-progress-modal-content .user-progress-chapter-head{flex-direction:row;align-items:center}.user-progress-modal-content .user-progress-chapter-head .user-progress-chapter-value{white-space:nowrap}.user-progress-modal-content .user-progress-chapter li{flex-direction:column;align-items:flex-start}.user-progress-modal-content .user-progress-chapter li small{text-align:left}}.chapter-status-panel{gap:7px;margin:0 0 12px;display:grid}.chapter-status-heading{color:var(--muted);letter-spacing:.8px;text-transform:uppercase;font-size:10px;font-weight:800}.chapter-status-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.chapter-status-filter{border:1px solid var(--line);background:var(--surface);min-width:0;min-height:44px;color:var(--muted);text-align:left;cursor:pointer;border-radius:11px;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;transition:background .16s,border-color .16s,color .16s;display:flex}.chapter-status-filter:hover{border-color:var(--muted);color:var(--text)}.chapter-status-filter:focus-visible{outline:2px solid var(--green2);outline-offset:2px}.chapter-status-filter-label{align-items:center;gap:8px;min-width:0;font-size:12px;font-weight:750;display:flex}.chapter-status-filter-label svg{flex:none}.chapter-status-count{background:var(--surface2);min-width:23px;color:var(--muted);text-align:center;border-radius:7px;padding:3px 6px;font-size:11px}.chapter-status-filter.is-active{border-color:var(--muted);background:var(--surface2);color:var(--text)}.chapter-status-filter.status-published .chapter-status-filter-label svg{color:#23804f}.chapter-status-filter.status-test .chapter-status-filter-label svg{color:#b58b08}.chapter-status-filter.status-locked .chapter-status-filter-label svg{color:#bd4b4b}.chapter-status-filter.status-published.is-active{color:#17683d;background:#eaf6ee;border-color:#72bd91}.chapter-status-filter.status-test.is-active{color:#725800;background:#fff8d9;border-color:#ddc35e}.chapter-status-filter.status-locked.is-active{color:#963a3a;background:#fff0f0;border-color:#e4abab}.app[data-theme=dark] .chapter-status-filter.status-published.is-active{color:#8ee1aa;background:#263f30;border-color:#35684a}.app[data-theme=dark] .chapter-status-filter.status-test.is-active{color:#f4db7d;background:#51451e;border-color:#b99525}.app[data-theme=dark] .chapter-status-filter.status-locked.is-active{color:#ff9e9e;background:#422d2f;border-color:#714647}.chapter-filter-empty{border:1px dashed var(--line);background:var(--surface2);border-radius:12px;flex-direction:column;align-items:flex-start;gap:5px;padding:18px;display:flex}.chapter-filter-empty strong{font-size:13px}.chapter-filter-empty span{color:var(--muted);font-size:12px}.chapter-filter-empty button{color:var(--green2);cursor:pointer;background:0 0;border:0;margin-top:4px;padding:0;font-size:12px;font-weight:750}.chapter-menu-view .lesson-title-list,.practice-topic-view .topic-list{margin-top:0}@media (max-width:620px){.chapter-status-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.chapter-status-filter{min-height:42px;padding:8px 10px}.chapter-status-filter-label{gap:6px;font-size:11px}}.user-chip-button{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:6px 10px}.user-chip-button:hover{border-color:var(--line);color:var(--text)}.user-chip-button:focus-visible{border-color:var(--line);color:var(--text)}.profile-view{max-width:980px;margin:0 auto}.profile-head{align-items:center;gap:18px;margin-bottom:26px;display:flex}.profile-head h1{word-break:break-word;margin:0;font-size:max(28px,min(5vw,38px))}.profile-head .overline{margin-bottom:4px}.profile-avatar{background:var(--text);width:64px;height:64px;color:var(--bg);border-radius:18px;flex:none;place-items:center;font-size:28px;font-weight:800;display:grid}.profile-sub{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:13px;font-weight:650;display:flex}.profile-error{margin-bottom:14px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.profile-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;flex-direction:column;gap:14px;padding:20px;display:flex}.profile-card h2{align-items:center;gap:8px;margin:0;font-size:16px;display:flex}.profile-wide{grid-column:1/-1}.profile-text{color:var(--muted);margin:0;font-size:13px;line-height:1.5}.profile-card .btn{align-self:flex-start;margin-top:auto}.profile-progress-top{color:var(--muted);justify-content:space-between;margin-bottom:8px;font-size:13px;display:flex}.profile-progress-top strong{color:var(--text);font-size:15px}.profile-bar{background:var(--surface2);border-radius:99px;height:8px;overflow:hidden}.profile-bar i{border-radius:inherit;background:var(--text);height:100%;transition:width .4s;display:block}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;display:grid}.profile-stats div{background:var(--surface2);border-radius:11px;padding:10px 12px}.profile-stats dt{color:var(--muted);font-size:11px;font-weight:700}.profile-stats dd{margin:3px 0 0;font-size:18px;font-weight:800}.profile-stats small{color:var(--muted);font-size:12px;font-weight:650}.profile-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;display:grid}.profile-form label{color:var(--muted);flex-direction:column;gap:6px;font-size:12px;font-weight:750;display:flex}.profile-form input{border:1px solid var(--line);background:var(--surface2);height:46px;color:var(--text);border-radius:10px;padding:0 12px;font-size:14px}.profile-form label small{font-size:11px;font-weight:600}.profile-form .error-message,.profile-success,.profile-form-actions,.profile-hint{grid-column:1/-1}.profile-success{color:#2f7a4f;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:700;display:flex}.app[data-theme=dark] .profile-success{color:#8fd6aa}.profile-hint{color:var(--muted);margin:0;font-size:12px}@media (max-width:720px){.profile-grid,.profile-form{grid-template-columns:1fr}.profile-card .btn,.profile-form-actions .btn{width:100%}.profile-avatar{border-radius:15px;width:52px;height:52px;font-size:22px}}.lesson-end-mark{min-height:28px;color:var(--muted);opacity:0;justify-content:center;align-items:center;gap:6px;margin-top:22px;font-size:12px;font-weight:750;transition:opacity .3s;display:flex}.lesson-end-mark.is-done{opacity:1}.profile-view .error-message{color:#b44f4a;font-weight:700}.app[data-theme=dark] .profile-view .error-message{color:#ff9d97}.profile-role{white-space:nowrap;align-items:center;gap:5px;display:inline-flex}:root{font-family:DM Sans Variable,DM Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.app,.login-screen{--bg:#f4f6f2;--surface:#fff;--surface2:#eef2ec;--text:#14201a;--muted:#5d6a62;--line:#e0e6df;--green:#1d5c3f;--green2:#1f6b47;--soft:#e5f0e9;--accent-ink:#fff;--amber:#e9a925;--amber-soft:#fbf1da;--blue:#2f63b5;--blue-soft:#e6eefb;--violet:#6a4fb3;--violet-soft:#efeafb;--shadow-sm:0 1px 2px #14201a0d,0 2px 8px #14201a0a;--shadow-md:0 2px 4px #14201a0a,0 10px 28px #14201a14;--radius:18px;--head:"Manrope Variable","Manrope",system-ui,sans-serif}.app[data-theme=dark]{--bg:#101513;--surface:#18201c;--surface2:#212b26;--text:#ecf2ee;--muted:#a3b1a9;--line:#2c3832;--green:#2a7d53;--green2:#7fd0a1;--soft:#1c3328;--amber:#f0b93f;--amber-soft:#3a2f16;--blue:#7ea8ec;--blue-soft:#1b2a40;--violet:#b4a0ee;--violet-soft:#2a2340;--shadow-sm:0 1px 2px #0000004d;--shadow-md:0 10px 30px #00000059}body{background:#f4f6f2}.app{background:var(--bg);font-family:DM Sans Variable,DM Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.app h1,.app h2,.app h3,.mode-copy strong,.question-card h2,.welcome h1,.section-heading h1{font-family:var(--head)}.topbar{z-index:20;background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:saturate(1.4)blur(14px);border-bottom:1px solid #0000;transition:border-color .2s;position:sticky;top:0}.topbar.reader-topbar{border-bottom-color:var(--line)}.brand-lockup>span:last-child{font-family:var(--head);letter-spacing:-.3px;font-weight:800}.brand-lockup>span:last-child>span{color:var(--green2)}.icon-button{border-color:var(--line);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .15s,box-shadow .15s}.icon-button:hover{box-shadow:var(--shadow-md)}.user-chip-button{background:var(--surface);box-shadow:var(--shadow-sm);border-color:var(--line)!important}.btn{border-radius:12px;transition:transform .12s,box-shadow .15s,background .15s}.btn:active:not(:disabled){transform:translateY(1px)}.btn-primary{background:var(--green);border-color:var(--green);color:var(--accent-ink);box-shadow:0 6px 16px color-mix(in srgb,var(--green) 28%,transparent)}.btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--green) 88%,#000)}.btn-secondary{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-sm)}.btn-secondary:hover:not(:disabled){border-color:color-mix(in srgb,var(--green2) 40%,var(--line))}.back-link{color:var(--muted);transition:color .15s}.back-link:hover,.overline{color:var(--green2)}.home-hero{color:#fff;background:radial-gradient(circle at 92% 8%,#e9a92538 0,#0000 42%),linear-gradient(135deg,#1d5c3f 0%,#174a33 55%,#123a29 100%);border-radius:24px;justify-content:space-between;align-items:center;gap:24px;margin:4px 0 22px;padding:max(22px,min(4vw,34px));display:flex;position:relative;overflow:hidden;box-shadow:0 18px 40px #1d5c3f40}.home-hero:after{content:"";pointer-events:none;border:38px solid #ffffff0d;border-radius:50%;width:340px;height:340px;position:absolute;top:auto;bottom:-55%;left:auto;right:-10%}.home-hero-copy{z-index:1;min-width:0;position:relative}.home-greeting{color:#bfe3cd;margin:0 0 6px;font-size:14px;font-weight:700}.home-hero h1{color:#fff;letter-spacing:-1px;margin:0;font-size:max(26px,min(4.6vw,40px));line-height:1.1}.home-chips{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.home-chip{color:#eaf6ef;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#ffffff1f;border-radius:999px;align-items:center;gap:6px;padding:7px 12px;font-size:12px;font-weight:700;display:inline-flex}.home-chip.is-due{color:#2a1d00;background:#e9a925f2}.home-chip.is-streak{background:#ffffff2e}.home-ring{--p:0;z-index:1;background:conic-gradient(#f0b93f calc(var(--p)*1%),#ffffff24 0);border-radius:50%;flex:none;place-items:center;width:118px;height:118px;display:grid;position:relative}.home-ring>span{background:#174a33;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:90px;height:90px;line-height:1.1;display:flex}.home-ring strong{font-family:var(--head);font-size:24px;font-weight:800}.home-ring small{color:#bfe3cd;font-size:11px;font-weight:700}.app[data-theme=dark] .home-hero{background:radial-gradient(circle at 92% 8%,#f0b93f29 0,#0000 42%),linear-gradient(135deg,#1c4a34 0%,#153826 60%,#0f2a1d 100%);box-shadow:0 18px 40px #0006}.app[data-theme=dark] .home-ring>span{background:#163a28}.home-view .welcome{display:none}.home-view .mode-grid{gap:14px}.mode-card{border-color:var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s,border-color .18s}.mode-card:hover:not(:disabled){box-shadow:var(--shadow-md);border-color:color-mix(in srgb,var(--green2) 30%,var(--line));transform:translateY(-2px)}.mode-card>svg{transition:transform .18s}.mode-card:hover>svg{transform:translate(3px)}.mode-copy strong{letter-spacing:-.2px;font-weight:800}.mode-copy small{color:var(--muted)}.app .mode-icon{background:var(--soft);color:var(--green2)}.app .mode-practice-card .mode-icon{background:var(--amber-soft);color:#9a6a00}.app .mode-offline-card .mode-icon{background:var(--blue-soft);color:var(--blue)}.app .mode-editor-card .mode-icon{background:var(--violet-soft);color:var(--violet)}.app .mode-sync-card .mode-icon{background:var(--surface2);color:var(--muted)}.app[data-theme=dark] .mode-practice-card .mode-icon{color:var(--amber)}.app .mode-primary{background:var(--surface);border-color:var(--line);color:var(--text)}.app .mode-primary>svg,.app .mode-primary .mode-copy small{color:var(--muted)}.app .mode-primary .mode-icon{background:var(--soft);color:var(--green2)}.chapter-progress-row,.lesson-card,.topic-row,.lesson-title-row{box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s,border-color .18s;border-color:var(--line)!important;background:var(--surface)!important;border-radius:16px!important}.chapter-progress-row:hover,.lesson-card:hover,.topic-row:hover,.lesson-title-row:hover{box-shadow:var(--shadow-md);transform:translateY(-1px);border-color:color-mix(in srgb,var(--green2) 35%,var(--line))!important}.chapter-progress-copy strong{font-family:var(--head);font-weight:800}.chapter-progress-track,.reader-progress-track{border-radius:99px;overflow:hidden;background:var(--surface2)!important}.chapter-progress-track i,.reader-progress-track span{border-radius:99px;background:linear-gradient(90deg,var(--green),#3a9a68)!important}.chapter-progress-percent,.reader-progress-percent{font-family:var(--head);color:var(--green2);font-weight:800}.topic-row.selected{border-color:var(--green2)!important;background:var(--soft)!important}.lesson-index{border-radius:12px}.lesson-index.is-complete{background:var(--soft);color:var(--green2);border-color:#0000}.lesson-total,.reader-progress{box-shadow:var(--shadow-sm);border-color:var(--line)!important;background:var(--surface)!important;border-radius:16px!important}.lesson-total>span{font-family:var(--head);color:var(--green2)}.lesson-menu-heading h1{font-family:var(--head);letter-spacing:-1px}.empty-panel{background:var(--surface);box-shadow:var(--shadow-sm);border-radius:20px}.empty-panel>svg{color:var(--green2)}.reader-paper{line-height:1.7}.reader-paper p{font-size:16px}.page-circle.active:not(.lesson-completion-indicator){background:var(--amber);box-shadow:0 2px 10px color-mix(in srgb,var(--amber) 45%,transparent)}.page-circle.lesson-completion-indicator{background:var(--green);border-color:var(--green)}.lesson-end-mark.is-done{color:var(--green2)}.lesson-completion-check{background:var(--green)!important}.lesson-completion-choice{box-shadow:var(--shadow-sm);border-radius:16px;transition:transform .18s,box-shadow .18s}.lesson-completion-choice:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.question-card{box-shadow:var(--shadow-md);border-radius:22px;position:relative;overflow:hidden}.question-card:before{content:"";background:linear-gradient(90deg,var(--green),var(--amber));height:4px;position:absolute;top:0;bottom:auto;left:0;right:0}.question-card h2{letter-spacing:-.4px}.drawer{background:var(--surface);border-radius:22px 0 0 22px}.drawer-user{background:var(--soft)}.drawer-user strong{color:var(--green2)}.drawer-link{border-radius:11px}.drawer-link:hover{background:var(--surface2)}.switch.on{background:var(--green)!important}.admin-tabs{background:var(--surface2);border-radius:14px}.admin-tabs button.active{background:var(--surface);color:var(--green2);box-shadow:var(--shadow-sm)}.login-screen{background:radial-gradient(circle at 12% 8%,#e9a92529 0,transparent 35%), radial-gradient(circle at 88% 92%,#1d5c3f29 0,transparent 40%), var(--bg)!important}.login-panel{border-color:var(--line)!important;border-radius:24px!important;box-shadow:0 24px 60px #14201a1f!important}.login-copy h1{font-family:var(--head);letter-spacing:-1.2px}.login-form input{transition:border-color .15s,box-shadow .15s;border-radius:12px!important}.login-form input:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--green2) 18%,transparent);outline:none;border-color:var(--green2)!important}.error-message{font-weight:700;color:#b23b35!important}.profile-avatar{background:linear-gradient(135deg,var(--green),#3a9a68);color:#fff}.profile-card{box-shadow:var(--shadow-sm);border-radius:20px}.profile-bar i{background:linear-gradient(90deg,var(--green),#3a9a68)}.profile-form input:focus{border-color:var(--green2);box-shadow:0 0 0 4px color-mix(in srgb,var(--green2) 18%,transparent);outline:none}:focus-visible{outline:2px solid var(--green2);outline-offset:2px}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media (max-width:620px){.home-hero{border-radius:20px;flex-direction:column;align-items:flex-start;gap:18px}.home-ring{width:76px;height:76px;position:absolute;top:18px;right:18px}.home-ring>span{width:58px;height:58px}.home-ring strong{font-size:16px}.home-ring small{display:none}.home-hero-copy{padding-right:84px}.home-hero h1{font-size:26px}}.app-drawer{border-left:1px solid var(--line);flex-direction:column;gap:0;width:min(340px,90vw);padding:18px 14px 14px;display:flex}.drawer-top{align-items:center;gap:8px;margin-bottom:14px;display:flex}.drawer-profile{border:1px solid var(--line);background:linear-gradient(135deg,var(--soft),var(--surface));min-width:0;color:var(--text);text-align:left;border-radius:16px;flex:1;align-items:center;gap:12px;padding:12px;transition:box-shadow .15s,border-color .15s;display:flex}.drawer-profile:hover{border-color:color-mix(in srgb,var(--green2) 35%,var(--line));box-shadow:var(--shadow-sm)}.drawer-profile>svg{color:var(--muted);flex:none}.drawer-avatar{background:linear-gradient(135deg,var(--green),#3a9a68);color:#fff;width:42px;height:42px;font-family:var(--head);border-radius:13px;flex:none;place-items:center;font-size:18px;font-weight:800;display:grid}.drawer-profile-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.drawer-profile-copy strong{font-family:var(--head);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:800;overflow:hidden}.drawer-profile-copy small{color:var(--muted);font-size:12px;font-weight:650}.drawer-close{flex:none;width:40px;height:40px}.drawer-scroll{flex:1;margin:0 -4px;padding:0 4px;overflow-y:auto}.nav-group{padding:6px 0 8px}.nav-group+.nav-group{border-top:1px solid var(--line)}.nav-group-label{color:var(--muted);letter-spacing:1.2px;text-transform:uppercase;margin:8px 10px 6px;font-size:10.5px;font-weight:800}.nav-item{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:10px;font-size:14px;font-weight:650;transition:background .12s;display:flex;position:relative}.nav-item:hover:not(:disabled){background:var(--surface2)}.nav-item:disabled{opacity:.5}.nav-item.is-active{background:var(--soft);color:var(--green2);font-weight:800}.nav-item.is-active:before{content:"";background:var(--green2);border-radius:3px;width:3px;position:absolute;top:9px;bottom:9px;left:-4px}.nav-item-icon{background:var(--surface2);width:32px;height:32px;color:var(--muted);border-radius:10px;flex:none;place-items:center;display:grid}.nav-item.is-active .nav-item-icon{background:var(--surface);color:var(--green2)}.nav-item-label{flex:1}.nav-badge{background:var(--amber);color:#2a1d00;text-align:center;border-radius:99px;min-width:22px;padding:2px 7px;font-size:11px;font-weight:800}.nav-setting{align-items:center;gap:12px;padding:8px 10px;display:flex}.nav-setting-copy{flex-direction:column;flex:1;gap:1px;display:flex}.nav-setting-copy strong{font-size:14px;font-weight:650}.nav-setting-copy small{color:var(--muted);font-size:11.5px}.nav-logout{border:1px solid var(--line);background:var(--surface);color:#b23b35;border-radius:12px;justify-content:center;align-items:center;gap:8px;margin-top:10px;padding:12px;font-size:14px;font-weight:750;display:flex}.nav-logout:hover{background:color-mix(in srgb,#b23b35 8%,var(--surface))}.app[data-theme=dark] .nav-logout{color:#ff9d97}.app[data-theme=dark] .app-drawer{background:var(--surface)}.top-actions{gap:8px}.app .mode-exam-card .mode-icon{color:#b8432f;background:#fde8e4}.app .mode-glossary-card .mode-icon{color:#22767c;background:#e4f3f4}.app[data-theme=dark] .mode-exam-card .mode-icon{color:#ffad9c;background:#3d221d}.app[data-theme=dark] .mode-glossary-card .mode-icon{color:#8fd8dd;background:#173336}.admin-toolbar-actions{flex-wrap:wrap;gap:8px;display:flex}.field>span{margin-bottom:8px;display:block}.kind-picker{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;display:grid}.kind-option{border:1px solid var(--line);background:var(--surface);color:var(--text);text-align:left;border-radius:13px;align-items:center;gap:10px;padding:10px;transition:border-color .15s,background .15s;display:flex}.kind-option:hover{border-color:color-mix(in srgb,var(--green2) 40%,var(--line))}.kind-option.is-active{border-color:var(--green2);background:var(--soft);box-shadow:0 0 0 1px var(--green2) inset}.kind-option-icon{background:var(--surface2);width:34px;height:34px;color:var(--green2);border-radius:10px;flex:none;place-items:center;display:grid}.kind-option.is-active .kind-option-icon{background:var(--surface)}.kind-option-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.kind-option-copy strong{font-size:13px;font-weight:800}.kind-option-copy small{color:var(--muted);font-size:11px;line-height:1.3}.task-spec-editor{flex-direction:column;gap:14px;margin:4px 0 14px;display:flex}.spec-block{border:1px solid var(--line);background:var(--surface2);border-radius:14px;flex-direction:column;gap:8px;padding:14px;display:flex}.spec-block-head h4{margin:0;font-size:14px}.spec-block-head small{color:var(--muted);margin-top:3px;font-size:12px;line-height:1.45;display:block}.spec-block textarea,.spec-row input{border:1px solid var(--line);background:var(--surface);width:100%;min-height:42px;color:var(--text);font:inherit;border-radius:10px;padding:9px 11px;font-size:14px}.spec-block textarea{resize:vertical}.spec-row{align-items:center;gap:8px;display:flex}.spec-row.is-correct input{background:color-mix(in srgb,#3a9a68 8%,var(--surface));border-color:#3a9a68}.spec-correct-toggle{border:2px solid var(--line);background:var(--surface);color:#fff;border-radius:9px;flex:none;place-items:center;width:30px;height:30px;display:grid}.spec-correct-toggle[aria-pressed=true]{background:#2f8a5c;border-color:#2f8a5c}.spec-pair-icon{color:var(--muted);flex:none}.spec-step{background:var(--surface);width:28px;height:28px;color:var(--green2);border-radius:99px;flex:none;place-items:center;font-size:12px;font-weight:800;display:grid}.spec-add{align-self:flex-start}.spec-note{color:var(--muted);margin:0;font-size:12px}.spec-block code{background:var(--surface);border-radius:5px;padding:1px 5px;font-size:12px}.spec-grid-3{background:0 0;border:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;display:grid}.task-image-field{flex-direction:column;gap:8px;display:flex}.task-image-field-head{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;font-size:12px;font-weight:750;display:flex}.task-image-drop{border:1.5px dashed var(--line);background:var(--surface);min-height:64px;color:var(--muted);cursor:pointer;border-radius:13px;justify-content:center;align-items:center;gap:10px;padding:12px;font-size:13px;font-weight:700;transition:border-color .15s,color .15s;display:flex;position:relative}.task-image-drop:hover{border-color:var(--green2);color:var(--green2)}.task-image-drop input{opacity:0;cursor:pointer;position:absolute;top:0;bottom:0;left:0;right:0}.task-image-drop.is-busy{opacity:.6;pointer-events:none}.task-admin-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.task-kind-tag{background:var(--soft);color:var(--green2);letter-spacing:.2px;border-radius:99px;align-self:flex-start;padding:2px 8px;font-size:10.5px;font-weight:800;display:inline-block}.task-meta-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.task-image{border:1px solid var(--line);background:var(--surface2);border-radius:14px;margin:16px 0 4px;overflow:hidden}.task-image img,.task-image-media{-o-object-fit:contain;object-fit:contain;width:100%;max-height:420px;display:block}.task-answer-area{margin-top:20px}.choice-hint{color:var(--muted);margin:0 0 10px;font-size:12.5px;font-weight:650}.choice-list{flex-direction:column;gap:8px;display:flex}.choice-option{border:1.5px solid var(--line);background:var(--surface);width:100%;min-height:54px;color:var(--text);text-align:left;border-radius:14px;align-items:center;gap:12px;padding:12px 14px;font-size:15px;font-weight:600;transition:border-color .12s,background .12s,transform .12s;display:flex}.choice-option:hover:not(:disabled){border-color:color-mix(in srgb,var(--green2) 45%,var(--line))}.choice-option:active:not(:disabled){transform:scale(.995)}.choice-indicator{border:2px solid var(--line);color:#fff;border-radius:99px;flex:none;place-items:center;width:22px;height:22px;transition:background .12s,border-color .12s;display:grid}.choice-list.is-multiple .choice-indicator{border-radius:7px}.choice-option.is-selected{border-color:var(--green2);background:var(--soft)}.choice-option.is-selected .choice-indicator{border-color:var(--green);background:var(--green)}.choice-text{flex:1}.choice-state{flex:none}.choice-option.is-correct{background:color-mix(in srgb,#2f8a5c 12%,var(--surface));border-color:#2f8a5c}.choice-option.is-correct .choice-state{color:#2f8a5c}.choice-option.is-wrong{background:color-mix(in srgb,#c2473f 10%,var(--surface));border-color:#c2473f}.choice-option.is-wrong .choice-indicator{background:#c2473f;border-color:#c2473f}.choice-option.is-wrong .choice-state{color:#c2473f}.choice-option:disabled{opacity:.55}.truefalse-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.truefalse-option{border:1.5px solid var(--line);background:var(--surface);min-height:64px;color:var(--text);font-family:var(--head);border-radius:14px;justify-content:center;align-items:center;gap:8px;font-size:17px;font-weight:800;transition:border-color .12s,background .12s;display:flex}.truefalse-option:hover{border-color:color-mix(in srgb,var(--green2) 45%,var(--line))}.truefalse-option.is-selected{border-color:var(--green2);background:var(--soft);color:var(--green2)}.truefalse-option.is-correct{background:color-mix(in srgb,#2f8a5c 14%,var(--surface));color:#2f8a5c;border-color:#2f8a5c}.truefalse-option.is-wrong{background:color-mix(in srgb,#c2473f 10%,var(--surface));color:#c2473f;border-color:#c2473f}.number-answer{align-items:center;gap:10px;display:flex}.number-answer input{border:1.5px solid var(--line);background:var(--surface);width:min(240px,100%);height:56px;color:var(--text);font-family:var(--head);border-radius:14px;padding:0 16px;font-size:22px;font-weight:800}.number-answer input:focus,.cloze-gap input:focus,.matching-row select:focus{border-color:var(--green2);box-shadow:0 0 0 4px color-mix(in srgb,var(--green2) 16%,transparent);outline:none}.number-unit{color:var(--muted);font-size:16px;font-weight:750}.number-answer.is-correct input{color:#2f8a5c;border-color:#2f8a5c}.number-answer.is-wrong input{color:#c2473f;border-color:#c2473f}.cloze-text{margin:0;font-size:17px;line-height:2.4}.cloze-gap{vertical-align:middle;flex-direction:column;margin:0 3px;line-height:1.2;display:inline-flex}.cloze-gap input{border:1.5px solid var(--line);background:var(--surface2);min-width:80px;height:38px;color:var(--text);font:inherit;text-align:center;border-bottom-width:3px;border-radius:9px;padding:0 10px;font-weight:700}.cloze-gap.is-correct input{background:color-mix(in srgb,#2f8a5c 12%,var(--surface));color:#2f8a5c;border-color:#2f8a5c}.cloze-gap.is-wrong input{background:color-mix(in srgb,#c2473f 10%,var(--surface));color:#c2473f;border-color:#c2473f;text-decoration:line-through}.cloze-solution{color:#2f8a5c;text-align:center;margin-top:3px;font-size:12px;font-weight:800}.matching-list{flex-direction:column;gap:8px;display:flex}.matching-row{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;grid-template-columns:minmax(0,1fr) auto minmax(0,1.2fr);align-items:center;gap:10px;padding:10px 12px;display:grid}.matching-left{font-weight:750}.matching-arrow{color:var(--muted)}.matching-row select{border:1px solid var(--line);background:var(--surface2);width:100%;height:42px;color:var(--text);font:inherit;border-radius:10px;padding:0 10px;font-size:14px}.matching-row.is-correct{background:color-mix(in srgb,#2f8a5c 10%,var(--surface));border-color:#2f8a5c}.matching-row.is-wrong{background:color-mix(in srgb,#c2473f 8%,var(--surface));border-color:#c2473f}.matching-solution{color:#2f8a5c;grid-column:1/-1;font-size:12px;font-weight:800}.sortable-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.sortable-list.is-sorting{-webkit-user-select:none;user-select:none}.sortable-row{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;align-items:center;gap:10px;padding:8px 10px;transition:box-shadow .15s,border-color .15s,transform .15s;display:flex}.sortable-row.is-dragging{border-color:var(--green2);box-shadow:var(--shadow-md);background:var(--soft);transform:scale(1.015)}.sortable-row.is-correct{background:color-mix(in srgb,#2f8a5c 10%,var(--surface));border-color:#2f8a5c}.sortable-row.is-wrong{background:color-mix(in srgb,#c2473f 8%,var(--surface));border-color:#c2473f}.sortable-handle{background:var(--surface2);width:36px;height:40px;color:var(--muted);cursor:grab;touch-action:none;border:0;border-radius:10px;flex:none;place-items:center;display:grid}.sortable-handle:active{cursor:grabbing}.sortable-handle:disabled{cursor:default;opacity:.5}.sortable-index{background:var(--soft);width:26px;height:26px;color:var(--green2);border-radius:99px;flex:none;place-items:center;font-size:12px;font-weight:800;display:grid}.sortable-text{flex:1;font-weight:650}.sortable-arrows{gap:2px;display:flex}.sortable-arrows button{width:30px;height:30px;color:var(--muted);background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.sortable-arrows button:hover:not(:disabled){background:var(--surface2);color:var(--text)}.sortable-arrows button:disabled{opacity:.3}.hotspot-surface{border:1px solid var(--line);background:var(--surface2);cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:14px;display:block;position:relative;overflow:hidden}.hotspot-surface.is-revealed{cursor:default}.hotspot-surface img,.hotspot-image{pointer-events:none;width:100%;height:auto;display:block}.hotspot-region{pointer-events:none;background:#2f8a5c33;border:2px solid #2f8a5c;border-radius:6px;position:absolute}.hotspot-region b{color:#fff;background:#2f8a5c;border-radius:5px 0 6px;padding:1px 6px;font-size:11px;position:absolute;top:-1px;left:-1px}.hotspot-region.is-draft{border-style:dashed;border-color:var(--amber);background:#e9a92533}.hotspot-marker{background:var(--amber);pointer-events:none;border:3px solid #fff;border-radius:99px;width:30px;height:30px;margin:-15px 0 0 -15px;animation:.18s ease-out hotspot-pop;position:absolute;box-shadow:0 2px 10px #00000059}.hotspot-marker:after{content:"";background:#fff;border-radius:99px;position:absolute;top:8px;bottom:8px;left:8px;right:8px}.hotspot-marker.is-correct{background:#2f8a5c}.hotspot-marker.is-wrong{background:#c2473f}@keyframes hotspot-pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.hotspot-help{color:var(--muted);margin:8px 0 0;font-size:12.5px}.hotspot-region-list{flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none;display:flex}.hotspot-region-list li{background:var(--surface);border-radius:99px;align-items:center;gap:4px;padding:3px 4px 3px 10px;font-size:12px;font-weight:700;display:flex}.task-feedback{border-radius:14px;flex-direction:column;gap:6px;margin-top:18px;padding:14px 16px;animation:.2s ease-out feedback-in;display:flex}.task-feedback strong{font-family:var(--head);align-items:center;gap:8px;font-size:16px;display:flex}.task-feedback p{margin:0;font-size:14px;line-height:1.55}.task-feedback.is-correct{background:color-mix(in srgb,#2f8a5c 12%,var(--surface));color:var(--text)}.task-feedback.is-correct strong{color:#2f8a5c}.task-feedback.is-wrong{background:color-mix(in srgb,#c2473f 10%,var(--surface))}.task-feedback.is-wrong strong{color:#c2473f}.task-feedback-solution{font-weight:750}.task-feedback-explanation{color:var(--muted)}@keyframes feedback-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.app[data-theme=dark] .choice-option.is-correct .choice-state,.app[data-theme=dark] .task-feedback.is-correct strong,.app[data-theme=dark] .cloze-solution,.app[data-theme=dark] .matching-solution,.app[data-theme=dark] .truefalse-option.is-correct{color:#7fd0a1}.app[data-theme=dark] .task-feedback.is-wrong strong,.app[data-theme=dark] .truefalse-option.is-wrong{color:#ff9d97}.exam-view{max-width:860px;margin:0 auto}.exam-intro{align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.exam-intro h1{letter-spacing:-1px;margin:0;font-size:max(28px,min(5vw,38px))}.exam-intro p:last-child{color:var(--muted);margin:8px 0 0;line-height:1.55}.exam-intro-icon{color:#b8432f;background:#fde8e4;border-radius:18px;flex:none;place-items:center;width:58px;height:58px;display:grid}.app[data-theme=dark] .exam-intro-icon{color:#ffad9c;background:#3d221d}.exam-setup{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:20px;flex-direction:column;gap:18px;padding:20px;display:flex}.exam-setup-group h3{color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin:0 0 9px;font-size:11px;font-weight:800}.exam-setup-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;display:grid}.chip-row{flex-wrap:wrap;gap:7px;display:flex}.select-chip{border:1.5px solid var(--line);background:var(--surface);color:var(--text);border-radius:99px;align-items:center;gap:6px;padding:8px 12px;font-size:13px;font-weight:700;display:inline-flex}.select-chip span{background:var(--surface2);color:var(--muted);border-radius:99px;padding:1px 7px;font-size:11px}.select-chip.is-active{border-color:var(--green2);background:var(--soft);color:var(--green2)}.segmented{background:var(--surface2);border-radius:12px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.segmented button{min-width:52px;min-height:36px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;flex:1;padding:0 10px;font-size:13px;font-weight:750}.segmented button.is-active{background:var(--surface);color:var(--green2);box-shadow:var(--shadow-sm)}.exam-start{min-height:52px;font-size:14px}.exam-bar{z-index:5;background:var(--bg);align-items:center;gap:12px;margin:-6px 0 10px;padding:10px 0;display:flex;position:sticky;top:72px}.exam-bar-copy{flex-direction:column;flex:1;display:flex}.exam-bar-copy strong{font-family:var(--head);font-size:16px}.exam-bar-copy small{color:var(--muted);font-size:12px}.exam-timer{background:var(--surface);border:1px solid var(--line);font-family:var(--head);font-variant-numeric:tabular-nums;border-radius:99px;align-items:center;gap:6px;padding:8px 12px;font-size:15px;font-weight:800;display:inline-flex}.exam-timer.is-urgent{background:color-mix(in srgb,#c2473f 12%,var(--surface));color:#c2473f;border-color:#c2473f;animation:1s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.65}}.exam-progress{background:var(--surface2);border-radius:99px;height:6px;margin-bottom:12px;overflow:hidden}.exam-progress i{background:linear-gradient(90deg,var(--green),#3a9a68);height:100%;transition:width .3s;display:block}.exam-dots{flex-wrap:wrap;gap:6px;margin-bottom:4px;display:flex}.exam-dot{border:1.5px solid var(--line);background:var(--surface);width:32px;height:32px;color:var(--muted);border-radius:9px;font-size:12px;font-weight:800}.exam-dot.is-answered{background:var(--soft);color:var(--green2);border-color:#0000}.exam-dot.is-current{border-color:var(--amber);box-shadow:0 0 0 2px color-mix(in srgb,var(--amber) 35%,transparent);color:var(--text)}.exam-nav{justify-content:space-between;gap:10px;display:flex}.exam-result-hero{color:#fff;box-shadow:var(--shadow-md);border-radius:24px;align-items:center;gap:22px;padding:24px;display:flex}.exam-result-hero.is-passed{background:linear-gradient(135deg,#1d5c3f,#123a29)}.exam-result-hero.is-failed{background:linear-gradient(135deg,#7a2f24,#4a1a14)}.exam-result-hero h1{color:#fff;margin:0;font-size:max(26px,min(5vw,36px))}.exam-result-hero p{color:#ffffffd1;margin:6px 0 0;font-size:14px}.exam-result-hero .overline{color:#f0b93f;margin:0 0 4px}.exam-result-ring{--p:0;background:conic-gradient(#f0b93f calc(var(--p)*1%),#ffffff26 0);border-radius:50%;flex:none;place-items:center;width:110px;height:110px;display:grid}.exam-result-ring span{background:#00000047;border-radius:50%;place-items:center;width:84px;height:84px;display:grid}.exam-result-ring strong{font-family:var(--head);font-size:24px}.exam-result-actions{flex-wrap:wrap;gap:8px;margin:16px 0 24px;display:flex}.exam-section-title{align-items:center;gap:8px;margin:0 0 12px;font-size:18px;display:flex}.exam-review-list{flex-direction:column;gap:8px;display:flex}.exam-review-item{border:1px solid var(--line);background:var(--surface);border-left-width:4px;border-radius:14px;overflow:hidden}.exam-review-item.is-correct{border-left-color:#2f8a5c}.exam-review-item.is-wrong{border-left-color:#c2473f}.exam-review-head{width:100%;color:var(--text);text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:12px 14px;display:flex}.exam-review-item.is-correct .exam-review-head>svg:first-child{color:#2f8a5c}.exam-review-item.is-wrong .exam-review-head>svg:first-child{color:#c2473f}.exam-review-head span{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.exam-review-head small{color:var(--muted);font-size:11.5px}.exam-review-head strong{font-size:14px}.exam-review-chevron{color:var(--muted);transition:transform .15s}.exam-review-chevron.is-open{transform:rotate(180deg)}.exam-review-body{border-top:1px solid var(--line);padding:4px 16px 16px}.exam-review-body h2{font-size:18px}.exam-history{margin-top:26px}.exam-history ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.exam-history li{border:1px solid var(--line);background:var(--surface);border-radius:13px;align-items:center;gap:12px;padding:10px 14px;display:flex}.exam-history-badge{color:#fff;border-radius:99px;flex:none;place-items:center;width:28px;height:28px;display:grid}.exam-history li.is-passed .exam-history-badge{background:#2f8a5c}.exam-history li.is-failed .exam-history-badge{background:#c2473f}.exam-history-copy{flex-direction:column;gap:2px;display:flex}.exam-history-copy small{color:var(--muted);font-size:12px}.modal-backdrop{z-index:60;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0a100d80;place-items:center;padding:20px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.modal-card{background:var(--surface);width:min(440px,100%);color:var(--text);border-radius:20px;padding:24px;box-shadow:0 30px 80px #0000004d}.modal-card h2{margin:0 0 8px;font-size:20px}.modal-card p{color:var(--muted);margin:0;line-height:1.55}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.search-view,.glossary-view{max-width:860px;margin:0 auto}.search-field{border:1.5px solid var(--line);background:var(--surface);height:56px;color:var(--muted);box-shadow:var(--shadow-sm);border-radius:16px;align-items:center;gap:10px;padding:0 16px;transition:border-color .15s,box-shadow .15s;display:flex}.search-field:focus-within{border-color:var(--green2);box-shadow:0 0 0 4px color-mix(in srgb,var(--green2) 15%,transparent)}.search-field input{min-width:0;height:100%;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:16px}.search-clear{background:var(--surface2);width:32px;height:32px;color:var(--muted);border:0;border-radius:99px;place-items:center;display:grid}.search-hint,.search-empty{color:var(--muted);margin:18px 4px;font-size:14px;line-height:1.55}.search-group{margin-top:22px}.search-group h2{color:var(--muted);letter-spacing:1px;text-transform:uppercase;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;font-weight:800;display:flex}.search-group h2 span{background:var(--surface2);border-radius:99px;padding:1px 8px;font-size:11px}.search-hit{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);text-align:left;box-shadow:var(--shadow-sm);border-radius:14px;align-items:center;gap:12px;margin-bottom:8px;padding:14px 16px;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex}.search-hit:hover{box-shadow:var(--shadow-md);border-color:color-mix(in srgb,var(--green2) 35%,var(--line));transform:translateY(-1px)}.search-hit>svg{color:var(--muted);flex:none}.search-hit-copy{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.search-hit-copy strong{font-family:var(--head);font-size:15px}.search-hit-copy small{color:var(--muted);font-size:13px;line-height:1.5}.search-hit-chapter{letter-spacing:.4px;text-transform:uppercase;font-weight:800;color:var(--green2)!important;font-size:11px!important}.search-hit mark{background:color-mix(in srgb,var(--amber) 45%,transparent);color:inherit;border-radius:3px;padding:0 2px}.glossary-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;display:flex}.glossary-head h1{letter-spacing:-1px;margin:0;font-size:max(28px,min(5vw,38px))}.glossary-head p:last-child{max-width:560px;color:var(--muted);margin:8px 0 0;line-height:1.55}.glossary-form{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-md);border-radius:18px;flex-direction:column;gap:6px;margin-bottom:16px;padding:18px;display:flex}.glossary-form-head{justify-content:space-between;align-items:center;display:flex}.glossary-form-head h2{margin:0;font-size:18px}.glossary-search{margin-bottom:12px}.glossary-letters{z-index:4;background:var(--bg);flex-wrap:wrap;gap:4px;margin:0 0 8px;padding:8px 0;display:flex;position:sticky;top:72px}.glossary-letters a{background:var(--surface);border:1px solid var(--line);min-width:30px;height:30px;color:var(--text);border-radius:8px;place-items:center;font-size:13px;font-weight:800;text-decoration:none;display:grid}.glossary-letters a:hover{border-color:var(--green2);color:var(--green2)}.glossary-letter{color:var(--green2);margin:18px 0 8px;font-size:22px}.glossary-entry{border:1px solid var(--line);background:var(--surface);border-radius:14px;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px;padding:14px 16px;scroll-margin-top:130px;transition:box-shadow .3s,border-color .3s;display:flex}.glossary-entry h3{margin:0 0 4px;font-size:16px}.glossary-entry p{color:var(--muted);white-space:pre-wrap;margin:0;font-size:14px;line-height:1.55}.glossary-entry.is-focused{border-color:var(--amber);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 30%,transparent)}.glossary-entry-actions{gap:4px;display:flex}.glossary-term{border:0;border-bottom:2px dotted color-mix(in srgb,var(--green2) 70%,transparent);color:inherit;font:inherit;cursor:help;background:0 0;padding:0;display:inline}.glossary-term:hover{background:var(--soft);border-bottom-style:solid}.glossary-popover{z-index:70;border:1px solid var(--line);background:var(--surface);width:min(320px,100vw - 24px);color:var(--text);text-align:left;border-radius:14px;padding:14px 16px;font-size:14px;line-height:1.5;animation:.15s ease-out feedback-in;position:fixed;box-shadow:0 18px 50px #0003}.glossary-popover strong{color:var(--green2);font-family:var(--head);align-items:center;gap:6px;display:flex}.glossary-popover p{color:var(--text);margin:6px 0 0;font-size:14px}.glossary-popover button{color:var(--green2);background:0 0;border:0;margin-top:10px;padding:0;font-size:13px;font-weight:800}.import-steps{color:var(--muted);flex-direction:column;gap:10px;margin:4px 0 14px;padding-left:20px;font-size:13.5px;line-height:1.55;display:flex}.import-steps strong{color:var(--text)}.import-steps .btn{width:max-content;margin-top:8px;display:flex}.import-drop{margin-bottom:12px}.import-summary{flex-wrap:wrap;gap:12px;margin:6px 0 10px;font-size:13px;font-weight:700;display:flex}.import-summary span{align-items:center;gap:5px;display:inline-flex}.import-summary .is-ok{color:#2f8a5c}.import-summary .is-bad{color:#c2473f}.import-table-wrap{border:1px solid var(--line);border-radius:12px;max-height:320px;overflow:auto}.import-table{border-collapse:collapse;width:100%;font-size:12.5px}.import-table th{background:var(--surface2);color:var(--muted);text-align:left;text-transform:uppercase;letter-spacing:.5px;padding:8px 10px;font-size:11px;position:sticky;top:0}.import-table td{border-top:1px solid var(--line);vertical-align:top;padding:8px 10px}.import-table tr.is-bad td{background:#c2473f0f}.import-error{color:#c2473f;font-weight:700}.import-ok{color:#2f8a5c}@media (max-width:720px){.spec-grid-3,.matching-row{grid-template-columns:1fr}.matching-arrow{display:none}.exam-bar{top:64px}.exam-result-hero{flex-direction:column;align-items:flex-start}.glossary-head{flex-direction:column;align-items:stretch}.kind-picker{grid-template-columns:1fr 1fr}.kind-option-copy small,.sortable-arrows{display:none}}.search-field input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}.sync-hint.is-ok{color:var(--muted)}.sync-hint.is-new{font-weight:800;color:var(--green2)!important}.sync-hint.is-warn{color:#b8432f!important}.sync-hint.is-busy{color:var(--muted)}.app[data-theme=dark] .sync-hint.is-warn{color:#ffad9c!important}.update-banner{border:1px solid color-mix(in srgb,var(--green2) 35%,var(--line));background:var(--soft);color:var(--text);border-radius:14px;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px 10px 14px;font-size:13px;animation:.2s ease-out feedback-in;display:flex}.update-banner>svg{color:var(--green2);flex:none}.update-banner span{flex:1;line-height:1.4}.update-banner button{background:var(--green);color:#fff;border:0;border-radius:10px;flex:none;padding:8px 12px;font-size:12.5px;font-weight:800}.nav-sync-hint{max-width:48%;color:var(--muted);text-align:right;text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;font-size:11px;font-weight:650;display:flex;overflow:hidden}.nav-dot{background:var(--amber);border-radius:99px;flex:none;width:8px;height:8px}.sync-status-row{color:var(--muted);align-items:center;gap:8px;margin:-4px 0 12px;font-size:13px;font-weight:700;display:flex}.sync-status-dot{background:#2f8a5c;border-radius:99px;width:9px;height:9px;box-shadow:0 0 0 3px #2f8a5c33}.sync-status-dot.is-busy{background:var(--amber);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 25%,transparent);animation:1s ease-in-out infinite pulse}.sync-status-dot.is-warn{background:#c2473f;box-shadow:0 0 0 3px #c2473f33}@media (max-width:720px){.update-banner{flex-wrap:wrap}.update-banner button{width:100%}}.admin-tabs.is-hidden{display:none}.icon-button.danger{color:#c2473f}.icon-button.danger:hover{background:color-mix(in srgb,#c2473f 10%,var(--surface))}.task-studio{--studio-top:72px;position:relative}.studio-bar{top:var(--studio-top);z-index:15;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line);align-items:center;gap:14px;margin:-12px -4px 18px;padding:12px 4px;display:flex;position:sticky}.studio-back{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:11px;align-items:center;gap:6px;padding:8px 12px 8px 8px;font-size:13px;font-weight:750;display:inline-flex}.studio-back:hover{border-color:var(--green2);color:var(--green2)}.studio-title{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.studio-title strong{font-family:var(--head);letter-spacing:-.3px;font-size:18px;font-weight:800;display:block}.studio-title small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;display:block;overflow:hidden}.studio-kind-icon{background:var(--soft);width:40px;height:40px;color:var(--green2);border-radius:12px;flex:none;place-items:center;display:grid}.studio-actions{align-items:center;gap:8px;display:flex}.studio-tabs{display:none}.studio-grid{grid-template-columns:minmax(0,1fr) minmax(320px,420px);align-items:start;gap:22px;display:grid}.studio-form{flex-direction:column;gap:14px;min-width:0;display:flex}.studio-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:20px;flex-direction:column;gap:14px;padding:20px;display:flex}.studio-card-head{align-items:flex-start;gap:12px;display:flex}.studio-card-head h3{font-family:var(--head);margin:0;font-size:16px;font-weight:800}.studio-card-head h3 em{color:var(--muted);margin-left:6px;font-size:12px;font-style:normal;font-weight:650}.studio-card-head p{color:var(--muted);margin:3px 0 0;font-size:13px;line-height:1.45}.step-no{background:var(--green);color:#fff;border-radius:99px;flex:none;place-items:center;width:28px;height:28px;font-size:13px;font-weight:800;display:grid}.studio-question{border:1.5px solid var(--line);background:var(--surface2);width:100%;min-height:52px;color:var(--text);font:inherit;resize:vertical;border-radius:14px;padding:12px 14px;font-size:16px;line-height:1.5;transition:border-color .15s,box-shadow .15s,background .15s}.studio-question:focus,.answer-editor input:focus,.cloze-source:focus,.mini-field input:focus,.new-category-inline input:focus{border-color:var(--green2);background:var(--surface);box-shadow:0 0 0 4px color-mix(in srgb,var(--green2) 14%,transparent);outline:none}.studio-question.has-error{border-color:#c2473f;box-shadow:0 0 0 4px #c2473f1f}.kind-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;display:grid}.kind-tile{border:1.5px solid var(--line);background:var(--surface);min-height:86px;color:var(--text);text-align:center;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px 8px;transition:border-color .15s,background .15s,transform .12s;display:flex;position:relative}.kind-tile:hover{border-color:color-mix(in srgb,var(--green2) 45%,var(--line));transform:translateY(-1px)}.kind-tile-icon{background:var(--surface2);width:36px;height:36px;color:var(--muted);border-radius:11px;place-items:center;transition:background .15s,color .15s;display:grid}.kind-tile-label{font-size:12px;font-weight:750;line-height:1.2}.kind-tile.is-active{border-color:var(--green2);background:var(--soft)}.kind-tile.is-active .kind-tile-icon{background:var(--green);color:#fff}.kind-tile-check{background:var(--green);color:#fff;border-radius:99px;place-items:center;width:18px;height:18px;display:grid;position:absolute;top:6px;right:6px}.image-field-add{border:1.5px dashed var(--line);width:100%;color:var(--muted);text-align:left;background:0 0;border-radius:14px;align-items:center;gap:12px;padding:12px 14px;transition:border-color .15s,color .15s,background .15s;display:flex}.image-field-add:hover{border-color:var(--green2);color:var(--green2);background:var(--soft)}.image-field-add span{flex-direction:column;gap:2px;display:flex}.image-field-add strong{color:var(--text);font-size:13.5px}.image-field-add small{font-size:12px}.image-field.has-image{border:1px solid var(--line);background:var(--surface2);border-radius:14px;align-items:center;gap:14px;padding:10px;display:flex}.image-field-thumb{background:var(--surface);border-radius:10px;flex:none;width:120px;height:84px;overflow:hidden}.image-field-thumb img,.image-field-media{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.image-field-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.image-field-copy strong{font-size:13.5px}.image-field-copy small{color:var(--muted);font-size:12px}.image-field-actions{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.image-field-actions .btn{min-height:32px;padding:0 10px;font-size:12px}.answer-editor{flex-direction:column;gap:8px;display:flex}.answer-editor-hint{color:var(--muted);margin:0 0 2px;font-size:13px;line-height:1.5}.answer-editor-result{color:var(--green2);align-items:center;gap:6px;margin:4px 0 0;font-size:13px;font-weight:700;display:flex}.answer-editor input,.cloze-source,.mini-field input,.new-category-inline input{border:1.5px solid var(--line);background:var(--surface2);width:100%;min-height:46px;color:var(--text);font:inherit;border-radius:12px;padding:10px 12px;font-size:15px;transition:border-color .15s,box-shadow .15s,background .15s}.option-row{border:1.5px solid #0000;border-radius:14px;grid-template-columns:28px 22px minmax(0,1fr) auto 34px;align-items:center;gap:10px;padding:6px 6px 6px 10px;transition:background .15s,border-color .15s;display:grid}.option-row.is-correct{background:#2f8a5c14;border-color:#2f8a5c73}.option-row.is-correct input{border-color:color-mix(in srgb,#2f8a5c 50%,var(--line))}.option-mark{border:2px solid var(--line);background:var(--surface);color:#fff;border-radius:99px;place-items:center;width:26px;height:26px;padding:0;transition:background .12s,border-color .12s;display:grid}.option-mark.is-box{border-radius:8px}.option-mark:hover{border-color:#2f8a5c}.option-mark[aria-pressed=true]{background:#2f8a5c;border-color:#2f8a5c}.option-letter{color:var(--muted);font-family:var(--head);text-align:center;font-size:14px;font-weight:800}.option-letter.is-number{background:var(--soft);width:24px;height:24px;color:var(--green2);border-radius:99px;place-items:center;font-size:12px;display:grid}.option-badge{color:#fff;background:#2f8a5c;border-radius:99px;padding:3px 9px;font-size:11px;font-weight:800}.row-remove{width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.row-remove:hover:not(:disabled){color:#c2473f;background:#c2473f1a}.row-remove:disabled{opacity:.25}.add-row{border:1.5px dashed var(--line);min-height:44px;color:var(--muted);background:0 0;border-radius:12px;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:750;transition:border-color .15s,color .15s,background .15s;display:flex}.add-row:hover{border-color:var(--green2);color:var(--green2);background:var(--soft)}.truth-choice{grid-template-columns:1fr 1fr;gap:10px;display:grid}.truth-card{border:1.5px solid var(--line);background:var(--surface);color:var(--muted);border-radius:16px;flex-direction:column;align-items:center;gap:4px;padding:18px 12px;transition:all .15s;display:flex}.truth-card strong{color:var(--text);font-family:var(--head);font-size:17px}.truth-card small{font-size:12px}.truth-card.is-true.is-active{background:color-mix(in srgb,#2f8a5c 10%,var(--surface));color:#2f8a5c;border-color:#2f8a5c}.truth-card.is-false.is-active{background:color-mix(in srgb,#c2473f 9%,var(--surface));color:#c2473f;border-color:#c2473f}.number-editor{grid-template-columns:1.2fr 1fr 1fr;gap:10px;display:grid}.mini-field{flex-direction:column;gap:6px;display:flex}.mini-field span{color:var(--muted);font-size:12px;font-weight:750}.mini-field input{font-family:var(--head);font-weight:700}.cloze-toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.cloze-toolbar small{color:var(--muted);font-size:12px}.cloze-toolbar code,.answer-editor code{background:var(--surface2);border-radius:6px;padding:1px 6px;font-size:12px}.cloze-source{resize:vertical;min-height:110px;line-height:1.6}.gap-chips{flex-wrap:wrap;gap:6px;display:flex}.gap-chip{background:var(--soft);color:var(--green2);border-radius:99px;align-items:center;gap:6px;padding:5px 10px 5px 5px;font-size:13px;font-weight:750;display:inline-flex}.gap-chip b{background:var(--green);color:#fff;border-radius:99px;place-items:center;width:20px;height:20px;font-size:11px;display:grid}.pair-head,.pair-row{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 34px;align-items:center;gap:8px;display:grid}.pair-head span{color:var(--muted);letter-spacing:.6px;text-transform:uppercase;font-size:11px;font-weight:800}.pair-link{color:var(--muted);place-items:center;display:grid}.drag-rows{flex-direction:column;gap:6px;display:flex}.edit-row{border-radius:14px;grid-template-columns:30px 24px minmax(0,1fr) 34px;align-items:center;gap:8px;padding:4px;transition:background .15s,box-shadow .15s;display:grid}.edit-row.is-dragging{background:var(--soft);box-shadow:var(--shadow-md)}.edit-row-handle{width:30px;height:40px;color:var(--muted);cursor:grab;touch-action:none;background:0 0;border:0;border-radius:9px;place-items:center;display:grid}.edit-row-handle:hover{background:var(--surface2)}.category-chips{flex-wrap:wrap;gap:7px;display:flex}.select-chip.is-add{color:var(--muted);border-style:dashed}.new-category-inline{gap:6px;display:flex}.new-category-inline input{width:220px;min-height:38px}.new-category-inline .btn{min-height:38px}.studio-preview{top:calc(var(--studio-top) + 84px);flex-direction:column;gap:10px;display:flex;position:sticky}.studio-preview-head{flex-direction:column;gap:2px;padding:0 4px;display:flex}.studio-preview-head span{font-family:var(--head);align-items:center;gap:6px;font-size:14px;font-weight:800;display:flex}.studio-preview-head small{color:var(--muted);font-size:12px}.studio-preview-frame{background:linear-gradient(160deg,var(--soft),var(--surface2));border:1px solid var(--line);border-radius:24px;padding:14px}.question-card.is-preview{box-shadow:var(--shadow-sm);margin:0;padding:20px}.question-card.is-preview h2{font-size:19px}.studio-preview-actions{justify-content:center;margin-top:12px;display:flex}.studio-check{border-radius:14px;align-items:center;gap:8px;padding:11px 14px;font-size:13px;font-weight:750;display:flex}.studio-check.is-ok{background:color-mix(in srgb,#2f8a5c 12%,var(--surface));color:#2f8a5c}.studio-check.is-open{background:color-mix(in srgb,var(--amber) 18%,var(--surface));color:color-mix(in srgb,var(--amber) 40%,var(--text))}.app[data-theme=dark] .studio-check.is-ok{color:#7fd0a1}.studio-footer{z-index:14;padding:12px 4px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(12px);justify-content:flex-end;align-items:center;gap:12px;margin:20px -4px 0;display:flex;position:sticky;bottom:0}.studio-footer-error{color:#c2473f;flex:1;align-items:center;gap:6px;font-size:13px;font-weight:750;display:flex}.studio-footer-actions{flex-wrap:wrap;gap:8px;display:flex}.studio-footer-tools{display:none}.danger-text{color:#c2473f}.task-manager-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px;display:flex}.task-manager-head h2{font-family:var(--head);letter-spacing:-.5px;margin:0;font-size:24px}.task-manager-head p{color:var(--muted);margin:4px 0 0;font-size:13px}.task-manager-actions{gap:8px;display:flex}.task-filter-bar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px;display:flex}.task-search{border:1.5px solid var(--line);background:var(--surface);height:44px;color:var(--muted);border-radius:13px;flex:260px;align-items:center;gap:8px;padding:0 14px;display:flex}.task-search:focus-within{border-color:var(--green2)}.task-search input{min-width:0;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:14px}.kind-filter{flex-wrap:wrap;gap:6px;max-width:100%;display:flex}.kind-filter button{border:1.5px solid var(--line);background:var(--surface);height:36px;color:var(--text);border-radius:99px;flex:none;align-items:center;gap:6px;padding:0 11px;font-size:12.5px;font-weight:700;display:inline-flex}.kind-filter button svg{width:15px;height:15px;color:var(--muted)}.kind-filter button span:last-child{background:var(--surface2);color:var(--muted);border-radius:99px;padding:1px 7px;font-size:11px}.kind-filter button.is-active{border-color:var(--green2);background:var(--soft);color:var(--green2)}.kind-filter button.is-active svg{color:var(--green2)}.task-filter-result{color:var(--muted);margin:0 0 10px;font-size:13px}.task-groups{flex-direction:column;gap:14px;display:flex}.task-group{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:18px;overflow:hidden}.task-group-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:12px 14px 12px 18px;display:flex}.task-group-head h3{font-family:var(--head);align-items:center;gap:8px;margin:0;font-size:15px;font-weight:800;display:flex}.task-group-head h3 span{background:var(--surface2);color:var(--muted);border-radius:99px;padding:1px 8px;font-size:11px}.task-group-add{background:var(--soft);color:var(--green2);border:0;border-radius:10px;align-items:center;gap:5px;padding:7px 11px;font-size:12.5px;font-weight:800;display:inline-flex}.task-group-add:hover{background:color-mix(in srgb,var(--green2) 18%,var(--surface))}.task-rows{margin:0;padding:6px;list-style:none}.task-row{border-radius:13px;align-items:center;gap:6px;transition:background .12s;display:flex}.task-row:hover{background:var(--surface2)}.task-row-main{min-width:0;color:var(--text);text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:12px;padding:10px;display:flex}.task-row-icon{background:var(--soft);width:38px;height:38px;color:var(--green2);border-radius:11px;flex:none;place-items:center;display:grid}.task-row-icon svg{width:18px;height:18px}.task-row-icon.kind-flashcard{background:var(--surface2);color:var(--muted)}.task-row-icon.kind-truefalse,.task-row-icon.kind-number{background:var(--amber-soft);color:#9a6a00}.task-row-icon.kind-cloze,.task-row-icon.kind-matching{background:var(--blue-soft);color:var(--blue)}.task-row-icon.kind-ordering,.task-row-icon.kind-hotspot{background:var(--violet-soft);color:var(--violet)}.app[data-theme=dark] .task-row-icon.kind-truefalse,.app[data-theme=dark] .task-row-icon.kind-number{color:var(--amber)}.task-row-copy{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.task-row-copy strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14.5px;font-weight:700;line-height:1.35;display:-webkit-box;overflow:hidden}.task-row-meta{flex-wrap:wrap;gap:6px;display:flex}.task-row-meta span{color:var(--muted);align-items:center;gap:4px;font-size:11.5px;font-weight:700;display:inline-flex}.task-row-meta span+span:before{content:"·";margin-right:2px}.task-row-chevron{color:var(--muted);opacity:0;flex:none;transition:opacity .12s,transform .12s}.task-row:hover .task-row-chevron{opacity:1;transform:translate(2px)}.task-row-tools{opacity:0;gap:2px;padding-right:6px;transition:opacity .12s;display:flex}.task-row:hover .task-row-tools,.task-row:focus-within .task-row-tools{opacity:1}.task-row-tools .icon-button{width:34px;height:34px;box-shadow:none}.task-group-empty{border:1.5px dashed var(--line);width:calc(100% - 12px);color:var(--muted);background:0 0;border-radius:13px;justify-content:center;align-items:center;gap:8px;margin:6px;padding:14px;font-size:13px;font-weight:700;display:flex}.task-group-empty:hover{border-color:var(--green2);color:var(--green2)}@media (max-width:1000px){.studio-grid{grid-template-columns:1fr}.studio-tabs{top:calc(var(--studio-top) + 66px);z-index:14;background:var(--surface2);border-radius:13px;gap:4px;margin:-6px 0 14px;padding:4px;display:flex;position:sticky}.studio-tabs button{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:6px;font-size:13px;font-weight:800;display:flex}.studio-tabs button.is-active{background:var(--surface);color:var(--green2);box-shadow:var(--shadow-sm)}.studio-grid.show-edit .studio-preview,.studio-grid.show-preview .studio-form{display:none}.studio-preview{position:static}}@media (max-width:720px){.task-studio{--studio-top:64px}.studio-hide-sm,.studio-title small,.studio-actions .icon-button,.studio-kind-icon{display:none}.studio-title strong{font-size:15px}.studio-footer-tools{gap:8px;display:flex}.studio-footer-tools .btn{flex:1}.studio-back span{display:none}.studio-card{border-radius:18px;padding:16px}.kind-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kind-tile{min-height:76px;padding:10px 4px}.kind-tile-label{font-size:11px}.number-editor{grid-template-columns:1fr 1fr}.number-editor .mini-field:first-child{grid-column:1/-1}.option-row{grid-template-columns:26px 18px minmax(0,1fr) 34px;gap:8px}.option-badge{display:none}.task-manager-head{flex-direction:column;align-items:stretch}.task-manager-actions .btn{flex:1}.task-row-tools{opacity:1}.task-row-chevron,.kind-filter-label{display:none}.kind-filter{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.kind-filter::-webkit-scrollbar{display:none}.studio-footer-actions{width:100%}.studio-footer-actions .btn{flex:1}.studio-footer{flex-direction:column;align-items:stretch}}.task-groups-toolbar{justify-content:flex-end;margin:-2px 0 10px;display:flex}.task-groups-toggle{color:var(--muted);background:0 0;border:0;border-radius:9px;align-items:center;gap:6px;padding:6px 10px;font-size:12.5px;font-weight:750;display:inline-flex}.task-groups-toggle:hover{background:var(--surface2);color:var(--text)}.task-group-toggle{min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:4px 6px 4px 0;display:flex}.task-group-toggle:disabled{cursor:default}.task-group-toggle h3{min-width:0}.task-group-chevron{color:var(--muted);flex:none;transition:transform .2s}.task-group.is-closed .task-group-chevron{transform:rotate(-90deg)}.task-group.is-closed .task-group-head{border-bottom:0}.task-group-head{padding-left:12px}.task-group-head:hover .task-group-chevron{color:var(--green2)}.task-group-kinds{color:var(--muted);gap:4px;margin-left:4px;display:flex}.task-group-kinds span{background:var(--surface2);border-radius:7px;place-items:center;width:24px;height:24px;display:grid}.task-group-kinds svg{width:13px;height:13px}.task-group.is-open .task-rows{animation:.18s ease-out feedback-in}@media (max-width:620px){.task-group-kinds{display:none}}.app{--header-h:68px;--page-w:1160px;--gutter:clamp(16px,3vw,32px)}.app .app-header{z-index:30;width:100%;max-width:none;height:var(--header-h);padding:0 max(var(--gutter),calc((100% - var(--page-w))/2));border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:saturate(1.4)blur(16px);grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:0;display:grid;position:sticky;top:0}.header-side{align-items:center;min-width:0;display:flex}.header-left{justify-self:start}.header-right{justify-self:end}.header-back{border:1px solid var(--line);background:var(--surface);height:40px;color:var(--text);border-radius:12px;align-items:center;gap:4px;padding:0 14px 0 8px;font-size:14px;font-weight:750;transition:border-color .15s,color .15s;display:inline-flex}.header-back:hover{border-color:var(--green2);color:var(--green2)}.app-header .header-brand{color:var(--text);background:0 0;border:0;justify-self:center;align-items:center;gap:10px;padding:4px 6px;display:flex}.app-header .brand-text{font-family:var(--head);letter-spacing:-.4px;font-size:20px;font-weight:800}.app-header .brand-text span{color:var(--green2)}.app-header .icon-button{width:42px;height:42px;position:relative}.icon-button.has-dot:after{content:"";border:2px solid var(--surface);background:var(--amber);border-radius:99px;width:9px;height:9px;position:absolute;top:7px;right:7px}.header-title{text-align:center;flex-direction:column;justify-self:center;align-items:center;min-width:0;max-width:min(560px,52vw);line-height:1.2;display:flex}.header-title strong{max-width:100%;font-family:var(--head);letter-spacing:-.2px;text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;font-size:17px;font-weight:800;display:flex;overflow:hidden}.header-title small{max-width:100%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;overflow:hidden}@media (max-width:620px){.header-title{max-width:52vw}.header-title strong{font-size:15px}.header-title small{font-size:11px}}.app .main{width:100%;max-width:calc(var(--page-w) + 2 * var(--gutter));padding:28px var(--gutter) 64px;margin:0 auto}.app .main.reader-main{max-width:none;padding-top:20px}.page-head{margin:0 0 20px}.page-head .overline{margin-bottom:6px}.page-head h1{font-family:var(--head);letter-spacing:-1px;margin:0;font-size:max(28px,min(4.5vw,38px));line-height:1.1}.page-head p:last-child{max-width:620px;color:var(--muted);margin:8px 0 0;font-size:14.5px;line-height:1.55}.exam-view>.back-link,.glossary-view>.back-link,.profile-view>.back-link{display:none}.lesson-menu-view,.practice-topic-view,.practice-view,.exam-view,.search-view,.glossary-view,.profile-view{max-width:880px;margin-inline-start:auto;margin-inline-end:auto}.home-view,.admin-view{max-width:none}.task-studio{--studio-top:var(--header-h)}.exam-bar,.glossary-letters{top:var(--header-h)}@media (max-width:620px){.app{--header-h:60px}.app .app-header{gap:8px;padding:0 12px}.header-back{padding:0 10px 0 6px;font-size:13px}.app-header .brand-text{font-size:18px}.app-header .brand-icon{width:32px;height:32px}.app .main{padding:18px 16px 56px}}@media (max-width:380px){.header-back span{display:none}.header-back{padding:0 8px}}.chapter-delete-button{color:#c2473f}.chapter-delete-button:hover{background:color-mix(in srgb,#c2473f 10%,var(--surface))}.user-management-tools{flex-wrap:wrap}.reset-all-progress{color:#b8432f;min-height:36px;padding:0 12px;font-size:12.5px}.app[data-theme=dark] .reset-all-progress{color:#ffad9c}.app .scrim{z-index:60}.app .drawer{z-index:61}.app-drawer{height:100dvh;max-height:100dvh;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.nav-item-label{flex-direction:column;gap:1px;min-width:0;display:flex}.nav-item-sub{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:600;overflow:hidden}.nav-item.is-active .nav-item-sub{color:inherit;opacity:.8}.auth-panel{flex-direction:column;gap:4px;display:flex}.auth-head{margin-bottom:14px}.auth-head-icon{background:var(--soft);width:44px;height:44px;color:var(--green2);border-radius:14px;place-items:center;margin-bottom:12px;display:grid}.auth-head p{line-height:1.55}.auth-row{justify-content:flex-end;margin-top:-4px;display:flex}.auth-link{color:var(--green2);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:4px 0;font-size:13px;font-weight:750;display:inline-flex}.auth-link:hover{text-decoration:underline}.auth-back{align-self:center;margin-top:14px}.auth-switch{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:18px;padding-top:16px;font-size:13.5px;display:flex}.auth-check{align-items:flex-start;gap:10px;line-height:1.5;color:var(--muted)!important;font-size:12.5px!important;font-weight:600!important;display:flex!important}.auth-check input{accent-color:var(--green);flex:none;width:18px!important;height:18px!important;margin:2px 0 0!important}.auth-info{color:var(--muted);margin:4px 0 0;font-size:13px;line-height:1.5}.auth-banner{border-radius:13px;align-items:flex-start;gap:10px;margin:0 0 18px;padding:12px 14px;font-size:13.5px;font-weight:650;line-height:1.45;display:flex}.auth-banner.is-ok{background:color-mix(in srgb,#2f8a5c 12%,var(--surface));color:#236b46}.auth-banner.is-bad{background:color-mix(in srgb,#c2473f 10%,var(--surface));color:#a3352e}.auth-banner svg{flex:none;margin-top:1px}.pending-users{border:1.5px solid color-mix(in srgb,var(--amber) 55%,var(--line));background:color-mix(in srgb,var(--amber) 8%,var(--surface));border-radius:18px;margin:0 0 16px;padding:16px}.pending-users-head h3{align-items:center;gap:8px;margin:0;font-size:16px;display:flex}.pending-users-head h3 span{background:var(--amber);color:#2a1d00;border-radius:99px;padding:1px 8px;font-size:12px}.pending-users-head p{color:var(--muted);margin:4px 0 12px;font-size:13px}.pending-user{border:1px solid var(--line);background:var(--surface);border-radius:14px;align-items:center;gap:12px;padding:12px;display:flex}.pending-user+.pending-user{margin-top:8px}.pending-user-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pending-user-copy small{color:var(--muted);text-overflow:ellipsis;font-size:12px;overflow:hidden}.pending-badge{border-radius:99px;align-self:flex-start;margin:3px 0;padding:2px 8px;font-size:11px;font-weight:800}.pending-badge.is-ok{background:color-mix(in srgb,#2f8a5c 14%,var(--surface));color:#2f8a5c}.pending-badge.is-wait{background:var(--surface2);color:var(--muted)}.pending-user-actions{gap:8px;display:flex}.registration-settings{gap:10px;margin:0 0 16px;display:grid}.registration-setting{border:1px solid var(--line);background:var(--surface);border-radius:16px;align-items:center;gap:14px;padding:14px 16px;display:flex}.registration-setting>div{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.registration-setting strong{font-size:14px}.registration-setting small{color:var(--muted);overflow-wrap:anywhere;font-size:12.5px;line-height:1.45}.user-email em{color:#b8432f;font-style:normal}.user-email.is-missing{font-style:italic}.email-state{align-items:flex-start;gap:6px;display:inline-flex}.email-state.is-ok{color:#2f8a5c}.email-state.is-wait{color:#b8432f}.email-form{grid-template-columns:minmax(0,1fr)!important}@media (max-width:620px){.pending-user{flex-wrap:wrap}.pending-user-actions{width:100%}.pending-user-actions .btn{flex:1}.registration-setting{flex-wrap:wrap}.registration-setting .btn{width:100%}.user-create-overlay:has(.user-progress-dialog){align-items:stretch!important;padding:0!important}.user-progress-dialog{overflow-y:auto;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;padding:14px 14px max(14px,env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;margin:0!important}.user-progress-dialog .user-create-dialog-head{z-index:2;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:-14px;margin:-14px -14px 10px!important;padding:12px 14px!important}.user-progress-dialog .overline{margin-bottom:2px!important;font-size:10px!important}.user-progress-dialog h2{font-size:20px!important}.user-progress-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0 0 12px!important;display:grid!important}.user-progress-stat{border-radius:12px!important;gap:2px!important;min-height:0!important;padding:9px 10px!important}.user-progress-stat span{line-height:1.2;font-size:10.5px!important}.user-progress-stat strong{line-height:1.2;font-size:17px!important}.user-progress-stat small{display:none!important}.user-progress-stat-featured{grid-template-columns:auto 1fr auto;align-items:center;grid-column:1/-1!important;gap:10px!important;display:grid!important}.user-progress-stat-featured .user-progress-stat-top{display:contents!important}.user-progress-stat-featured .user-progress-track{grid-area:1/2;margin:0!important}.user-progress-stat-featured strong{grid-area:1/3}.user-progress-stat-last{justify-content:space-between;align-items:baseline;background:0 0!important;border-style:dashed!important;flex-direction:row!important;grid-column:1/-1!important;padding:7px 10px!important;display:flex!important}.user-progress-stat-last strong{font-size:13px!important}.user-progress-content-head{margin:0 0 6px!important}.user-progress-content-head h3{margin:0!important;font-size:15px!important}.user-progress-content-head p,.user-progress-search>span{display:none!important}.user-progress-browser{gap:8px!important}}
