:root{--bg: #f6f6f8;--surface: #ffffff;--surface-2: #f1f0f5;--line: #e6e5ec;--line-strong: #d5d3de;--text: #1d1b26;--text-2: #55526a;--text-3: #6e6b83;--accent: #5b4bc4;--accent-hover: #4b3cae;--accent-soft: #efecfc;--accent-text: #4a3bb0;--accent-ring: rgb(91 75 196 / 22%);--success: #1e7a4c;--success-soft: #e8f5ee;--danger: #b4283c;--danger-soft: #fcecee;--warn: #8a5300;--warn-soft: #fdf2df;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,sans-serif;font-size:15px;line-height:1.6;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-width:320px}h1,h2,h3,p,ul{margin:0}ul{padding:0;list-style:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;padding:0}button:disabled{cursor:not-allowed}a{color:var(--accent-text);text-underline-offset:3px}::selection{background:#dcd5fb;color:var(--text)}input,textarea{caret-color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1[tabindex="-1"]:focus,main[tabindex="-1"]:focus{outline:none}.button-row.center{justify-content:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.num{font-variant-numeric:tabular-nums}.muted{color:var(--text-3)}.hint{font-size:13px;font-weight:400;color:var(--text-3);line-height:1.5}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.brand{display:inline-flex;align-items:center;gap:9px;font-size:17px;font-weight:650;color:var(--text);text-decoration:none}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--accent);color:#fff;flex:none}.brand-mark.large{width:40px;height:40px;border-radius:11px}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:36px;height:56px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--line)}.nav{display:flex;gap:4px}.nav-item{position:relative;display:flex;align-items:center;gap:6px;height:56px;padding:0 12px;color:var(--text-2);font-size:15px;transition:color .15s}.nav-item svg{display:none}.nav-item:hover{color:var(--text)}.nav-item.active{color:var(--text);font-weight:600}.nav-item.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:var(--accent)}.account{display:flex;align-items:center;gap:6px;min-width:0;margin-left:auto}.account-name{max-width:180px;overflow:hidden;color:var(--text-3);font-size:14px;white-space:nowrap;text-overflow:ellipsis}.account-logout{height:34px;font-size:14px}.page{max-width:960px;margin:0 auto;padding:36px 28px 72px}.page.narrow{max-width:720px}.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:24px}.page-head>div:first-child{min-width:0}.page-head h1{font-size:26px;line-height:1.3;font-weight:650;letter-spacing:-.01em;overflow-wrap:anywhere}.page-head .sub{margin-top:6px;color:var(--text-2);font-size:14px}.page-head .book-desc{margin-top:6px;color:var(--text-2);max-width:65ch}.page-head-action{display:flex;gap:8px}.back{display:inline-flex;align-items:center;gap:4px;margin-bottom:14px;padding:4px 0;color:var(--text-2);font-size:14px}.back:hover{color:var(--text)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);font-size:15px;font-weight:500;white-space:nowrap;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}.btn:hover:not(:disabled){background:var(--surface-2);border-color:#c8c5d4}.btn:disabled{opacity:.45}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn.accent{color:var(--accent-text);border-color:#cbc3f3}.btn.accent:hover:not(:disabled){background:var(--accent-soft);border-color:#b9aef0}.btn.on{color:var(--accent-text);background:var(--accent-soft);border-color:#cbc3f3}.btn.ghost{border-color:transparent;background:transparent;padding:0 10px;color:var(--text-2)}.btn.ghost:hover:not(:disabled){background:var(--surface-2);border-color:transparent;color:var(--text)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.danger:hover:not(:disabled){background:#9c1f32}.btn.wide{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--text-3);transition:background-color .15s,color .15s}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn.danger:hover{color:var(--danger)}.icon-btn.enroll.on{color:var(--accent)}.link-btn{display:inline-flex;align-items:center;gap:4px;color:var(--accent-text);font-size:14px;text-decoration:none}.link-btn:hover{text-decoration:underline}.link-btn.danger{color:var(--danger)}.flip{transform:rotate(180deg)}.button-row{display:flex;flex-wrap:wrap;gap:8px}input,select,textarea{width:100%;min-width:0;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-size:15px;transition:border-color .15s,box-shadow .15s}input,select{height:40px;padding:0 12px}textarea{padding:10px 12px;resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#9895aa}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}select{appearance:none;padding-right:34px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6b83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center;text-overflow:ellipsis}.form label,.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:14px;font-weight:500;color:var(--text-2)}.form-error{margin:4px 0 14px;padding:10px 12px;border-radius:8px;background:var(--danger-soft);color:var(--danger);font-size:14px}.form-error ul{margin-top:6px;padding-left:18px;list-style:disc}.segmented{display:inline-flex;gap:2px;padding:3px;border-radius:9px;background:#ebeaf1}.segmented button{height:32px;padding:0 14px;border-radius:7px;color:var(--text-2);font-size:14px;font-weight:500;transition:background-color .15s,color .15s}.segmented button:hover{color:var(--text)}.segmented button.selected{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #1410281f}.search{position:relative;display:flex;align-items:center;flex:1 1 240px;max-width:340px}.search svg{position:absolute;left:12px;color:var(--text-3);pointer-events:none}.search input{padding-left:36px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--surface-2);color:var(--text-2);font-size:12px;font-weight:500;white-space:nowrap}.tag.warn{background:var(--warn-soft);color:var(--warn)}.pos{display:inline-block;margin-right:5px;padding:0 5px;border-radius:4px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:600;line-height:19px;white-space:nowrap;vertical-align:1px}.pos.pos-plain{background:var(--surface-2);color:var(--text-2)}.senses-inline{color:var(--text);line-height:1.65}.sense-group+.sense-group{margin-left:12px}.sense+.sense:before{content:"·";margin:0 .45em;color:var(--text-3)}.senses{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:6px 10px}.senses.no-pos{grid-template-columns:1fr}.sense-row{display:contents}.sense-pos .pos{margin-right:0}.sense-text{font-size:16px;line-height:1.65}.ai-mark{display:inline-block;margin-left:6px;padding:0 4px;border:1px solid var(--line-strong);border-radius:4px;color:var(--text-3);font-size:11px;font-weight:600;line-height:15px;letter-spacing:.02em;white-space:nowrap;vertical-align:1px}.headword{color:var(--text-3);font-size:13px}.senses-block .headword{display:block;margin-top:8px}.senses-inline .headword{margin-left:10px;white-space:nowrap}.tasks,.book-list,.word-list,.history-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.task{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px 24px;padding:20px 24px}.task+.task{border-top:1px solid var(--line)}.task h2{font-size:16px;font-weight:600}.task-main>p{margin-top:3px;color:var(--text-2)}.task-main strong{color:var(--text);font-weight:650}.task-main .link-btn{margin-top:6px}.task-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:8px;font-size:14px}.task-line select{width:auto;max-width:100%}.task-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.due-list{grid-column:1 / -1;border-top:1px solid var(--line)}.due-list li{display:grid;grid-template-columns:minmax(110px,180px) 1fr auto;gap:4px 16px;align-items:baseline;padding:10px 0;font-size:14px}.due-list li+li{border-top:1px solid var(--surface-2)}.due-word{display:flex;align-items:center;gap:8px}.due-modes{color:var(--text-3);font-size:13px;white-space:nowrap}.mode-buttons{display:flex;flex-wrap:wrap;gap:8px}.book-item{display:flex;align-items:center;gap:16px;padding:18px 20px}.book-item+.book-item{border-top:1px solid var(--line)}.book-main{flex:1;min-width:0}.book-title{font-size:16px;font-weight:600;text-align:left;color:var(--text)}.book-title:hover{color:var(--accent-text)}.book-main .tag{margin-left:8px;vertical-align:2px}.book-item .book-desc{margin-top:3px;color:var(--text-2);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:8px;color:var(--text-3);font-size:13px}.meter{display:inline-block;width:120px;height:4px;overflow:hidden;border-radius:2px;background:#e9e8ef}.meter span{display:block;height:100%;background:var(--accent)}.start-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-bottom:28px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.start-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.inline-field{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);font-size:14px;white-space:nowrap}.inline-field select{width:auto;max-width:220px}.word-row{display:grid;grid-template-columns:minmax(140px,220px) 1fr auto;align-items:baseline;gap:4px 20px;padding:14px 20px}.word-row.editable{grid-template-columns:minmax(140px,220px) 1fr auto auto}.word-row+.word-row{border-top:1px solid var(--line)}.word-head{display:flex;flex-direction:column;min-width:0}.word-head strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}.phonetic{color:var(--text-3);font-size:13px;overflow-wrap:anywhere}.word-section{color:var(--text-3);font-size:12px;white-space:nowrap}.row-actions{display:flex;gap:2px;align-self:center}.mistake-row{grid-template-columns:minmax(140px,220px) 1fr}.mistake-row .word-head{grid-row:span 3}.mistake-row .mistake-modes,.mistake-row .word-section{grid-column:2}.mistake-modes{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:14px}.danger-zone{display:flex;flex-wrap:wrap;gap:20px;margin-top:32px;padding-top:16px;border-top:1px solid var(--line)}.upload{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;margin:14px 0;padding:24px 16px;border:1.5px dashed var(--line-strong);border-radius:var(--radius);color:var(--text-2);text-align:center;cursor:pointer}.upload:hover{border-color:var(--accent)}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.import-preview{margin-top:12px;font-size:14px}.preview-rows{margin-top:8px}.preview-rows li{display:flex;gap:12px;padding:4px 0}.preview-rows li+li{border-top:1px solid var(--surface-2)}.main-practice{min-height:100vh;background:var(--surface)}.practice{max-width:720px;margin:0 auto;padding:12px 24px 48px}.practice-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;height:52px}.practice-bar .btn.ghost{margin-left:-10px}.practice-title{overflow:hidden;color:var(--text-2);font-size:14px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.practice-count{min-width:56px;color:var(--text-2);font-size:14px;text-align:right}.progress{height:3px;margin-bottom:44px;overflow:hidden;border-radius:2px;background:#e9e8ef}.progress span{display:block;width:100%;height:100%;background:var(--accent);transform-origin:left;transition:transform .25s ease-out}.question{display:flex;flex-direction:column}.question>.tag{align-self:center;margin-bottom:14px}.prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:128px;margin-bottom:32px;text-align:center}.prompt-word{font-size:44px;font-weight:650;line-height:1.15;letter-spacing:-.02em;overflow-wrap:anywhere}.prompt-phonetic{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;color:var(--text-2);font-size:16px}.prompt-hint{color:var(--text-2)}.play{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--accent);transition:background-color .15s,color .15s,box-shadow .2s}.play:hover{background:#e2dcfa}.play.play-big{width:88px;height:88px}.play.is-playing{background:var(--accent);color:#fff;box-shadow:0 0 0 6px #5b4bc424}.tap-hint{margin:-18px 0 18px;color:var(--warn);font-size:14px;text-align:center}.options{display:grid;gap:10px}.option{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:12px;width:100%;min-height:56px;padding:13px 16px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);font-size:16px;text-align:left;transition:border-color .15s,background-color .15s,opacity .15s}@media(hover:hover){.option:hover:not(:disabled){border-color:var(--accent);background:#faf9fe}}.option:disabled{cursor:default}.option-key{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--surface-2);color:var(--text-2);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;transition:background-color .15s,color .15s}.option.is-pending{border-color:var(--accent)}.option.is-correct{border-color:var(--success);background:var(--success-soft)}.option.is-correct .option-key{background:var(--success);color:#fff}.option.is-wrong{border-color:var(--danger);background:var(--danger-soft)}.option.is-wrong .option-key{background:var(--danger);color:#fff}.option.is-muted{opacity:.5}.option-mark{flex:none}.option.is-correct .option-mark{color:var(--success)}.option.is-wrong .option-mark{color:var(--danger)}.feedback{margin-top:20px;padding:18px 20px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);animation:reveal .18s ease-out}.feedback-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:12px}.feedback-head strong{font-size:16px}.feedback.is-correct .feedback-head strong{color:var(--success)}.feedback.is-wrong .feedback-head strong{color:var(--danger)}.feedback-head .muted{font-size:13px}.feedback-word{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:10px}.feedback-english{font-size:24px;font-weight:650;overflow-wrap:anywhere}.feedback-word .phonetic{font-size:14px}.audio-credit{margin:-4px 0 10px;color:var(--text-3);font-size:12px;overflow-wrap:anywhere}.audio-credit a{color:inherit}.typed{margin-bottom:8px;color:var(--text-2);font-size:14px}.typed s{color:var(--danger)}.feedback-actions{display:flex;justify-content:flex-end;margin-top:16px}.keys-hint{margin-top:28px;color:var(--text-3);font-size:13px;text-align:center}.dictation{display:flex;flex-direction:column;gap:14px;width:100%;max-width:480px;margin:0 auto}.dictation-input{height:54px;font-size:22px;text-align:center;letter-spacing:.01em}.dictation-input:disabled{opacity:1}.dictation-input.is-correct{border-color:var(--success);background:var(--success-soft)}.dictation-input.is-wrong{border-color:var(--danger);background:var(--danger-soft)}.dictation-hint{padding:12px 14px;border:1px dashed var(--line-strong);border-radius:10px}.dictation-actions{display:flex;justify-content:center;gap:10px}.finish{padding-top:8px}.finish h1{font-size:28px;font-weight:650}.finish .sub{margin-top:6px;color:var(--text-2)}.finish h2{margin:28px 0 12px;font-size:16px;font-weight:600}.finish .word-list+.muted{margin-top:10px;font-size:14px}.finish-note{margin-top:20px;color:var(--success)}.finish-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}@keyframes reveal{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.week{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:8px;height:168px;margin-bottom:32px;padding:16px 20px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.week-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}.week-bar{width:60%;max-width:36px;border-radius:4px 4px 2px 2px;background:#d6d0f5}.week-day.today .week-bar{background:var(--accent)}.week-count{min-height:18px;color:var(--text-2);font-size:12px}.week-label{color:var(--text-3);font-size:12px}.week-day.today .week-label{color:var(--text);font-weight:600}.section-title{margin-bottom:12px;font-size:16px;font-weight:600}.history-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px}.history-list li+li{border-top:1px solid var(--line)}.history-main{display:flex;flex-direction:column;gap:2px;min-width:0}.history-main .muted{font-size:13px}.history-result{color:var(--text-2);font-size:14px;text-align:right}.settings-group{margin-bottom:20px;padding:6px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.settings-group h2{padding:14px 0 6px;font-size:16px;font-weight:600}.setting{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 24px;padding:14px 0;border-top:1px solid var(--line)}.settings-group h2+.setting{border-top:0}.setting>label,.setting-label{display:flex;flex-direction:column;gap:2px;font-weight:500}.setting-control{display:flex;align-items:center;justify-content:flex-end;gap:8px}.setting-control select{width:auto;min-width:128px}.number-control input{width:84px;text-align:right}.switch{appearance:none;position:relative;flex:none;width:44px;height:26px;padding:0;border:0;border-radius:13px;background:#cfcdd9;cursor:pointer;transition:background-color .15s}.switch:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #14102840;transition:transform .18s ease-out}.switch:checked{background:var(--accent)}.switch:checked:before{transform:translate(18px)}.switch:focus{box-shadow:none}.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.password-form{align-items:start}.password-fields{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px}.password-fields label{display:flex;flex-direction:column;gap:4px;color:var(--text-2);font-size:13px}.setting-buttons{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;border-top:1px solid var(--line)}.about p{max-width:65ch;padding:6px 0;color:var(--text-2);font-size:14px;line-height:1.75}.about p:last-child{padding-bottom:16px}.about strong{color:var(--text);font-weight:600}.credits{padding:2px 0 16px;color:var(--text-2);font-size:14px;line-height:1.75}.credits summary{width:fit-content;color:var(--text);cursor:pointer}.credits p{padding:6px 0 2px}.credits ul{display:grid;gap:2px;padding-left:1.2em;overflow-wrap:anywhere}.auth{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:32px 16px}.auth-box{width:min(400px,100%)}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand h1{font-size:26px;font-weight:650}.auth-lead{margin:14px 0 24px;color:var(--text-2);line-height:1.75}.auth .segmented{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-bottom:20px}.auth-note{margin-top:16px;color:var(--text-3);font-size:13px;text-align:center}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:#1410286b}.modal{width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px 24px 24px;border-radius:14px;background:var(--surface);box-shadow:0 16px 48px #14102833}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.modal-head h2{font-size:18px;font-weight:600}.modal .segmented{margin-bottom:10px}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px}.modal p{color:var(--text-2)}.toast-region{position:fixed;left:50%;bottom:24px;z-index:60;width:max-content;max-width:min(560px,calc(100vw - 32px));transform:translate(-50%)}.toast{display:flex;align-items:center;gap:8px;padding:9px 8px 9px 16px;border-radius:10px;background:#211f2c;color:#fff;font-size:14px;box-shadow:0 8px 28px #14102847;animation:toast-in .18s ease-out}.toast-error{background:#861f30}.toast .icon-btn{width:30px;height:30px;color:#d6d3e2}.toast .icon-btn:hover{background:#ffffff1f;color:#fff}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.empty{padding:48px 16px;color:var(--text-2);text-align:center}.empty-title{margin-bottom:6px;color:var(--text);font-size:16px;font-weight:600}.empty p:not(.empty-title){max-width:40ch;margin:0 auto}.empty .btn{margin-top:16px}.skeleton{display:grid;gap:14px;padding:12px 0}.skeleton-line{display:block;width:90%;height:16px;border-radius:6px;background:linear-gradient(90deg,#ebeaf1,#f5f4f9,#ebeaf1);background-size:200% 100%;animation:shimmer 1.2s linear infinite}.skeleton-line:first-of-type{width:40%;height:24px}.skeleton-line:nth-of-type(2n){width:70%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:760px){.topbar{position:static;height:52px;padding:0 16px}.account-name{max-width:110px}.account-logout{padding:0 8px}.nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);gap:0;height:calc(58px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line)}.nav-item{flex-direction:column;justify-content:center;gap:2px;height:58px;padding:0;font-size:11px}.nav-item svg{display:block}.nav-item.active{color:var(--accent-text)}.nav-item.active:after{display:none}.main:not(.main-practice){padding-bottom:calc(64px + env(safe-area-inset-bottom))}.page{padding:20px 16px 40px}.page-head{margin-bottom:18px}.page-head h1{font-size:22px}.task{grid-template-columns:1fr;padding:16px}.task-actions{justify-content:flex-start}.task-actions .btn{flex:1 1 auto}.due-list li{grid-template-columns:1fr}.search{max-width:none}.toolbar .button-row{width:100%}.toolbar .button-row .btn{flex:1 1 auto}.book-item,.start-panel{padding:14px 16px}.start-panel .mode-buttons{width:100%}.mode-buttons .btn{flex:1 1 auto}.word-row,.word-row.editable,.mistake-row{grid-template-columns:1fr auto;padding:12px 16px}.word-row .row-actions{grid-column:2;grid-row:1}.mistake-row .word-head{grid-row:auto}.word-row .senses-inline,.word-row .word-section,.word-row .mistake-modes{grid-column:1 / -1}.practice{padding:4px 16px 32px}.progress{margin-bottom:28px}.prompt{min-height:104px;margin-bottom:24px}.prompt-word{font-size:36px}.play.play-big{width:76px;height:76px}.option{padding:12px 14px;font-size:15px}.sense-text{font-size:15px}.week{height:148px;padding:12px 12px 10px;gap:4px}.history-list li{padding:12px 16px}.settings-group{padding:4px 16px}.setting{grid-template-columns:1fr}.setting-control{justify-content:flex-start}.password-fields{grid-template-columns:1fr;width:100%}.setting-control.password-fields{display:grid}.toast-region{bottom:calc(70px + env(safe-area-inset-bottom))}.is-practicing .toast-region{bottom:16px}.modal{padding:16px 18px 20px}}@media(hover:none){.keys-hint{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
