.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:400;background:var(--color-surface);box-shadow:inset 0 1px 0 var(--color-border);padding-bottom:env(safe-area-inset-bottom,0px);transition:transform .15s ease-out}html.tab-bar-keyboard .tab-bar{transform:translateY(110%);pointer-events:none}.tab-bar-inner{display:flex;align-items:stretch;height:var(--tab-bar-height, 56px);max-width:640px;margin:0 auto}.tab-bar-item{flex:1 1 0;min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--color-text-light);text-decoration:none;font-size:.75rem;line-height:1.2;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.tab-bar-item:hover{text-decoration:none;color:var(--color-text)}.tab-bar-item svg{flex:none}.tab-bar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 2px}.tab-bar-item-active,.tab-bar-item-active:hover{color:var(--color-primary);font-weight:600}@media (max-height: 460px){.tab-bar-inner{height:var(--tab-bar-height, 48px)}}.tab-bar-icon{position:relative;display:inline-flex}.tab-bar-badge{position:absolute;top:-5px;left:14px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#2c6bed;color:#fff;font-size:.6875rem;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--color-surface)}.header-user{position:relative}.user-button{display:flex;align-items:center;justify-content:center;background:none;border:2px solid rgba(255,255,255,.3);border-radius:50%;cursor:pointer;padding:0;width:36px;height:36px;transition:border-color .2s;position:relative;text-decoration:none}.user-button:hover{text-decoration:none}.user-button:hover{border-color:#fff9}.user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}.user-avatar-placeholder{width:32px;height:32px;border-radius:50%;background:#fff3;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:600;text-transform:uppercase}.admin-notification-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:.625rem;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1}.notification-area{position:relative}.notification-bell{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:6px;color:#fffc;border-radius:50%;transition:color .2s,background-color .2s;position:relative}.notification-bell:hover{color:#fff;background-color:#ffffff1a}.notification-badge{position:absolute;top:0;right:0;background:#ef4444;color:#fff;font-size:.5625rem;font-weight:700;min-width:14px;height:14px;border-radius:7px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1}.notification-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--color-surface);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);width:320px;max-height:400px;z-index:1000;overflow:hidden;border:1px solid var(--color-border)}.notification-dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--color-border)}.notification-dropdown-title{font-weight:600;font-size:.875rem;color:var(--color-text)}.notification-mark-all{background:none;border:none;font-size:.75rem;color:#3b82f6;cursor:pointer;padding:0}.notification-mark-all:hover{text-decoration:underline}.notification-dropdown-list{overflow-y:auto;max-height:340px}.notification-empty{padding:2rem 1rem;text-align:center;color:var(--color-text-light);font-size:.875rem}.notification-item{display:block;width:100%;padding:.75rem 1rem;text-align:left;background:none;border:none;border-bottom:1px solid var(--color-border);cursor:pointer;transition:background-color .15s;font-size:.8125rem}.notification-item:last-child{border-bottom:none}.notification-item:hover{background-color:var(--color-background)}.notification-item-unread{background-color:#3b82f60d}.notification-item-unread:hover{background-color:#3b82f61a}.notification-item-title{font-weight:600;color:var(--color-text);margin-bottom:2px}.notification-item-message{color:var(--color-text-light);font-size:.75rem;line-height:1.4;margin-bottom:4px}.notification-item-time{color:var(--color-text-light);font-size:.6875rem;opacity:.7}.sync-badge{position:fixed;bottom:1rem;right:1rem;z-index:999;display:flex;align-items:center;gap:.375rem;padding:.375rem .625rem;border-radius:1rem;font-size:.75rem;font-weight:500;box-shadow:0 2px 8px #00000026;transition:all .2s ease;cursor:default}.sync-badge-syncing{background-color:#dbeafe;color:#1e40af}.sync-badge-synced{background-color:#d1fae5;color:#065f46;animation:fadeOutBadge .5s ease-out 1s forwards}@keyframes fadeOutBadge{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.sync-badge-offline{background-color:#fef3c7;color:#92400e}.sync-badge-pending{background-color:#fef3c7;color:#92400e;cursor:pointer}.sync-badge-pending:hover{background-color:#fde68a;transform:scale(1.05)}.sync-badge-pending:active{transform:scale(.98)}.sync-badge-spinner{width:.75rem;height:.75rem;border:1.5px solid #93c5fd;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}.sync-badge-check{font-size:.75rem}.sync-badge-dot{width:.5rem;height:.5rem;border-radius:50%}.sync-badge-offline .sync-badge-dot{background-color:#f59e0b}.sync-badge-pending .sync-badge-dot{background-color:#f59e0b;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@media (max-width: 640px){.sync-badge{bottom:.75rem;right:.75rem;padding:.3rem .5rem;font-size:.6875rem}}.sync-badge-inline,.sync-badge-inline.sync-badge{position:static;bottom:auto;right:auto;box-shadow:none;padding:.25rem .5rem;font-size:.6875rem;white-space:nowrap}.take-lock-actions .practice-btn.take-lock-stop{flex:1;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:.625rem;background:#dc2626;border:none;color:#fff;font-size:1.0625rem;font-weight:700;animation:take-lock-pulse 1.4s ease-in-out infinite}.take-lock-actions .practice-btn.take-lock-stop:hover:not(:disabled){background:#b91c1c}.take-lock-actions .practice-btn.take-lock-stop:active:not(:disabled){transform:scale(.98)}.take-lock-actions .practice-btn.take-lock-stop.checking,.take-lock-actions .practice-btn.take-lock-stop:disabled{background:#fee2e2;color:#b91c1c;opacity:1;animation:none;cursor:default}:root[data-theme=dark] .take-lock-actions .practice-btn.take-lock-stop.checking{background:#dc26262e;color:#fca5a5}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .take-lock-actions .practice-btn.take-lock-stop.checking{background:#dc26262e;color:#fca5a5}}.take-lock-stop-square{width:14px;height:14px;border-radius:3px;background:currentColor}.take-lock-spinner{width:18px;height:18px}@keyframes take-lock-pulse{0%,to{box-shadow:0 0 #dc262659}50%{box-shadow:0 0 0 6px #dc262600}}@media (prefers-reduced-motion: reduce){.take-lock-actions .practice-btn.take-lock-stop{animation:none}}.take-lock-muted{opacity:.4;pointer-events:none}.voice-input{display:flex;flex-direction:column;align-items:stretch;gap:.5rem;width:100%}.voice-input-row{display:flex;align-items:stretch;gap:.5rem}.voice-input-row .btn{min-height:48px;white-space:nowrap}.voice-input-side{flex:0 0 auto;padding-left:.75rem;padding-right:.75rem}.voice-input-wide{flex:1 1 auto;min-width:0;font-size:1rem;font-weight:600}.voice-input-wide:active{transform:scale(.97)}.voice-input-wide.is-listening{animation:voice-input-pulse 1.1s ease-in-out infinite}.voice-input-row .btn[aria-disabled=true]{opacity:.55;cursor:default}.voice-input-spinner{display:inline-block;width:16px;height:16px;border-width:2px;border-color:#fff6;border-top-color:#fff;vertical-align:-3px}.voice-input-live{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;min-height:56px;margin:0;border-color:#ef444473;font-size:1.25rem;line-height:1.4;overflow-wrap:anywhere;text-align:center}.voice-input-final{color:var(--color-text)}.voice-input-interim{color:#9ca3af}.voice-input-placeholder{color:var(--color-text-light);font-size:1rem}.voice-input-review{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.6rem .75rem .7rem;border-radius:16px;background:var(--color-surface);border:1px solid var(--color-border);text-align:center;animation:voice-input-review-in .18s ease-out}.voice-input-review-text{color:var(--color-text);font-size:1.5rem;line-height:1.3;overflow-wrap:anywhere}.voice-input-review-text.hanzi{font-size:2rem}.voice-input-review-text.is-long{font-size:1.375rem}.voice-input-review-pinyin{font-size:1rem}.voice-input-typing-row{display:flex;align-items:stretch;gap:.5rem}.voice-input-box{flex:1;min-width:0;margin:0;font-size:1.125rem}.voice-input-box--multi{resize:vertical;min-height:5.5rem;line-height:1.5}.voice-input-mic{flex-shrink:0;align-self:flex-start;width:48px;height:48px;border-radius:999px;border:1px solid var(--color-border);background:var(--color-surface);font-size:1.25rem;line-height:1;cursor:pointer;transition:transform .12s ease}.voice-input-mic:active{transform:scale(.94)}.voice-input-hint{margin:0;text-align:center;font-size:.8125rem;color:var(--color-text-light)}.voice-input-failed{display:block;width:100%;min-height:44px;padding:.5rem .75rem;border-radius:6px;border:1px solid rgba(239,68,68,.35);background:#ef444414;color:inherit;font:inherit;font-size:.875rem;font-weight:500;text-align:center;cursor:pointer}.voice-input-failed-note{display:block;font-size:.75rem;font-weight:400;color:var(--color-text-light);margin-top:.125rem}@keyframes voice-input-pulse{0%,to{box-shadow:0 0 #ef444459}50%{box-shadow:0 0 0 8px #ef444400}}@keyframes voice-input-review-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.voice-input-wide.is-listening,.voice-input-review{animation:none}}.voice-input--compact{gap:.4rem}.voice-input--compact .voice-input-typing-row{align-items:flex-end;gap:.4rem}.voice-input-box--grow{resize:none;min-height:44px;max-height:calc(5.6em + 1rem);padding-top:.55rem;padding-bottom:.55rem;line-height:1.4;overflow-y:auto}.voice-input--compact .voice-input-mic,.voice-input-send{flex-shrink:0;align-self:flex-end;width:44px;height:44px}.voice-input-send{border:0;border-radius:999px;background:var(--color-primary, #2c6bed);color:#fff;font-size:1.1rem;line-height:1;cursor:pointer;transition:transform .12s ease,opacity .12s ease}.voice-input-send:active{transform:scale(.92)}.voice-input-send[aria-disabled=true]{opacity:.4;cursor:default}.voice-input--compact .voice-input-row .btn{min-height:44px;padding-top:.35rem;padding-bottom:.35rem}.call-banner{display:flex;align-items:center;gap:.6rem;border-radius:14px;background:#0f5132;color:#fff;padding:.5rem .5rem .5rem .85rem;min-height:52px;box-sizing:border-box}.call-banner.incoming{background:linear-gradient(135deg,#15803d,#0f766e)}.call-banner-icon{font-size:1.35rem;flex:0 0 auto}.call-banner.incoming .call-banner-icon{animation:call-banner-wiggle 1.6s ease-in-out infinite}.call-banner-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}.call-banner-text strong{font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-banner-sub{font-size:.85rem;opacity:.85}.call-banner-join{flex:0 0 auto;min-height:44px;min-width:76px;padding:0 1.1rem;border:none;border-radius:999px;background:#fff;color:#166534;font-weight:700;font-size:1rem;cursor:pointer}.call-banner-join:hover{background:#dcfce7}.call-banner-close{flex:0 0 auto;width:40px;min-height:44px;border:none;background:none;color:#fffc;font-size:1rem;cursor:pointer}.call-banner-top{position:fixed;z-index:1000;top:calc(env(safe-area-inset-top,0px) + .5rem);left:.5rem;right:.5rem;margin:0 auto;max-width:560px;box-shadow:0 10px 30px #0000004d;animation:call-banner-in .35s cubic-bezier(.2,.9,.3,1.2)}.call-banner-top.incoming:after{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border-radius:17px;border:2px solid rgba(74,222,128,.9);animation:call-banner-pulse 1.6s ease-out infinite;pointer-events:none}.call-banner-card{position:relative;padding:1rem .75rem 1rem 1rem;margin-bottom:1rem;border-radius:18px;min-height:72px;box-shadow:0 6px 18px #15803d4d}.call-banner-card .call-banner-icon{font-size:1.9rem}.call-banner-card .call-banner-text strong{font-size:1.15rem;white-space:normal}.call-banner-card .call-banner-join{min-height:48px;font-size:1.05rem}.call-banner-inline{margin:.75rem 0}@keyframes call-banner-in{0%{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}@keyframes call-banner-pulse{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04,1.25)}}@keyframes call-banner-wiggle{0%,60%,to{transform:rotate(0)}10%,30%,50%{transform:rotate(-12deg)}20%,40%{transform:rotate(12deg)}}@media (prefers-reduced-motion: reduce){.call-banner-top,.call-banner.incoming .call-banner-icon,.call-banner-top.incoming:after{animation:none}}.call-alerts-nudge{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.75rem 0;padding:.6rem .75rem;border-radius:12px;background:#ecfdf5;color:#065f46;font-size:.95rem}.call-alerts-nudge-text{flex:1 1 calc(100% - 2rem)}.call-alerts-nudge .btn{min-height:44px}.call-alerts-nudge .btn-primary{margin-left:auto}@media (min-width: 640px){.call-alerts-nudge{flex-wrap:nowrap}.call-alerts-nudge-text{flex:1 1 auto}}.recap-offer{position:fixed;left:0;right:0;bottom:0;z-index:1200;display:flex;justify-content:center;padding:0 .75rem calc(.75rem + env(safe-area-inset-bottom,0px));pointer-events:none;animation:recap-offer-in .28s cubic-bezier(.2,.9,.3,1.2)}.recap-offer-card{pointer-events:auto;width:100%;max-width:480px;background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:0 12px 32px #00000038;padding:1rem}.recap-offer-head{display:flex;align-items:center;justify-content:space-between}.recap-offer-title{font-weight:700;font-size:1.0625rem}.recap-offer-close{background:none;border:none;color:var(--color-text-light);font-size:1.125rem;min-width:44px;min-height:44px;cursor:pointer}.recap-offer-line{margin:.25rem 0 .75rem;color:var(--color-text-light);font-size:.9375rem}.recap-offer-actions{display:flex;gap:.5rem}.recap-offer-actions .btn{min-height:48px}.recap-offer-actions .btn-secondary{flex:1}.recap-offer-actions .btn-primary{flex:2}@keyframes recap-offer-in{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion: reduce){.recap-offer{animation:none}}.recap .hw-pass-progress{margin:.5rem 1rem 0}.recap-list-btn{min-height:36px}.recap-source{margin:.25rem 1rem 0;font-size:.875rem;color:var(--color-text-light);text-align:center}.recap .recap-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.75rem;padding:2.5rem 1rem 1.5rem}.recap .recap-word{font-size:3rem;font-weight:600;line-height:1.2}.recap-sentence{margin:0;font-size:1.25rem;line-height:1.7;max-width:34rem}.recap-mark,.recap-sentence .xt-hl{background:#8b5cf62e;color:inherit;border-radius:4px;padding:0 2px;box-shadow:inset 0 -2px #8b5cf6b3}.recap-back{width:100%;max-width:34rem;display:flex;flex-direction:column;align-items:center;gap:.625rem;animation:recap-offer-in .22s ease-out}.recap-pinyin-row{display:flex;align-items:center;gap:.5rem}.recap-play{width:44px;height:44px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);font-size:1rem;cursor:pointer}.recap-pinyin{font-size:1.25rem;color:#2563eb}.recap-meaning{font-size:1.125rem;font-weight:600}.recap-page-english{margin:0;font-size:.9375rem;color:var(--color-text-light)}.recap-label{font-size:.6875rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;margin-right:.25rem}.recap-why{list-style:none;margin:0;padding:.5rem .75rem;border-radius:var(--radius-lg);background:#f9731614;font-size:.875rem;color:var(--color-text);text-align:left;width:100%}.recap-why li+li{margin-top:.25rem}.recap-keep{width:100%}.recap-footer .btn{flex:1;min-height:54px;font-weight:600}.recap-not-yet{background:#fff7ed;color:#9a3412;border:1.5px solid #fdba74}.recap-got-it{background:#16a34a;color:#fff;border:1.5px solid #15803d}.recap-got-it.is-suggested{box-shadow:0 0 0 3px var(--color-surface, #fff),0 0 0 5px #16a34a;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.125rem}.recap-suggested-hint{font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;opacity:.9}.recap .recap-say{width:100%;max-width:22rem;margin-top:.25rem}.recap .recap-say .coach-practise-row{justify-content:center}.recap .recap-say .coach-practise-mic{flex:0 1 15rem;min-height:48px;font-size:1rem}.recap .recap-say .coach-practise-hint{text-align:center}.recap .recap-summary{display:block;padding:1rem;text-align:center}.recap-summary-title{margin:.5rem 0 .25rem;font-size:1.5rem}.recap-summary-line{margin:0;color:var(--color-text-light)}.recap-summary-hint{margin:.5rem 0;font-size:.875rem;color:var(--color-text-light)}.recap-list{list-style:none;margin:.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem;text-align:left}.recap-row{display:flex;flex-direction:column;gap:.375rem;padding:.75rem;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface)}.recap-row-word{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem}.recap .recap-row-hanzi{font-size:1.5rem;font-weight:600;line-height:1.3}.recap-row-pinyin{color:#2563eb}.recap-row-gloss{color:var(--color-text-light);font-size:.9375rem}.recap-row-tags{display:inline-flex;gap:.25rem;margin-left:auto}.recap-tag{font-size:.6875rem;font-weight:600;padding:.125rem .5rem;border-radius:999px}.recap-tag--tapped{background:#8b5cf624;color:#6d28d9}.recap-tag--said_wrong{background:#f9731624;color:#c2410c}.recap-done-line{margin:.75rem 0 0;font-weight:600;color:#15803d}:root[data-theme=dark] .recap-not-yet{background:#f973161f;color:#fdba74;border-color:#fdba7480}:root[data-theme=dark] .recap-pinyin,:root[data-theme=dark] .recap-row-pinyin{color:#93c5fd}:root[data-theme=dark] .recap-tag--tapped{color:#c4b5fd}:root[data-theme=dark] .recap-tag--said_wrong{color:#fdba74}:root[data-theme=dark] .recap-done-line{color:#86efac}.signed-out-banner{position:relative;z-index:101;margin:calc(env(safe-area-inset-top,0px) + .5rem) auto .5rem;width:calc(100% - 1rem);max-width:560px;display:flex;align-items:center;gap:.6rem;box-sizing:border-box;padding:.6rem .6rem .6rem .85rem;border-radius:14px;background:#7c2d12;color:#fff;box-shadow:0 10px 30px #0000004d;animation:signed-out-in .35s cubic-bezier(.2,.9,.3,1.2)}.signed-out-banner-icon{font-size:1.25rem;flex:0 0 auto}.signed-out-banner-text{flex:1;min-width:0;font-size:.875rem;line-height:1.3}.signed-out-banner-signin{flex:0 0 auto;min-height:44px;padding:0 1rem;border:none;border-radius:999px;background:#fff;color:#7c2d12;font-weight:700;font-size:1rem;cursor:pointer}.signed-out-banner-signin:hover{background:#ffedd5}.signed-out-pill{position:fixed;z-index:1001;top:calc(env(safe-area-inset-top,0px) + 3.9rem);left:50%;transform:translate(-50%);min-height:36px;padding:0 .85rem;border:none;border-radius:999px;background:#7c2d12;color:#fff;font-size:.8125rem;white-space:nowrap;box-shadow:0 6px 18px #0000004d;cursor:pointer}.signed-out-pill strong{text-decoration:underline}@keyframes signed-out-in{0%{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion: reduce){.signed-out-banner{animation:none}}@media print{.signed-out-banner,.signed-out-pill{display:none!important}}.account-guard-overlay{z-index:1100}.account-guard{max-width:440px}.account-guard h3{margin:0 0 .5rem}.account-guard p{margin:0 0 .75rem;line-height:1.4}.account-guard-note{color:#64748b;font-size:.875rem}.account-guard-actions{display:flex;flex-direction:column;gap:.5rem}.account-guard-actions .btn{min-height:44px;width:100%}.account-guard-danger{background:#b91c1c;color:#fff;border:none}.reader-read-aloud-mic{flex:none;width:44px;height:44px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;font-size:1.125rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,transform .1s}.reader-read-aloud-mic:active{transform:scale(.92)}.reader-read-aloud-mic.has-result{border-color:#c4b5fd;background:#f5f3ff}.reader-read-aloud-mic.listening{background:#dc2626;border-color:#dc2626;color:#fff;animation:reader-read-aloud-pulse 1.4s ease-in-out infinite}.reader-read-aloud-mic:disabled{opacity:.6;cursor:default}.reader-read-aloud-spinner{width:18px;height:18px}@keyframes reader-read-aloud-pulse{0%,to{box-shadow:0 0 #dc262659}50%{box-shadow:0 0 0 6px #dc262600}}.reader-read-aloud-live{box-sizing:border-box;width:100%;justify-content:center;margin:.5rem 0;min-height:44px;padding:.5rem .75rem;border-radius:12px;background:#f3f4f6;font-size:1.125rem;display:flex;align-items:center}.reader-read-aloud-partial{color:#9ca3af}.reader-read-aloud-hint{margin:.5rem 0;font-size:.875rem;color:#6b7280}.reader-read-aloud-result{margin:.5rem 0}.reader-read-aloud-line-row{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.25rem .75rem}.reader-read-aloud-line{font-size:.875rem;font-weight:600;color:var(--color-text-light)}.reader-read-aloud-said-toggle{min-height:36px;padding:0 .25rem;border:none;background:none;color:#6b7280;font-size:.8125rem;cursor:pointer}.reader-read-aloud-said{font-size:.9375rem;color:#4b5563;padding:.25rem 0 0}:root{--ra-tone: var(--mark-tone);--ra-wrong: var(--mark-wrong);--ra-missed: var(--mark-missing);--ra-extra: var(--mark-extra);--ra-tone-tint: color-mix(in srgb, var(--mark-tone) 16%, transparent)}.ra-char.ra-close{color:var(--ra-tone)}.ra-char.ra-wrong{color:var(--ra-wrong)}.ra-char.ra-missed{color:var(--ra-missed)}.ra-char.ra-added{color:var(--ra-extra)}.ra-extra{display:inline-block;color:var(--ra-extra);font-size:.55em;font-weight:700;vertical-align:top;margin:0 -.1em;line-height:1}.reader-words[data-read-aloud=marked] .reader-word-chip,.reader-words[data-read-aloud=marked] .reader-word-chip.known,.chat-words[data-read-aloud=marked] .chat-word,.chat-words[data-read-aloud=marked] .chat-word.known{background:transparent;text-decoration:none}.reader-words[data-read-aloud=marked] .reader-word-chip:active{background:var(--ra-tone-tint)}.reader-read-aloud-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:.25rem .875rem;margin:.125rem 0 .25rem;font-size:.75rem;line-height:1.6;color:var(--color-text-light)}.reader-read-aloud-legend-item{display:inline-flex;align-items:center;gap:.3rem}.ra-swatch{display:inline-block;font-size:.875rem;line-height:1}.ra-swatch.ra-extra{font-size:1rem;font-weight:700;vertical-align:baseline;position:relative;top:-.3em;margin:0;padding:0 .2em}.reader-read-aloud-footer .reader-read-aloud-stop-btn{flex:1;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:.625rem;background:#dc2626;border:none;color:#fff;font-size:1.0625rem;font-weight:700;animation:reader-read-aloud-pulse 1.4s ease-in-out infinite}.reader-read-aloud-footer .reader-read-aloud-stop-btn:hover:not(:disabled){background:#b91c1c}.reader-read-aloud-footer .reader-read-aloud-stop-btn:active:not(:disabled){transform:scale(.98)}.reader-read-aloud-footer .reader-read-aloud-stop-btn.checking,.reader-read-aloud-footer .reader-read-aloud-stop-btn:disabled{background:#fee2e2;color:#b91c1c;opacity:1;animation:none;cursor:default}.reader-read-aloud-stop-square{width:14px;height:14px;border-radius:3px;background:currentColor}.study-reader-story-btn:disabled{opacity:.38;cursor:default}:root[data-theme=dark] .reader-read-aloud-footer .reader-read-aloud-stop-btn.checking{background:#dc26262e;color:#fca5a5}.ra-diffs{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem;text-align:left}.ra-diff{border:1px solid var(--color-border, #e5e7eb);border-left:4px solid var(--ra-wrong);border-radius:12px;padding:.5rem .625rem;background:var(--color-surface, #fff);transition:box-shadow .25s ease,background-color .25s ease}.ra-diff.kind-tone{border-left-color:var(--ra-tone)}.ra-diff.is-right{border-left-color:var(--color-border, #e5e7eb);opacity:.8}.ra-diff-pair{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.ra-diff-side{display:flex;flex-direction:column;min-width:0}.ra-diff-label{font-size:.6875rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-light, #6b7280)}.ra-diff-zh{font-size:1.375rem;line-height:1.3;color:var(--color-text, #111827)}.ra-diff-word{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;font-size:1.375rem;text-align:left;cursor:pointer;min-height:44px;text-decoration:underline dotted;text-decoration-color:var(--color-text-light, #9ca3af);text-decoration-thickness:1px;text-underline-offset:.3em;border-radius:6px}.ra-diff-word:active{background:#8b5cf61a}.ra-diff-word:focus-visible{outline:2px solid var(--color-primary, #3b82f6);outline-offset:2px}.ra-diff-py{font-size:.875rem;color:var(--color-text-light, #6b7280)}.ra-diff-vs{font-size:.8125rem;color:var(--color-text-light, #6b7280);padding:0 .125rem}.ra-diff-kind{margin-left:auto;font-size:.75rem;font-weight:600;color:var(--color-text-light, #6b7280)}.ra-diff-play{width:44px;height:44px;border-radius:50%;border:1px solid var(--color-border, #e5e7eb);background:var(--color-background, #f9fafb);color:var(--color-text, #111827);font-size:.9375rem;cursor:pointer;flex-shrink:0}.ra-diff-reasons{list-style:none;margin:.375rem 0 0;padding:0;font-size:.875rem;line-height:1.45;color:var(--color-text, #111827)}.ra-diffs-more{margin-top:.375rem;min-height:44px;background:none;border:none;color:var(--color-primary, #6d28d9);font-weight:600;cursor:pointer}.ra-diffs+.reader-read-aloud-said,.ra-diffs-more+.reader-read-aloud-said{margin-top:.625rem}.take-locked-actions{display:flex;width:100%}.take-locked-actions .take-stop-btn{width:100%}.take-locked-held{opacity:.4;pointer-events:none}.writing{--sp-ink: #1f2937;--sp-given: #d97706;--sp-hint: #2563eb;--sp-good: #16a34a;--sp-bad: #dc2626;--sp-grid: rgba(220, 38, 38, .28);display:flex;flex-direction:column;align-items:stretch;gap:.75rem;width:100%}.sp-wrap{position:relative;width:min(100%,440px);margin:0 auto;aspect-ratio:1 / 1;border-radius:var(--radius-lg);background:#fffdf8;box-shadow:inset 0 0 0 2px #dc262659,var(--shadow-sm);transition:box-shadow .25s ease}.sp-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair}.sp-svg.sp-disabled{cursor:default}.sp-grid line{stroke:var(--sp-grid);stroke-width:3;stroke-dasharray:18 14}.sp-grid-border{fill:none;stroke:#dc262680;stroke-width:6;rx:8}.sp-outline{fill:#e5e7eb}.sp-done{fill:var(--sp-ink)}.sp-done-revealed{fill:var(--sp-given)}.sp-brush{fill:none;stroke:var(--sp-ink);stroke-linecap:butt;stroke-linejoin:round;animation-name:sp-draw;animation-timing-function:ease-in-out;animation-fill-mode:both}.sp-brush-demo{stroke:#374151}.sp-brush-revealed{stroke:var(--sp-given)}.sp-brush-snap{animation-timing-function:cubic-bezier(.2,.7,.3,1)}@keyframes sp-draw{to{stroke-dashoffset:0}}.sp-glow{fill:var(--sp-good);opacity:0;animation:sp-glow .65s ease-out}@keyframes sp-glow{0%{opacity:0}25%{opacity:.85}to{opacity:0}}.sp-brush-hint{stroke:var(--sp-hint);opacity:.55;animation:sp-hint 1.9s ease-in-out infinite}@keyframes sp-hint{0%{stroke-dashoffset:var(--len);opacity:.55}55%{stroke-dashoffset:0;opacity:.55}85%{stroke-dashoffset:0;opacity:.2}to{stroke-dashoffset:0;opacity:0}}.sp-start-dot{fill:var(--sp-hint);opacity:.9;transform-box:fill-box;transform-origin:center;animation:sp-pulse 1.2s ease-in-out infinite}.sp-arrow{stroke:var(--sp-hint);stroke-width:12;stroke-linecap:round;opacity:.7}.sp-arrowhead{fill:var(--sp-hint);opacity:.7}@keyframes sp-pulse{0%,to{transform:scale(1);opacity:.9}50%{transform:scale(1.35);opacity:.55}}.sp-number{opacity:0;animation:sp-fade-in .2s ease-out both}.sp-number circle{fill:#fff;stroke:var(--sp-bad);stroke-width:5}.sp-number text{fill:var(--sp-bad);font-size:44px;font-weight:700;text-anchor:middle;font-family:system-ui,sans-serif}@keyframes sp-fade-in{to{opacity:1}}.sp-ink{fill:none;stroke:var(--sp-ink);stroke-width:42;stroke-linecap:round;stroke-linejoin:round;opacity:.85;pointer-events:none}.sp-ink-wrong{stroke:var(--sp-bad);animation:sp-wrong .62s ease-out forwards;transform-box:view-box}@keyframes sp-wrong{0%{opacity:.85;transform:translate(0)}15%{transform:translate(-14px)}30%{transform:translate(12px)}45%{transform:translate(-8px)}60%{transform:translate(0);opacity:.7}to{opacity:0}}.sp-celebrate-perfect{box-shadow:inset 0 0 0 4px var(--sp-good),0 0 0 6px #16a34a2e}.sp-celebrate-good{box-shadow:inset 0 0 0 4px #65a30d,0 0 0 6px #65a30d29}.sp-celebrate-practice{box-shadow:inset 0 0 0 4px var(--sp-given),0 0 0 6px #d9770629}.sp-celebrate .sp-done{animation:sp-settle .5s ease-out}@keyframes sp-settle{0%{fill:var(--sp-good)}to{fill:var(--sp-ink)}}.sp-celebrate .sp-done-revealed{animation:none}.writing-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.writing-head{flex-wrap:nowrap}.writing-prompt{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}.writing-prompt-pinyin,.writing-prompt-english{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.writing-prompt-pinyin{font-size:1.125rem;font-weight:600}.writing-prompt-english{font-size:.875rem;color:var(--color-text-light)}.writing-chars{display:flex;gap:.375rem;flex-wrap:wrap;flex-shrink:0;max-width:60%}.writing-char-chip{width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-md);border:2px solid var(--color-border);background:var(--color-surface);font-size:1.375rem;line-height:1;color:var(--color-text)}.writing-char-chip.current{border-color:var(--color-primary);box-shadow:0 0 0 3px #dc26261f}.writing-char-chip.grade-perfect{background:#dcfce7;border-color:#86efac}.writing-char-chip.grade-good{background:#ecfccb;border-color:#bef264}.writing-char-chip.grade-practice{background:#fef3c7;border-color:#fcd34d}.writing-char-chip.hidden-char{color:var(--color-text-light);font-size:1rem}.writing-modes{display:flex;background:var(--color-border);border-radius:999px;padding:3px;gap:2px}.writing-mode{flex:1;min-height:40px;padding:.375rem .75rem;border:none;border-radius:999px;background:transparent;font-size:.875rem;font-weight:500;color:var(--color-text-light);cursor:pointer;white-space:nowrap}.writing-mode.active{background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-sm)}.writing-status{min-height:2.5rem;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.9375rem;padding:.25rem .5rem;border-radius:var(--radius-md);color:var(--color-text-light)}.writing-status.tone-bad{color:#b45309;background:#fffbeb}.writing-status.tone-good{color:#15803d;background:#f0fdf4;font-weight:600}.writing-status.tone-hint{color:#1d4ed8;background:#eff6ff}.writing-progress{font-size:.8125rem;color:var(--color-text-light);text-align:center}.writing-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.writing-tools .btn{padding-left:.5rem;padding-right:.5rem;font-size:.875rem}.writing-sound{min-width:44px;min-height:44px;border:none;background:none;font-size:1.125rem;cursor:pointer;border-radius:var(--radius-md)}.writing-summary{display:flex;flex-direction:column;gap:.75rem}.writing-summary-title{text-align:center;font-size:1.25rem;font-weight:700}.writing-summary-sub{text-align:center;color:var(--color-text-light);font-size:.875rem;margin-top:-.5rem}.writing-result-row{display:flex;align-items:center;gap:.75rem;padding:.625rem .75rem;border-radius:var(--radius-lg);background:var(--color-surface);border:1px solid var(--color-border)}.writing-result-char{font-size:2.25rem;line-height:1;width:3rem;text-align:center;flex-shrink:0}.writing-result-row.grade-perfect .writing-result-char{color:var(--sp-good)}.writing-result-row.grade-good .writing-result-char{color:#4d7c0f}.writing-result-row.grade-practice .writing-result-char{color:var(--sp-given)}.writing-result-body{display:flex;flex-direction:column;gap:.25rem;min-width:0}.writing-result-label{font-size:.875rem;font-weight:600}.writing-result-detail{font-size:.8125rem;color:var(--color-text-light)}.writing-dots{display:flex;flex-wrap:wrap;gap:4px}.writing-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--sp-good)}.writing-dot.missed{background:#facc15}.writing-dot.hinted{background:#60a5fa}.writing-dot.revealed{background:var(--sp-given)}.writing-legend{display:flex;flex-wrap:wrap;gap:.25rem .75rem;justify-content:center;font-size:.75rem;color:var(--color-text-light)}.writing-legend span{display:inline-flex;align-items:center;gap:.25rem}.writing-summary-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.writing-summary-actions .btn:only-child,.writing-summary-actions .btn.full{grid-column:1 / -1}.writing-message{text-align:center;padding:1.5rem 1rem;color:var(--color-text-light)}.writing-message strong{display:block;color:var(--color-text);margin-bottom:.25rem}.writing-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;background:var(--color-background);overflow-y:auto;padding:.5rem .75rem calc(1rem + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:.5rem}.writing-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;max-width:440px;width:100%;margin:0 auto}.writing-sheet-title{font-size:1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.writing-sheet-body{max-width:440px;width:100%;margin:0 auto}.preview-badge{display:inline-block;font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;padding:.125rem .5rem;border-radius:999px;background:#ede9fe;color:#6d28d9;vertical-align:middle}@media (prefers-reduced-motion: reduce){.sp-brush-hint{animation:none;stroke-dashoffset:0!important}.sp-start-dot{animation:none}.sp-ink-wrong{animation-duration:1ms}}.confetti-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:1000}.confetti-particle{position:absolute;top:-10px;border-radius:2px;animation:confetti-fall linear forwards}@keyframes confetti-fall{0%{transform:translateY(0) rotate(0) scale(1);opacity:1}to{transform:translateY(100vh) rotate(720deg) scale(.3);opacity:0}}.bump-btn{min-height:44px;padding:0 1rem;border-radius:8px;border:none;background:#f59e0b;color:#1f1300;font-size:1rem;font-weight:600;cursor:pointer;white-space:nowrap}.bump-btn:disabled{cursor:default}.bump-btn--on{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}.bump-btn--compact{min-height:36px;padding:0 .7rem;font-size:.85rem;border-radius:999px}.bump-badge{display:inline-flex;align-items:center;gap:.2rem;padding:.1rem .55rem;border-radius:999px;background:#fef3c7;color:#92400e;border:1px solid #fcd34d;font-size:.75rem;font-weight:600;line-height:1.4}.bump-hint{margin-top:.5rem;padding:.5rem .75rem;border-radius:6px;background:#fffbeb;color:#92400e;font-size:.85rem}:root[data-theme=dark] .bump-btn--on,:root[data-theme=dark] .bump-badge{background:#451a03;color:#fcd34d;border-color:#92400e}:root[data-theme=dark] .bump-hint{background:#2a1a05;color:#fcd34d}.bump-btn.deck-note-bump{flex-shrink:0;min-width:40px;min-height:40px;padding:0 .55rem;align-self:center}.bump-btn.deck-note-bump:not(.bump-btn--on){background:transparent;border:1px solid #fde68a;color:#b45309;font-weight:500}button.claude-result-line{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:44px;width:fit-content;max-width:100%;border:0;font:inherit;font-size:.8125rem;text-align:left;cursor:pointer;border-radius:12px;padding:.35rem .75rem;-webkit-tap-highlight-color:transparent}button.claude-result-line:active{filter:brightness(.94)}button.claude-result-line:focus-visible,.claude-result-go:focus-visible{outline:2px solid currentColor;outline-offset:2px}.claude-result-text{min-width:0}.claude-result-go-label{flex:none;font-weight:700;white-space:nowrap}.claude-result-line.is-off{display:flex;flex-direction:column;gap:.1rem;min-height:0}.claude-result-off{font-size:.75rem;opacity:.8}.claude-result-go{min-height:44px;padding:0 .85rem;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:.8125rem;font-weight:700;white-space:nowrap;cursor:pointer}.claude-result-go:disabled{opacity:.6;cursor:default;font-weight:500}.coach-tool-chip.claude-result-line{border-radius:14px}.coach-tool-chip-bumped{background-color:#f59e0b1f;color:#b45309}:root[data-theme=dark] .coach-tool-chip-bumped{color:#fcd34d}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .coach-tool-chip-bumped{color:#fcd34d}}.toast-open{flex:none;min-height:44px;margin:-.5rem -.35rem -.5rem auto;padding:0 .5rem;border:none;background:none;color:inherit;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}.toast-open:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:6px}.toast-open:active{opacity:.7}.roleplay-page{max-width:640px;margin:0 auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.roleplay-page.chat{height:calc(100vh - 60px)}.rp-sub{color:#666;font-size:.9rem;margin:0}.rp-error{background:#fee;border:1px solid #f99;border-radius:8px;padding:.75rem 1rem;color:#900}.rp-sit-list{display:flex;flex-direction:column;gap:.5rem}.rp-sit{border:1px solid #e0e0e0;background:#fff;border-radius:10px;padding:.85rem 1rem;text-align:left;cursor:pointer;min-height:60px}.rp-sit:active{background:#f6f6f6}.rp-sit-title{font-weight:600;font-size:1rem}.rp-sit-goal{font-size:.85rem;color:#666;margin-top:.2rem}.rp-context{background:#f6f8fc;border-radius:10px;padding:.85rem;font-size:.9rem}.rp-context-title{font-weight:600;margin-bottom:.25rem}.rp-context-scenario{color:#444;margin-bottom:.25rem}.rp-context-goal{color:#2952cc}.rp-thread{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem;padding:.25rem 0}.rp-msg{border-radius:12px;padding:.7rem .9rem;max-width:90%;word-break:break-word;overflow-wrap:anywhere}.rp-msg.user{align-self:flex-end;background:#3b82f6;color:#fff;font-size:1.1rem}.rp-ai-block{align-self:flex-start;display:flex;flex-direction:column;gap:.5rem;max-width:90%}.rp-image{width:100%;max-width:280px;aspect-ratio:1;border-radius:12px;border:1px solid #e5e7eb;object-fit:cover}.rp-image.placeholder{background:linear-gradient(90deg,#f3f4f6,#e5e7eb,#f3f4f6);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{to{background-position:-200% 0}}.rp-msg.ai{background:#fff;border:1px solid #e5e7eb;display:flex;gap:.6rem;align-items:flex-start;max-width:100%}.rp-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:.4rem}.rp-msg.ai.pending{color:#999}.rp-replay{background:#eef3ff;border:none;border-radius:50%;width:36px;height:36px;font-size:1rem;cursor:pointer;flex-shrink:0}.rp-reveal-btn{background:none;border:1px dashed #cbd5e1;border-radius:8px;padding:.6rem .9rem;color:#64748b;font-size:.85rem;cursor:pointer;min-height:40px;align-self:flex-start}.rp-hanzi{font-size:1.25rem;line-height:1.7;word-break:break-word}.rp-chunk{background:none;border:none;padding:.1rem .05rem;font-size:inherit;font-family:inherit;cursor:pointer;border-radius:4px}.rp-chunk:hover{background:#f0f4ff}.rp-chunk:active{background:#eef3ff}.rp-pinyin{color:#666;font-size:.85rem}.rp-english{color:#444;font-size:.9rem;margin-top:.2rem}.rp-input-row{display:flex;gap:.5rem;align-items:flex-end}.rp-input{flex:1;border:1px solid #ccc;border-radius:8px;padding:.6rem;font-size:1.1rem;font-family:inherit;resize:none}.rp-send{background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:0 1rem;min-height:48px;font-size:1rem;cursor:pointer}.rp-send:disabled{opacity:.5}.rp-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.25rem}.rp-stat{font-size:.8rem;color:#666}.rp-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:50}.rp-modal-backdrop.add-chunk-backdrop{z-index:600}.rp-modal{background:#fff;border-radius:16px 16px 0 0;padding:1.25rem;width:100%;max-width:480px}.rp-modal-hanzi{font-size:2rem;text-align:center}@media (min-width: 640px){.rp-modal-backdrop{align-items:center}.rp-modal{border-radius:16px}}.ln-form{display:flex;flex-direction:column;gap:.6rem}.rp-finish{background:#fff;border:1px solid #ddd;border-radius:8px;padding:.5rem 1rem;cursor:pointer}.rp-modal.add-chunk-modal{display:flex;flex-direction:column;max-height:88vh;max-height:88dvh;padding:0;overflow:hidden}.add-chunk-head{flex-shrink:0;padding:1.25rem 1.25rem .35rem}.add-chunk-notice{margin-top:.5rem}.add-chunk-duplicate{padding:.5rem .75rem;background:#fff3cd;color:#856404;border-radius:6px;font-size:.85rem}.add-chunk-label{margin-top:.75rem;font-size:.8rem;color:#6b7280}.add-chunk-decks{flex:1 1 auto;min-height:0;max-height:40vh;max-height:40dvh;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:.4rem;padding:.25rem 1.25rem .5rem}.add-chunk-deck{flex-shrink:0;min-height:44px;padding:.5rem .75rem;border-radius:6px;border:1px solid #d1d5db;background:#fff;color:#374151;text-align:left;font-size:.875rem;cursor:pointer}.add-chunk-deck.selected{border-color:#3b82f6;background:#eff6ff;color:#1d4ed8;font-weight:600}.add-chunk-foot{position:sticky;bottom:0;flex-shrink:0;display:flex;gap:.5rem;padding:.75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom,0px));border-top:1px solid #f3f4f6;background:#fff}.add-chunk-foot>button{flex:1;min-height:48px}.add-chunk-foot--bump>.add-chunk-cancel{flex:0 0 auto;padding:0 .75rem}.add-chunk-foot--bump>.bump-btn{flex:1.4}.add-chunk-open-card{background:none;border:none;padding:.25rem 0;min-height:32px;color:var(--color-primary, #2563eb);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}.added-to-deck{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;padding:.5rem .75rem;border-radius:8px;background:#ecfdf5;color:#065f46;font-size:.9rem;line-height:1.35}.added-to-deck-dot{color:#6b7280}.added-to-deck-change{min-height:44px;margin:-.5rem 0;padding:0 .35rem;border:none;background:none;color:#1d4ed8;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.move-to-deck-title{font-size:1.05rem;font-weight:600;color:#111827}.move-to-deck-loading{padding:.75rem 0;color:#6b7280;font-size:.9rem}.rp-modal-backdrop.add-chunk-backdrop.move-to-deck-layer{z-index:3100}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .added-to-deck{background:#10b98126;color:#a7f3d0}:root:not([data-theme=light]) .added-to-deck-change{color:#93c5fd}}.sibling-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:var(--space-gap-min, 8px);padding:0 .25rem .5rem;margin-bottom:.25rem;border-bottom:1px solid var(--color-border)}.sibling-tile{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:0;min-height:56px;padding:.5rem .625rem;border:1px solid var(--color-border);border-radius:10px;background:none;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.sibling-tile:hover:not(.is-missing){background:var(--color-background)}.sibling-tile.is-missing{cursor:default;border-style:dashed;color:var(--color-text-light)}.sibling-tile-head{display:flex;align-items:center;gap:.375rem;width:100%}.sibling-tile-symbol{font-size:1.125rem;line-height:1}.sibling-tile-name{flex:1;font-weight:600;font-size:.9375rem}.sibling-tile-line{font-size:.8125rem;color:var(--color-text-light);line-height:1.25}.sibling-tone-held .sibling-tile-line,.sibling-tile.sibling-tone-held .sibling-tile-symbol{opacity:.85}.sibling-strength{display:inline-flex;gap:2px;align-items:flex-end;flex-shrink:0}.sibling-strength-step{width:5px;border-radius:1px;background:var(--color-border)}.sibling-strength-step:nth-child(1){height:6px}.sibling-strength-step:nth-child(2){height:9px}.sibling-strength-step:nth-child(3){height:12px}.sibling-strength-step.is-on{background:var(--color-text-light)}.sibling-tone-known .sibling-strength-step.is-on{background:var(--result-right)}.sibling-tone-leech .sibling-strength-step.is-on{background:var(--result-close)}.sibling-tone-held .sibling-strength-step.is-on{opacity:.5}.sibling-sheet-head{display:flex;align-items:center;gap:.75rem;padding:.25rem .75rem .625rem}.sibling-sheet-symbol{font-size:1.75rem;line-height:1}.sibling-sheet-text{display:flex;flex-direction:column;gap:.125rem;min-width:0}.sibling-sheet-title{font-weight:600}.sibling-sheet-status{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--color-text-light)}.sibling-sheet-done{margin:.25rem .75rem .5rem;padding:.75rem;border-radius:10px;background:var(--color-background);font-weight:600}:root{--new-char-sheen: #f59e0b;--new-char-glow: rgba(245, 158, 11, .3)}:root[data-theme=dark]{--new-char-sheen: #fcd34d;--new-char-glow: rgba(252, 211, 77, .32)}.new-char{background-image:linear-gradient(110deg,currentColor 0%,currentColor 38%,var(--new-char-sheen) 50%,currentColor 62%,currentColor 100%);background-size:250% 100%;background-position:150% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 .12em var(--new-char-glow));animation:new-char-sheen 3.6s ease-in-out infinite;animation-delay:calc(var(--nc-i, 0) * .14s + .4s)}@keyframes new-char-sheen{0%{background-position:150% 0}45%,to{background-position:-50% 0}}@media (prefers-reduced-motion: reduce){.new-char{animation:none;background-image:none;-webkit-text-fill-color:currentColor;color:color-mix(in srgb,currentColor 72%,var(--new-char-sheen))}}.new-char-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:root{--tone-1: #dc2626;--tone-2: #16a34a;--tone-3: #2563eb;--tone-4: #7c3aed;--tone-5: #6b7280}.modal-overlay.xp-overlay{align-items:flex-end;padding:0;padding-top:max(.75rem,env(safe-area-inset-top,0px));z-index:1001}.xp-sheet{background:var(--color-surface);width:100%;max-width:560px;max-height:calc(100dvh - max(.75rem,env(safe-area-inset-top,0px)) - .5rem);border-radius:var(--radius-xl) var(--radius-xl) 0 0;display:flex;flex-direction:column;overflow:hidden;text-align:left;box-shadow:0 -8px 30px #0000002e;animation:xp-rise .22s cubic-bezier(.2,.9,.3,1.05)}@media (min-width: 640px){.modal-overlay.xp-overlay{align-items:center;padding:1.5rem}.xp-sheet{border-radius:var(--radius-xl);max-height:min(88dvh,820px)}}@keyframes xp-rise{0%{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}.xp-head{display:flex;align-items:center;gap:.25rem;padding:.5rem .5rem .375rem;border-bottom:1px solid var(--color-border);flex-shrink:0}.xp-icon-btn{width:44px;height:44px;flex-shrink:0;border:none;background:none;border-radius:50%;font-size:1.25rem;color:var(--color-text);cursor:pointer}.xp-icon-btn:active{background:var(--color-background)}.xp-icon-spacer{width:44px;flex-shrink:0}.xp-trail{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:.125rem;overflow:hidden;white-space:nowrap}.xp-crumb-wrap{display:inline-flex;align-items:center;min-width:0}.xp-crumb{border:none;background:var(--color-background);border-radius:999px;padding:.25rem .625rem;min-height:32px;font-size:1rem;color:var(--color-primary);cursor:pointer;max-width:7rem;overflow:hidden;text-overflow:ellipsis}.xp-crumb.current{background:none;color:var(--color-text);font-weight:600;cursor:default}.xp-crumb-sep,.xp-crumb-gap{color:var(--color-text-light);padding:0 .125rem}.xp-body{--sheet-pad: 1rem;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1rem var(--sheet-pad)}.xp-anim-push{animation:xp-in-right .2s ease-out}.xp-anim-pop{animation:xp-in-left .2s ease-out}@keyframes xp-in-right{0%{opacity:0;translate:24px 0}to{opacity:1;translate:0 0}}@keyframes xp-in-left{0%{opacity:0;translate:-24px 0}to{opacity:1;translate:0 0}}@media (prefers-reduced-motion: reduce){.xp-sheet,.xp-anim-push,.xp-anim-pop{animation:none}}.xp-inline-char{border:none;background:var(--color-background);border-radius:6px;padding:0 .3rem;font:inherit;font-weight:700;color:var(--color-primary);cursor:pointer}.xp-row-chevron{margin-left:.25rem;color:var(--color-text-light);font-size:1.125rem}.xp-word-head{display:flex;align-items:center;gap:.75rem}.xp-word-hanzi{font-size:2.75rem;line-height:1.1;font-weight:500;word-break:break-all}.xp-play{width:44px;height:44px;flex-shrink:0;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-primary);font-size:1rem;cursor:pointer}.xp-play.playing{background:var(--color-primary);color:#fff}.xp-word-pinyin{margin-top:.25rem;font-size:1.25rem;font-weight:600;color:var(--color-primary)}.xp-word-english{margin-top:.125rem;font-size:1rem}.xp-muted{margin-top:.5rem;color:var(--color-text-light);font-size:.9375rem}.xp-chips{margin-top:.5rem;display:flex;flex-wrap:wrap;gap:.375rem}.xp-freq{font-size:.8125rem;padding:.2rem .6rem;border-radius:999px;background:var(--color-background);color:var(--color-text-light)}.xp-freq--top,.xp-freq--common{background:#16a34a1f;color:#15803d}.xp-section{margin-top:1rem}.xp-h{font-size:.875rem;font-weight:600;color:var(--color-text-light);margin:0 0 .375rem}.xp-char-chips{display:flex;flex-wrap:wrap;gap:.5rem}.xp-char-chip{display:grid;justify-items:center;gap:.0625rem;min-width:4.25rem;max-width:7rem;padding:.5rem .625rem;border-radius:var(--radius-lg, 12px);border:1px solid var(--color-border);border-top:4px solid var(--tone, var(--color-border));background:var(--color-surface);cursor:pointer;color:var(--color-text)}.xp-char-chip{position:relative}.xp-char-chip-own{position:absolute;top:-.5rem;right:-.4rem;min-width:1.375rem;height:1.375rem;padding:0 .25rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1;font-weight:700;border:1px solid var(--color-border);background:var(--color-surface);box-shadow:0 1px 2px #0000001f}.xp-char-chip-own--known{background:#dcfce7;border-color:#86efac;color:#166534}.xp-char-chip-own--in_decks{background:#dbeafe;border-color:#93c5fd}:root[data-theme=dark] .xp-char-chip-own--known{background:#143222;border-color:#2f6b45;color:#86efac}:root[data-theme=dark] .xp-char-chip-own--in_decks{background:#172a45;border-color:#2c4a75}.xp-own{margin:.75rem 0 .25rem;padding:.625rem .75rem;border-radius:var(--radius-lg, 12px);border:1px solid var(--color-border);background:var(--color-background)}.xp-own[data-status=none]{padding:0;border:0;background:none}.xp-own[data-status=in_decks]{background:#eff6ff;border-color:#bfdbfe}.xp-own[data-status=known]{background:#f0fdf4;border-color:#bbf7d0}:root[data-theme=dark] .xp-own[data-status=in_decks]{background:#14223a;border-color:#2c4a75}:root[data-theme=dark] .xp-own[data-status=known]{background:#12291c;border-color:#2f6b45}.xp-own .xp-have-line{font-weight:600}.xp-own .xp-footer-row{margin-top:.5rem}.xp-own .btn{min-height:44px}.xp-char-chip:active{transform:scale(.97)}.xp-char-chip.tone-1{--tone: var(--tone-1)}.xp-char-chip.tone-2{--tone: var(--tone-2)}.xp-char-chip.tone-3{--tone: var(--tone-3)}.xp-char-chip.tone-4{--tone: var(--tone-4)}.xp-char-chip.tone-5{--tone: var(--tone-5)}.xp-char-chip-glyph{font-size:1.75rem;line-height:1.2}.xp-char-chip-pinyin{font-weight:600;color:var(--tone, var(--color-text-light))}.xp-char-chip-meaning{font-size:.75rem;color:var(--color-text-light);max-width:6rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xp-senses{margin:0;padding-left:1.25rem;font-size:.9375rem;line-height:1.5}.xp-example{padding:.5rem .75rem;border-radius:var(--radius-lg, 12px);background:var(--color-background);margin-bottom:.375rem}.xp-example-zh{font-size:1.125rem;line-height:1.7}.xp-example-en{font-size:.875rem;color:var(--color-text-light)}.xp-foot{flex-shrink:0;border-top:1px solid var(--color-border);padding:.75rem 1rem max(.75rem,env(safe-area-inset-bottom,0px));background:var(--color-surface)}.xp-foot:empty{display:none}.xp-footer{display:flex;flex-direction:column;gap:.5rem}.xp-footer .btn{min-height:44px}.xp-footer-row{display:flex;gap:.5rem;flex-wrap:wrap}.xp-footer-row>*{flex:1 1 auto}.xp-have-line{font-size:.9375rem}.xp-checking{color:var(--color-text-light);min-height:44px;display:flex;align-items:center}.xp-add{width:100%}.xp-fill{display:flex;flex-direction:column;gap:.5rem}.xp-fill-q{font-size:1.0625rem;font-weight:600}.xp-fill-hint{font-size:.875rem;color:var(--color-text-light)}.xp-fill-field{display:flex;flex-direction:column;gap:.2rem;font-size:.8125rem;color:var(--color-text-light)}.xp-fill-field input{min-height:44px;font-size:1rem;padding:.5rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-md, 8px);background:var(--color-surface);color:var(--color-text)}.xp-fill-field input:focus{outline:2px solid var(--color-primary);outline-offset:-1px}.xt-tap{cursor:pointer;border-radius:4px;text-decoration:underline dotted rgba(127,127,127,.45);text-underline-offset:.3em;-webkit-tap-highlight-color:transparent}.xt-tap:hover,.xt-tap:focus-visible{background:#2563eb1a;outline:none}.xt-tap:active{background:#2563eb2e}.xt-hl{color:var(--color-primary);font-weight:600}.xp-modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1002}.xp-drill{display:flex;flex-direction:column;gap:.75rem}.xp-drill-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.xp-drill-progress{font-weight:600;color:var(--color-primary)}.xp-drill-dots{display:flex;gap:.3rem}.xp-drill-dots span{width:.5rem;height:.5rem;border-radius:50%;background:var(--color-border)}.xp-drill-dots span.done{background:var(--color-primary)}.xp-drill-dots span.current{background:var(--color-primary);transform:scale(1.35)}.xp-drill-ask{font-size:1rem;color:var(--color-text-light);text-align:center}.xp-drill-prompt{font-size:3rem;line-height:1.2;text-align:center;font-weight:500}.xp-drill-prompt--en{font-size:1.5rem}.xp-drill-dim{color:var(--color-text-light)}.xp-drill-pinyin{text-align:center;font-size:1.125rem;font-weight:600;color:var(--color-primary)}.xp-drill-listen{align-self:center;width:88px;height:88px;border-radius:50%;border:none;background:var(--color-primary);color:#fff;font-size:2rem;cursor:pointer;box-shadow:0 6px 16px #dc262640}.xp-drill-listen:active{transform:scale(.95)}.xp-drill-options{display:grid;grid-template-columns:1fr;gap:.5rem}.xp-drill-options--tones{grid-template-columns:repeat(5,1fr)}.xp-drill-option{min-height:52px;padding:.625rem .75rem;border-radius:var(--radius-lg, 12px);border:1.5px solid var(--color-border);background:var(--color-surface);font-size:1.0625rem;color:var(--color-text);cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.xp-drill-option[lang=zh-CN]{font-size:1.5rem}.xp-drill-options--tones .xp-drill-option{font-size:.875rem;padding:.5rem .25rem}.xp-drill-option:active:not(:disabled){transform:scale(.97)}.xp-drill-option.right{background:#16a34a1f;border-color:#16a34a;color:#15803d;animation:xp-pop .25s ease-out}.xp-drill-option.wrong{background:#dc26261a;border-color:#dc2626;color:#b91c1c;animation:xp-shake .3s ease-out}.xp-drill-option.dim{opacity:.5}@keyframes xp-pop{50%{transform:scale(1.04)}}@keyframes xp-shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}.xp-drill-actions{margin-top:.5rem}.xp-drill-done{align-items:center;text-align:center;padding-top:1.5rem}.xp-drill-done-icon{font-size:3rem}.xp-drill-score{font-size:1.375rem;font-weight:700}.xp-drill-btn{margin-left:.5rem}:root{--freq-top100: #8b5cf6;--freq-top1000: #16a34a;--freq-top2000: #948c00;--freq-top2000-fill: #fef9c3;--freq-rare: #9ca3af}:root[data-theme=dark]{--freq-top100: #a78bfa;--freq-top1000: #4ade80;--freq-top2000: #fde047;--freq-top2000-fill: transparent;--freq-rare: #71717a}.freq-decal--top100{--freq: var(--freq-top100)}.freq-decal--top1000{--freq: var(--freq-top1000)}.freq-decal.freq-decal--top2000{--freq: var(--freq-top2000);--freq-w: 2px;background-image:linear-gradient(var(--freq-top2000-fill),var(--freq-top2000-fill))}.freq-decal--rare{--freq: var(--freq-rare)}.freq-decal{box-shadow:inset 0 0 0 var(--freq-w, 1.5px) var(--freq)}.char-word-row .char-word-hanzi{display:inline-flex;justify-content:center;padding:.125rem .375rem;border-radius:8px}.xp-char-chip.freq-decal{border-color:var(--freq);border-top-color:var(--tone, var(--freq));box-shadow:0 0 0 calc(var(--freq-w, 1.5px) - 1px) var(--freq)}.freq-key-btn{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;margin:-.875rem -.5rem -.875rem 0;border:none;background:none;color:var(--color-text-light);font-size:1rem;line-height:1;cursor:pointer;vertical-align:middle}.freq-key-btn[aria-expanded=true]{color:var(--color-text)}.freq-key{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;margin-top:.375rem;font-size:.75rem;color:var(--color-text-light)}.freq-key-item{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}.freq-key-sep{margin:0 .15rem 0 .1rem}.freq-key-swatch{display:inline-block;width:.875rem;height:.875rem;border-radius:4px}.xp-idiom-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;min-height:44px;margin-top:.75rem;padding:.6rem .8rem;border-radius:12px;border:1px solid #f3e3c3;background:#fffbeb;color:#7c2d12;font-size:.9375rem;font-weight:600;text-align:left;cursor:pointer}.xp-idiom-sub{font-weight:400;font-size:.8125rem;color:var(--color-text-light)}.xp-variants-wrap{margin:.5rem 0}.xp-variants{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.xp-variant.sibling-tile{min-height:52px;padding:.375rem .5rem;gap:.125rem;background:var(--color-surface, var(--color-background))}.xp-variant .sibling-tile-symbol{font-size:1rem}.xp-variant .sibling-tile-name{font-size:.875rem;min-width:0}.xp-variant .sibling-tile-line{font-size:.75rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.xp-variant.is-open{border-color:var(--color-text);box-shadow:0 0 0 1px var(--color-text)}.xp-variant-panel{margin-top:.5rem;padding:.5rem .625rem .625rem;border:1px solid var(--color-border);border-radius:10px;background:var(--color-surface, var(--color-background))}.xp-variant-panel-head{font-weight:600;font-size:.9375rem;margin-bottom:.5rem}.xp-variant-panel .btn{min-height:44px}.xp-variant-note{margin-top:.375rem;font-size:.8125rem;color:var(--color-text-light)}.word-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:.375rem;margin:.5rem auto 0;max-width:34rem}.word-tags--left{justify-content:flex-start}.word-tag{display:inline-flex;align-items:center;min-height:32px;padding:0 .625rem;border:none;border-radius:999px;background:var(--word-tag-bg, #f3f4f6);color:var(--word-tag-fg, #4b5563);font-size:.8125rem;font-weight:500;line-height:1;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}.word-tag:active{filter:brightness(.95)}.word-tag:focus-visible{outline:2px solid var(--color-primary, #dc2626);outline-offset:2px}.word-tag--static{cursor:default}.word-tag--plain{--word-tag-bg: #f3f4f6;--word-tag-fg: #4b5563}.word-tag--grammar{--word-tag-bg: #ede9fe;--word-tag-fg: #5b21b6}.word-tag--formal{--word-tag-bg: #e0f2fe;--word-tag-fg: #075985}.word-tag--casual{--word-tag-bg: #fef3c7;--word-tag-fg: #92400e}.word-tag--warning{--word-tag-bg: #fee2e2;--word-tag-fg: #991b1b}.word-tag--level{--word-tag-bg: #ccfbf1;--word-tag-fg: #115e59}.word-tag--top100,.word-tag--top1000,.word-tag--top2000,.word-tag--rare{--word-tag-bg: #f3f4f6;--word-tag-fg: #4b5563}:root[data-theme=dark] .word-tag--plain{--word-tag-bg: #2a2a30;--word-tag-fg: #d4d4d8}:root[data-theme=dark] .word-tag--grammar{--word-tag-bg: #2e2348;--word-tag-fg: #c4b5fd}:root[data-theme=dark] .word-tag--formal{--word-tag-bg: #12304a;--word-tag-fg: #7dd3fc}:root[data-theme=dark] .word-tag--casual{--word-tag-bg: #3a2a10;--word-tag-fg: #fcd34d}:root[data-theme=dark] .word-tag--warning{--word-tag-bg: #3f1d1d;--word-tag-fg: #fca5a5}:root[data-theme=dark] .word-tag--level{--word-tag-bg: #113532;--word-tag-fg: #5eead4}:root[data-theme=dark] .word-tag--top100,:root[data-theme=dark] .word-tag--top1000,:root[data-theme=dark] .word-tag--top2000,:root[data-theme=dark] .word-tag--rare{--word-tag-bg: #2a2a30;--word-tag-fg: #d4d4d8}.word-tag-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:1200}.word-tag-sheet{--sheet-pad: 1rem;position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:640px;max-height:70dvh;overflow-y:auto;background:var(--color-surface, #fff);color:var(--color-text, #111827);border-radius:16px 16px 0 0;box-shadow:0 -8px 24px #0000002e;padding:.375rem var(--sheet-pad) 0;z-index:1201;text-align:left}.word-tag-sheet-grip{width:36px;height:4px;border-radius:2px;background:var(--color-border, #e5e7eb);margin:.25rem auto .75rem}.word-tag-sheet-head{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap}.word-tag-sheet-title{margin:0;font-size:1.125rem;font-weight:600}.word-tag-sheet-body{margin:.75rem 0 0;font-size:1rem;line-height:1.5}.word-tag-sheet-example{margin:.625rem 0 0;padding:.5rem .75rem;border-radius:8px;background:var(--color-background, #f9fafb);font-size:1.125rem}.word-tag-ai-mark{font-size:.75em;margin-right:.25em}.word-tag-sheet-ai{margin:.75rem 0 0;padding:.375rem .625rem;border-radius:8px;background:#fef9c3;color:#713f12;font-size:.875rem}:root[data-theme=dark] .word-tag-sheet-ai{background:#3a3210;color:#fde68a}.word-tag-sheet-note{margin:.625rem 0 0;padding-left:.625rem;border-left:3px solid var(--color-border, #e5e7eb);font-size:1rem;line-height:1.45}.word-tag-sheet .word-tag-xt{text-decoration-color:currentColor;text-decoration-thickness:1px}.word-tag-sheet-hint,.word-tag-sheet-source{margin:.625rem 0 0;font-size:.8125rem;color:var(--color-text-light, #6b7280)}.word-tag-sheet-footer{display:flex;justify-content:flex-end;padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}.word-tag-sheet-footer .btn{min-height:44px}.char-sheet-overlay{align-items:flex-end}.char-sheet{--sheet-pad: 1rem;text-align:left;border-radius:var(--radius-xl) var(--radius-xl) 0 0;max-height:88dvh;overflow-y:auto;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px))}@media (min-width: 640px){.char-sheet-overlay{align-items:center}.char-sheet{border-radius:var(--radius-xl)}}.char-sheet-top{display:flex;align-items:flex-start;gap:.875rem}.char-sheet-glyph{font-size:4rem;line-height:1;font-weight:500;min-width:4.5rem;text-align:center;padding:.25rem .25rem .5rem;border-radius:var(--radius-lg, 12px);background:var(--color-background)}.char-sheet-summary{flex:1;min-width:0;padding-top:.25rem}.char-sheet-pinyin{font-size:1.25rem;font-weight:600;color:var(--color-primary)}.char-sheet-meaning{margin-top:.125rem;font-size:1rem;color:var(--color-text)}.char-sheet-close{min-width:44px;min-height:44px}.char-sheet-status{margin:.75rem 0 0;padding:.625rem .75rem;border-radius:8px;background:var(--color-background);color:var(--color-text-light);font-size:.9375rem}.char-sheet-error{color:var(--color-error)}.char-sheet-readings{list-style:none;margin:.75rem 0 0;padding:0;font-size:.9375rem}.char-sheet-readings li{padding:.125rem 0}.char-sheet-reading-pinyin{display:inline-block;min-width:3.25rem;font-weight:600}.char-sheet-facts{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.75rem}.char-sheet-fact{padding:.25rem .625rem;border-radius:999px;background:var(--color-background);font-size:.875rem;color:var(--color-text)}.char-sheet-components,.char-sheet-etymology{margin-top:.5rem;font-size:.9375rem;color:var(--color-text)}.char-sheet-etymology{color:var(--color-text-light);font-style:italic}.char-sheet-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.875rem}.char-sheet-action{min-height:44px}.char-sheet-more{margin-top:.625rem;padding:.625rem .75rem;border-left:3px solid var(--color-secondary);background:#fffbeb;border-radius:0 8px 8px 0;font-size:.9375rem;line-height:1.45;white-space:pre-wrap}.char-sheet-more--muted{color:var(--color-text-light)}.char-sheet-link{background:none;border:none;padding:0;font:inherit;color:var(--color-primary);text-decoration:underline;cursor:pointer}.char-sheet-words{margin-top:1rem;border-top:1px solid var(--color-border);padding-top:.75rem}.char-sheet-words-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.char-sheet-words-head h3{margin:0;font-size:1.0625rem}.char-sheet-words-count{font-size:.8125rem;color:var(--color-text-light)}.char-sheet-word-list{list-style:none;margin:.5rem 0 0;padding:0}.char-word-row{display:flex;align-items:center;gap:.75rem;width:100%;min-height:52px;padding:.5rem .625rem;border:none;border-bottom:1px solid var(--color-border);background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}.char-word-row:active{background:var(--color-background)}.char-word-row--current{background:#fef9c3;border-radius:8px;box-shadow:inset 3px 0 0 var(--color-secondary)}.char-word-row--known .char-word-hanzi,.char-word-row--known .char-word-text{opacity:.6}.char-word-hanzi{font-size:1.375rem;min-width:3.5rem;flex-shrink:0}.char-word-self{color:var(--color-primary)}.char-word-text{flex:1;min-width:0;display:flex;flex-direction:column}.char-word-pinyin{font-size:.875rem;color:var(--color-text-light)}.char-word-english{font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.char-word-badge{flex-shrink:0;font-size:.75rem;font-weight:600;padding:.1875rem .5rem;border-radius:999px;white-space:nowrap}.char-word-badge--known{background:#dcfce7;color:#166534}.char-word-badge--in_decks{background:#dbeafe;color:#1e40af}.char-sheet-credit{margin:.75rem 0 0;font-size:.75rem;color:var(--color-text-light)}.error-boundary-fallback{display:flex;align-items:center;justify-content:center;min-height:60vh;padding:1.5rem}.error-boundary-card{background-color:var(--color-surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:2rem 1.5rem;text-align:center;max-width:400px;width:100%}.error-boundary-icon{width:3rem;height:3rem;border-radius:50%;background-color:#fef2f2;color:var(--color-error);font-size:1.5rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem}.error-boundary-card h2{margin-bottom:.5rem}.error-boundary-card>.text-light{margin-bottom:1.25rem;font-size:.875rem}.error-boundary-details{text-align:left;margin-bottom:1.25rem;font-size:.75rem;color:var(--color-text-light)}.error-boundary-details summary{cursor:pointer;margin-bottom:.5rem}.error-boundary-details pre{background-color:var(--color-background);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.5rem;overflow-x:auto;white-space:pre-wrap;word-break:break-word;font-size:.75rem}.error-boundary-actions{display:flex;gap:.75rem;justify-content:center}@media (min-width: 640px){.error-boundary-card{padding:2.5rem 2rem}}.study-streak-card{display:block;background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius-md, .5rem);padding:.5rem;margin-bottom:.75rem}@media (min-width: 400px){.study-streak-card{padding:.75rem}}.streak-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.375rem;flex-wrap:wrap;gap:.125rem .25rem}.streak-count{display:flex;align-items:center;gap:.25rem;font-weight:600}.streak-fire{font-size:1rem}.streak-number{font-size:1rem;color:#1f2937}.streak-label{font-size:.75rem;color:#6b7280;font-weight:400}@media (min-width: 400px){.streak-fire,.streak-number{font-size:1.125rem}.streak-label{font-size:.8125rem}}.streak-today{display:flex;align-items:center;gap:.125rem;font-size:.6875rem;color:#6b7280}@media (min-width: 400px){.streak-today{gap:.25rem;font-size:.75rem}}.streak-sep{color:#d1d5db}.streak-heatmap{display:flex;gap:1px}@media (min-width: 400px){.streak-heatmap{gap:2px}}.streak-heatmap-cell{flex:1;aspect-ratio:1;border-radius:2px;min-width:0;max-height:10px}@media (min-width: 400px){.streak-heatmap-cell{max-height:12px}}.retry-bar{--retry-bar-done: #3b82f6;--retry-bar-retry: #f97316;--retry-bar-retry-light: #fdba74;--retry-bar-track: #e8e2d6;--retry-bar-badge: #c2410c;--retry-bar-height: 8px;display:flex;align-items:center;gap:.4rem;min-width:0}.retry-bar-track{position:relative;flex:1;min-width:0;height:var(--retry-bar-height);border-radius:calc(var(--retry-bar-height) / 2);background:var(--retry-bar-track);overflow:hidden}.retry-bar-done,.retry-bar-retry{position:absolute;top:0;bottom:0;transition:width .35s cubic-bezier(.2,.8,.2,1),min-width .35s ease}.retry-bar-done{left:0;background:var(--retry-bar-done);border-radius:inherit}.retry-bar-retry{right:0;background:repeating-linear-gradient(-45deg,var(--retry-bar-retry) 0 4px,var(--retry-bar-retry-light) 4px 6px)}.retry-bar-retry--shown{min-width:8px}.retry-bar-badge{flex:none;min-width:2.1rem;font-size:.75rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;text-align:right;color:var(--retry-bar-badge);white-space:nowrap}:root[data-theme=dark] .retry-bar{--retry-bar-done: #60a5fa;--retry-bar-retry: #fb923c;--retry-bar-retry-light: #9a3412;--retry-bar-track: #2c2c33;--retry-bar-badge: #fdba74}@media (prefers-reduced-motion: reduce){.retry-bar-done,.retry-bar-retry{transition:none}}.row-actions-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;background:#11182773;display:flex;align-items:flex-end;justify-content:center}.row-actions-sheet{width:100%;max-width:32rem;max-height:85dvh;overflow-y:auto;background:var(--color-surface, #fff);border-radius:1rem 1rem 0 0;padding:.5rem 1rem calc(1rem + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 24px #00000026;animation:row-actions-up .22s cubic-bezier(.2,.8,.2,1)}@keyframes row-actions-up{0%{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}@media (prefers-reduced-motion: reduce){.row-actions-sheet{animation:none}}.row-actions-grip{width:2.5rem;height:4px;border-radius:2px;background:#d6d3d1;margin:.25rem auto .75rem}.row-actions-title{font-weight:700;font-size:1.05rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions-list{list-style:none;margin:0;padding:0}.row-actions-item{display:flex;align-items:center;gap:.75rem;width:100%;min-height:48px;padding:0 .25rem;border:none;border-bottom:1px solid #f1ede6;background:none;font-size:1rem;text-align:left;color:inherit;cursor:pointer}.row-actions-item:active{background:#f7f3ec}.row-actions-item--danger{color:#b91c1c}.row-actions-icon{width:1.5rem;text-align:center}.row-actions-confirm{margin:.25rem 0 1rem;font-size:1rem;line-height:1.45}.row-actions-error{color:#b91c1c;font-size:.9rem;margin:0 0 .75rem}.row-actions-confirm-row{display:flex;gap:.75rem}.row-actions-btn{flex:1;min-height:44px;border-radius:.75rem;border:1px solid transparent;font-size:1rem;font-weight:600;cursor:pointer}.row-actions-btn--secondary{background:#f3f0ea;color:#374151;border-color:#e7e2d8}.row-actions-btn--primary{background:#2563eb;color:#fff}.row-actions-btn--danger{background:#dc2626;color:#fff}.row-actions-close{width:100%;margin-top:.75rem}.row-actions-toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--tab-bar-total, 0px) + 1rem);z-index:1150;display:flex;align-items:center;gap:.75rem;width:max-content;max-width:calc(100vw - 2rem);background:#1f2937;color:#fff;padding:.5rem .5rem .5rem 1rem;border-radius:999px;font-size:.95rem;box-shadow:0 6px 18px #0003}.row-actions-toast-undo{min-height:40px;padding:0 .875rem;border:none;border-radius:999px;background:#fbbf24;color:#1f2937;font-weight:700;cursor:pointer}.row-menu-btn{flex:none;min-width:44px;min-height:44px;border:none;background:none;color:#78716c;font-size:1.25rem;line-height:1;cursor:pointer;border-radius:.5rem}.row-menu-btn:hover{background:#f5f2ec}@media (min-width: 640px){.row-actions-backdrop{align-items:center}.row-actions-sheet{border-radius:1rem;padding-bottom:1rem}}.hw-card{margin-bottom:.75rem;border-left:4px solid #8b5cf6}.hw-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.hw-card-head h2{margin:0;font-size:1.125rem}.hw-card-sub{font-size:.875rem;color:var(--color-text-light);text-align:right}.hw-card-overdue{color:#b91c1c;font-weight:600}.hw-card-all{display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem;font-weight:600;text-decoration:none}.hw-list{display:flex;flex-direction:column;gap:.375rem}.hw-row{display:flex;align-items:center;gap:.625rem;min-height:56px;padding:.5rem .625rem;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);color:inherit;text-decoration:none}.hw-row:active{background:#f5f3ff}.hw-row-done{opacity:.7}.hw-row-icon{font-size:1.375rem;flex-shrink:0}.hw-row-main{display:flex;flex-direction:column;min-width:0;flex:1;gap:.125rem}.hw-row-title{font-weight:600;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-row-meta{font-size:.8125rem;color:var(--color-text-light)}.hw-row-bar{display:block;height:4px;border-radius:2px;background:#ede9fe;overflow:hidden;margin-top:.25rem}.hw-row-bar span{display:block;height:100%;background:#8b5cf6}.hw-chip{flex-shrink:0;padding:.1875rem .5rem;border-radius:999px;font-size:.75rem;font-weight:700;white-space:nowrap}.hw-chip-overdue{background:#fee2e2;color:#b91c1c}.hw-chip-today{background:#ffedd5;color:#c2410c}.hw-chip-soon{background:#fef9c3;color:#a16207}.hw-chip-later{background:#e0e7ff;color:#4338ca}.hw-chip-done{background:#dcfce7;color:#15803d}.hw-muted{color:var(--color-text-light);font-size:.9375rem;line-height:1.45}.hw-page h1{margin-bottom:.25rem}.hw-section{margin-top:.75rem}.hw-section h2{margin:0 0 .5rem;font-size:1.0625rem}.study-topbar-label{font-weight:700;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.hw-pass{display:flex;flex-direction:column}.hw-pass-head{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1}.hw-pass-topbar{display:flex;align-items:center;justify-content:space-between}.hw-pass-count{font-weight:700;font-variant-numeric:tabular-nums;color:#6d28d9;padding:0 .25rem}.hw-pass-progress{margin:0 1rem}.hw-pass-meta{display:flex;justify-content:center;gap:.5rem;align-items:center;margin:.75rem 1rem 0;min-height:1.5rem}.hw-pass-part{font-size:.8125rem;font-weight:600;color:#6d28d9}.hw-pass-retry{font-size:.8125rem;color:var(--color-text-light)}.hw-pass-retry--on{color:#c2410c;font-weight:600}.hw-longterm{align-self:center;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-top:.375rem;padding:0 .375rem 0 .875rem;border:1px solid var(--btn-outline);border-radius:999px;background:var(--color-surface);color:var(--color-text-light);font-size:.875rem;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.hw-longterm.is-on{border-color:#c4b5fd;background:#f5f3ff;color:#5b21b6}.hw-longterm--started{padding:0 .875rem;cursor:default;color:var(--color-text-light)}.hw-longterm-switch{position:relative;display:inline-flex;align-items:center}.hw-longterm-switch input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;margin:0;cursor:pointer}.hw-longterm-track{position:relative;width:40px;height:24px;border-radius:12px;background:var(--color-border);pointer-events:none;transition:background .15s ease}.hw-longterm-thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #00000040;transition:transform .18s cubic-bezier(.34,1.56,.64,1)}.hw-longterm-switch input:checked+.hw-longterm-track{background:#7c3aed}.hw-longterm-switch input:checked+.hw-longterm-track .hw-longterm-thumb{transform:translate(16px)}.hw-longterm-switch input:focus-visible+.hw-longterm-track{outline:2px solid #7c3aed;outline-offset:2px}.hub-longterm{margin-top:.75rem}.hw-longterm-summary{color:#5b21b6;font-weight:500}.sentence-set--pass .sentence-set-list{border-top:none}.hw-pass-rate{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.hw-pass-rate .btn{min-height:52px;font-size:1.0625rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.15}.hw-pass-rate .hw-btn-notyet,.hw-pass-rate .hw-btn-notyet:hover{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}.hw-pass-rate .hw-btn-gotit,.hw-pass-rate .hw-btn-gotit:hover{background:#16a34a;color:#fff;border:1px solid #15803d}.hw-pass-rate .hw-btn--suggested{box-shadow:0 0 0 3px var(--color-surface, #fff),0 0 0 5px currentColor}.hw-pass-rate .hw-btn-gotit.hw-btn--suggested{box-shadow:0 0 0 3px var(--color-surface, #fff),0 0 0 5px #16a34a}.hw-pass-rate .hw-btn-gotit.hw-btn--locked,.hw-pass-rate .hw-btn-gotit.hw-btn--locked:hover{background:var(--color-surface, #fff);color:var(--color-text-secondary, #64748b);border:1px dashed var(--color-border, #cbd5e1);opacity:.7}.hw-pass-rate .hw-btn-gotit.hw-btn--locked.is-armed{opacity:1;border-style:solid;border-color:#16a34a;color:#166534}.hw-pass-angles{font-size:.75rem;font-weight:600;color:var(--color-text-secondary, #64748b)}.hw-pass-angle-line{margin:.25rem auto 0;padding:.25rem .75rem;width:fit-content;max-width:calc(100% - 2rem);border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.8125rem;font-weight:600;text-align:center}:root[data-theme=dark] .hw-pass-angle-line{background:#312e81;color:#e0e7ff}.hw-btn-hint{font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.hw-pass-extras{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.375rem .5rem;margin:.25rem 0 .5rem}.hw-pass-extras .hw-longterm{margin-top:0}.hw-pass-extras .bump-btn{min-height:44px}.pass-bump{display:flex;flex-direction:column;align-items:center;gap:.125rem}.pass-bump-hint{font-size:.75rem;color:var(--color-text-light);text-align:center;max-width:18rem}.hw-pass-empty,.hw-pass-done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.75rem;padding:1.5rem 1rem}.hw-pass-done h2{margin:0;font-size:1.5rem}.hw-pass-done p{margin:0}.hw-pass-done-icon{font-size:3rem}.hw-pass-daily{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin:.5rem 0;padding:.75rem 1rem;border-radius:var(--radius-lg);background:#f5f3ff}.hw-deck-banner{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding:.75rem;border-radius:var(--radius-lg);background:#f5f3ff;border:1px solid #ddd6fe;font-size:.9375rem}.hw-deck-banner p{margin:0;line-height:1.45}.hw-home{margin-bottom:.75rem;padding:.625rem .75rem .5rem;border-left:4px solid #8b5cf6}.hw-home-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.125rem}.hw-home-head h2{margin:0;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.hw-home-all{flex-shrink:0;display:inline-flex;align-items:center;min-height:36px;padding:0 .25rem;font-size:.875rem;font-weight:600;text-decoration:none}.hw-slim-list{display:flex;flex-direction:column}.hw-slim{display:flex;align-items:center;gap:.5rem;min-height:44px;padding:.25rem 0;color:inherit;text-decoration:none;border-top:1px solid var(--color-border)}.hw-slim:first-child{border-top:none}.hw-slim:hover{text-decoration:none}.hw-slim:active{background:#f5f3ff}.hw-slim-icon{font-size:1rem;flex-shrink:0;width:1.25rem;text-align:center}.hw-slim-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1875rem}.hw-slim-line{display:flex;align-items:baseline;gap:.5rem;min-width:0}.hw-slim-title{font-size:.9375rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.hw-slim-progress{flex-shrink:0;margin-left:auto;font-size:.8125rem;color:var(--color-text-light);font-variant-numeric:tabular-nums}.hw-slim-size{font-size:.75rem;color:var(--color-text-light);font-variant-numeric:tabular-nums}.hw-slim-bar{display:block;height:3px;border-radius:2px;background:#ede9fe;overflow:hidden}.hw-slim-bar span{display:block;height:100%;background:#8b5cf6}.hw-slim-due{flex-shrink:0;min-width:5.25rem;text-align:right;font-size:.75rem;font-weight:700;white-space:nowrap;color:var(--color-text-light)}.hw-slim-due-overdue{color:#b91c1c}.hw-slim-due-today{color:#c2410c}.hw-slim-due-soon{color:#a16207}.hw-slim-due-later{color:#4338ca}.hw-slim-due-none{font-weight:500}.hw-home-message{display:flex;align-items:center;gap:.375rem;min-height:44px;border-top:1px solid var(--color-border);font-size:.875rem;color:var(--color-text);text-decoration:none}.hw-home-message-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-home-message-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--color-primary)}.hw-notes-row{display:flex;align-items:center;gap:.5rem;min-height:44px;margin-bottom:.75rem;padding:.5rem .75rem;border-left:4px solid #f59e0b;color:var(--color-text);text-decoration:none;font-size:.9375rem;font-weight:600}.hw-notes-row:hover{text-decoration:none}.hw-notes-row-text{flex:1;min-width:0}.hw-notes-row-chevron{color:#9ca3af;font-size:1.25rem;line-height:1}.hw-link-pass{overflow-y:auto}.hw-link-body{max-width:640px;margin:0 auto;padding:1rem 1rem 2rem;display:flex;flex-direction:column;gap:1rem}.hw-link-body h1{font-size:1.35rem;margin:0;overflow-wrap:anywhere}.hw-link-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;color:#6b7280;font-size:.9rem}.hw-link-card{display:flex;flex-direction:column;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;text-decoration:none;color:inherit;background:#fff}.hw-link-card img{width:100%;aspect-ratio:16 / 9;object-fit:cover;background:#e5e7eb}.hw-link-icon{display:grid;place-items:center;height:96px;font-size:2.5rem;background:#eef2ff}.hw-link-card,.hw-link-card:hover,.hw-link-card .hw-link-open{text-decoration:none}.hw-link-open{min-height:48px;display:flex;align-items:center;justify-content:center;font-weight:600;color:#1d4ed8}.hw-link-instructions h2{font-size:.95rem;margin:0 0 .3rem;color:#374151}.hw-link-instructions p{margin:0;white-space:pre-wrap;line-height:1.5}.hw-link-finish{display:flex;flex-direction:column;gap:.5rem}.hw-link-finish label{font-size:.9rem;color:#374151}.hw-link-finish textarea{font-size:1rem;padding:.6rem .7rem;border-radius:8px;border:1px solid #d1d5db;font-family:inherit}.hw-link-done-btn{min-height:48px;font-size:1.05rem}.hw-link-done{background:#dcfce7;border-radius:12px;padding:.75rem 1rem;color:#14532d}.hw-link-done p{margin:0;font-weight:600}.hw-link-done blockquote{margin:.4rem 0 0;font-style:italic}.hw-status{flex-shrink:0}.hw-row-meta .hw-status{margin-right:.4rem;font-size:.7rem;padding:.05rem .45rem;vertical-align:1px}.hw-slim-row{display:flex;align-items:center;border-top:1px solid var(--color-border)}.hw-slim-row:first-child{border-top:none}.hw-slim-row>.hw-slim{flex:1;min-width:0;border-top:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.hw-slim-row>.row-menu-btn{margin-right:-.5rem}.hw-slim-retry-bar{--retry-bar-height: 5px}.hw-slim-retry-bar .retry-bar-badge{font-size:.6875rem;min-width:1.75rem}.hw-row-wrap{display:flex;align-items:center;gap:.25rem}.hw-row-wrap>.hw-row{flex:1;min-width:0;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.hw-row-skipped{opacity:.7}.hw-undo-skip{flex:none;min-height:44px;padding:0 .75rem;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface);font-weight:600;cursor:pointer}.hw-chip-skipped{background:#f1f0ee;color:#57534e}:root{--upnext-row-bg: #fafafa;--upnext-lifted-bg: #fff;--upnext-hover: #f3f4f6;--upnext-indigo: #4338ca;--upnext-indigo-ink: #3730a3;--upnext-indigo-soft: #eef2ff;--upnext-indigo-border: #c7d2fe;--upnext-indigo-line: #6366f1;--upnext-violet: #7c3aed;--upnext-pinyin: #4b5563;--upnext-icon: #4b5563;--upnext-icon-quiet: #9ca3af;--upnext-amber: #b45309;--upnext-today-bg: #fffbeb;--upnext-today-line: #fde68a;--upnext-today-row-bg: #fff;--upnext-note-bg: #fffbeb;--upnext-note-ink: #92400e;--upnext-paused-bg: #fef3c7;--upnext-paused-ink: #78350f}:root[data-theme=dark]{--upnext-row-bg: #1c1c20;--upnext-lifted-bg: #26262c;--upnext-hover: #26262c;--upnext-indigo: #a5b4fc;--upnext-indigo-ink: #c7d2fe;--upnext-indigo-soft: #25274a;--upnext-indigo-border: #6e73d9;--upnext-indigo-line: #6e73d9;--upnext-violet: #c4b5fd;--upnext-pinyin: #a19d94;--upnext-icon: #d4d1ca;--upnext-icon-quiet: #a19d94;--upnext-amber: #fcd34d;--upnext-today-bg: #2a2110;--upnext-today-line: #5c4515;--upnext-today-row-bg: #1c1c20;--upnext-note-bg: #2a2110;--upnext-note-ink: #fcd34d;--upnext-paused-bg: #3a2416;--upnext-paused-ink: #fdba74}.upnext-page h1{font-size:1.5rem;margin-bottom:.25rem}.upnext-intro{color:var(--color-text-light);font-size:.9rem;margin-bottom:1rem}.upnext-board{display:flex;flex-direction:column;gap:1rem}.upnext-section{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:.875rem}.upnext-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.upnext-section-title{font-size:1.05rem;font-weight:700;margin-bottom:.25rem}.upnext-count{color:var(--color-text-light);font-size:.85rem}.upnext-hint,.upnext-muted,.upnext-readonly{color:var(--color-text-light);font-size:.85rem;margin-bottom:.5rem}.upnext-readonly{color:var(--upnext-note-ink);background:var(--upnext-note-bg);border-radius:var(--radius-md);padding:.5rem .75rem}.upnext-list,.upnext-results,.upnext-today-list{list-style:none;display:flex;flex-direction:column;gap:.375rem}.upnext-list--dragging{user-select:none;-webkit-user-select:none}.upnext-row,.upnext-result,.upnext-today-row{display:flex;align-items:center;gap:.625rem;min-height:56px;padding:.5rem .5rem .5rem .625rem;border-radius:var(--radius-md);background:var(--upnext-row-bg);border:1px solid var(--color-border);transition:box-shadow .15s ease,transform .15s ease,background .15s ease;-webkit-touch-callout:none}.upnext-row,.upnext-result{touch-action:pan-y;user-select:none;-webkit-user-select:none}.upnext-row--lifted,.upnext-result--lifted{background:var(--upnext-lifted-bg);box-shadow:var(--shadow-lg);transform:scale(1.02);border-color:var(--upnext-indigo-line);position:relative;z-index:2}.upnext-row--placeholder{border:2px dashed var(--upnext-indigo-line);background:var(--upnext-indigo-soft)}.upnext-pos{flex:0 0 1.75rem;height:1.75rem;border-radius:999px;background:var(--upnext-indigo-soft);color:var(--upnext-indigo);font-weight:700;font-size:.85rem;display:inline-flex;align-items:center;justify-content:center}.upnext-grip{color:var(--upnext-icon-quiet);font-size:1.1rem;flex:0 0 auto}.upnext-word{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.5rem}.upnext-hanzi{font-size:1.25rem;font-weight:600}.upnext-pinyin{color:var(--upnext-pinyin);font-size:.9rem}.upnext-english{flex-basis:100%;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upnext-meta{flex-basis:100%;color:var(--color-text-light);font-size:.78rem}.upnext-added-by{color:var(--upnext-violet)}.upnext-actions{display:flex;align-items:center;gap:.25rem;flex:0 0 auto}.upnext-icon-btn{min-width:44px;min-height:44px;border:none;background:transparent;border-radius:var(--radius-md);font-size:1.1rem;color:var(--upnext-icon);cursor:pointer}.upnext-icon-btn:hover{background:var(--upnext-hover)}.upnext-remove{color:var(--upnext-icon-quiet)}.upnext-btn.upnext-today-btn{border-color:var(--upnext-indigo-line);font-size:.9rem}.upnext-add{min-height:44px;white-space:nowrap}.upnext-on-list{color:var(--upnext-indigo);font-size:.85rem;white-space:nowrap}.upnext-empty{color:var(--color-text-light);font-size:.9rem;padding:1rem .5rem;text-align:center;border:1px dashed var(--color-border);border-radius:var(--radius-md)}.upnext-search-input{width:100%;font-size:16px;min-height:44px;margin:.25rem 0 .5rem}.upnext-results,.upnext-drag-hint{margin-top:.25rem}.upnext-today{border-color:var(--upnext-today-line);background:var(--upnext-today-bg)}.upnext-today-row{background:var(--upnext-today-row-bg)}.upnext-toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--tab-bar-total, 0px) + 1rem);z-index:50;display:flex;align-items:center;gap:.75rem;max-width:calc(100vw - 2rem);background:#1f2937;color:#fff;padding:.5rem .5rem .5rem 1rem;border-radius:999px;box-shadow:var(--shadow-lg);font-size:.9rem}.upnext-toast-undo{min-height:40px;padding:0 .875rem;border:none;border-radius:999px;background:#fbbf24;color:#1f2937;font-weight:700;cursor:pointer}.upnext-btn{min-height:44px;padding:0 .875rem;border:1px solid var(--upnext-indigo-border);background:var(--upnext-indigo-soft);color:var(--upnext-indigo-ink);border-radius:999px;font-weight:600;cursor:pointer;white-space:nowrap}.upnext-btn--compact{min-height:36px;min-width:36px;padding:0 .5rem;font-size:.85rem}.upnext-btn--on{background:#4338ca;color:#fff;border-color:#4338ca}.upnext-btn:disabled{opacity:.55;cursor:default}.home-up-next{display:inline-block;margin:0 0 .5rem;color:var(--upnext-indigo-ink);font-weight:600;font-size:.9rem;text-decoration:none}@media (min-width: 640px){.upnext-section{padding:1.25rem}.upnext-english{flex-basis:auto}}.upnext-btn.deck-note-upnext{flex-shrink:0;min-width:40px;min-height:40px;padding:0 .55rem;align-self:center}.upnext-btn.deck-note-upnext:not(.upnext-btn--on){background:transparent;font-weight:500}.upnext-student-link{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:.5rem;min-height:56px;margin:.5rem 0 .75rem;padding:.5rem .75rem;border:1px solid var(--upnext-indigo-border);border-radius:var(--radius-md);background:var(--upnext-indigo-soft);color:inherit;text-decoration:none}.upnext-student-link-title{font-weight:700;color:var(--upnext-indigo-ink)}.upnext-student-link-desc{grid-column:1;color:var(--color-text-light);font-size:.85rem}.upnext-student-link .nav-row-chevron{grid-column:2;grid-row:1 / span 2}.upnext-bolt{color:var(--upnext-amber)}.upnext-paused{margin:0 0 .75rem;padding:.5rem .75rem;border-radius:var(--radius-md, 8px);background:var(--upnext-paused-bg);color:var(--upnext-paused-ink);font-size:.875rem;font-weight:600}.more-page{padding:.5rem 0 1rem;max-width:640px}.more-page h1{font-size:1.25rem;margin-bottom:.75rem}.more-user-card{display:flex;align-items:center;gap:.75rem;min-height:64px;padding:.5rem .75rem;margin-bottom:1rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);color:inherit;text-decoration:none}.more-user-card:hover{text-decoration:none;background:#fff7f6}.more-user-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}.more-user-avatar-placeholder{display:inline-flex;align-items:center;justify-content:center;background:var(--color-primary);color:#fff;font-weight:600;text-transform:uppercase}.nav-section{margin-bottom:1rem}.nav-section-title{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-light);margin:0 0 .375rem .25rem}.nav-list{display:flex;flex-direction:column;gap:.375rem}.nav-row{display:flex;align-items:center;gap:.75rem;width:100%;min-height:56px;padding:.5rem .75rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text);text-align:left;text-decoration:none;font:inherit;cursor:pointer;transition:background-color .15s}.nav-row:hover{text-decoration:none;background:#fff7f6}.nav-row:disabled{opacity:.6;cursor:not-allowed}.nav-row-danger{color:#dc2626}.nav-row-icon{flex:none;width:32px;font-size:1.375rem;line-height:1;text-align:center}.nav-row-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.125rem}.nav-row-label{font-size:1rem;font-weight:500;line-height:1.3;display:flex;align-items:center;gap:.5rem}.nav-row-desc{font-size:.8125rem;color:var(--color-text-light);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-row-chevron{flex:none;color:var(--color-text-light);font-size:1.5rem;line-height:1;opacity:.6}.nav-row-badge{background:#ef4444;color:#fff;font-size:.6875rem;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;line-height:1}.nav-section-toggle{display:flex;align-items:center;gap:.5rem;width:100%;min-height:44px;padding:.25rem;margin-bottom:.375rem;background:none;border:none;font:inherit;cursor:pointer;text-align:left;color:var(--color-text)}.nav-section-toggle-hint{flex:1 1 auto;min-width:0;font-size:.75rem;color:var(--color-text-light);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-section-toggle-chevron{transform:rotate(0);transition:transform .15s}.nav-section-toggle-chevron.open{transform:rotate(90deg)}@media (min-width: 640px){.more-page{padding:1.5rem 0 3rem}.more-page h1{font-size:1.75rem}}.tutor-home h1{font-size:1.5rem;margin:.5rem 0 .25rem}.tutor-home-lead{color:var(--color-text-light);margin:0 0 1rem}.tutor-home-students{display:flex;align-items:center;gap:.75rem;padding:1rem;margin-bottom:1.25rem;text-decoration:none;color:var(--color-text);min-height:72px;border:1px solid var(--color-border)}.tutor-home-students-icon{font-size:1.75rem}.tutor-home-students-text{display:flex;flex-direction:column;flex:1;gap:.125rem}.tutor-home-students-text strong{font-size:1.125rem}.tutor-home-students-text span{font-size:.875rem;color:var(--color-text-light)}.tutor-home-note{font-size:.875rem;color:var(--color-text-light);margin:0 .25rem .5rem}.tutor-home-try-lessons{display:inline-flex;align-items:center;min-height:44px;margin:.25rem .25rem 0;font-size:.9375rem;color:var(--color-primary);font-weight:500}.onb-first-open{display:flex;flex-direction:column;gap:.75rem}.onb-hero{text-align:center;padding:1.25rem 1rem 1rem}.onb-wave{font-size:3rem;line-height:1;margin-bottom:.5rem}.onb-greeting{margin:0 0 .375rem;font-size:1.5rem;font-weight:700}.onb-lead{margin:0 0 1rem;font-size:1.0625rem;line-height:1.5;color:var(--color-text-light)}.onb-lead strong{color:var(--color-text)}.onb-start-btn{min-height:56px;font-size:1.25rem}.onb-hero-sub{margin:.625rem 0 0;font-size:.9375rem;color:var(--color-text-light)}.onb-checklist-title{margin:0 0 .625rem;font-size:1.125rem}.onb-check-row{display:flex;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-md);min-height:56px}.onb-check-row+.onb-check-row{margin-top:.5rem}.onb-check-row.done{border-color:color-mix(in srgb,var(--color-success) 40%,var(--color-border));background:color-mix(in srgb,var(--color-success) 6%,transparent)}.onb-check-icon{font-size:1.375rem;flex-shrink:0;width:1.75rem;text-align:center}.onb-check-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.onb-check-label{font-weight:600;font-size:1rem}.onb-check-sub{font-size:.875rem;color:var(--color-text-light);line-height:1.4}.onb-audio-done{color:#15803d;font-weight:500}.onb-audio-warn{color:#b45309;font-weight:500}.onb-check-btn{flex-shrink:0;min-height:44px}.onb-install-hint{display:flex;flex-direction:column;gap:.25rem;margin-top:.5rem;padding:.5rem .625rem;background:var(--color-background);border-radius:var(--radius-sm);font-size:.875rem;line-height:1.5}.onb-kbd{display:inline-block;padding:0 .375rem;border:1px solid var(--color-border);border-radius:4px;background:var(--color-surface);font-weight:600;white-space:nowrap}.onb-welcome{border-left:4px solid #3b82f6}.onb-welcome-row{display:flex;gap:.75rem;align-items:flex-start;margin-bottom:.75rem}.onb-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}.onb-avatar-placeholder{display:flex;align-items:center;justify-content:center;background:#3b82f6;color:#fff;font-weight:700;font-size:1.125rem}.onb-welcome-body{flex:1;min-width:0}.onb-welcome-meta{font-size:.9375rem;margin-bottom:.25rem}.onb-welcome-text{margin:0;font-size:1.0625rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}.onb-skip{text-align:center;margin:.25rem 0 0;font-size:.875rem}.onb-skip .btn-link{min-height:44px}.onb-explainer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;padding:0}.onb-explainer{width:100%;max-width:480px;background:var(--color-surface);color:var(--color-text);border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:1.25rem 1rem;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom,0));box-shadow:var(--shadow-lg)}.onb-explainer h2{margin:0 0 .75rem;font-size:1.25rem}.onb-explainer-list{margin:0 0 .75rem;padding-left:1.25rem;display:flex;flex-direction:column;gap:.5rem;font-size:1rem;line-height:1.5}.onb-explainer-note{margin:0 0 1rem;font-size:.875rem;color:var(--color-text-light);line-height:1.5}@media (min-width: 640px){.onb-explainer-backdrop{align-items:center;padding:1.5rem}.onb-explainer{border-radius:var(--radius-lg);padding:1.5rem}.onb-greeting{font-size:1.75rem}}.home-study-card{margin-bottom:.75rem}.home-study-btn{min-height:56px;font-size:1.25rem}.home-study-loading{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:56px;font-size:.9375rem}.home-spinner{width:1rem;height:1rem}.home-study-subtitle{position:relative;display:flex;align-items:center;justify-content:center;gap:.25rem;margin-top:.5rem;color:var(--color-text-light);font-size:.9375rem;min-height:1.5rem}.home-info-btn{background:none;border:none;color:var(--color-text-light);font-size:1.125rem;line-height:1;cursor:pointer;width:44px;height:44px;margin:-.625rem -.75rem -.625rem -.25rem;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.home-info-btn:hover,.home-info-btn[aria-expanded=true]{color:var(--color-text)}.home-breakdown{position:absolute;top:calc(100% + .375rem);left:50%;transform:translate(-50%);width:min(320px,calc(100vw - 2rem));background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:.75rem;z-index:20;text-align:left}.home-breakdown ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.375rem;font-size:.9375rem}.home-breakdown li{display:flex;align-items:center;gap:.5rem}.home-breakdown-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.home-breakdown-note{margin:.625rem 0 0;font-size:.8125rem;color:var(--color-text-light);line-height:1.4}.home-more-link{font-size:.9375rem;color:var(--color-primary);min-height:44px;padding:0 .5rem}.home-bar{display:flex;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.home-bar-thin{height:4px;border-radius:2px;flex:1}.home-bar-fill{display:block;height:100%;background:#f97316;transition:width .3s}.home-bar-mastered{background:#22c55e}.home-decks-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.home-decks-head h2{margin:0;font-size:1.125rem}.home-all-decks{font-size:.9375rem;font-weight:600;color:var(--color-primary);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:0 .25rem}.home-sync-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;background:#dbeafe;color:#1d4ed8;border-radius:1rem;font-size:.6875rem}.home-sync-pill .home-spinner{width:.5rem;height:.5rem;border-width:1.5px}.home-deck-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.25rem}.home-deck-row{display:flex;align-items:stretch;min-width:0;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface)}.home-deck-link{flex:1;min-width:0;display:flex;align-items:center;gap:.625rem;padding:.25rem 0 .25rem .75rem;color:inherit;text-decoration:none;min-height:44px}.home-deck-link:hover{text-decoration:none}.home-deck-main{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.home-deck-name{flex:1;font-size:.9375rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.home-deck-due{flex-shrink:0;min-width:3.75rem;text-align:right;color:var(--color-text-light);font-size:.8125rem;font-variant-numeric:tabular-nums}.home-deck-due.has-due{color:var(--color-text);font-weight:600}.home-deck-bar{flex:0 0 3rem}.home-deck-chevron{color:#9ca3af;font-size:1.125rem;line-height:1}.home-deck-meta{display:flex;align-items:center;gap:.5rem}.home-deck-words{font-size:.75rem;color:#9ca3af;white-space:nowrap}.home-pin-btn{flex-shrink:0;width:44px;min-height:44px;align-self:stretch;background:none;border:none;border-left:1px solid transparent;cursor:pointer;font-size:.9375rem;opacity:.3;display:inline-flex;align-items:center;justify-content:center}.home-pin-btn.pinned{opacity:1}.home-pin-btn:hover{opacity:.8}.home-add-deck{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:.5rem;background:none;border:none;color:var(--color-primary);font-size:1rem;font-weight:600;cursor:pointer;width:100%}.home-empty{text-align:center;padding:1rem 0 .5rem;color:var(--color-text-light)}.home-empty-icon{font-size:2rem;margin-bottom:.25rem}.home-empty h3{margin:0 0 .25rem;font-size:1.0625rem;color:var(--color-text)}.home-empty p{margin:0;font-size:.9375rem}.home-generate-option{display:flex;align-items:center;gap:.75rem;padding:.75rem;margin-bottom:.5rem;border:1px solid var(--color-border);border-radius:var(--radius-md);color:inherit;text-decoration:none;min-height:56px}.home-generate-option:hover{text-decoration:none;background:var(--color-background)}.home-generate-icon{font-size:1.375rem}.home-generate-text{flex:1;display:flex;flex-direction:column;gap:.125rem}.home-generate-title{font-weight:600}.home-generate-desc{font-size:.8125rem;color:var(--color-text-light)}.home-generate-or{text-align:center;margin:0 0 .75rem;font-size:.8125rem;color:var(--color-text-light)}@media (min-width: 48rem){.home-deck-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}}.home-next-up{margin:0 0 .5rem;overflow-wrap:anywhere;font-size:.875rem;line-height:1.5;color:var(--color-text-light)}.home-next-up-label{font-weight:700;color:var(--color-text)}.home-next-up-deck{font-weight:600;color:var(--color-text);text-decoration:none}.home-next-up-rate a{color:inherit}.home-top-btn{flex-shrink:0;min-width:44px;min-height:44px;align-self:stretch;background:none;border:none;cursor:pointer;font-size:.75rem;color:var(--color-text-light);display:inline-flex;align-items:center;justify-content:center;padding:0 .375rem}.home-top-btn:disabled{opacity:.35;cursor:default}.home-bumped{margin-top:.4rem;text-align:center;font-size:.875rem;font-weight:600;color:#b45309}a.home-bumped-link{display:flex;gap:.3rem;align-items:center;justify-content:center;min-height:44px;margin-top:.1rem;text-decoration:none}.home-paused{margin-top:.6rem;padding:.55rem .75rem;border-radius:var(--radius-md, 8px);background:#fef3c7;color:#78350f;display:flex;flex-direction:column;gap:.2rem;text-align:left}.home-paused-label{font-size:.9rem;font-weight:600}.home-paused-detail{font-size:.8125rem;line-height:1.35}.home-paused-detail a{color:inherit;text-decoration:underline}.splash-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:.75rem;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460)}.splash-content{max-width:400px;width:100%;text-align:center;padding:1rem}.splash-title{margin-bottom:1rem}.splash-hanzi{display:block;font-size:2.5rem;font-weight:700;color:#fff;margin-bottom:.25rem}.splash-subtitle{display:block;font-size:1rem;font-weight:400;color:#888}.splash-description{font-size:.875rem;color:#bbb;line-height:1.5;margin-bottom:1.5rem}.splash-features{display:flex;justify-content:center;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.splash-feature{display:flex;flex-direction:column;align-items:center;gap:.25rem;color:#888;font-size:.75rem}.feature-icon{font-size:1.25rem}.splash-error{background:#ef44441a;border:1px solid rgba(239,68,68,.3);color:#ef4444;padding:.5rem .75rem;border-radius:8px;margin-bottom:1rem;font-size:.8125rem}.splash-notice{background:#3b82f61f;border:1px solid rgba(59,130,246,.35);color:#dbeafe;padding:.75rem .875rem;border-radius:8px;margin-bottom:1rem;font-size:.875rem;text-align:left;line-height:1.5}.splash-notice strong{display:block;color:#fff;margin-bottom:.25rem}.splash-notice p{margin:0}.splash-notice p+p{margin-top:.5rem}.splash-notice-small{font-size:.8125rem;color:#b7c4de}.splash-login-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;max-width:260px;padding:.75rem 1.25rem;background:#fff;color:#333;border:none;border-radius:8px;font-size:.9375rem;font-weight:500;cursor:pointer;transition:background-color .2s,transform .1s}.splash-login-button:hover{background:#f5f5f5}.splash-login-button:active{transform:scale(.98)}.google-icon{flex-shrink:0}.splash-footer{margin-top:1.5rem;font-size:.6875rem;color:#666}@media (min-width: 640px){.splash-page{padding:1.5rem}.splash-content{padding:2.5rem}.splash-title{margin-bottom:1.5rem}.splash-hanzi{font-size:3.5rem;margin-bottom:.5rem}.splash-subtitle{font-size:1.25rem}.splash-description{font-size:1rem;margin-bottom:2rem}.splash-features{gap:1.5rem;margin-bottom:2rem}.splash-feature{font-size:.875rem;gap:.375rem}.feature-icon{font-size:1.5rem}.splash-login-button{padding:.875rem 1.5rem;font-size:1rem}.splash-footer{margin-top:2rem;font-size:.75rem}}.splash-hint{margin:.875rem 0 0;font-size:.9375rem;color:#dbe4f5}:root{--color-primary: #dc2626;--color-primary-dark: #b91c1c;--color-secondary: #fbbf24;--color-background: #fef3f2;--color-surface: #ffffff;--color-text: #1f2937;--color-text-light: #6b7280;--color-border: #e5e7eb;--space-gap-min: 8px;--result-right: #16a34a;--result-right-ink: #15803d;--result-close: #eab308;--result-close-ink: #854d0e;--result-wrong: #dc2626;--result-wrong-ink: #b91c1c;--result-pending: #3b82f6;--result-pending-ink: #1d4ed8;--mark-wrong: #a82540;--mark-tone: #8c6700;--mark-extra: #6b4fc4;--mark-missing: #62666f;--color-success: #22c55e;--color-warning: #f97316;--color-error: #ef4444;--color-partial: #facc15;--color-partial-soft: #fef9c3;--color-partial-strong: #fde047;--color-partial-ink: #713f12;--btn-outline: #80868f;--btn-bg: #ffffff;--btn-disabled-bg: #f3f4f6;--btn-disabled-text: #6b7280;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 15px rgba(0, 0, 0, .1);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color:var(--color-text);background-color:var(--color-background)}:root[data-theme=dark]{--result-right: #22c55e;--result-right-ink: #4ade80;--result-close: #facc15;--result-close-ink: #fde047;--result-wrong: #ef4444;--result-wrong-ink: #f87171;--result-pending: #60a5fa;--result-pending-ink: #93c5fd;--mark-wrong: #e98594;--mark-tone: #dcc16e;--mark-extra: #ac9dea;--mark-missing: #9a978f;--btn-outline: #7c7c86;--btn-bg: #26262c;--btn-disabled-bg: #1c1c20;--btn-disabled-text: #a19d94;--color-partial: #fde047;--color-partial-soft: rgba(253, 224, 71, .1);--color-partial-strong: #fde047;--color-partial-ink: #422006}*{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.3}h1{font-size:1.25rem}h2{font-size:1rem}h3{font-size:.9375rem}@media (min-width: 640px){h1{font-size:1.75rem}h2{font-size:1.25rem}h3{font-size:1.125rem}}.hanzi{font-size:2.5rem;font-weight:400;line-height:1.3;word-break:keep-all;overflow-wrap:break-word;max-width:100%}.hanzi-large{font-size:clamp(1.75rem,9vw,4rem)}@media (min-width: 640px){.hanzi{font-size:3rem}.hanzi-large{font-size:5rem}}.pinyin{font-size:1.25rem;color:var(--color-text-light)}@media (min-width: 640px){.pinyin{font-size:1.5rem}}a{color:var(--color-primary);text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;padding:.625rem 1rem;font-size:.875rem;font-weight:500;border:none;border-radius:var(--radius-md);cursor:pointer;transition:all .2s;min-height:44px}@media (min-width: 640px){.btn{padding:.75rem 1.25rem;font-size:1rem}}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary:disabled,.btn-secondary:disabled{opacity:1;background-color:var(--btn-disabled-bg);color:var(--btn-disabled-text);border:1px dashed var(--btn-outline)}.btn.playing,.btn-primary{background-color:var(--color-primary);color:#fff}.btn-primary:hover:not(:disabled){background-color:var(--color-primary-dark)}.btn-secondary{background-color:var(--btn-bg);color:var(--color-text);border:1px solid var(--btn-outline)}.btn-secondary:hover:not(:disabled){background-color:var(--color-background)}.btn-link{background:none;border:none;color:var(--color-text-light);cursor:pointer;padding:.5rem;text-decoration:underline}.btn-link:hover{color:var(--color-text)}.btn-success{background-color:var(--color-success);color:#fff}.btn-warning{background-color:var(--color-warning);color:#fff}.btn-error{background-color:var(--color-error);color:#fff}.btn-sm{padding:.5rem 1rem;font-size:.875rem}.btn-lg{padding:.75rem 1.25rem;font-size:1rem}@media (min-width: 640px){.btn-lg{padding:1rem 2rem;font-size:1.125rem}}.btn-block{width:100%}.card{background-color:var(--color-surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:.75rem}@media (min-width: 640px){.card{padding:1.5rem}}.form-group{margin-bottom:.75rem}.form-label{display:block;margin-bottom:.375rem;font-weight:500;font-size:.875rem}.form-input,.form-textarea{width:100%;padding:.625rem;font-size:1rem;border:1px solid var(--color-border);border-radius:var(--radius-md);background-color:var(--color-surface)}@media (min-width: 640px){.form-group{margin-bottom:1rem}.form-label{margin-bottom:.5rem;font-size:1rem}.form-input,.form-textarea{padding:.75rem}}.form-input:focus,.form-textarea:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #dc26261a}.form-textarea{min-height:100px;resize:vertical}.container{max-width:1200px;margin:0 auto;padding:0 .5rem}@media (min-width: 400px){.container{padding:0 .75rem}}@media (min-width: 640px){.container{padding:0 1.5rem}}.page{flex:1;padding:.5rem 0}@media (min-width: 640px){.page{padding:1.5rem 0}}.header{background-color:var(--color-primary);color:#fff;padding:.5rem 0;position:sticky;top:0;z-index:100}.header a{color:#fff}.header-content{display:flex;justify-content:space-between;align-items:center}.header-title{font-size:1rem;font-weight:600}@media (min-width: 640px){.header{padding:.75rem 0}.header-title{font-size:1.25rem}}.header-right{display:flex;align-items:center;gap:.5rem}@media (min-width: 640px){.header-right{gap:.75rem}}.header-nav{display:flex;gap:.25rem}@media (min-width: 640px){.header-nav{gap:.5rem}}.header-nav a{padding:.5rem;font-size:.75rem;white-space:nowrap;border-radius:var(--radius-sm)}@media (min-width: 640px){.header-nav a{padding:.5rem .75rem;font-size:.875rem}}.header-nav a:hover{opacity:.8;text-decoration:none;background-color:#ffffff1a}.grid{display:grid;gap:.75rem}@media (min-width: 640px){.grid{gap:1rem}}.grid-cols-2{grid-template-columns:1fr}.grid-cols-3{grid-template-columns:repeat(3,1fr)}@media (min-width: 640px){.grid-cols-2{grid-template-columns:repeat(2,1fr)}}.text-center{text-align:center}.text-right{text-align:right}.text-light{color:var(--color-text-light)}.text-success{color:var(--color-success)}.text-error{color:var(--color-error)}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}.deck-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.deck-actions .btn{font-size:.8125rem;padding:.5rem .75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deck-actions .btn-primary{grid-column:1 / -1}@media (min-width: 640px){.deck-actions{display:flex;flex-wrap:wrap;gap:.5rem}.deck-actions .btn{font-size:.875rem;padding:.625rem 1rem}.deck-actions .btn-primary{grid-column:auto}}html:has(.study-page-fullscreen),html:has(.study-page-fullscreen) body{overflow:hidden;height:100dvh}html:has(.study-page-fullscreen) .header{display:none}.study-page-fullscreen{position:fixed;top:0;left:0;right:0;height:100dvh;background-color:var(--color-surface);display:flex;flex-direction:column;padding:var(--space-gap-min);z-index:200}@media (min-width: 640px){.study-page-fullscreen{padding:.5rem}}.study-fullscreen{flex:1;display:flex;flex-direction:column;background-color:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;overflow:hidden}.study-topbar{display:flex;justify-content:space-between;align-items:center;padding:.25rem .5rem;flex-shrink:0}@media (min-width: 640px){.study-topbar{padding:.75rem 1rem}}.study-close-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-light);font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s}.study-close-btn:hover{background-color:var(--color-background);color:var(--color-text)}.study-undo-btn:disabled{opacity:.35;cursor:default;pointer-events:none}.study-topbar-controls{display:flex;align-items:center;gap:.5rem;margin-left:auto}.study-offline-toggle{font-size:1rem}.study-offline-toggle--active{background-color:#fef3c7;border-color:#f59e0b;color:#92400e}.study-offline-toggle--active:hover{background-color:#fde68a;color:#92400e}.study-card-content{flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:.25rem .75rem .5rem;overflow-y:auto;overscroll-behavior:contain;min-height:0}@media (min-width: 640px){.study-card-content{padding:1rem}}.study-card-main{flex:1;display:flex;flex-direction:column;justify-content:center}.study-card-main--typing{justify-content:flex-start;padding-top:clamp(1.75rem,7dvh,4rem)}@media (min-width: 640px){.study-card-main--typing{padding-top:2rem}}.study-card-actions{flex-shrink:0;padding-top:.375rem}@media (min-width: 640px){.study-card-actions{padding-top:.75rem}}.study-typing-input{width:100%;font-size:16px;text-align:center;margin-bottom:.75rem}.answer-diff{display:flex;flex-direction:column;align-items:center;gap:.5rem;width:100%;max-width:100%;overflow:hidden}.answer-diff-row{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;max-width:100%}.answer-diff-pinyin{color:var(--color-text-light);font-size:1rem;margin-top:-.25rem}.answer-diff-arrow{color:var(--color-text-light);font-size:1.25rem}.diff-char{font-size:1.5rem;padding:.125rem;border-radius:4px;min-width:1.75rem;text-align:center}@media (min-width: 400px){.diff-char{font-size:1.75rem;padding:.125rem .25rem;min-width:2rem}}@media (min-width: 640px){.diff-char{font-size:2.5rem;padding:.25rem .5rem;min-width:3rem}}.diff-correct{color:var(--result-right-ink)}.diff-wrong{color:var(--mark-wrong)}.diff-expected{color:var(--color-text)}.diff-skipped{color:var(--mark-missing)}.answer-diff-alternative-label{font-size:.75rem;color:var(--color-text-light);margin-top:.25rem}.claude-response{background-color:#f9fafb;padding:.75rem 1rem;border-radius:8px;font-size:.875rem;border:1px solid #e5e7eb;line-height:1.5}.claude-response p{margin:0 0 .75rem}.claude-response p:last-child{margin-bottom:0}.claude-response ul,.claude-response ol{margin:.5rem 0;padding-left:1.5rem}.claude-response li{margin-bottom:.25rem}.claude-response code{background-color:#e5e7eb;padding:.125rem .375rem;border-radius:4px;font-size:.8125rem}.claude-response pre{background-color:#1f2937;color:#f9fafb;padding:.75rem;border-radius:6px;overflow-x:auto;margin:.5rem 0}.claude-response pre code{background:none;padding:0;color:inherit}.claude-response strong{font-weight:600}.claude-response h1,.claude-response h2,.claude-response h3{font-weight:600;margin:.75rem 0 .5rem}.claude-response h1{font-size:1.125rem}.claude-response h2{font-size:1rem}.claude-response h3{font-size:.9375rem}.claude-response table{border-collapse:collapse;margin:.5rem 0;width:100%;overflow-x:auto;display:block}.claude-response th,.claude-response td{border:1px solid #d1d5db;padding:.375rem .625rem;text-align:left}.claude-response th{background-color:#e5e7eb;font-weight:600}.claude-response tr:nth-child(2n){background-color:#f3f4f6}.claude-modal-overlay{padding:.25rem}.claude-modal{width:100%!important;max-width:100%!important;height:100%;max-height:100%!important;display:flex;flex-direction:column;border-radius:.75rem}.claude-modal .modal-header{padding:.75rem 1rem;flex-shrink:0}.claude-modal-content{flex:1;overflow-y:auto;padding:0 .625rem .5rem}@media (min-width: 640px){.claude-modal-content{padding:0 1rem .5rem}}.claude-quick-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.claude-message-pair{margin-bottom:1rem}.claude-user-message{background-color:var(--color-primary);color:#fff;padding:.5rem .75rem;border-radius:8px;margin-bottom:.5rem;font-size:.875rem}.claude-tool-calls-collapsible{margin-bottom:.375rem}.claude-tool-calls-toggle{display:flex;align-items:center;gap:.375rem;background:none;border:none;padding:.25rem 0;cursor:pointer;font-size:.75rem;color:var(--color-text-light);transition:color .15s}.claude-tool-calls-toggle:hover{color:var(--color-text)}.claude-tool-calls-icon{font-size:.625rem;width:.75rem}.claude-tool-calls-summary{font-style:italic}.claude-tool-calls-details{padding:.375rem .5rem;margin-top:.125rem;background-color:var(--color-background);border-radius:6px;border:1px solid var(--color-border)}.claude-tool-call-item{font-size:.75rem;color:var(--color-text-light);padding:.125rem 0}.claude-tool-call-name{font-weight:500;color:var(--color-text)}.claude-tool-call-input{margin-left:.25rem;opacity:.7}.claude-loading{color:var(--color-text-light);font-size:.875rem;padding:.5rem 0}.claude-input-row{display:flex;align-items:flex-end;gap:.375rem;padding:.5rem;border-top:1px solid var(--color-border);flex-shrink:0}@media (min-width: 640px){.claude-input-row{gap:.5rem;padding:.75rem 1rem}}.claude-input-row .form-input{flex:1}.claude-autogrow-input{resize:none;overflow-y:auto;min-height:2.25rem;max-height:120px;line-height:1.4}.claude-tool-results{margin-top:.5rem}.claude-tool-result{display:flex;align-items:center;gap:.375rem;padding:.375rem .625rem;border-radius:6px;font-size:.8125rem;font-weight:500;margin-top:.375rem}.claude-tool-result.success{background-color:#22c55e1a;border:1px solid rgba(34,197,94,.3);color:#15803d}.claude-tool-result.error{background-color:#ef44441a;border:1px solid rgba(239,68,68,.3);color:#b91c1c}.tool-approval-box{margin-top:.5rem;padding:.75rem;border-radius:8px;background-color:#fffbeb;border:1px solid #f59e0b}.tool-approval-header{font-size:.8125rem;font-weight:600;color:#92400e;margin-bottom:.5rem}.tool-approval-item{padding:.375rem .5rem;margin-bottom:.375rem;background-color:#fff9;border-radius:6px;font-size:.8125rem}.tool-approval-icon{margin-right:.375rem}.tool-approval-changes{margin-top:.25rem;padding-left:1.25rem;font-size:.75rem;color:var(--color-text-light)}.tool-approval-change{margin-top:.125rem}.tool-approval-field{font-weight:500;color:var(--color-text)}.tool-approval-card-preview{margin-top:.375rem;padding-left:1.25rem}.tool-approval-card-item{padding:.25rem 0;font-size:.8125rem;border-bottom:1px solid rgba(0,0,0,.06)}.tool-approval-card-item:last-child{border-bottom:none}.tool-approval-buttons{display:flex;gap:.5rem;margin-top:.5rem}@media (min-width: 400px){.claude-modal-overlay{padding:.5rem}}@media (min-width: 640px){.claude-modal-overlay{padding:1rem}.claude-modal{max-width:700px!important;width:700px!important;height:auto;max-height:90vh!important}}.study-card-inner{transition:transform .6s;transform-style:preserve-3d}.queue-counts{display:flex;justify-content:center;align-items:center;gap:.125rem;font-size:1rem;font-weight:600}button.queue-counts{position:relative;font-family:inherit;background:none;border:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}button.queue-counts:active{opacity:.6}.queue-counts-toast{position:absolute;top:calc(100% + .375rem);right:0;background:#111827e6;color:#fff;font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:.375rem;white-space:nowrap;pointer-events:none}.count-new{color:#3b82f6}.count-secondary{color:#8b5cf6}.count-learning{color:#ef4444}.count-review{color:#22c55e}.count-separator{color:var(--color-text-light);font-weight:400}.count-active{text-decoration:underline;text-underline-offset:3px}@media (min-width: 400px){.queue-counts{font-size:1.125rem;gap:.25rem}}@media (min-width: 640px){.queue-counts{font-size:1.25rem;gap:.375rem}}.rating-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem}.rating-done-for-good{display:block;width:100%;min-height:44px;margin-top:.375rem;padding:.5rem .75rem;border:1px dashed var(--color-border);border-radius:var(--radius-md);background:transparent;color:var(--color-text-light);font-size:.875rem;font-weight:600;cursor:pointer}.rating-done-for-good:disabled{opacity:.6;cursor:default}.rating-done-for-good-hint{font-weight:400}.rating-btn{padding:.5rem .125rem;font-weight:600;font-size:.75rem;border:none;border-radius:var(--radius-md);cursor:pointer;transition:transform .1s,box-shadow .1s;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.125rem}.rating-label{font-size:.8125rem;font-weight:600}.rating-interval{font-size:.6875rem;font-weight:500;opacity:.8}@media (min-width: 400px){.rating-buttons{gap:.375rem}.rating-btn{padding:.5rem .25rem}}@media (min-width: 640px){.rating-buttons{gap:.5rem}.rating-btn{padding:.75rem .5rem;min-height:56px}.rating-label{font-size:.875rem}.rating-interval{font-size:.75rem}}.study-rating-sticky{flex-shrink:0;padding:.125rem .5rem .375rem;border-top:1px solid var(--color-border);background-color:var(--color-surface)}@media (min-width: 640px){.study-rating-sticky{padding:.75rem 1rem}}.study-back-actions{display:flex;flex-direction:column;gap:.375rem}.study-back-buttons{display:flex;gap:.375rem;justify-content:center;flex-wrap:wrap}.study-back-buttons .btn-sm{padding:.375rem .5rem;font-size:.8125rem}@media (min-width: 400px){.study-back-buttons .btn-sm{padding:.5rem .75rem}}@media (min-width: 640px){.study-back-actions{gap:.5rem}.study-back-buttons .btn-sm{padding:.5rem .875rem;font-size:.875rem}}.sentence-clue-box{border:1px solid var(--color-border);border-radius:8px;padding:.5rem;display:inline-block;min-width:200px;max-width:100%}.sentence-clue-header{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:.375rem}.sentence-clue-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-light);opacity:.7}.sentence-clue-play{background:none;border:1px solid var(--color-border);border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.75rem;color:var(--color-text);padding:0}.sentence-clue-play:hover{background-color:var(--color-background)}.sentence-clue-regen{background:none;border:none;cursor:pointer;font-size:.875rem;color:var(--color-text-light);opacity:.6;padding:.125rem}.sentence-clue-regen:hover{opacity:1}.sentence-clue-row{padding:.25rem 0;min-height:1.5rem}.sentence-clue-tap{font-size:.75rem;opacity:.4;font-style:italic}.regen-menu{position:absolute;right:0;top:100%;margin-top:.25rem;background:var(--color-surface, #fff);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:20;min-width:120px;overflow:hidden}.regen-menu-item{display:block;width:100%;padding:.375rem .75rem;border:none;background:none;text-align:left;font-size:.8rem;color:var(--color-text);cursor:pointer}.regen-menu-item:hover{background-color:var(--color-background, #f5f5f5)}.sentence-clue-add{background:none;border:none;cursor:pointer;font-size:1rem;color:var(--color-text-light);opacity:.6;padding:.125rem;line-height:1}.sentence-clue-add:hover{opacity:1;color:var(--color-primary, #3b82f6)}.sentence-clue-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.375rem;z-index:5}.sentence-clue-spinner{width:20px;height:20px;border:2px solid var(--color-border, #e5e5e5);border-top-color:var(--color-primary, #3b82f6);border-radius:50%;animation:spin .8s linear infinite}.sentence-set{text-align:left;width:100%;max-width:34rem;margin:0 auto}.sentence-set--empty{text-align:center}.sentence-set-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:36px;padding:0}.sentence-set-toggle{display:flex;align-items:center;gap:.375rem;background:none;border:none;padding:.5rem 0;min-height:44px;cursor:pointer;color:var(--color-text);font-size:.8rem}.sentence-set-caret{font-size:.7rem;opacity:.6}.sentence-set-title{text-transform:uppercase;letter-spacing:.06em;font-size:.6875rem;font-weight:600;color:var(--color-text-light)}.sentence-set-count{font-size:.7rem;padding:.05rem .4rem;border-radius:999px;background-color:var(--color-background, #f5f5f5);border:1px solid var(--color-border);color:var(--color-text-light)}.sentence-set-actions{display:flex;align-items:center;gap:.25rem}.sentence-set-menu-wrap{position:relative}.sentence-set-action{background:none;border:none;border-radius:6px;padding:0 .5rem;min-height:36px;min-width:36px;font-size:.8125rem;color:var(--color-text-light);cursor:pointer}.sentence-set-action:hover:not(:disabled){color:var(--color-text);background-color:var(--color-background, #f5f5f5)}.sentence-set-action:disabled{opacity:.4;cursor:default}.sentence-set-action--text.is-active{color:var(--color-text);text-decoration:underline;text-underline-offset:3px}.sentence-set-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--color-border)}.sentence-set-row{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;border-bottom:1px solid var(--color-border)}.sentence-set-head{display:flex;align-items:flex-start;gap:.25rem;min-height:44px}.sentence-set-head.is-collapsed{align-items:center}.sentence-set-head>.sentence-set-reveal,.sentence-set-head>.sentence-set-hidden{flex:1 1 auto;min-width:0}.sentence-set-head>.sentence-set-reveal{padding-top:.5rem;padding-bottom:.25rem}.sentence-set-head>.sentence-set-en,.sentence-set-head>.sentence-set-play,.sentence-set-head>.sentence-set-mic{margin-top:4px}.sentence-set-head.is-collapsed>.sentence-set-en,.sentence-set-head.is-collapsed>.sentence-set-play,.sentence-set-head.is-collapsed>.sentence-set-mic{margin-top:0}.sentence-set-head>.sentence-set-marks{margin-left:0;flex:0 0 auto}.sentence-set-actionline{display:flex;flex-wrap:wrap;align-items:center;gap:0 .125rem;margin-left:calc(36px - .25rem);min-height:36px}.sentence-set--pass .sentence-set-actionline{margin-left:-.5rem}.sentence-set-actionline .sentence-set-tools{display:contents}.sentence-set-marks{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.375rem;margin-left:auto;padding-right:.125rem}.sentence-set-marks .sentence-set-from-card{font-size:.6875rem;padding:.0625rem .4rem;white-space:nowrap}.sentence-set-en,.sentence-set-play{position:relative;flex:0 0 auto;width:36px;height:36px;border:none;border-radius:50%;background:none;color:var(--color-text);display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:background-color .2s,color .2s;-webkit-tap-highlight-color:transparent}.sentence-set-en:after,.sentence-set-play:after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px}.sentence-set-en{font-size:.6875rem;font-weight:700;letter-spacing:.04em;color:var(--color-text-light)}.sentence-set-en:hover:not(:disabled){color:var(--color-text);background-color:var(--color-border)}.sentence-set-en:disabled{opacity:.35;cursor:default}.sentence-set-en.is-active{background-color:var(--color-text);color:var(--color-surface)}.sentence-set-play{font-size:.8rem;padding-left:2px;color:var(--color-text);border:1px solid var(--color-border)}.sentence-set-play:hover:not(:disabled){background-color:var(--color-border)}.sentence-set-play.is-playing{background-color:var(--color-primary, #3b82f6);color:#fff;padding-left:0}.sentence-set-mic{position:relative;flex:0 0 auto;width:36px;height:36px;border:none;border-radius:50%;background:none;color:var(--color-text);display:flex;align-items:center;justify-content:center;padding:0;font-size:.95rem;cursor:pointer;transition:background-color .2s,color .2s;-webkit-tap-highlight-color:transparent}.sentence-set-mic:after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px}.sentence-set-mic:hover:not(:disabled):not(.is-listening){background-color:var(--color-border)}.sentence-set-mic:disabled{opacity:.35;cursor:default}.sentence-set-mic.is-listening{background-color:var(--color-error, #dc2626);color:#fff;animation:sentence-mic-pulse 1.2s ease-in-out infinite}@keyframes sentence-mic-pulse{0%,to{box-shadow:0 0 #dc262659}50%{box-shadow:0 0 0 6px #dc262600}}.sentence-set-mic-spinner{width:16px;height:16px}.sentence-set-row.is-hidden-row{opacity:.6;align-items:center}.sentence-set-row.is-hidden-row .sentence-set-body{display:flex;flex-direction:column}.sentence-set-unhide{flex:0 0 auto;min-height:44px}.sentence-practise-live{margin-top:.375rem;padding:.5rem .625rem;border-radius:var(--radius-md, 10px);background:var(--color-background, #f3f4f6);font-size:1.05rem;min-height:2.25rem}.sentence-practise-partial{color:var(--color-text-light)}.sentence-practise-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--color-text-light)}.sentence-practise-result{margin-top:.375rem}.sentence-practise-result .spoken-result,.sentence-practise-result .answer-check{margin:0}.sentence-practise-result .answer-check.checking{margin-top:.375rem}.sentence-practise-said{margin-top:.25rem;font-size:.9375rem}.sentence-practise-said-label{font-size:.75rem;color:var(--color-text-light)}.sentence-set-body{flex:1 1 auto;min-width:0}.sentence-set-hidden{display:flex;align-items:center;width:100%;min-height:44px;background:none;border:none;padding:0 .25rem;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}.sentence-set-blank{display:block;font-size:.875rem;color:var(--color-text-light);opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sentence-set-hidden:hover .sentence-set-blank{opacity:1}.sentence-set-reveal{display:block;width:100%;text-align:left;background:none;border:none;padding:.125rem .25rem;min-height:36px;color:var(--color-text);cursor:pointer;-webkit-tap-highlight-color:transparent}.sentence-set-hanzi{display:block;font-size:1.125rem;line-height:1.55;color:var(--color-text);word-break:break-word}.sentence-set-pinyin{display:block;margin-top:.125rem;font-size:.875rem;line-height:1.45;color:var(--color-text-light)}.sentence-set-translation{display:block;margin-top:.0625rem;font-size:.9375rem;line-height:1.45;color:var(--color-text);opacity:.85}.sentence-set-prompt{display:block;font-size:.9375rem;line-height:1.45;color:var(--color-text)}.sentence-set-prompt+.sentence-set-hanzi{margin-top:.25rem}.sentence-set-audio-coming{display:block;margin-top:.15rem;font-size:.75rem;color:var(--color-primary)}.sentence-set-next{display:block;margin-top:.25rem;font-size:.75rem;font-style:italic;color:var(--color-text-light)}.sentence-set-focus{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;margin-top:.125rem;font-size:.75rem;color:var(--color-text-light)}.sentence-set-badge{padding:.05rem .4rem;border-radius:999px;background-color:var(--color-background, #f5f5f5);color:var(--color-text-light);font-size:.6875rem;white-space:nowrap}.sentence-set-translation.is-pending{font-style:italic;color:var(--color-text-light)}.sentence-set-tools{display:flex;flex-wrap:wrap;gap:.125rem .25rem}.sentence-set-tool{background:none;border:none;border-radius:6px;padding:0 .3125rem;min-height:44px;font-size:.8125rem;color:var(--color-text-light);cursor:pointer}.sentence-set-tool:hover:not(:disabled){color:var(--color-text);background-color:var(--color-background, #f5f5f5)}.sentence-set-tool:disabled{opacity:.4;cursor:default}.sentence-set-tool.is-active{color:var(--color-text);font-weight:600}.sentence-set-explanation{margin-top:.375rem;padding:.5rem .625rem;border-radius:8px;background-color:var(--color-background, #f5f5f5)}.sentence-set-words{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.125rem}.sentence-set-words li{font-size:.8125rem}.sentence-set-word{display:flex;flex-wrap:wrap;align-items:baseline;gap:.375rem;width:100%;text-align:left;background:none;border:none;border-radius:4px;padding:.125rem .25rem;min-height:28px;color:var(--color-text);font-size:.8125rem;cursor:pointer}.sentence-set-word:hover{background-color:var(--color-surface)}.sentence-set-words .hanzi{font-size:.95rem;line-height:1.4;flex:0 0 auto;min-width:3.25rem}.sentence-set-word-pinyin{opacity:.65}.sentence-set-word-gloss{opacity:.85}.sentence-set-construction{margin:.5rem 0 0;font-size:.8125rem;line-height:1.45;opacity:.85}.sentence-set-more{display:block;width:100%;margin-top:.125rem;padding:.5rem;min-height:44px;border:none;border-radius:8px;background:none;color:var(--color-text-light);font-size:.8125rem;cursor:pointer}.sentence-set-more:hover:not(:disabled){color:var(--color-text);background-color:var(--color-background, #f5f5f5)}.sentence-set-more:disabled{opacity:.4;cursor:default}.sentence-set-custom{display:flex;gap:.25rem;margin-bottom:.5rem}.sentence-set-custom .form-control{flex:1 1 auto;min-width:0;font-size:.8rem}.sentence-set-error{font-size:.75rem;color:#b91c1c;padding:.25rem 0}@media (min-width: 640px){.sentence-set-hanzi{font-size:1.125rem}.sentence-set-pinyin{font-size:.9rem}.sentence-set-translation,.sentence-set-prompt{font-size:.95rem}}.study-audio-controls{display:flex;gap:.5rem;justify-content:center;align-items:center;margin-bottom:.75rem}.rating-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.rating-btn.again{background-color:#fecaca;color:#b91c1c}.rating-btn.hard{background-color:#fed7aa;color:#c2410c}.rating-btn.good{background-color:#bbf7d0;color:#166534}.rating-btn.easy{background-color:#bfdbfe;color:#1e40af}.rating-btn.is-greyed{opacity:.5;filter:grayscale(.7)}.rating-btn.is-greyed:hover{transform:none;box-shadow:none}.rating-btn.is-armed{opacity:1;filter:none;outline:2px dashed currentColor;outline-offset:2px;animation:rating-armed-pulse .9s ease-in-out infinite}@keyframes rating-armed-pulse{50%{box-shadow:0 0 0 4px #f9731659}}.rating-btn.is-suggested{box-shadow:0 0 0 3px #f97316,var(--shadow-md);transform:translateY(-2px)}.rating-suggested-mark{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.rating-greyed-mark{font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.rating-greyed-mark{text-transform:none}.spinner{width:40px;height:40px;border:4px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin 1s linear infinite}.empty-state{text-align:center;padding:1.5rem;color:var(--color-text-light)}.empty-state-icon{font-size:2.5rem;margin-bottom:.5rem}@media (min-width: 640px){.empty-state{padding:3rem}.empty-state-icon{font-size:4rem;margin-bottom:1rem}}.quick-links{display:flex;flex-direction:column;gap:.5rem}@media (min-width: 640px){.quick-links{flex-direction:row;gap:1rem}.quick-links .btn-block{width:auto}}.deck-card{display:block;padding:.75rem;background-color:var(--color-surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);border:1px solid var(--color-border);transition:box-shadow .2s,transform .2s}@media (min-width: 640px){.deck-card{padding:1.25rem}}.deck-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);text-decoration:none}.deck-card:active{transform:scale(.98)}.deck-card{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.deck-grid--dragging{touch-action:none;cursor:grabbing}.deck-grid--dragging .deck-card{transition:transform .12s ease}.deck-card--dragging,.deck-card--dragging:hover,.deck-card--dragging:active{transform:scale(1.03);box-shadow:0 12px 28px #00000038;border-color:var(--color-primary, #dc2626);z-index:30}.deck-card-title{font-size:1rem;font-weight:600;margin-bottom:.25rem}@media (min-width: 640px){.deck-card-title{font-size:1.125rem;margin-bottom:.5rem}}.deck-card-stats{display:flex;gap:.75rem;color:var(--color-text-light);font-size:.75rem}@media (min-width: 640px){.deck-card-stats{font-size:.875rem}}.note-card{display:flex;flex-direction:column;gap:.5rem;padding:.625rem;background-color:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md)}@media (min-width: 640px){.note-card{flex-direction:row;justify-content:space-between;align-items:flex-start;padding:1rem;gap:1rem}}.note-card-content{flex:1;min-width:0}.note-card-hanzi{font-size:1.125rem;margin-bottom:.125rem}@media (min-width: 640px){.note-card-hanzi{font-size:1.375rem;margin-bottom:.25rem}}.note-card-details{color:var(--color-text-light);font-size:.75rem;word-wrap:break-word}@media (min-width: 640px){.note-card-details{font-size:.875rem}}.note-card-actions{display:flex;gap:.375rem;flex-shrink:0}.note-learning-status{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:.5rem}.card-status-row{display:flex;gap:.5rem;flex-wrap:wrap}.card-status-item{display:flex;align-items:center;gap:.25rem;font-size:.75rem}.card-type-label{color:var(--color-text-light);font-weight:500}.card-status-badge{padding:.125rem .375rem;border-radius:4px;color:#fff;font-size:.6875rem;font-weight:600;min-width:2rem;text-align:center}.note-status-summary{display:flex;gap:1rem;flex-wrap:wrap;font-size:.75rem}@media (min-width: 640px){.note-learning-status{margin-top:.5rem;padding-top:.5rem}.card-status-item{font-size:.8125rem}.card-status-badge{font-size:.75rem;padding:.125rem .5rem}.note-status-summary{font-size:.8125rem}}.stats-card{text-align:center;padding:.625rem}@media (min-width: 640px){.stats-card{padding:1.25rem}}.stats-value{font-size:1.375rem;font-weight:700;color:var(--color-primary)}@media (min-width: 640px){.stats-value{font-size:2rem}}.stats-label{color:var(--color-text-light);margin-top:.125rem;font-size:.625rem;text-transform:uppercase}@media (min-width: 640px){.stats-label{font-size:.75rem;margin-top:.25rem}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;padding:.75rem;z-index:1000}.modal{background-color:var(--color-surface);border-radius:var(--radius-xl);padding:1rem;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}@media (min-width: 640px){.modal-overlay,.modal{padding:1.5rem}}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.modal-title{font-size:1.25rem;font-weight:600}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--color-text-light);display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;margin:-.5rem -.5rem -.5rem 0;line-height:1;border-radius:var(--radius-md)}.modal-close:hover{background:#0000000d;color:var(--color-text)}.modal-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:1.5rem}@media (min-width: 480px){.modal-actions{flex-direction:row;justify-content:flex-end}}.sheet-footer{position:sticky;bottom:calc(-1 * var(--sheet-pad-bottom, var(--sheet-pad, 1rem)));z-index:3;margin-left:calc(-1 * var(--sheet-pad, 1rem));margin-right:calc(-1 * var(--sheet-pad, 1rem));margin-bottom:calc(-1 * var(--sheet-pad-bottom, var(--sheet-pad, 1rem)));padding:.75rem var(--sheet-pad, 1rem) max(var(--sheet-pad, 1rem),env(safe-area-inset-bottom,0px));background:var(--sheet-footer-bg, var(--color-surface));border-top:1px solid transparent}.sheet-footer .btn{min-height:44px}.modal-actions.sheet-footer,.sheet-footer .modal-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}@media (max-width: 479px){.modal-actions.sheet-footer>.btn,.sheet-footer .modal-actions>.btn{flex:1 1 auto}}@supports (animation-timeline: scroll()){.sheet-footer{animation:sheet-footer-edge linear both;animation-timeline:scroll(nearest block)}}@supports not (animation-timeline: scroll()){.sheet-footer{border-top-color:var(--color-border)}}.page-footer{position:sticky;bottom:0;z-index:5;margin-top:1rem;padding:.75rem 0 max(.75rem,env(safe-area-inset-bottom,0px));background:var(--color-background);border-top:1px solid transparent}.card .page-footer{background:var(--color-surface)}html.has-tab-bar .page-footer{bottom:var(--tab-bar-total);padding-bottom:.75rem}@supports (animation-timeline: scroll()){.page-footer{animation:sheet-footer-edge linear both;animation-timeline:scroll(nearest block)}}@keyframes sheet-footer-edge{0%,97%{border-top-color:var(--color-border);box-shadow:0 -6px 12px -8px #00000040}to{border-top-color:transparent;box-shadow:none}}.modal{--sheet-pad: 1rem;max-height:90dvh}@media (min-width: 640px){.modal{--sheet-pad: 1.5rem}}@media (max-width: 639px){.hide-mobile{display:none!important}.btn-block-mobile{width:100%}}button,a,input,select,textarea{touch-action:manipulation}@media (max-width: 639px){input,select,textarea{font-size:16px!important}}@supports (padding: max(0px)){.page{padding-left:max(.5rem,env(safe-area-inset-left));padding-right:max(.5rem,env(safe-area-inset-right))}.header{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}}@supports (padding: max(0px)){@media (min-width: 640px){.page{padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}}}.sentence-breakdown{padding:1rem;background:var(--color-surface);border-radius:var(--radius-lg)}.sentence-breakdown-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--color-border)}.sentence-breakdown-header h3{margin:0;font-size:1.125rem}.sentence-full-display{background:var(--color-background);border-radius:var(--radius-md);padding:1rem;margin-bottom:1rem}.sentence-row{margin-bottom:.5rem;line-height:1.6}.sentence-row:last-child{margin-bottom:0}.sentence-row-hanzi{font-size:1.5rem;font-weight:500;color:var(--color-text)}.sentence-row-pinyin{font-size:1rem;color:var(--color-text-light)}.sentence-row-english{font-size:.9375rem;color:var(--color-text);font-style:italic}@media (min-width: 640px){.sentence-row-hanzi{font-size:2rem}.sentence-row-pinyin{font-size:1.25rem}.sentence-row-english{font-size:1rem}}.sentence-text-segment{transition:all .2s ease}.sentence-chunk{cursor:pointer;border-radius:var(--radius-sm);padding:0 2px}.sentence-chunk:hover{background:#dc26261a}.sentence-chunk-active{background:#dc262633;color:var(--color-primary)}.sentence-row-hanzi .sentence-chunk-active{font-weight:600}.sentence-chunk-detail{background:var(--color-surface);border:2px solid var(--color-primary);border-radius:var(--radius-lg);padding:1rem;margin-bottom:1rem}.sentence-chunk-detail-header{display:flex;justify-content:flex-end;margin-bottom:.5rem}.sentence-chunk-counter{font-size:.75rem;color:var(--color-text-light);background:var(--color-background);padding:.25rem .5rem;border-radius:var(--radius-sm)}.sentence-chunk-content{text-align:center}.sentence-chunk-hanzi{font-size:2.5rem;font-weight:500;color:var(--color-primary);margin-bottom:.25rem}.sentence-chunk-pinyin{font-size:1.25rem;color:var(--color-text-light);margin-bottom:.5rem}.sentence-chunk-english{font-size:1.125rem;color:var(--color-text);font-weight:500}.sentence-chunk-note{font-size:.875rem;color:var(--color-text-light);margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--color-border);font-style:italic}@media (min-width: 640px){.sentence-chunk-hanzi{font-size:3.5rem}.sentence-chunk-pinyin{font-size:1.5rem}.sentence-chunk-english{font-size:1.25rem}}.sentence-navigation{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.sentence-chunk-indicators{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.sentence-chunk-dot{width:10px;height:10px;border-radius:50%;border:none;background:var(--color-border);cursor:pointer;padding:0;transition:all .2s ease}.sentence-chunk-dot:hover{background:var(--color-text-light)}.sentence-chunk-dot.active{background:var(--color-primary);transform:scale(1.2)}.sentence-grammar-notes{margin-top:1rem;padding:1rem;background:#fef9c3;border-radius:var(--radius-md);border-left:4px solid var(--color-secondary)}.sentence-grammar-notes h4{font-size:.875rem;color:var(--color-text);margin-bottom:.5rem}.sentence-grammar-notes p{font-size:.875rem;color:var(--color-text);margin:0}.sentence-analysis-page{max-width:600px;margin:0 auto}.sentence-input-form{margin-bottom:1.5rem}.sentence-input-form .form-group{margin-bottom:1rem}.sentence-input-form textarea{min-height:100px;resize:vertical}.sentence-input-actions{display:flex;gap:.75rem}.sentence-loading{text-align:center;padding:2rem;color:var(--color-text-light)}.sentence-loading-spinner{display:inline-block;width:24px;height:24px;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:.5rem}@keyframes spin{to{transform:rotate(360deg)}}.sentence-error{padding:1rem;background:#fef2f2;border:1px solid var(--color-error);border-radius:var(--radius-md);color:var(--color-error);text-align:center}.sentence-audio-controls{display:flex;gap:.5rem;justify-content:center;margin-bottom:1rem;flex-wrap:wrap}.sentence-audio-controls .btn{font-size:.875rem;padding:.5rem 1rem}.mastery-progress{margin-top:.375rem}.mastery-bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--color-border)}.mastery-segment{min-width:2px}.mastery-mastered{background-color:var(--color-success)}.mastery-learning{background-color:#3b82f6}.mastery-new{background-color:var(--color-border)}.mastery-label{display:flex;justify-content:space-between;font-size:.6875rem;margin-top:.25rem;color:var(--color-text-light)}.mastery-label span:first-child{font-weight:600;color:var(--color-success)}.card-edit-modal-overlay{z-index:1100}.card-edit-modal{max-height:95vh;height:85vh;max-height:95dvh;height:85dvh;display:flex;flex-direction:column;overflow:hidden}.card-edit-content{flex:1;overflow-y:auto;padding-bottom:.5rem}.card-edit-fields{display:flex;flex-direction:column;gap:.375rem;margin-bottom:.5rem}.card-edit-field label{display:block;font-size:.6875rem;font-weight:600;color:var(--color-text-light);margin-bottom:.125rem;text-transform:uppercase;letter-spacing:.03em}.card-edit-field .form-input{width:100%;padding:.25rem .5rem;font-size:.8125rem;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg);color:var(--color-text)}.card-edit-field textarea.form-input{resize:vertical;min-height:2.5rem}.card-edit-audio-section{border-top:1px solid var(--color-border);padding-top:.75rem}.card-edit-audio-section h3{font-size:.875rem;font-weight:600;margin:0 0 .5rem}.card-edit-recordings-list{display:flex;flex-direction:column;gap:.375rem;margin-bottom:.75rem}.card-edit-recording-item{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;background:var(--color-bg);border-radius:var(--radius-md);border:1px solid var(--color-border)}.card-edit-play-btn{min-width:2rem;padding:.25rem!important;font-size:.75rem}.card-edit-recording-info{flex:1;display:flex;align-items:center;gap:.375rem;min-width:0}.card-edit-speaker-name{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-edit-primary-badge{font-size:.625rem;font-weight:600;text-transform:uppercase;color:var(--color-primary);background:#3b82f61a;padding:.0625rem .375rem;border-radius:var(--radius-sm);white-space:nowrap}.card-edit-recording-actions{display:flex;gap:.25rem;flex-shrink:0}.card-edit-confirm-delete{display:flex;gap:.25rem}.btn-xs{padding:.125rem .375rem;font-size:.6875rem;min-height:unset}.card-edit-audio-actions{display:flex;flex-wrap:wrap;gap:.375rem}.card-edit-audio-actions .btn{font-size:.75rem}.card-edit-audio-actions .recording{background:var(--color-error);color:#fff;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.card-edit-footer{display:flex;justify-content:space-between;align-items:center;gap:.375rem;padding-top:.5rem;border-top:1px solid var(--color-border)}.card-edit-footer .btn{font-size:.75rem;padding:.25rem .625rem}.card-edit-footer-right{display:flex;gap:.375rem;margin-left:auto}.card-edit-delete-btn{color:var(--color-error)}.card-edit-delete-confirm{display:flex;align-items:center;gap:.375rem}.card-edit-minimax-options{margin-top:.375rem;padding:.5rem;background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-md);display:flex;flex-direction:column;gap:.375rem}.card-edit-minimax-row{display:flex;align-items:center;gap:.5rem}.card-edit-minimax-row label{font-size:.75rem;font-weight:500;min-width:5rem;color:var(--color-text-light)}.card-edit-voice-select{flex:1;font-size:.75rem!important;padding:.25rem .375rem!important}.card-edit-speed-slider{flex:1;height:1.25rem}@media (min-width: 640px){.card-edit-modal{max-width:550px}.card-edit-field .form-input{font-size:.8125rem}}.search-page{max-width:600px;margin:0 auto;padding:1rem}.search-input-container{position:sticky;top:0;background:var(--color-bg-secondary, #fff);padding:.5rem 0;z-index:10}.search-input{width:100%;padding:.625rem .75rem;font-size:1rem;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg);color:var(--color-text)}.search-input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 2px #3b82f633}.search-results-count{font-size:.75rem;color:var(--color-text-light);padding:.375rem 0}.search-legend{display:flex;align-items:center;gap:.25rem;padding:.25rem 0;font-size:.6875rem;color:var(--color-text-light)}.search-legend .legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.search-legend .legend-text{margin-right:.375rem}.rating-dots{display:flex;gap:1px;flex-shrink:0}.rating-dot{width:5px;height:5px;border-radius:50%}.search-results-list{display:flex;flex-direction:column;gap:.125rem}.search-result-item{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;border-radius:8px;cursor:pointer;transition:background-color .15s}.search-result-item:hover{background:#00000008}.search-result-item:active{background:#0000000f}.search-result-info{display:flex;flex-direction:column;min-width:4rem;max-width:6rem;flex-shrink:0}.search-result-hanzi{font-size:1rem;font-weight:600}.search-result-pinyin{font-size:.6875rem;color:var(--color-text-light)}.search-result-english{font-size:.6875rem;color:var(--color-text-light);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result-sentence-clue{font-size:.625rem;color:var(--color-text-light);opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result-ratings{flex:1;min-width:0}.search-ratings-grid{display:flex;flex-direction:column;gap:.125rem}.search-rating-row{display:flex;align-items:center;gap:.25rem}.search-rating-label{font-size:.5625rem;color:var(--color-text-light);width:2rem;flex-shrink:0}.search-no-reviews{font-size:.75rem;color:var(--color-text-light);opacity:.4}.search-result-mastery{font-size:.75rem;font-weight:600;min-width:2rem;text-align:right;flex-shrink:0}.search-result-actions{display:flex;flex-direction:column;gap:.125rem;flex-shrink:0}.search-action-btn{background:none;border:1px solid var(--color-border);border-radius:4px;cursor:pointer;font-size:.6875rem;padding:.125rem .25rem;color:var(--color-text-light);transition:all .15s;line-height:1.2}.search-action-btn:hover{background:#0000000d;color:var(--color-text)}.search-deck-badge{font-size:.625rem;white-space:nowrap;max-width:4rem;overflow:hidden;text-overflow:ellipsis;display:block}.search-action-edit{font-size:.75rem}.search-action-delete{color:var(--color-text-light)}.search-action-delete:hover{color:#ef4444;border-color:#ef4444}.search-action-delete.confirm{background:#ef4444;color:#fff;border-color:#ef4444;font-weight:700}.search-empty{text-align:center;padding:2rem 1rem;color:var(--color-text-light)}.deck-notes-progress-list{display:flex;flex-direction:column;gap:.125rem}.deck-note-progress-item{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;border-radius:var(--radius-md);cursor:pointer;transition:background-color .15s}.deck-note-progress-item:hover{background:#0000000a}.deck-note-progress-item:active{background:#00000012}.deck-note-progress-item.selectable{cursor:pointer}.deck-note-checkbox{flex-shrink:0}.deck-note-info{display:flex;flex-direction:column;min-width:4rem;max-width:6rem;flex-shrink:0}.deck-note-hanzi{font-size:1rem;font-weight:600;line-height:1.2}.deck-note-pinyin{font-size:.6875rem;color:var(--color-text-light);line-height:1.2}.deck-note-english{font-size:.6875rem;color:var(--color-text-light);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.deck-note-sentence-clue{font-size:.625rem;color:var(--color-text-light);opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.deck-note-ratings{flex:1;min-width:0}.deck-note-ratings-grid{display:flex;flex-direction:column;gap:.125rem}.deck-note-rating-row{display:flex;align-items:center;gap:.25rem}.deck-note-rating-label{font-size:.625rem;color:var(--color-text-light);min-width:1.75rem}.deck-note-no-reviews{font-size:.75rem;color:var(--color-text-light)}.deck-note-mastery{font-size:.75rem;font-weight:600;min-width:2rem;text-align:right;flex-shrink:0}.audio-replay-fab{position:fixed;bottom:5rem;right:1.5rem;width:56px;height:56px;border-radius:50%;background:var(--color-primary);color:#fff;border:none;cursor:pointer;z-index:490;display:flex;align-items:center;justify-content:center;font-size:1.5rem;line-height:1;box-shadow:0 3px 10px #0000004d;transition:opacity .2s,transform .2s;touch-action:manipulation;user-select:none;-webkit-user-select:none}.audio-replay-fab:hover{transform:scale(1.08)}.audio-replay-fab:active{transform:scale(.93)}.audio-replay-fab--playing{opacity:.5;cursor:not-allowed}.feedback-fab{position:fixed;width:48px;height:48px;border-radius:50%;background:var(--color-primary);color:#fff;border:none;cursor:grab;z-index:500;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #00000040;transition:opacity .2s,transform .2s;touch-action:none;user-select:none;-webkit-user-select:none}.feedback-fab:hover{transform:scale(1.1)}.feedback-fab:active{cursor:grabbing;transform:scale(.95)}.feedback-fab-dragging{cursor:grabbing;transition:none}.feedback-fab-subtle{opacity:.3}.feedback-fab-subtle:hover{opacity:1}.feedback-fab-icon{font-size:1.25rem;line-height:1}.feedback-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:0}.feedback-modal{background:#fff;border-radius:1rem 1rem 0 0;width:100%;max-width:500px;padding:1.25rem;padding-bottom:max(1.25rem,env(safe-area-inset-bottom));max-height:70vh;max-height:70dvh;overflow-y:auto;--sheet-pad: 1.25rem;--sheet-pad-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px))}.feedback-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.feedback-modal-header h3{margin:0;font-size:1.1rem}.feedback-textarea{width:100%;border:1px solid var(--color-border);border-radius:.5rem;padding:.75rem;font-size:1rem;font-family:inherit;resize:vertical;min-height:100px;box-sizing:border-box}.feedback-textarea:focus{outline:none;border-color:var(--color-primary)}.feedback-context{font-size:.75rem;color:var(--color-text-light);margin:.5rem 0}.feedback-options{margin:.75rem 0}.feedback-checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--color-text);cursor:pointer;-webkit-user-select:none;user-select:none}.feedback-checkbox-label input[type=checkbox]{cursor:pointer;width:1rem;height:1rem}.feedback-checkbox-label:hover{color:var(--color-primary)}.feedback-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.75rem}.feedback-success{text-align:center;padding:1.5rem 0;color:#16a34a;font-weight:500}@media (min-width: 768px){.feedback-modal-overlay{align-items:center;padding:1rem}.feedback-modal{border-radius:1rem;padding-bottom:1.25rem}}.feedback-screenshot-btn{position:relative;background:none;border:none;padding:0;cursor:pointer;display:inline-block}.feedback-screenshot-btn:hover .feedback-screenshot-hint{opacity:1}.feedback-screenshot-hint{display:block;font-size:.7rem;color:var(--color-text-light);margin-top:.25rem;opacity:.6;transition:opacity .15s}.feedback-annotated-badge{position:absolute;top:4px;right:4px;background:var(--color-primary);color:#fff;font-size:.6rem;font-weight:600;padding:1px 5px;border-radius:3px;text-transform:uppercase;letter-spacing:.02em}.annotation-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;background:#111;display:flex;flex-direction:column;touch-action:none}.annotation-toolbar{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;background:#222;overflow-x:auto;flex-shrink:0}.annotation-toolbar-group{display:flex;align-items:center;gap:.25rem}.annotation-color-btn{width:28px;height:28px;border-radius:50%;cursor:pointer;padding:0;flex-shrink:0}.annotation-color-btn.active{outline:2px solid #fff;outline-offset:2px}.annotation-width-btn{width:32px;height:32px;border-radius:4px;background:transparent;border:1px solid #555;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.annotation-width-btn.active{background:#444;border-color:#fff}.annotation-width-dot{display:block;border-radius:50%;background:#fff}.annotation-tool-btn{background:#333;color:#eee;border:1px solid #555;border-radius:4px;padding:.25rem .5rem;font-size:.8rem;cursor:pointer;flex-shrink:0}.annotation-tool-btn:hover:not(:disabled){background:#444}.annotation-tool-btn:disabled{opacity:.4;cursor:default}.annotation-canvas-container{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:0}.annotation-canvas{cursor:crosshair;display:block;max-width:100%;max-height:100%}.annotation-bottom-bar{display:flex;justify-content:flex-end;gap:.5rem;padding:.5rem .75rem;padding-bottom:max(.5rem,env(safe-area-inset-bottom));background:#222;flex-shrink:0}.feature-requests-list{display:flex;flex-direction:column;gap:.75rem;max-height:320px;overflow-y:auto;overscroll-behavior:contain}.feature-request-card{border:1px solid var(--color-border);border-radius:.5rem;padding:.75rem;cursor:pointer;transition:background .15s}.feature-request-card:hover{background:var(--color-background)}.feature-request-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.feature-request-content{font-size:.9rem;color:var(--color-text);line-height:1.4;white-space:pre-wrap}.feature-request-meta{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.75rem;color:var(--color-text-light)}.feature-request-status{display:inline-block;padding:.15rem .5rem;border-radius:1rem;font-size:.7rem;font-weight:600;text-transform:uppercase}.feature-request-status.status-new{background:#dbeafe;color:#1d4ed8}.feature-request-status.status-in_progress{background:#fef3c7;color:#92400e}.feature-request-status.status-agent_working{background:#ede9fe;color:#5b21b6}.feature-request-status.status-done{background:#d1fae5;color:#065f46}.feature-request-status.status-declined{background:#f3f4f6;color:#6b7280}.feature-request-detail-modal .feedback-textarea{min-height:60px}.feature-request-comments{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.feature-request-comment{border-left:3px solid var(--color-border);padding-left:.75rem}.feature-request-comment-author{font-size:.75rem;font-weight:600;color:var(--color-text-light);margin-bottom:.25rem}.feature-request-comment-content{font-size:.9rem;line-height:1.4;white-space:pre-wrap}.diff-char-clickable{cursor:pointer;transition:background-color .15s}.diff-char-clickable:hover{opacity:.8}.hanzi-char-clickable{cursor:pointer;transition:opacity .15s}.hanzi-char-clickable:hover{opacity:.7}:root{--tab-bar-height: 56px;--tab-bar-total: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0px))}@media (max-height: 460px){:root{--tab-bar-height: 48px}}html.has-tab-bar body{padding-bottom:var(--tab-bar-total)}html.has-tab-bar{scroll-padding-bottom:calc(var(--tab-bar-total) + 12px)}html.has-tab-bar .sync-badge{bottom:calc(var(--tab-bar-total) + .5rem)}.decks-search{position:sticky;top:0;z-index:10;background:var(--color-background);padding:.25rem 0 .5rem;margin-bottom:.25rem}.decks-search .search-input{min-height:44px;background:var(--color-surface)}@media (min-width: 640px){.decks-search{padding-bottom:.75rem}}.sentence-set-round-label{font-size:.75rem;font-weight:600;color:var(--color-text-light);white-space:nowrap}.sentence-set-round-label.is-right{color:#15803d}.sentence-set-round-label.is-close{color:#a16207}.sentence-set-round-label.is-wrong{color:#b91c1c}:root[data-theme=dark] .sentence-set-round-label.is-right{color:#4ade80}:root[data-theme=dark] .sentence-set-round-label.is-close{color:#facc15}:root[data-theme=dark] .sentence-set-round-label.is-wrong{color:#f87171}.feedback-kind-chips{display:flex;gap:.5rem;margin-bottom:.75rem}.feedback-kind-chip{flex:1;min-height:44px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface, #fff);color:var(--color-text);font-size:.95rem;cursor:pointer}.feedback-kind-chip.is-on{border-color:var(--color-primary);background:var(--color-primary);color:#fff;font-weight:600}.feedback-shot{margin-top:.75rem;display:flex;flex-direction:column;gap:.4rem}.feedback-shot-img{display:block;max-width:100%;max-height:34dvh;border:1px solid var(--color-border);border-radius:.5rem}.feedback-shot-note{margin:0;font-size:.75rem;color:var(--color-text-light)}.feedback-logs{margin-top:.6rem}.feature-request-body{display:flex;gap:.75rem;align-items:flex-start}.feature-request-body .feature-request-content{flex:1;min-width:0}.feedback-thumb{width:56px;height:96px;object-fit:cover;object-position:top;border-radius:.375rem;border:1px solid var(--color-border);flex-shrink:0;background:var(--color-background, #f3f4f6)}.feature-request-kind{font-size:.75rem;padding:.1rem .5rem;border-radius:999px;background:#eef2ff;color:#3730a3}.feature-request-kind.kind-bug{background:#fef2f2;color:#b91c1c}.feature-request-author{font-size:.75rem;color:var(--color-text-light);margin-left:auto}.feature-request-context{font-size:.8rem;color:var(--color-text-light);margin-top:.35rem}.feature-requests-scope{display:inline-flex;border:1px solid var(--color-border);border-radius:999px;overflow:hidden;margin-bottom:.75rem}.feature-requests-scope button{min-height:36px;padding:0 1rem;border:none;background:transparent;color:var(--color-text);cursor:pointer}.feature-requests-scope button.is-on{background:var(--color-primary);color:#fff}.feature-request-card .feature-request-header{justify-content:flex-start;gap:.5rem}.feedback-modal textarea,.feedback-modal input{font-family:inherit}.result-surface{--rs-tone: var(--result-pending);--rs-ink: var(--result-pending-ink);border:1px solid color-mix(in srgb,var(--rs-tone) 35%,transparent);background:color-mix(in srgb,var(--rs-tone) 8%,transparent);border-radius:10px}.result-surface--right{--rs-tone: var(--result-right);--rs-ink: var(--result-right-ink)}.result-surface--close{--rs-tone: var(--result-close);--rs-ink: var(--result-close-ink)}.result-surface--wrong{--rs-tone: var(--result-wrong);--rs-ink: var(--result-wrong-ink)}.result-surface--pending{--rs-tone: var(--result-pending);--rs-ink: var(--result-pending-ink)}.result-chip{display:inline-flex;align-items:center;gap:.2rem;padding:.125rem .5rem .125rem .375rem;border-radius:999px;background:color-mix(in srgb,var(--rs-tone) 16%,transparent);color:var(--rs-ink);font-size:.75rem;font-weight:600;white-space:nowrap}.result-action{position:relative;width:36px;height:36px;flex:none;display:grid;place-items:center;padding:0;border:1px solid var(--color-border);border-radius:50%;background:var(--color-surface);color:var(--color-text);cursor:pointer}.result-action:after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px}.result-action svg{width:18px;height:18px}
