:root{--bg:#f4f6f8;--surface:#fff;--surface-2:#eef1f4;--surface-3:#e3e8ec;--border:#d9dfe5;--text:#17202a;--text-muted:#5d6b78;--primary:#0f766e;--primary-hover:#115e59;--primary-soft:#ccfbf1;--primary-soft-strong:#5eead4;--on-primary:#fff;--accent:#d97706;--know:#15803d;--know-soft:#dcfce7;--learning:#c2410c;--learning-soft:#ffedd5;--danger:#b91c1c;--danger-soft:#fee2e2;--new:#94a3b8;--violet:#7c3aed;--violet-soft:#ede9fe;--orange:#c2410c;--orange-soft:#ffedd5;--pink:#be185d;--pink-soft:#fce7f3;--shadow:0 1px 2px #0f172a0f, 0 4px 16px #0f172a0f;--shadow-lg:0 10px 40px #0f172a24;--radius:12px;--radius-lg:18px;--font:"Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e141b;--surface:#161e27;--surface-2:#1e2833;--surface-3:#283441;--border:#2c3846;--text:#e6edf3;--text-muted:#94a3b2;--primary:#2dd4bf;--primary-hover:#5eead4;--primary-soft:#123c3a;--primary-soft-strong:#0f766e;--on-primary:#06201d;--accent:#fbbf24;--know:#4ade80;--know-soft:#14331f;--learning:#fb923c;--learning-soft:#3b2412;--danger:#f87171;--danger-soft:#3b1515;--new:#64748b;--violet:#a78bfa;--violet-soft:#2a1f47;--orange:#fb923c;--orange-soft:#3b2412;--pink:#f472b6;--pink-soft:#3d1830;--shadow:0 1px 2px #0000004d, 0 4px 16px #00000040;--shadow-lg:0 10px 40px #00000073;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0e141b;--surface:#161e27;--surface-2:#1e2833;--surface-3:#283441;--border:#2c3846;--text:#e6edf3;--text-muted:#94a3b2;--primary:#2dd4bf;--primary-hover:#5eead4;--primary-soft:#123c3a;--primary-soft-strong:#0f766e;--on-primary:#06201d;--accent:#fbbf24;--know:#4ade80;--know-soft:#14331f;--learning:#fb923c;--learning-soft:#3b2412;--danger:#f87171;--danger-soft:#3b1515;--new:#64748b;--violet:#a78bfa;--violet-soft:#2a1f47;--orange:#fb923c;--orange-soft:#3b2412;--pink:#f472b6;--pink-soft:#3d1830;--shadow:0 1px 2px #0000004d, 0 4px 16px #00000040;--shadow-lg:0 10px 40px #00000073;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.6}#root{flex-direction:column;min-height:100dvh;display:flex}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0;line-height:1.3}p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:3px solid var(--primary);outline-offset:2px}kbd{border:1px solid var(--border);background:var(--surface);border-bottom-width:2px;border-radius:6px;padding:0 6px;font-family:inherit;font-size:.8em;display:inline-block}.page{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:32px 24px 64px}.stack{flex-direction:column;gap:16px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.stack-lg{flex-direction:column;gap:40px;display:flex}.row{align-items:center;gap:8px;display:flex}.row.wrap{flex-wrap:wrap}.row-end{justify-content:flex-end}.center-row{justify-content:center}.grow{flex:1;min-width:0}.right{text-align:right}.center{text-align:center;align-items:center}.muted{color:var(--text-muted)}.lead{font-size:1.15rem}.text-know{color:var(--know)}.text-learning{color:var(--learning)}.text-accent{color:var(--accent)}.page-title{font-size:1.9rem;font-weight:800}.section-title{font-size:1.2rem;font-weight:700}.with-icon{align-items:center;gap:10px;display:flex}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;display:flex}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:24px}.footer{text-align:center;color:var(--text-muted);border-top:1px solid var(--border);padding:24px;font-size:.875rem}.btn{white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:10px 18px;font-weight:700;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,transform 50ms;display:inline-flex}.btn:hover{text-decoration:none}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.55}.btn-primary{background:var(--primary);color:var(--on-primary)}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover:not(:disabled){background:var(--surface-2)}.btn-ghost{color:var(--text);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-sm{padding:7px 14px;font-size:.875rem}.btn-lg{padding:13px 24px;font-size:1.05rem}.btn-block{width:100%}.icon-btn{width:40px;height:40px;color:var(--text-muted);background:0 0;border:1px solid #0000;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover:not(:disabled){background:var(--surface-2);color:var(--text);text-decoration:none}.icon-btn:disabled{opacity:.4}.icon-btn.bordered{border-color:var(--border);background:var(--surface)}.icon-btn.danger:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.icon-btn.is-on{color:var(--primary);background:var(--primary-soft)}.star-btn.is-active{color:var(--accent)}.chip-toggle{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text-muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:.875rem;font-weight:700;display:inline-flex}.chip-toggle:hover{background:var(--surface-2);color:var(--text)}.chip-toggle.is-on{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, var(--surface))}.round-btn{border:1px solid var(--border);background:var(--surface);width:44px;height:44px;color:var(--text);border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.round-btn:hover:not(:disabled){background:var(--surface-2)}.round-btn:disabled{opacity:.4}.round-btn-lg{width:60px;height:60px}.autoplay-btn.is-playing,.autoplay-btn.is-playing:hover:not(:disabled){background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.rate-slider{width:150px;accent-color:var(--primary);flex-shrink:0}.round-btn.tone-learning{color:var(--learning);border-color:var(--learning)}.round-btn.tone-learning:hover{background:var(--learning-soft)}.round-btn.tone-know{color:var(--know);border-color:var(--know)}.round-btn.tone-know:hover{background:var(--know-soft)}.field{flex-direction:column;gap:6px;font-weight:600;display:flex}.field>span:first-child{font-size:.9rem}.field small{font-weight:400}.field.compact{min-width:160px}.input,.select{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;padding:11px 14px;font-weight:400;transition:border-color .15s,box-shadow .15s}.input:focus,.select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}.input:disabled{background:var(--surface-2)}textarea.input{resize:vertical}.input-lg{padding:13px 16px;font-size:1.15rem}.input-sm{width:90px;padding:5px 10px}.select-sm{width:auto;padding:7px 12px;font-size:.9rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem}.field.has-error .input{border-color:var(--danger)}.form-error{color:var(--danger);background:var(--danger-soft);border-radius:var(--radius);padding:10px 14px;font-weight:600}.form-error.inline{padding:6px 12px;font-size:.9rem}.field-error{color:var(--danger);font-size:.875rem;font-weight:600}.hint{background:var(--primary-soft);border-radius:var(--radius);text-align:center;padding:8px 12px;font-size:.9rem}.input-with-icon{max-width:360px;position:relative}.input-with-icon svg{color:var(--text-muted);position:absolute;top:50%;left:14px;transform:translateY(-50%)}.input-with-icon .input{padding-left:42px}.switch{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;font-weight:500;display:inline-flex}.switch input{opacity:0;pointer-events:none;position:absolute}.switch-track{background:var(--surface-3);border-radius:999px;flex-shrink:0;width:42px;height:24px;transition:background .15s;position:relative}.switch-thumb{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch input:checked+.switch-track{background:var(--primary)}.switch input:checked+.switch-track .switch-thumb{transform:translate(18px)}.switch input:focus-visible+.switch-track{outline:3px solid var(--primary);outline-offset:2px}.switch.is-disabled{opacity:.5;cursor:not-allowed}.segmented{background:var(--surface-2);border-radius:999px;flex-wrap:wrap;gap:2px;padding:4px;display:inline-flex}.segmented button{color:var(--text-muted);background:0 0;border:0;border-radius:999px;padding:6px 14px;font-weight:600}.segmented button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.segmented button:disabled{opacity:.5}.radio-group{border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:10px 14px;display:flex}.radio-group legend{padding:0 4px;font-size:.9rem;font-weight:700}.radio-group label{align-items:center;gap:4px;display:inline-flex}.tabs{border-bottom:1px solid var(--border);gap:24px;display:flex}.tabs button{color:var(--text-muted);background:0 0;border:0;border-bottom:3px solid #0000;margin-bottom:-1px;padding:10px 2px;font-weight:700}.tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--primary)}.navbar{z-index:50;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0}.navbar-inner{align-items:center;gap:20px;max-width:1280px;height:64px;margin:0 auto;padding:0 20px;display:flex}.brand{color:var(--text);align-items:center;gap:8px;font-size:1.2rem;font-weight:800;display:flex}.brand:hover{text-decoration:none}.nav-links{gap:4px;display:flex}.nav-links a{color:var(--text-muted);border-radius:999px;padding:8px 12px;font-weight:600}.nav-links a:hover{background:var(--surface-2);text-decoration:none}.nav-links a.active{color:var(--text);background:var(--surface-2)}.nav-search{background:var(--surface-2);min-width:0;max-width:480px;height:42px;color:var(--text-muted);border:1px solid #0000;border-radius:999px;flex:1;align-items:center;gap:8px;padding:0 14px;display:flex}.nav-search:focus-within{border-color:var(--primary);background:var(--surface)}.nav-search input{min-width:0;color:var(--text);background:0 0;border:0;outline:none;flex:1}.nav-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.menu{position:relative}.avatar-btn{background:0 0;border:0;border-radius:999px;padding:0;display:flex}.menu-pop{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:220px;box-shadow:var(--shadow-lg);z-index:60;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 8px);right:0}.menu-pop-left{left:0;right:auto}.menu-pop button,.menu-pop a{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-weight:600;display:flex}.menu-pop button:hover,.menu-pop a:hover{background:var(--surface-2);text-decoration:none}.menu-head{border-bottom:1px solid var(--border);flex-direction:column;margin-bottom:4px;padding:8px 12px 10px;display:flex}.menu-head span{color:var(--text-muted);font-size:.85rem}.avatar{color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.avatar-sm{width:26px;height:26px;font-size:.8rem}.avatar-md{width:36px;height:36px;font-size:1rem}.avatar-xl{width:84px;height:84px;font-size:2.2rem}.state{text-align:center;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:64px 16px;display:flex}.state h1,.state h2{color:var(--text)}.spinner{border:3px solid var(--surface-3);border-top-color:var(--primary);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;border:2px dashed var(--border);border-radius:var(--radius-lg);flex-direction:column;align-items:center;gap:10px;padding:48px 16px;display:flex}.empty-icon{color:var(--text-muted)}.toaster{z-index:200;pointer-events:none;flex-direction:column;gap:8px;width:min(92vw,420px);display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{border-radius:var(--radius);background:var(--text);color:var(--bg);box-shadow:var(--shadow-lg);padding:12px 18px;font-weight:600;animation:.2s ease-out toast-in}.toast-success{background:var(--know);color:#fff}.toast-error{background:var(--danger);color:#fff}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.update-changes{color:var(--text-muted);flex-direction:column;gap:4px;margin:0;padding-left:1.3em;display:flex}.update-prompt{top:calc(10px + env(safe-area-inset-top));z-index:250;background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-lg);border-radius:999px;align-items:center;gap:2px;max-width:calc(100vw - 24px);padding:4px 4px 4px 6px;animation:.2s ease-out toast-in;display:flex;position:fixed;left:50%;transform:translate(-50%)}.update-prompt-main{color:inherit;white-space:nowrap;background:0 0;border:0;border-radius:999px;align-items:center;gap:8px;padding:6px 10px;font-weight:700;display:inline-flex}.update-prompt .icon-btn{width:32px;height:32px;color:inherit}.update-prompt .icon-btn:hover{color:inherit;background:#ffffff2e}.modal-backdrop{z-index:100;background:#0a0f148c;justify-content:center;align-items:flex-start;padding:8vh 16px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--surface);border-radius:var(--radius-lg);width:100%;box-shadow:var(--shadow-lg);animation:.15s ease-out toast-in}.modal-header{justify-content:space-between;align-items:center;padding:18px 20px 0 24px;display:flex}.modal-header h2{font-size:1.25rem}.modal-body{padding:16px 24px 24px}.modal-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:16px 24px;display:flex}.choice-list{flex-direction:column;gap:8px;max-height:50vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.choice-list li{border:1px solid var(--border);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.set-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;display:grid}.set-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .15s,border-color .15s;position:relative}.set-card:hover{border-color:var(--primary);transform:translateY(-2px)}.set-card-link{height:100%;color:var(--text);flex-direction:column;align-items:flex-start;gap:8px;padding:18px 18px 16px;display:flex}.set-card-link:hover{text-decoration:none}.set-card-title{overflow-wrap:anywhere;align-items:center;gap:6px;padding-right:32px;font-size:1.05rem;font-weight:700;display:flex}.set-card-desc{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.9rem;display:-webkit-box;overflow:hidden}.set-card-author{align-items:center;gap:8px;margin-top:auto;padding-top:8px;font-size:.875rem;font-weight:600;display:flex}.set-card-action{position:absolute;top:8px;right:8px}.pill{background:var(--surface-2);color:var(--text-muted);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700;display:inline-block}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;display:grid}.folder-card{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);box-shadow:var(--shadow);align-items:center;gap:14px;padding:18px;display:flex}.folder-card:hover{border-color:var(--primary);text-decoration:none}.folder-card div{flex-direction:column;display:flex}.folder-card span{font-size:.85rem}.hero{grid-template-columns:1.2fr 1fr;align-items:center;gap:40px;padding:24px 0;display:grid}.hero h1{margin-bottom:16px;font-size:clamp(2rem,4.5vw,3.2rem);font-weight:900}.hero p{color:var(--text-muted);margin-bottom:28px;font-size:1.15rem}.hero-cards{height:260px;position:relative}.hero-card{border-radius:var(--radius-lg);width:78%;height:190px;box-shadow:var(--shadow-lg);justify-content:center;align-items:center;font-size:1.8rem;font-weight:800;display:flex;position:absolute}.hero-card-back{background:var(--primary-soft);color:var(--primary);top:0;right:0;transform:rotate(5deg)}.hero-card-front{background:var(--surface);border:1px solid var(--border);bottom:0;left:0;transform:rotate(-3deg)}.feature-grid{grid-template-columns:repeat(4,1fr);gap:16px;display:grid}.feature{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;gap:8px;padding:22px;display:flex}.mode-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.mode-icon-lg{border-radius:14px;width:48px;height:48px}.mode-icon-xl{border-radius:20px;width:72px;height:72px}.mode-icon.tone-teal{background:var(--primary-soft);color:var(--primary)}.mode-icon.tone-violet{background:var(--violet-soft);color:var(--violet)}.mode-icon.tone-orange{background:var(--orange-soft);color:var(--orange)}.mode-icon.tone-pink{background:var(--pink-soft);color:var(--pink)}.continue-card{border:1px solid var(--primary);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);box-shadow:var(--shadow);align-items:center;gap:16px;padding:16px 18px;display:flex}.continue-card:hover{background:var(--surface-2);text-decoration:none}.continue-card-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.continue-card-body strong{text-overflow:ellipsis;white-space:nowrap;font-size:1.1rem;overflow:hidden}.continue-card-progress{align-items:center;gap:10px;font-size:.85rem;display:flex}.continue-card-progress .progress{flex:1}@media (width<=640px){.continue-card .mode-icon{display:none}}.auth-page{justify-content:center;padding:24px 0;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;max-width:440px;box-shadow:var(--shadow);flex-direction:column;gap:18px;padding:32px;display:flex}.auth-card h1{font-size:1.7rem;font-weight:800}.profile-head{align-items:center;gap:20px;display:flex}.set-detail{max-width:880px;margin:0 auto}.mode-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.mode-card{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);color:var(--text);border-bottom-width:3px;align-items:center;gap:10px;padding:14px 16px;font-weight:700;transition:transform .15s,border-color .15s;display:flex}.mode-card:hover{border-color:var(--primary);text-decoration:none;transform:translateY(-2px)}.preview{align-items:stretch}.card-nav{grid-template-columns:40px 1fr 40px;place-items:center;display:grid}.counter{text-align:center;font-variant-numeric:tabular-nums;min-width:72px;font-weight:700}.set-meta{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:20px;display:flex}.set-meta>.row{margin-left:auto}.author{color:var(--text);align-items:center;gap:10px;display:flex}.author:hover{text-decoration:none}.author>span{flex-direction:column;line-height:1.3;display:flex}.author small{font-size:.75rem}.term-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.term-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;align-items:center;gap:20px;padding:16px 18px;display:grid}.term-note{border-radius:var(--radius);background:var(--surface-2);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;grid-column:1/-1;padding:10px 14px;font-size:.95rem}.term-cell{overflow-wrap:anywhere;white-space:pre-wrap}.term-word{border-right:1px solid var(--border);align-items:center;gap:10px;padding-right:20px;font-weight:600;display:flex}.term-tools{display:flex}.dot{border-radius:50%;flex-shrink:0;width:10px;height:10px;display:inline-block}.dot-new{background:var(--new)}.dot-learning{background:var(--learning)}.dot-mastered{background:var(--know)}.mastery{flex-direction:column;flex:1;gap:8px;display:flex}.mastery-bar{background:var(--surface-3);border-radius:999px;height:10px;display:flex;overflow:hidden}.mastery-bar .seg{transition:width .3s}.seg-mastered{background:var(--know)}.seg-learning{background:var(--learning)}.mastery-legend{color:var(--text-muted);flex-wrap:wrap;gap:16px;font-size:.875rem;display:flex}.mastery-legend span{align-items:center;gap:6px;display:inline-flex}.progress{background:var(--surface-3);border-radius:999px;height:6px;overflow:hidden}.progress-fill{background:var(--primary);border-radius:999px;height:100%;transition:width .25s}.flashcard{perspective:1600px;cursor:pointer;border-radius:var(--radius-lg);outline-offset:4px}.flashcard-lg{height:min(52vh,420px)}.flashcard-md{height:320px}.flashcard-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.45,0,.55,1);position:relative}.flashcard.is-flipped .flashcard-inner{transform:rotateX(180deg)}.flashcard-face{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);backface-visibility:hidden;flex-direction:column;padding:16px 20px;display:flex;position:absolute;inset:0}.flashcard-back{transform:rotateX(180deg)}.flashcard:not(.is-flipped) .flashcard-back,.flashcard.is-flipped .flashcard-front{pointer-events:none}.flashcard-front,.flashcard-back{transition:visibility 0s linear .225s}.flashcard:not(.is-flipped) .flashcard-back,.flashcard.is-flipped .flashcard-front{visibility:hidden}.flashcard-tools{justify-content:space-between;align-items:center;display:flex}.flashcard-label{color:var(--text-muted);font-size:.8rem;font-weight:700}.flashcard-tool-buttons{display:flex}.flashcard-text{text-align:center;overflow-wrap:anywhere;white-space:pre-wrap;flex:1;justify-content:center;align-items:center;padding:8px 16px 32px;font-size:clamp(1.5rem,3.4vw,2.3rem);font-weight:600;display:flex;overflow-y:auto}.flashcard-text.is-long{font-size:1.2rem}.flashcard-face.has-extras-open .flashcard-text{padding-bottom:8px}.note-btn{border:1px solid var(--border);background:var(--surface);height:32px;color:var(--text-muted);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;margin:0 2px;padding:0 10px;font-size:.8rem;font-weight:700;display:inline-flex}.note-btn:hover{color:var(--text);background:var(--surface-2)}.note-btn.is-on{color:var(--primary);border-color:var(--primary);background:var(--primary-soft)}.card-extras{z-index:2;cursor:auto;text-align:left;flex-direction:column;flex:none;gap:8px;height:55%;margin-top:8px;animation:.15s ease-out toast-in;display:flex;position:relative;overflow-y:auto}.extra-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);box-shadow:var(--shadow);flex:none}.extra-panel-head{color:var(--text-muted);justify-content:space-between;align-items:center;padding:2px 2px 0 14px;font-size:.8rem;font-weight:700;display:flex}.extra-panel-body{padding:2px 14px 12px;font-size:1rem;line-height:1.6}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}.example-list{flex-direction:column;gap:6px;margin:0;padding-left:1.4em;display:flex}.example-sentence{overflow-wrap:anywhere;align-items:center;gap:2px;display:flex}.example-sentence .icon-btn{width:32px;height:32px}.example-translation{color:var(--text-muted);font-size:.9rem}.explainable{cursor:text}.word-chip{cursor:pointer;text-underline-offset:4px;border-radius:4px;-webkit-text-decoration:underline dotted #0000;text-decoration:underline dotted #0000;transition:background .1s,text-decoration-color .1s}.word-chip:hover,.word-chip:focus-visible{background:var(--primary-soft);-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}@media (hover:none){.word-chip{-webkit-text-decoration-color:var(--border);text-decoration-color:var(--border)}}.explain{flex-direction:column;gap:12px;display:flex}.explain[hidden]{display:none}.peek-back{align-self:flex-start}.sentence-explain-btn{border:1px solid var(--primary);color:var(--primary);vertical-align:middle;cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:2px;margin:0 4px;padding:1px 8px;font-size:.75rem;font-weight:700;line-height:1.6;display:inline-flex}.sentence-explain-btn:hover:not(:disabled){background:var(--primary-soft)}.sentence-explain-btn:disabled{border-color:var(--border);color:var(--text-muted);cursor:default}.explain-result dd.explain-list{flex-direction:column;align-items:flex-start;gap:6px}.explain-sentence{flex-wrap:wrap;align-items:center;font-size:1.1rem;line-height:1.7;display:flex}.explain-sentence mark{background:var(--primary-soft);color:var(--text);border-radius:4px;padding:0 2px;font-weight:700}.explain-result{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;margin:0;display:flex}.explain-result>div{border-bottom:1px solid var(--border);grid-template-columns:5em 1fr;gap:12px;padding:10px 14px;display:grid}.explain-result>div:last-child{border-bottom:0}.explain-result dt{color:var(--text-muted);font-weight:700}.explain-result dd{overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:2px;margin:0;display:flex}.ai-chat{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding-top:12px;display:flex}.ai-chat-suggestions{flex-wrap:wrap;gap:6px;display:flex}.ai-chat-suggestions .chip-toggle{white-space:normal;text-align:left;height:auto;padding:6px 12px}.ai-chat-messages{flex-direction:column;gap:8px;display:flex}.chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;max-width:88%;padding:10px 14px;line-height:1.6}.chat-user{background:var(--primary);color:var(--on-primary);border-bottom-right-radius:4px;align-self:flex-end}.chat-assistant{background:var(--surface-2);border-bottom-left-radius:4px;align-self:flex-start}.chat-row{flex-direction:column;gap:2px;display:flex}.chat-row-user{align-items:flex-end}.chat-row-assistant{align-items:flex-start}.chat-origin{max-width:88%;color:var(--text-muted);overflow-wrap:anywhere;font-size:.75rem}.chat-bubble.is-pending{opacity:.7}.ai-chat-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.ai-chat-head .btn{flex-shrink:0}.chat-bubble.is-typing{color:var(--text-muted);animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.5}}.ai-chat-input{align-items:flex-end;gap:8px;display:flex}.ai-chat-input .auto-textarea.input{border:1px solid var(--border);border-radius:var(--radius);flex:1;min-height:44px;max-height:160px;padding:10px 14px;font-size:1rem;overflow-y:auto}.ai-chat-input .auto-textarea.input:focus{border-color:var(--primary)}.ai-chat-input .btn{height:44px}.explain-footer{align-items:center;gap:4px;display:flex}.breadcrumb{flex-wrap:wrap;align-items:center;gap:2px;font-size:.9rem;font-weight:600;display:flex}.breadcrumb a{color:var(--text-muted)}.breadcrumb-item{color:var(--text-muted);align-items:center;gap:2px;display:inline-flex}.offline-banner{z-index:60;background:var(--accent);color:#1f1300;text-align:center;justify-content:center;align-items:center;gap:6px;padding:6px 16px;font-size:.85rem;font-weight:700;display:flex;position:sticky;top:0}.group-bar{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.group-chips{scrollbar-width:thin;gap:6px;max-width:100%;padding-bottom:4px;display:flex;overflow-x:auto}.group-chips .chip-toggle{flex-shrink:0}.study-group-name{color:var(--text-muted);font-weight:400}.back-link{color:var(--text-muted);align-items:center;gap:2px;font-weight:600;display:inline-flex}.btn.danger{color:var(--danger)}.group-size{gap:6px;font-weight:600}.group-size .input{width:5.5em;padding:8px 10px}.group-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.group-row{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);flex-direction:column;gap:6px;padding:12px 14px;display:flex}.group-row.is-selected{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.group-row.is-ungrouped{border-style:dashed}.group-row-head{align-items:center;gap:10px;display:flex}.group-row-head input[type=checkbox]{flex-shrink:0;width:20px;height:20px}.group-name{flex:1;min-width:0;padding:8px 12px;font-weight:700}.group-count{flex-shrink:0;font-size:.9rem}.group-range{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.group-actions{gap:4px}.group-terms{border-top:1px solid var(--border);margin:4px 0 0;padding:0;list-style:none}.group-terms li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.group-terms li:last-child{border-bottom:0}.group-term-text{flex-direction:column;min-width:0;display:flex}.group-term-text small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.group-terms .select{flex-shrink:0;max-width:45%}.group-save-bar{background:var(--bg);border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:12px 0;display:flex;position:sticky;bottom:0}.example-generator{flex-direction:column;align-items:flex-start;gap:6px;margin-top:8px;display:flex}.generated-examples{flex-direction:column;gap:6px;width:100%;margin:0;padding:0;list-style:none;display:flex}.generated-examples li{border:1px dashed var(--border);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;display:flex}.generated-examples li>span{flex-direction:column;min-width:0;display:flex}.generated-examples .btn{flex-shrink:0}.generated-sentence{font-weight:600}.assistant-entry{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);align-items:center;gap:12px;padding:12px 16px;display:flex}.assistant-entry:hover{background:var(--surface-2);text-decoration:none}.assistant-entry>span{flex-direction:column;display:flex}.assistant-scope summary{cursor:pointer;flex-wrap:wrap;align-items:baseline;gap:4px 12px;display:flex}.assistant-scope-lists{flex-direction:column;gap:12px;max-height:50vh;margin-top:12px;display:flex;overflow-y:auto}.assistant-scope h3{color:var(--text-muted);margin:0 0 6px;font-size:.85rem}.check-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.check-list label{cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:6px 4px;display:flex}.check-list label:hover{background:var(--surface-2)}.check-list input{flex-shrink:0;width:18px;height:18px}.assistant-chat{flex-direction:column;gap:10px;display:flex}.assistant-meta{color:var(--text-muted);margin-top:6px;font-size:.75rem;display:block}.assistant-proposal{width:100%;padding:16px}.proposal-terms{max-height:50vh;margin:0;padding:0;list-style:none;overflow-y:auto}.proposal-terms li{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:4px 0;display:flex}.proposal-terms li>span{flex-direction:column;flex:1;min-width:0;display:flex}.proposal-index{width:2em;color:var(--text-muted);text-align:right;flex-shrink:0;font-size:.8rem}.photo-import{border:1px dashed var(--border);border-radius:var(--radius);padding:12px}.photo-import label.btn{cursor:pointer}.photo-import label.btn.is-disabled{opacity:.5;cursor:default}.photo-thumbs{flex-wrap:wrap;gap:8px;display:flex}.photo-thumb{width:72px;height:72px;position:relative}.photo-thumb img{object-fit:cover;border:1px solid var(--border);border-radius:8px;width:100%;height:100%}.photo-thumb .icon-btn{background:var(--surface);border:1px solid var(--border);width:26px;height:26px;position:absolute;top:-8px;right:-8px}.export-text{white-space:pre;resize:vertical;width:100%;min-height:240px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.5;overflow:auto}.export-duplicates summary{cursor:pointer;color:var(--accent);font-weight:600}.export-duplicates ul{max-height:30vh;margin:8px 0 0;padding-left:1.2em;overflow-y:auto}.usage-row{flex-direction:column;gap:4px;padding:6px 0;display:flex}.usage-head{justify-content:space-between;gap:8px;font-weight:600;display:flex}.translator-langs{align-items:center;gap:6px;display:flex}.translator-langs .select{flex:1;min-width:0}.translator-input{flex-direction:column;gap:8px;display:flex}.translator-input .auto-textarea.input{resize:none;min-height:88px;max-height:320px;font-size:1rem;line-height:1.6;overflow-y:auto}.translator-actions{justify-content:flex-end}.translator-actions small{margin-right:auto}.translator-result{flex-direction:column;gap:10px;display:flex}.translator-block{border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px}.translator-block.is-primary{border-color:var(--primary)}.translator-block-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.translator-block-head .row{gap:0}.translator-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.05rem;line-height:1.7}.translator-block.is-primary .translator-text{font-size:1.15rem;font-weight:600}.translator-tools{align-items:center}.flashcard-both{cursor:default}.both-body{flex:1;grid-template-rows:1fr auto 1fr;min-height:0;display:grid;overflow-y:auto}.both-half{justify-content:center;align-items:center;gap:4px;padding:8px 16px;display:flex}.both-half .flashcard-text{flex:none;padding:0}.both-half.is-secondary .flashcard-text{font-size:clamp(1.2rem,2.6vw,1.7rem)}.both-divider{background:var(--border);height:1px;margin:0 24px}.card-stage{position:relative}.card-ghost{z-index:2;pointer-events:none;position:absolute;inset:0}.slide-out-left{animation:.3s ease-in forwards card-out-left}.slide-out-right{animation:.3s ease-in forwards card-out-right}.slide-in-right{animation:.3s ease-out card-in-right}.slide-in-left{animation:.3s ease-out card-in-left}.slide-in-pop{animation:.3s ease-out card-in-pop}.ghost-know .flashcard-face{border-color:var(--know);box-shadow:0 0 0 3px var(--know-soft)}.ghost-learning .flashcard-face{border-color:var(--learning);box-shadow:0 0 0 3px var(--learning-soft)}@keyframes card-out-left{0%{transform:translateX(var(--from-x,0px)) rotate(var(--from-rotate,0deg))}to{transform:translateX(calc(var(--from-x,0px) - 60%)) rotate(calc(var(--from-rotate,0deg) - 6deg));opacity:0}}@keyframes card-out-right{0%{transform:translateX(var(--from-x,0px)) rotate(var(--from-rotate,0deg))}to{transform:translateX(calc(var(--from-x,0px) + 60%)) rotate(calc(var(--from-rotate,0deg) + 6deg));opacity:0}}@keyframes card-in-right{0%{opacity:0;transform:translate(35%)}}@keyframes card-in-left{0%{opacity:0;transform:translate(-35%)}}@keyframes card-in-pop{0%{opacity:0;transform:scale(.94)}}.study-shell{background:var(--bg);flex-direction:column;min-height:100dvh;display:flex;overflow-x:clip}.set-detail .preview{overflow-clip-margin:24px;overflow-x:clip}.study-header{z-index:50;background:var(--surface);border-bottom:1px solid var(--border);grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:64px;padding:0 16px;display:grid;position:sticky;top:0}.study-header>:last-child{justify-self:end}.study-header-right{align-items:center;gap:4px;display:flex}.settings{flex-direction:column;display:flex}.settings-section{border-bottom:1px solid var(--border);flex-direction:column;gap:10px;padding-bottom:16px;display:flex}.settings-section h3{font-size:1rem}.option-list{flex-direction:column;gap:8px;display:flex}.option-item{border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.option-item:hover{background:var(--surface-2)}.option-item>span{flex-direction:column;display:flex}.option-item small{color:var(--text-muted);font-size:.85rem}.option-item.is-checked{border-color:var(--primary);background:var(--primary-soft)}.option-item input{width:20px;height:20px;accent-color:var(--primary);flex-shrink:0}.setting-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:14px 0;display:flex}.setting-row>span:first-child{flex-direction:column;font-weight:700;display:flex}.setting-row small{color:var(--text-muted);font-size:.85rem;font-weight:400}.settings-details{border-bottom:1px solid var(--border);padding:14px 0}.settings-details summary{cursor:pointer;font-weight:700}.shortcut-list{grid-template-columns:auto 1fr;align-items:center;gap:8px 16px;margin:12px 0 0;display:grid}.shortcut-list dt{white-space:nowrap}.shortcut-list dd{color:var(--text-muted);margin:0}.shortcut-editor{flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px;display:flex}.shortcut-editor ul{flex-direction:column;gap:4px;width:100%;margin:0;padding:0;list-style:none;display:flex}.shortcut-editor li{border-radius:8px;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:4px 6px;display:grid}.shortcut-editor li.is-recording{background:var(--primary-soft)}.shortcut-label{font-size:.9rem}.shortcut-keys{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.link-danger{color:var(--danger);background:0 0;border:0;align-self:flex-start;padding:14px 0 0;font-weight:700}.link-danger:hover{text-decoration:underline}.small-text{font-size:.85rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mode-switch{border:1px solid var(--border);background:var(--surface);border-radius:999px;align-items:center;gap:8px;padding:6px 12px 6px 6px;font-weight:700;display:inline-flex}.mode-switch:hover{background:var(--surface-2)}.study-title{color:var(--text);text-overflow:ellipsis;white-space:nowrap;max-width:40vw;font-weight:700;overflow:hidden}.study-body{flex:1;width:100%;max-width:880px;margin:0 auto;padding:28px 20px 64px}.finish-panel{align-items:center;padding:48px 24px}.flash-session{flex-direction:column;gap:16px;display:flex}.flash-top{justify-content:space-between;align-items:center;display:flex}.track-counts{gap:10px;font-weight:700;display:flex}.count-learning,.count-know{border-radius:999px;padding:2px 12px}.count-learning{color:var(--learning);background:var(--learning-soft)}.count-know{color:var(--know);background:var(--know-soft)}.flash-controls{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;display:grid}.flash-controls>.row:last-child{justify-content:flex-end}.kbd-hint{color:var(--text-muted);flex-wrap:wrap;justify-content:center;gap:18px;font-size:.85rem;display:flex}.learn{flex-direction:column;gap:20px;display:flex}.learn-top{align-items:center;gap:12px;display:flex}.question-card,.test-question{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);flex-direction:column;gap:16px;padding:24px;display:flex}.question-head{justify-content:space-between;align-items:center;display:flex}.question-kind{color:var(--text-muted);font-size:.85rem;font-weight:700}.question-prompt{white-space:pre-wrap;overflow-wrap:anywhere;min-height:80px;font-size:1.6rem;font-weight:600}.question-prompt.small{min-height:0;font-size:1.25rem}.question-ask{color:var(--text-muted);font-size:.9rem;font-weight:700}.choice-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.choice{text-align:left;border-radius:var(--radius);border:2px solid var(--border);background:var(--surface);overflow-wrap:anywhere;align-items:center;gap:12px;padding:14px 16px;font-weight:500;transition:border-color .12s,background .12s;display:flex}.choice:hover:not(:disabled){border-color:var(--primary)}.choice:disabled{cursor:default}.choice-inline{justify-content:center;min-width:96px;font-weight:700}.choice-num{background:var(--surface-2);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:.8rem;font-weight:800;display:inline-flex}.choice.is-selected{border-color:var(--primary);background:var(--primary-soft)}.choice.is-correct{border-color:var(--know);background:var(--know-soft)}.choice.is-wrong{border-color:var(--danger);background:var(--danger-soft)}.choice.is-dim{opacity:.5}.written{flex-direction:column;gap:12px;display:flex}.feedback{border-radius:var(--radius);flex-direction:column;gap:8px;padding:16px 18px;animation:.15s ease-out toast-in;display:flex}.feedback-correct{background:var(--know-soft)}.feedback-wrong{background:var(--learning-soft)}.feedback-title{align-items:center;gap:8px;font-size:1.1rem;font-weight:800;display:flex}.feedback-correct .feedback-title{color:var(--know)}.feedback-wrong .feedback-title{color:var(--learning)}.answer-wrong{color:var(--danger);font-weight:700;text-decoration:line-through}.answer-right{color:var(--know);font-weight:700}.summary-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.summary-list li{border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:auto minmax(0,1fr) minmax(0,1.5fr) auto;align-items:center;gap:12px;padding:10px 14px;display:grid}.tag{border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700}.tag-mastered{background:var(--know-soft);color:var(--know)}.tag-learning,.tag-new{background:var(--learning-soft);color:var(--learning)}.test,.test-setup{flex-direction:column;gap:24px;display:flex}.test-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.test-question.is-correct{border-color:var(--know)}.test-question.is-wrong{border-color:var(--danger)}.tf-shown{border-radius:var(--radius);background:var(--surface-2);white-space:pre-wrap;padding:12px 16px;font-size:1.1rem}.correction{border-radius:var(--radius);background:var(--surface-2);padding:10px 14px}.score-panel{flex-wrap:wrap;align-items:center;gap:28px;display:flex}.score-ring{--pct:0%;background:conic-gradient(var(--know) var(--pct), var(--surface-3) 0);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:120px;height:120px;display:flex}.score-ring span{background:var(--surface);border-radius:50%;justify-content:center;align-items:center;width:92px;height:92px;font-size:1.6rem;font-weight:900;display:flex}.history-list{margin:0;padding:0;list-style:none}.history-list li{border-bottom:1px solid var(--border);grid-template-columns:1fr auto 80px;gap:12px;padding:8px 0;display:grid}.history-list li:last-child{border-bottom:0}.history-list li>:last-child{text-align:right}.match{flex-direction:column;gap:16px;display:flex}.match-top{justify-content:center;align-items:center;gap:10px;display:flex}.match-timer{font-variant-numeric:tabular-nums;align-items:center;gap:8px;font-size:1.6rem;font-weight:800;display:inline-flex}.match-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.match-tile{border-radius:var(--radius);border:2px solid var(--border);background:var(--surface);min-height:130px;box-shadow:var(--shadow);overflow-wrap:anywhere;padding:12px;font-size:1.05rem;font-weight:600;transition:border-color .12s,background .12s,opacity .3s,transform .3s}.match-tile:hover:not(:disabled){border-color:var(--primary)}.match-tile.is-selected{border-color:var(--primary);background:var(--primary-soft)}.match-tile.is-wrong{border-color:var(--danger);background:var(--danger-soft);animation:.35s shake}.match-tile.is-matched{opacity:0;pointer-events:none;transform:scale(.85)}@keyframes shake{25%{transform:translate(-6px)}75%{transform:translate(6px)}}.match-intro{flex-direction:column;gap:20px;display:flex}.match-intro>.panel:first-child{align-items:center;padding:40px 24px}.leaderboard{margin:0;padding:0;list-style:none}.leaderboard li{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:10px 6px;display:flex}.leaderboard li:last-child{border-bottom:0}.leaderboard li.is-me{background:var(--primary-soft);border-radius:8px}.rank{text-align:center;width:24px;color:var(--text-muted);font-weight:800}.editor{max-width:960px;margin:0 auto}.editor-bar{z-index:10;background:var(--bg);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex;position:sticky;top:64px}.editor-rows{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.editor-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.editor-row.has-error{border-color:var(--danger)}.editor-row .field-error{padding:0 18px 14px}.editor-row-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:6px 10px 6px 18px;display:flex}.editor-row-index{color:var(--text-muted);font-weight:800}.editor-row-fields{grid-template-columns:1fr 1fr;gap:24px;padding:16px 18px 18px;display:grid}.editor-row-fields .note-field,.editor-row-fields .examples-field{grid-column:1/-1}.examples-field{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.examples-field-title{color:var(--text-muted);font-size:.75rem;font-weight:700}.example-edit{grid-template-columns:auto 1.4fr 1fr auto;align-items:end;gap:12px;width:100%;display:grid}.example-edit-index{color:var(--text-muted);align-self:center;font-size:.85rem;font-weight:800}.example-edit .auto-textarea{border-bottom-width:1px;font-size:.95rem}.example-edit .example-edit-translation{color:var(--text-muted)}.note-field .auto-textarea{border-bottom-style:dashed;font-size:.95rem}.underline-field{flex-direction:column;gap:6px;display:flex}.underline-field>span{color:var(--text-muted);letter-spacing:.02em;font-size:.75rem;font-weight:700}.auto-textarea{resize:none;border:0;border-bottom:2px solid var(--text);background:0 0;outline:none;width:100%;padding:6px 0;font-size:1.05rem;line-height:1.5;overflow:hidden}.auto-textarea:focus{border-bottom-color:var(--primary)}.add-row{border:2px dashed var(--border);border-radius:var(--radius);width:100%;color:var(--text-muted);background:0 0;justify-content:center;align-items:center;gap:8px;padding:22px;font-weight:800;display:flex}.add-row:hover{border-color:var(--primary);color:var(--primary)}.import-preview{border:1px solid var(--border);border-radius:var(--radius);margin:8px 0 0;padding:0;list-style:none}.import-preview li{border-bottom:1px solid var(--border);grid-template-columns:1fr 1.3fr .8fr 1.3fr;gap:12px;padding:8px 12px;display:grid}.import-preview li:last-child{border-bottom:0}.import-preview .preview-note{white-space:pre-wrap}.import-preview li.muted{display:block}.show-narrow{display:none}@media (width<=900px){.nav-links{display:none}.icon-btn.show-narrow{display:inline-flex}.hero{grid-template-columns:1fr}.hero-cards{display:none}.feature-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=640px){.page{padding:20px 16px 48px}.navbar-inner{gap:10px;padding:0 12px}.nav-search{padding:0 10px}.nav-actions{gap:2px}.brand span,.hide-sm{display:none}.page-title{font-size:1.5rem}.mode-grid,.feature-grid{grid-template-columns:repeat(2,1fr)}.term-row{grid-template-columns:1fr auto;gap:8px}.term-word{border-right:0;padding-right:0}.term-def{grid-area:2/1/auto/-1}.term-tools{grid-area:1/2}.editor-row-fields,.choice-grid{grid-template-columns:1fr}.example-edit{grid-template-columns:auto 1fr auto;row-gap:4px}.example-edit .example-edit-translation{grid-area:2/2}.example-edit .icon-btn{grid-area:1/3/span 2}.match-grid{grid-template-columns:repeat(3,1fr)}.match-tile{min-height:96px;font-size:.95rem}.summary-list li{grid-template-columns:auto 1fr auto}.summary-list li .muted{display:none}.question-prompt{font-size:1.3rem}.auth-card{padding:24px 20px}input,select,textarea,.select-sm,.input-sm{font-size:16px}.section-head>.row,.set-meta>.row{flex-wrap:wrap}.modal-backdrop{padding:12px}.modal-body{padding:12px 18px 20px}.study-header{grid-template-columns:1fr auto;padding:0 8px}.study-title{display:none}.study-body{padding:16px 12px 40px}.flashcard-lg{height:min(56dvh,440px)}.flash-controls{grid-template-columns:1fr auto;grid-template-areas:"nav nav""track tools";row-gap:14px}.flash-controls>:first-child{grid-area:track}.flash-controls>:nth-child(2){grid-area:nav;justify-content:center;gap:28px}.flash-controls>:nth-child(3){grid-area:tools}.score-panel{text-align:center;flex-direction:column}.score-panel .row{justify-content:center}.match-top{flex-wrap:wrap}.match-grid{gap:8px}.match-tile{padding:8px}}.swipe-area{touch-action:pan-y;--drag:0;position:relative}.drag-label{z-index:3;pointer-events:none;opacity:0;border:2px solid;border-radius:999px;padding:6px 16px;font-size:1.05rem;font-weight:800;position:absolute;top:18px}.drag-label-know{color:var(--know);background:var(--know-soft);left:18px;transform:rotate(-8deg)}.drag-label-learning{color:var(--learning);background:var(--learning-soft);right:18px;transform:rotate(8deg)}.swipe-area[data-drag=right] .drag-label-know,.swipe-area[data-drag=left] .drag-label-learning{opacity:var(--drag)}.swipe-area[data-drag=right]:has(.drag-label) .flashcard-face{box-shadow:0 0 0 calc(var(--drag) * 4px) var(--know)}.swipe-area[data-drag=left]:has(.drag-label) .flashcard-face{box-shadow:0 0 0 calc(var(--drag) * 4px) var(--learning)}@media (width<=640px){.flashcard-tool-buttons{z-index:1;position:absolute;bottom:8px;left:8px}.flashcard-tool-buttons .icon-btn{width:46px;height:46px}.flashcard-tool-buttons .note-btn{align-self:center;height:40px}.card-extras{height:50%;margin-bottom:50px}.flashcard-text{padding-bottom:56px}.both-body{padding-bottom:48px}}.flashcard,.match-tile,.choice,.round-btn{-webkit-tap-highlight-color:transparent}@media (hover:none){.set-card:hover,.mode-card:hover{transform:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
