:root{--bg: #fbfaf6;--surface: #ffffff;--surface-2: #f5f3ec;--surface-3: #eeebe2;--line: #ece8dd;--line-strong: #dcd7c9;--text: #12293a;--text-2: #42525e;--text-3: #5f6b75;--accent: #138069;--accent-hover: #0f6b57;--accent-bright: #36b798;--accent-soft: #e4f5ee;--accent-soft-2: #cdeee0;--accent-text: #0f6b57;--accent-ring: rgb(54 183 152 / 30%);--sun: #f2a43a;--sun-soft: #fff3d9;--sky: #dcf0f9;--success: #138069;--success-text: #0f6b57;--success-soft: #e4f5ee;--danger: #c03b33;--danger-soft: #fdecea;--warn: #8a5300;--warn-soft: #fdf2df;--radius: 16px;--radius-sm: 12px;--shadow: 0 1px 2px rgb(18 41 58 / 4%), 0 8px 24px rgb(18 41 58 / 5%);--shadow-lg: 0 16px 48px rgb(18 41 58 / 14%);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%}*,*:before,*:after{box-sizing:border-box}html{overflow-x:hidden}body{margin:0;min-width:320px;background:var(--bg)}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}html{-webkit-tap-highlight-color:rgb(19 128 105 / 12%)}button,a,input,select,textarea,label,summary{touch-action:manipulation}a{color:var(--accent-text);text-underline-offset:3px}::selection{background:var(--accent-soft-2);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)}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.app{min-height:100vh;min-height:100dvh;background:radial-gradient(1000px 360px at 88% -120px,rgb(205 238 224 / 55%),transparent 70%),radial-gradient(800px 320px at -10% -140px,rgb(220 240 249 / 70%),transparent 70%),var(--bg)}.app.is-practicing{background:var(--bg)}.brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:750;color:var(--text);text-decoration:none;letter-spacing:.02em}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#3cc29f,var(--accent));color:#fff;flex:none;box-shadow:0 2px 6px #13806940}.brand-mark.large{width:44px;height:44px;border-radius:13px}.boot{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:40px;height:64px;padding:0 40px;background:#fdfcf9e0;backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}.nav{display:flex;gap:6px}.nav-item{position:relative;display:flex;align-items:center;gap:6px;height:64px;padding:0 12px;color:var(--text-2);font-size:16px;transition:color .15s}.nav-item svg{display:none}@media(hover:hover){.nav-item:hover{color:var(--text)}}.nav-item.active{color:var(--text);font-weight:650}.nav-item.active:after{content:"";position:absolute;left:12px;right:12px;bottom:12px;height:3px;border-radius:3px;background:var(--accent-bright)}.account{display:flex;align-items:center;gap:10px;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;padding:0 12px;border-color:var(--accent-soft-2);color:var(--accent-text);font-size:14px}.page{max-width:960px;margin:0 auto;padding:36px 28px 80px}.page.narrow{max-width:760px}.page.wide{max-width:1160px}.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:30px;line-height:1.25;font-weight:750;letter-spacing:-.01em;overflow-wrap:anywhere}.page-head .sub{margin-top:6px;color:var(--text-3);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}@media(hover:hover){.back:hover{color:var(--text)}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 18px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:15px;font-weight:600;white-space:nowrap;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .1s}@media(hover:hover){.btn:hover:not(:disabled){background:var(--surface-2);border-color:#cdc7b6}}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.45}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:inset 0 -2px #00000024}@media(hover:hover){.btn.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}}.btn.big{height:54px;padding:0 30px;border-radius:14px;font-size:17px;font-weight:700}.btn.small{height:34px;padding:0 12px;border-radius:10px;font-size:14px}.btn.accent{color:var(--accent-text);border-color:var(--accent-soft-2)}@media(hover:hover){.btn.accent:hover:not(:disabled){background:var(--accent-soft);border-color:#a9dfc9}}.btn.on{color:var(--accent-text);background:var(--accent-soft);border-color:var(--accent-soft-2)}.btn.ghost{border-color:transparent;background:transparent;padding:0 10px;color:var(--text-2)}@media(hover:hover){.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;box-shadow:inset 0 -2px #00000024}@media(hover:hover){.btn.danger:hover:not(:disabled){background:#a5312a;border-color:#a5312a}}.btn.wide{width:100%}.btn.settings-logout{display:none}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;color:var(--text-3);transition:background-color .15s,color .15s}@media(hover:hover){.icon-btn:hover{background:var(--surface-2);color:var(--text)}}@media(hover:hover){.icon-btn.danger:hover{color:var(--danger)}}.link-btn{display:inline-flex;align-items:center;gap:4px;color:var(--accent-text);font-size:14px;font-weight:500;text-decoration:none}@media(hover:hover){.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:var(--radius-sm);background:var(--surface);font-size:15px;transition:border-color .15s,box-shadow .15s}input,select{height:42px;padding:0 12px}textarea{padding:10px 12px;resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#8b949b}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent-bright);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='%235f6b75' 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;cursor:pointer}.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:10px;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;flex-wrap:wrap;gap:2px;padding:3px;border-radius:12px;background:var(--surface-3)}.segmented button{height:34px;padding:0 14px;border-radius:9px;color:var(--text-2);font-size:14px;font-weight:500;transition:background-color .15s,color .15s,box-shadow .15s}@media(hover:hover){.segmented button:hover{color:var(--text)}}.segmented button.selected{background:var(--surface);color:var(--accent-text);font-weight:650;box-shadow:0 1px 3px #12293a1f}.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:24px;padding:0 9px;border-radius:99px;background:var(--surface-2);color:var(--text-2);font-size:12px;font-weight:600;white-space:nowrap}.tag.warn{background:var(--warn-soft);color:var(--warn)}.tag.ok{background:var(--accent-soft);color:var(--accent-text)}.pos{display:inline-block;margin-right:5px;padding:0 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:650;line-height:20px;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 5px;border:1px solid var(--line-strong);border-radius:6px;color:var(--text-3);font-size:11px;font-weight:650;line-height:16px;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}.home-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:24px}.home-head h1{font-size:34px;font-weight:800;line-height:1.2;letter-spacing:-.01em}.home-head .sub{margin-top:6px;color:var(--text-3);font-size:14px}.streak{display:flex;align-items:center;gap:18px}.streak-text{display:flex;flex-direction:column;align-items:flex-end}.streak-days{display:inline-flex;align-items:center;gap:6px;font-size:24px;font-weight:800;line-height:1.2;white-space:nowrap}.streak-days svg{color:var(--sun)}.streak-week{color:var(--text-3);font-size:13px}.week-dots{display:flex;gap:8px;margin:0;padding:0;list-style:none}.week-dot{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--surface-3);color:var(--text-3);font-size:12px;font-weight:650}.week-dot.on{background:var(--accent-bright);color:#fff}.week-dot.today{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent-bright)}.plan-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.plan-card{display:flex;flex-direction:column;gap:20px;min-width:0;padding:26px 28px}.plan-card .plan-actions{margin-top:auto}.plan-link{align-self:flex-start}.plan-resume{flex-basis:100%}.plan-card h2{font-size:20px;font-weight:750}.plan-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}.plan-left{margin-top:-8px}.plan-stats{display:flex;flex-wrap:wrap;align-items:center;gap:22px 44px}.ring{position:relative;flex:none;width:128px;height:128px}.ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.ring-track{stroke:var(--accent-soft)}.ring-value{stroke:var(--accent-bright);transition:stroke-dashoffset .5s ease-out}.ring-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:24px;font-weight:800;line-height:1.1}.ring-label small{color:var(--text-3);font-size:12px;font-weight:500}.stat-label{color:var(--text-3);font-size:13px}.stat-value{font-size:56px;font-weight:800;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.stat-value small{margin-left:4px;color:var(--text-3);font-size:26px;font-weight:650}.stat-unit{max-width:220px;color:var(--text-3);font-size:13px}.plan-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px}.plan-actions .btn.big{min-width:200px}.plan-note{color:var(--text-3);font-size:14px}.plan-done{display:flex;align-items:center;gap:10px;color:var(--accent-text);font-size:17px;font-weight:700}.book-picker{width:auto;max-width:260px;height:38px;border-radius:99px;background-color:var(--surface-2);border-color:transparent;font-size:14px;font-weight:600}.home-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:20px}.home-grid>:last-child:nth-child(odd){grid-column:1 / -1;min-height:0}.mini{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:216px;padding:22px}.mini-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.mini h2{font-size:17px;font-weight:700}.mini-count{font-size:36px;font-weight:800;line-height:1.1;color:var(--accent-text)}.mini-count small{margin-left:6px;color:var(--text-3);font-size:14px;font-weight:500}.mini-foot{margin-top:auto}.book-progress li{padding:5px 0;font-size:14px}.plan-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:2px 0;font-size:14px}.plan-list li+li{border-top:1px solid var(--line)}.plan-list strong{overflow:hidden;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.plan-list.all{max-height:360px;overflow-y:auto;padding-right:4px}.plan-list .icon-btn{width:32px;height:32px}.plan-count{margin-top:-4px;color:var(--text-3);font-size:13px}.plan-count strong{color:var(--text);font-weight:700}.plan-list .tag{gap:3px}.plan-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}.book-progress-head{display:flex;justify-content:space-between;gap:12px}.book-progress-head span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-progress .meter{display:block;width:100%;margin-top:6px}.due-panel{grid-column:1 / -1;padding:6px 22px 10px}.due-panel h2{padding:14px 0 6px;font-size:16px;font-weight:700}.due-list li{display:grid;grid-template-columns:minmax(110px,200px) 1fr auto;gap:4px 16px;align-items:baseline;padding:10px 0;font-size:14px;border-top:1px solid var(--line)}.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}.meter{display:inline-block;width:120px;height:8px;overflow:hidden;border-radius:99px;background:var(--surface-3)}.meter span{display:block;height:100%;border-radius:99px;background:var(--accent-bright)}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.book-card{display:flex;flex-direction:column;gap:12px;padding:20px}.book-card-head{display:flex;align-items:flex-start;gap:14px}.book-cover{display:inline-flex;flex:none;align-items:center;justify-content:center;width:46px;height:46px;border-radius:13px;font-size:20px;font-weight:800}.cover-0{background:var(--accent-soft);color:var(--accent-text)}.cover-1{background:var(--sky);color:#1d5a78}.cover-2{background:var(--sun-soft);color:#8a5300}.book-card-title{min-width:0;flex:1}.book-title{font-size:17px;font-weight:700;line-height:1.4;text-align:left;color:var(--text);overflow-wrap:anywhere}@media(hover:hover){.book-title:hover{color:var(--accent-text)}}.book-card-title .tag{margin-top:4px}.book-card .book-desc{display:-webkit-box;overflow:hidden;color:var(--text-2);font-size:14px;-webkit-line-clamp:2;-webkit-box-orient:vertical}.book-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;color:var(--text-3);font-size:13px}.book-card .meter{width:100%}.book-card-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:auto;padding-top:4px}.enroll-btn.on{color:var(--accent-text);background:var(--accent-soft);border-color:var(--accent-soft-2)}.start-panel{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 28px;margin-bottom:28px;padding:20px 22px}.field-label{display:flex;flex-direction:column;gap:6px;color:var(--text-3);font-size:13px}.field-label select{width:auto;min-width:160px;max-width:240px}.start-panel>.field-label{flex:0 0 100%}.start-group{display:flex;flex:1 1 300px;flex-direction:column;gap:8px;min-width:0}.start-group+.start-group{padding-left:28px;border-left:1px dashed var(--line-strong)}.start-group-title{color:var(--text);font-size:15px;font-weight:700}.start-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.count-field input{width:88px}.pick-result{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent-text);font-size:14px;font-weight:600}.plan-check{flex:none;width:20px;height:20px;padding:0;align-self:center;accent-color:var(--accent);cursor:pointer}.plan-check-cell{display:flex;align-items:center;justify-content:center;align-self:center;cursor:pointer}.plan-check:disabled{cursor:not-allowed}.word-plan{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.word-list,.history-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.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.pickable{grid-template-columns:20px minmax(140px,220px) 1fr auto}.word-row.pickable.editable{grid-template-columns:20px 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:700;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}@media(hover:hover){.upload:hover{border-color:var(--accent-bright);background:var(--accent-soft)}}.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;min-height:100dvh}.practice{max-width:880px;margin:0 auto;padding:16px 24px 48px}.practice.answered{padding-bottom:150px}.practice-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;height:56px;margin-bottom:30px}.practice-bar .icon-btn{margin-left:-8px;color:var(--text-2)}.practice-count{min-width:56px;color:var(--text);font-size:15px;font-weight:700;text-align:right}.progress{height:12px;overflow:hidden;border-radius:99px;background:var(--surface-3)}.progress span{display:block;width:100%;height:100%;border-radius:99px;background:linear-gradient(90deg,#4fc7a6,var(--accent-bright));transform-origin:left;transition:transform .3s ease-out}.question{display:flex;flex-direction:column}.question>.tag{align-self:center;margin-bottom:14px;background:var(--sun-soft);color:var(--warn)}.prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:140px;margin-bottom:30px;text-align:center}.prompt-word{font-size:60px;font-weight:800;line-height:1.1;letter-spacing:-.02em;overflow-wrap:anywhere}.prompt-phonetic{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;color:var(--text-2);font-size:18px}.prompt-hint{color:var(--text-2);font-size:16px}.play{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1.5px solid var(--accent-soft-2);border-radius:50%;background:var(--surface);color:var(--accent);transition:background-color .15s,color .15s,box-shadow .2s,border-color .15s}@media(hover:hover){.play:hover{background:var(--accent-soft)}}.play.play-big{width:104px;height:104px;border:0;background:var(--accent-soft);box-shadow:0 10px 28px #36b79838}.play.is-playing{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 0 0 6px #36b7982e}.play-group{position:relative;display:inline-flex;align-items:center;gap:10px}.voice{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1.5px solid var(--accent-soft-2);border-radius:99px;background:var(--surface);color:var(--accent-text);font-size:14px;font-weight:650;transition:background-color .15s,border-color .15s,color .15s}@media(hover:hover){.voice:hover{background:var(--accent-soft)}}.voice.is-playing{background:var(--accent);border-color:var(--accent);color:#fff}.play-big+.voice{position:absolute;top:50%;left:100%;margin-left:16px;transform:translateY(-50%)}.tap-hint{margin:-18px 0 18px;color:var(--warn);font-size:14px;text-align:center}.options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.option{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:14px;width:100%;min-height:64px;padding:15px 18px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 1px 2px #12293a0a;font-size:16px;text-align:left;transition:border-color .15s,background-color .15s,opacity .15s,transform .1s}.option .senses-inline{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}@media(hover:hover){.option:hover:not(:disabled){border-color:var(--accent-bright);background:#f8fcfa}}.option:active:not(:disabled){transform:translateY(1px)}.option:disabled{cursor:default}.option-key{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--accent-text);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;transition:background-color .15s,color .15s}.option.is-pending{border-color:var(--accent-bright)}.option.is-correct{border-color:var(--accent-bright);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:22px;padding:20px 22px;animation:reveal .18s ease-out}.feedback-word{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-bottom:10px}.feedback-english{font-size:26px;font-weight:800;overflow-wrap:anywhere}.feedback-word .phonetic{font-size:15px}.typed{margin-bottom:10px;color:var(--text-2);font-size:14px}.typed s{color:var(--danger)}.answer-bar{position:fixed;left:0;right:0;bottom:0;z-index:25;padding:20px 24px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--accent-soft-2);background:var(--success-soft);animation:rise .2s ease-out}.answer-bar.is-wrong{border-top-color:#f4c9c5;background:var(--danger-soft)}.answer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:832px;margin:0 auto}.answer-status{display:flex;align-items:center;gap:14px;min-width:0}.answer-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--success);color:#fff}.is-wrong .answer-icon{background:var(--danger)}.answer-title{font-size:24px;font-weight:800;line-height:1.2;color:var(--success-text)}.is-wrong .answer-title{color:var(--danger)}.answer-sub{color:var(--text-2);font-size:14px}.answer-bar .btn.big{min-width:220px}.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:520px;margin:0 auto}.dictation-input{height:60px;border-radius:14px;font-size:24px;text-align:center;letter-spacing:.01em}.dictation-input:disabled{opacity:1}.dictation-input.is-correct{border-color:var(--accent-bright);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:12px;background:var(--surface)}.dictation-actions{display:flex;justify-content:center;gap:10px}.finish{display:flex;flex-direction:column;align-items:center;text-align:center}.finish-art{width:min(360px,100%);height:auto;aspect-ratio:4 / 3;border-radius:20px;object-fit:cover;box-shadow:var(--shadow)}.finish h1{margin-top:22px;font-size:32px;font-weight:800}.finish-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:min(560px,100%);margin-top:20px}.finish-stat{padding:16px 12px}.finish-stat strong{display:block;font-size:30px;font-weight:800;line-height:1.2}.finish-stat span{color:var(--text-3);font-size:13px}.finish-stat.good strong{color:var(--accent-text)}.finish-body{width:100%;max-width:720px;text-align:left}.finish h2{margin:30px 0 12px;font-size:17px;font-weight:700}.finish .word-list+.muted{margin-top:10px;font-size:14px}.finish-note{margin-top:22px;color:var(--accent-text);font-size:16px;font-weight:650;text-align:center}.finish-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px}@keyframes reveal{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes rise{0%{transform:translateY(100%)}to{transform:none}}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.stat-card{display:flex;align-items:center;gap:14px;padding:18px 20px}.stat-icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px}.stat-icon.sun{background:var(--sun-soft);color:var(--sun)}.stat-icon.mint{background:var(--accent-soft);color:var(--accent)}.stat-icon.sky{background:var(--sky);color:#2a7aa1}.stat-card strong{display:block;font-size:26px;font-weight:800;line-height:1.2}.stat-card span{color:var(--text-3);font-size:13px}.week{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:8px;height:180px;margin-bottom:28px;padding:18px 22px 14px}.week-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}.week-bar{width:60%;max-width:38px;border-radius:8px 8px 3px 3px;background:var(--accent-soft-2)}.week-day.today .week-bar{background:var(--accent-bright)}.week-count{min-height:18px;color:var(--text-2);font-size:12px;font-weight:600}.week-label{color:var(--text-3);font-size:12px}.week-day.today .week-label{color:var(--text);font-weight:700}.records-tabs{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title{margin-bottom:12px;font-size:17px;font-weight:700}.history-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 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:18px;padding:6px 22px}.settings-group h2{padding:16px 0 6px;font-size:17px;font-weight:700}.setting{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 24px;padding:15px 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:600}.setting-control{display:flex;align-items:center;justify-content:flex-end;gap:8px}.setting-control select{width:auto;min-width:136px}.number-control input{width:88px;text-align:right}.switch{appearance:none;position:relative;flex:none;width:46px;height:28px;padding:0;border:0;border-radius:14px;background:#cfd3cf;cursor:pointer;transition:background-color .15s}.switch:before{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #12293a40;transition:transform .18s ease-out}.switch:checked{background:var(--accent-bright)}.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:15px 0;border-top:1px solid var(--line)}.about summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;font-size:17px;font-weight:700;cursor:pointer;list-style:none}.about summary::-webkit-details-marker{display:none}.about summary svg{color:var(--text-3);transition:transform .15s}.about[open] summary svg{transform:rotate(180deg)}.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:18px}.about strong{color:var(--text);font-weight:650}.auth{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:48px;align-items:center;max-width:1180px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:40px 32px}.auth-art{position:relative;overflow:hidden;border-radius:28px;box-shadow:var(--shadow)}.auth-art img{display:block;width:100%;height:auto;aspect-ratio:16 / 11;object-fit:cover}.auth-box{width:min(420px,100%);padding:34px 32px 28px}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand h1{font-size:28px;font-weight:800}.auth-lead{margin:14px 0 24px;color:var(--text-2);line-height:1.75}.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:#12293a66}.modal-backdrop{top:var(--vv-top, 0px);bottom:auto;height:var(--vv-height, 100%)}.modal{width:min(480px,100%);max-height:calc(100vh - 32px);max-height:calc(var(--vv-height, 100dvh) - 32px);overflow:auto;padding:20px 24px 24px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow-lg)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.modal-head h2{font-size:18px;font-weight:700}.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%)}.is-practicing .toast-region{bottom:132px}.toast{display:flex;align-items:center;gap:8px;padding:10px 8px 10px 16px;border-radius:12px;background:var(--text);color:#fff;font-size:14px;box-shadow:0 10px 30px #12293a47;animation:toast-in .18s ease-out}.toast-error{background:#9f2f29}.toast .icon-btn{width:30px;height:30px;color:#d3dade}@media(hover:hover){.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:700}.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:8px;background:linear-gradient(90deg,var(--surface-3),#f7f6f1,var(--surface-3));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:1020px){.plan-pair{grid-template-columns:1fr}.plan-pair>.learn-card{order:1}.home-grid{grid-template-columns:1fr 1fr}.auth{grid-template-columns:1fr;justify-items:center;gap:24px}.auth-art{width:min(560px,100%)}}@media(max-width:760px){.topbar{position:static;height:auto;padding:0;border-bottom:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}.topbar .brand,.topbar .account{display:none}.btn.settings-logout{display:inline-flex}.btn.account-logout-bottom{display:none}.nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);gap:0;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fdfcf9f5;border-top:1px solid var(--line)}.nav-item{flex-direction:column;justify-content:center;gap:2px;height:60px;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(66px + env(safe-area-inset-bottom))}.page{padding:14px 16px 40px}.page-head{margin-bottom:18px}.page-head h1,.home-head h1{font-size:26px}.home-head{align-items:flex-start;gap:10px;margin-bottom:14px}.streak{width:100%;justify-content:space-between;gap:10px}.streak-text{align-items:flex-start}.streak-days{font-size:20px}.streak-week{display:none}.week-dots{gap:5px}.week-dot{width:28px;height:28px;font-size:11px}.plan-pair{gap:12px}.plan-card{gap:12px;padding:16px}.plan-card h2{font-size:18px}.plan-head{gap:8px 12px}.plan-stats{gap:12px 18px}.ring{width:72px;height:72px}.ring-label{font-size:16px}.ring-label small{font-size:11px}.stat-value{font-size:34px}.stat-value small{font-size:18px}.plan-actions .btn{flex:1 1 auto}.plan-actions .btn.big{min-width:0;width:100%;height:50px}.review-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.review-card>:not(.due-stat):not(.plan-link){grid-column:1 / -1}.review-card .plan-link{align-self:center}.due-stat{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}.due-stat .stat-unit{max-width:none}.plan-actions.review-idle{display:none}.book-picker{max-width:100%}.home-grid{grid-template-columns:1fr;gap:14px;margin-top:14px}.mini{min-height:0;padding:18px}.due-panel{padding:4px 16px 8px}.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-grid{grid-template-columns:1fr;gap:12px}.book-card,.start-panel{padding:16px}.start-panel .field-label,.start-group{width:100%}.field-label select{width:100%;max-width:none}.start-group+.start-group{padding:14px 0 0;border-left:0;border-top:1px dashed var(--line-strong)}.start-row .btn{flex:1 1 auto}.start-row .count-field{width:auto}.start-row .segmented{width:100%}.start-row .segmented button{flex:1 1 auto;padding:0 8px}.plan-head .segmented{width:100%}.plan-head .segmented button{flex:1 1 auto;padding:0 8px}.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}.word-row.pickable,.word-row.pickable.editable{grid-template-columns:20px 1fr auto}.word-row.pickable .row-actions{grid-column:3}.word-row.pickable .senses-inline,.word-row.pickable .word-section{grid-column:2 / -1}.practice{padding:4px 16px 32px}.practice.answered{padding-bottom:calc(140px + env(safe-area-inset-bottom))}.practice.answered .option.is-muted{display:none}.practice-bar{margin-bottom:18px;gap:12px}.prompt{min-height:110px;margin-bottom:22px}.prompt-word{font-size:40px}.play.play-big{width:84px;height:84px}.options{grid-template-columns:1fr;gap:10px}.option{min-height:56px;padding:12px 14px;font-size:15px}.sense-text{font-size:15px}.feedback{padding:16px}.answer-bar{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}.answer-inner{flex-direction:column;align-items:stretch;gap:8px}.answer-status{gap:10px}.answer-status>div{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px}.answer-icon{width:32px;height:32px}.answer-icon svg{width:20px;height:20px}.answer-title{font-size:18px}.answer-sub{font-size:13px}.answer-bar .btn.big{width:100%;min-width:0;height:48px}.is-practicing .toast-region{bottom:calc(136px + env(safe-area-inset-bottom))}.finish h1{font-size:26px}.finish-stat strong{font-size:24px}.stat-cards{gap:8px}.stat-card{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.stat-icon{width:34px;height:34px;border-radius:10px}.stat-card strong{font-size:20px}.week{height:152px;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(72px + env(safe-area-inset-bottom))}.modal-backdrop{align-items:flex-start}.modal{padding:16px 18px 20px}.auth{padding:24px 16px}.auth-art{display:none}.auth-box{padding:26px 20px 22px}}@media(pointer:coarse){input,select,textarea,.book-picker{font-size:16px}.btn,.btn.small,input:where(:not([type=checkbox],[type=radio],[type=file])),select,.book-picker{height:44px}.icon-btn,.plan-list .icon-btn{width:44px;height:44px}.plan-list li{min-height:44px}.plan-check-cell{width:44px;height:44px;margin:-12px}.segmented button,.link-btn,.play,.voice,.book-title,.back,.switch,.toast .icon-btn{position:relative}.segmented button:after,.link-btn:after,.play:after,.voice:after,.book-title:after,.back:after,.switch:after,.toast .icon-btn:after{content:"";position:absolute;inset:calc((100% - 44px)/2)}}@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}}.step1-result{margin-bottom:10px;text-align:center;font-size:14px;font-weight:600}.step1-result.is-correct{color:var(--success-text)}.step1-result.is-wrong{color:var(--danger)}.option-english{font-size:18px;font-weight:600}
