:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f7fb;--surface:#fff;--surface-2:#edeff4;--surface-3:#e2e5ee;--text:#1f2540;--text-2:#586380;--border:#d9dde8;--border-strong:#b7bdd0;--accent:#4b5bf2;--accent-hover:#3a48d4;--accent-soft:#eceefe;--accent-text:#fff;--good:#10865f;--good-soft:#e1f5ec;--learning:#c25d0c;--learning-soft:#fdeedf;--bad:#d13b3b;--bad-soft:#fde8e8;--star:#f2a900;--shadow:0 1px 2px #1f25400f, 0 4px 16px #1f254014;--shadow-lg:0 2px 6px #1f254014, 0 12px 40px #1f254024;--radius:12px;--radius-lg:18px;--topbar:64px;--sidebar:248px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0c0f1f;--surface:#171b30;--surface-2:#222743;--surface-3:#2c3254;--text:#f1f3fa;--text-2:#a6aecd;--border:#2e3456;--border-strong:#454c78;--accent:#8590ff;--accent-hover:#a0a9ff;--accent-soft:#252b57;--accent-text:#0c0f1f;--good:#3ccf98;--good-soft:#143a2e;--learning:#ffa64d;--learning-soft:#3d2a17;--bad:#ff7a7a;--bad-soft:#3e1d23;--shadow:0 1px 2px #0000004d, 0 4px 16px #00000040;--shadow-lg:0 2px 6px #00000059, 0 12px 40px #00000073}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0c0f1f;--surface:#171b30;--surface-2:#222743;--surface-3:#2c3254;--text:#f1f3fa;--text-2:#a6aecd;--border:#2e3456;--border-strong:#454c78;--accent:#8590ff;--accent-hover:#a0a9ff;--accent-soft:#252b57;--accent-text:#0c0f1f;--good:#3ccf98;--good-soft:#143a2e;--learning:#ffa64d;--learning-soft:#3d2a17;--bad:#ff7a7a;--bad-soft:#3e1d23;--shadow:0 1px 2px #0000004d, 0 4px 16px #00000040;--shadow-lg:0 2px 6px #00000059, 0 12px 40px #00000073}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font:16px/1.5 var(--font);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3{margin:0;line-height:1.2}h1{letter-spacing:-.01em;font-size:1.9rem;font-weight:750}h2{font-size:1.25rem;font-weight:700}h3{font-size:1.05rem;font-weight:700}p{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.muted{color:var(--text-2)}.small{font-size:.875rem}.nowrap{white-space:nowrap}.preline{white-space:pre-wrap;overflow-wrap:anywhere}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;overflow:hidden;position:absolute!important}.stack{flex-direction:column;gap:16px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.row-between{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.grow{flex:1;min-width:0}.button{background:var(--surface-2);min-height:44px;color:var(--text);cursor:pointer;white-space:nowrap;border:2px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:.95rem;font-weight:650;transition:background-color .15s,border-color .15s,color .15s;display:inline-flex;text-decoration:none!important}.button:hover{background:var(--surface-3)}.button:disabled{opacity:.55;cursor:not-allowed}.button.primary{background:var(--accent);color:var(--accent-text)}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.outline{border-color:var(--border);background:0 0}.button.outline:hover{background:var(--surface-2)}.button.danger{background:var(--bad-soft);color:var(--bad)}.button.danger:hover{background:var(--bad);color:#fff}.button.ghost{background:0 0}.button.ghost:hover{background:var(--surface-2)}.button.small{min-height:36px;padding:0 14px;font-size:.875rem}.button.large{min-height:52px;padding:0 28px;font-size:1.05rem}.button.block{width:100%}.icon-button{width:44px;height:44px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:999px;flex:none;justify-content:center;align-items:center;transition:background-color .15s,color .15s;display:inline-flex}.icon-button:hover{background:var(--surface-2);color:var(--text)}.icon-button.small{width:36px;height:36px}.icon-button.active{color:var(--accent);background:var(--accent-soft)}.icon-button:disabled{opacity:.4;cursor:not-allowed}.icon-button.starred{color:var(--star)}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-weight:600}.link-button:hover{text-decoration:underline}.field{flex-direction:column;gap:6px;display:flex}.field>span,.label{color:var(--text-2);letter-spacing:.02em;font-size:.8rem;font-weight:700}.input,.select,.textarea{border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;min-height:46px;color:var(--text);padding:10px 14px;transition:border-color .15s}.input:focus,.select:focus,.textarea:focus{border-color:var(--accent);outline:none}.textarea{resize:vertical;min-height:90px;line-height:1.45}.select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23586380' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;padding-right:40px}.line-input{border:none;border-bottom:2px solid var(--border-strong);resize:none;background:0 0;width:100%;min-height:38px;padding:6px 0 4px;font-size:1.05rem;line-height:1.45;overflow:hidden}.line-input:focus{border-bottom-color:var(--accent);outline:none}.check{cursor:pointer;align-items:center;gap:10px;display:flex}.check input{width:20px;height:20px;accent-color:var(--accent)}.switch{cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:6px 0;display:flex}.switch input{appearance:none;background:var(--surface-3);cursor:pointer;border-radius:999px;flex:none;width:46px;height:28px;transition:background-color .2s;position:relative}.switch input:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.switch input:checked{background:var(--accent)}.switch input:checked:after{transform:translate(18px)}.switch input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.segmented{background:var(--surface-2);border-radius:999px;flex-wrap:wrap;gap:4px;padding:4px;display:inline-flex}.segmented button{cursor:pointer;color:var(--text-2);background:0 0;border:none;border-radius:999px;padding:6px 14px;font-size:.9rem;font-weight:600}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.alert{border-radius:var(--radius);background:var(--surface-2);padding:12px 16px}.alert.error{background:var(--bad-soft);color:var(--bad);font-weight:600}.alert.success{background:var(--good-soft);color:var(--good);font-weight:600}.alert.info{background:var(--accent-soft)}.toast-region{z-index:100;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{background:var(--text);color:var(--bg);box-shadow:var(--shadow-lg);border-radius:999px;padding:12px 20px;font-weight:600;animation:.2s ease-out toast-in}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.topbar{z-index:30;height:var(--topbar);background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:0 16px;display:flex;position:sticky;top:0}.brand{color:var(--text);letter-spacing:-.02em;align-items:center;gap:10px;font-size:1.3rem;font-weight:800;display:flex;text-decoration:none!important}.brand-mark{flex:none;width:32px;height:32px}.topbar-search{flex:1;max-width:560px;margin:0 auto;position:relative}.topbar-search input{background:var(--surface-2);border:2px solid #0000;border-radius:999px;width:100%;height:42px;padding:0 16px 0 44px}.topbar-search input:focus{border-color:var(--accent);background:var(--surface);outline:none}.topbar-search svg{color:var(--text-2);position:absolute;top:50%;left:14px;transform:translateY(-50%)}.topbar-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.create-button{background:var(--accent);width:40px;height:40px;color:var(--accent-text);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.create-button:hover{background:var(--accent-hover)}.avatar{color:#fff;-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:.95rem;font-weight:750;display:inline-flex}.avatar.small{width:24px;height:24px;font-size:.75rem}.avatar.large{width:56px;height:56px;font-size:1.4rem}.avatar-button{cursor:pointer;background:0 0;border:none;border-radius:50%;padding:0;display:inline-flex}.avatar-button .avatar{width:40px;height:40px}.layout{min-height:calc(100vh - var(--topbar));display:flex}.sidebar{width:var(--sidebar);top:var(--topbar);height:calc(100vh - var(--topbar));border-right:1px solid var(--border);background:var(--surface);flex:none;padding:16px 12px 32px;position:sticky;overflow-y:auto}.nav-link{border-radius:var(--radius);color:var(--text);align-items:center;gap:14px;padding:10px 14px;font-weight:600;display:flex;text-decoration:none!important}.nav-link:hover{background:var(--surface-2)}.nav-link.active{background:var(--accent-soft);color:var(--accent)}.nav-link svg{flex:none}.nav-link span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-heading{color:var(--text-2);text-transform:none;margin:22px 14px 6px;font-size:.78rem;font-weight:750}.sidebar hr{border:none;border-top:1px solid var(--border);margin:14px 8px}.content{flex:1;min-width:0;padding:32px 40px 80px}.content-inner{max-width:1080px;margin:0 auto}.content-narrow{max-width:820px;margin:0 auto}.menu-toggle,.drawer-backdrop{display:none}@media (width<=1000px){.menu-toggle{display:inline-flex}.sidebar{z-index:50;height:100vh;box-shadow:var(--shadow-lg);padding-top:20px;transition:transform .2s;position:fixed;top:0;left:0;transform:translate(-105%)}.sidebar.open{transform:none}.drawer-backdrop{z-index:40;background:#0c0f1f66;display:block;position:fixed;inset:0}.content{padding:24px 20px 80px}}@media (width<=640px){.topbar-search,.brand span{display:none}h1{font-size:1.55rem}.content{padding:20px 14px 80px}}.search-mobile{display:none}@media (width<=640px){.search-mobile{display:inline-flex}}.card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:24px}.card.flat{box-shadow:none;border:1px solid var(--border)}.section{margin-top:36px}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px;display:flex}.grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;display:grid}.tile{background:var(--surface);border-radius:var(--radius-lg);min-height:140px;box-shadow:var(--shadow);color:var(--text);border-bottom:4px solid #0000;flex-direction:column;gap:10px;padding:18px 20px;transition:border-color .15s,transform .15s;display:flex;text-decoration:none!important}.tile:hover{border-bottom-color:var(--accent)}.tile-title{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:1.05rem;font-weight:750;line-height:1.3;display:-webkit-box;overflow:hidden}.tile-foot{color:var(--text-2);align-items:center;gap:8px;margin-top:auto;font-size:.875rem;font-weight:600;display:flex}.pill{background:var(--surface-2);color:var(--text-2);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.pill.accent{background:var(--accent-soft);color:var(--accent)}.pill.good{background:var(--good-soft);color:var(--good)}.pill.learning{background:var(--learning-soft);color:var(--learning)}.list{flex-direction:column;gap:10px;display:flex}.list-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);align-items:center;gap:14px;padding:14px 18px;display:flex;text-decoration:none!important}a.list-item:hover{box-shadow:var(--shadow-lg)}.empty{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:48px 24px;display:flex}.empty svg{color:var(--text-2)}.tabs{border-bottom:2px solid var(--border);gap:4px;margin-bottom:20px;display:flex;overflow-x:auto}.tabs button,.tabs a{color:var(--text-2);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:3px solid #0000;margin-bottom:-2px;padding:10px 14px;font-weight:650;text-decoration:none}.tabs [aria-selected=true],.tabs .active{color:var(--text);border-bottom-color:var(--accent)}.spinner{border:3px solid var(--surface-3);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}.loading{justify-content:center;padding:64px 0;display:flex}@keyframes spin{to{transform:rotate(360deg)}}dialog.modal{border-radius:var(--radius-lg);background:var(--surface);color:var(--text);width:min(560px,100vw - 24px);max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);border:none;padding:0}dialog.modal.wide{width:min(860px,100vw - 24px)}dialog.modal::backdrop{background:#0c0f1f8c}.modal-head{justify-content:space-between;align-items:center;gap:12px;padding:20px 20px 0 24px;display:flex}.modal-body{flex-direction:column;gap:16px;padding:16px 24px 24px;display:flex}.modal-foot{flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:0 24px 24px;display:flex}.menu-wrap{position:relative}.menu{z-index:60;background:var(--surface);border-radius:var(--radius);min-width:230px;box-shadow:var(--shadow-lg);border:1px solid var(--border);padding:6px;position:absolute;top:calc(100% + 6px);right:0}.menu.left{left:0;right:auto}.menu button,.menu a{text-align:left;cursor:pointer;width:100%;color:var(--text);background:0 0;border:none;border-radius:8px;align-items:center;gap:12px;padding:10px 12px;font-weight:550;display:flex;text-decoration:none!important}.menu button:hover,.menu a:hover{background:var(--surface-2)}.menu .danger{color:var(--bad)}.menu hr{border:none;border-top:1px solid var(--border);margin:6px 4px}.menu-label{color:var(--text-2);padding:8px 12px 4px;font-size:.8rem;font-weight:700}.hello{align-items:center;gap:16px;margin-bottom:8px;display:flex}.recent-row{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;display:grid}.recent-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);align-items:center;gap:14px;padding:12px 16px;display:flex;text-decoration:none!important}.recent-item:hover{box-shadow:var(--shadow-lg)}.recent-icon{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);border-radius:10px;flex:none;justify-content:center;align-items:center;display:flex}.set-header{flex-direction:column;gap:10px;margin-bottom:24px;display:flex}.set-header .row-between{align-items:flex-start}.folder-chips{flex-wrap:wrap;gap:8px;display:flex}.mode-grid{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px;display:grid}@media (width<=720px){.mode-grid{grid-template-columns:repeat(2,1fr)}}.mode-button{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);cursor:pointer;border:none;border-bottom:3px solid #0000;align-items:center;gap:12px;padding:14px 16px;font-weight:700;display:flex;text-decoration:none!important}.mode-button:hover{border-bottom-color:var(--accent)}.mode-button svg{color:var(--accent);flex:none}.owner{align-items:center;gap:12px;display:flex}.owner-name{font-weight:700}.progress-card{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.progress-stat{border-radius:var(--radius);background:var(--surface-2);padding:14px 16px}.progress-stat strong{font-size:1.5rem;display:block}.progress-stat.good{background:var(--good-soft);color:var(--good)}.progress-stat.learning{background:var(--learning-soft);color:var(--learning)}.term-list{flex-direction:column;gap:10px;display:flex}.term-row{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:minmax(0,1fr) 2px minmax(0,1.6fr) auto;align-items:start;gap:20px;padding:18px 16px 18px 22px;display:grid}.term-row .divider{background:var(--border);align-self:stretch}.term-row .term{font-weight:550}.term-row .actions{gap:2px;margin-top:-8px;display:flex}.term-row img{border-radius:8px;max-height:140px;margin-top:8px;display:block}@media (width<=640px){.term-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 10px 14px 16px}.term-row .divider{display:none}.term-row .definition{color:var(--text-2);grid-area:2/1/auto/2}.term-row .actions{flex-direction:column;grid-area:1/2/span 2;margin-top:-4px}}.group-heading{align-items:center;gap:10px;margin:18px 0 4px;font-weight:750;display:flex}.group-heading .dot{border-radius:50%;width:10px;height:10px}.flashcard-stage{perspective:1600px;width:100%}.flashcard{cursor:pointer;width:100%;height:clamp(280px,52vh,480px);transform-style:preserve-3d;touch-action:pan-y;background:0 0;border:none;padding:0;transition:transform .45s cubic-bezier(.4,.2,.2,1);position:relative}.flashcard.compact{height:clamp(240px,40vh,380px)}.flashcard.flipped{transform:rotateX(180deg)}.flashcard-face{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);backface-visibility:hidden;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:56px 40px;display:flex;position:absolute;inset:0;overflow:auto}.flashcard-face.back{transform:rotateX(180deg)}.flashcard-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:clamp(1.25rem,2.6vw,2rem);line-height:1.35}.flashcard-face.long-content{justify-content:flex-start}.flashcard-text.long{text-align:left;align-self:stretch;font-size:clamp(.95rem,1.2vw,1.1rem);line-height:1.4}.flashcard-face img{object-fit:contain;border-radius:8px;max-width:100%;max-height:55%}.flashcard-tools{z-index:2;gap:2px;display:flex;position:absolute;top:10px;right:10px}.flashcard-side{color:var(--text-2);font-size:.8rem;font-weight:700;position:absolute;top:18px;left:22px}.flashcard-hint{color:var(--text-2);font-size:.8rem;position:absolute;bottom:16px;left:0;right:0}@media (prefers-reduced-motion:reduce){.flashcard{transition:none}}.flashcard.swipe-left .flashcard-face{box-shadow:0 0 0 4px var(--learning), var(--shadow-lg)}.flashcard.swipe-right .flashcard-face{box-shadow:0 0 0 4px var(--good), var(--shadow-lg)}.card-controls{justify-content:space-between;align-items:center;gap:12px;margin-top:18px;display:flex}.card-controls .center{align-items:center;gap:16px;display:flex}.counter{text-align:center;min-width:70px;font-weight:700}.nav-circle{border:2px solid var(--border);background:var(--surface);cursor:pointer;width:52px;height:52px;color:var(--text);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.nav-circle:hover:not(:disabled){background:var(--surface-2)}.nav-circle:disabled{opacity:.35;cursor:not-allowed}.nav-circle.learning{border-color:var(--learning);color:var(--learning)}.nav-circle.good{border-color:var(--good);color:var(--good)}.track-count{border-radius:999px;justify-content:center;align-items:center;min-width:40px;height:32px;padding:0 12px;font-weight:800;display:inline-flex}.track-count.learning{background:var(--learning-soft);color:var(--learning);border:2px solid var(--learning)}.track-count.good{background:var(--good-soft);color:var(--good);border:2px solid var(--good)}.progress-line{background:var(--surface-3);border-radius:999px;height:4px;overflow:hidden}.progress-line>div{background:var(--accent);height:100%;transition:width .25s}.study{flex-direction:column;min-height:100vh;display:flex}.study-bar{z-index:30;height:var(--topbar);background:var(--surface);border-bottom:1px solid var(--border);grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 12px;display:grid;position:sticky;top:0}.study-bar .left{align-items:center;gap:8px;min-width:0;display:flex}.study-bar .right{justify-content:flex-end;align-items:center;gap:4px;display:flex}.study-bar .title{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.mode-switch{cursor:pointer;color:var(--text);background:0 0;border:none;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:1rem;font-weight:750;display:inline-flex}.mode-switch:hover{background:var(--surface-2)}.study-main{flex:1;width:100%;max-width:900px;margin:0 auto;padding:28px 20px 60px}@media (width<=640px){.study-bar .title{display:none}.study-main{padding:16px 12px 48px}}.learn-progress{grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-bottom:24px;display:grid}.segment-bar{background:var(--surface-3);border-radius:999px;height:10px;display:flex;overflow:hidden}.segment-bar .good{background:var(--good)}.segment-bar .learning{background:var(--learning)}.segment-bar>div{transition:width .3s}.question-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:28px}.question-label{color:var(--text-2);justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;font-size:.875rem;font-weight:700;display:flex}.question-text{white-space:pre-wrap;overflow-wrap:anywhere;min-height:80px;font-size:clamp(1.15rem,2.4vw,1.6rem);line-height:1.4}.question-card img{border-radius:10px;max-width:100%;max-height:260px;margin-top:8px;display:block}.question-prompt-sub{color:var(--text-2);margin:28px 0 12px;font-size:.9rem;font-weight:700}.choices{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=640px){.choices{grid-template-columns:1fr}}.choice{text-align:left;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere;align-items:center;gap:14px;min-height:64px;padding:14px 16px;transition:border-color .12s,background-color .12s;display:flex}.choice:hover:not(:disabled){border-color:var(--border-strong);background:var(--surface-2)}.choice:disabled{cursor:default}.choice .key{background:var(--surface-2);width:28px;height:28px;color:var(--text-2);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:.85rem;font-weight:750;display:inline-flex}.choice.selected{border-color:var(--accent);background:var(--accent-soft)}.choice.correct{border-color:var(--good);background:var(--good-soft)}.choice.wrong{border-color:var(--bad);background:var(--bad-soft)}.choice.dim{opacity:.5}.choice img{border-radius:6px;max-height:90px}.feedback{align-items:center;gap:10px;margin-top:18px;font-weight:750;display:flex}.feedback.good{color:var(--good)}.feedback.bad{color:var(--bad)}.feedback.learning{color:var(--learning)}.answer-compare{gap:10px;margin-top:16px;display:grid}.answer-box{border-radius:var(--radius);border:2px solid var(--border);white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 16px}.answer-box.good{border-color:var(--good);background:var(--good-soft)}.answer-box.bad{border-color:var(--bad);background:var(--bad-soft);text-decoration:line-through;-webkit-text-decoration-color:var(--bad);text-decoration-color:var(--bad)}.answer-box .label{margin-bottom:4px;text-decoration:none;display:block}.continue-bar{background:linear-gradient(to top, var(--bg) 70%, transparent);justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding:16px 0;display:flex;position:sticky;bottom:0}.checkpoint{text-align:center;flex-direction:column;align-items:center;gap:18px;padding:24px 0;display:flex}.big-icon{background:var(--good-soft);width:88px;height:88px;color:var(--good);border-radius:50%;justify-content:center;align-items:center;display:flex}.result-list{text-align:left;flex-direction:column;gap:8px;width:100%;display:flex}.result-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:auto minmax(0,1fr) minmax(0,1.4fr);align-items:start;gap:14px;padding:12px 16px;display:grid}.result-item .ok{color:var(--good)}.result-item .no{color:var(--bad)}@media (width<=640px){.result-item{grid-template-columns:auto 1fr}.result-item>:last-child{grid-column:2}}.test-section-title{margin:32px 0 12px;font-size:1.1rem}.test-question{margin-bottom:16px}.test-number{color:var(--text-2);font-size:.85rem;font-weight:700}.tf-statement{grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;display:grid}.tf-statement .equals{color:var(--text-2);font-weight:700}@media (width<=640px){.tf-statement{grid-template-columns:1fr}}.match-table{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;display:grid}@media (width<=720px){.match-table{grid-template-columns:1fr}}.match-prompts,.match-options{flex-direction:column;gap:10px;display:flex}.match-prompt{grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;display:grid}.match-option{border-radius:var(--radius);background:var(--surface-2);white-space:pre-wrap;overflow-wrap:anywhere;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;display:grid}.match-option img{border-radius:6px;max-height:70px}.score-ring{width:140px;height:140px}.match-board{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}@media (width<=720px){.match-board{grid-template-columns:repeat(3,1fr);gap:8px}}.match-tile{border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:clamp(110px,19vh,170px);box-shadow:var(--shadow);cursor:pointer;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;justify-content:center;align-items:center;padding:12px;font-size:.95rem;line-height:1.3;transition:transform .12s,opacity .25s,border-color .12s,background-color .12s;display:flex;overflow:hidden}.match-tile:hover{border-color:var(--border-strong)}.match-tile.selected{border-color:var(--accent);background:var(--accent-soft)}.match-tile.wrong{border-color:var(--bad);background:var(--bad-soft);animation:.3s shake}.match-tile.done{opacity:0;pointer-events:none;transform:scale(.85)}.match-tile img{object-fit:contain;max-width:100%;max-height:120px}.match-tile.small-text{font-size:.8rem}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}.timer{font-variant-numeric:tabular-nums;font-size:1.4rem;font-weight:800}.timer .penalty{color:var(--bad);margin-left:8px;font-size:.95rem}.leaderboard{flex-direction:column;gap:6px;display:flex}.leaderboard li{border-radius:var(--radius);grid-template-columns:32px auto 1fr auto;align-items:center;gap:12px;padding:8px 12px;display:grid}.leaderboard li.me{background:var(--accent-soft);font-weight:700}.leaderboard ol{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.rank{color:var(--text-2);text-align:center;font-weight:800}.editor-head{top:var(--topbar);z-index:20;background:var(--bg);justify-content:space-between;align-items:center;gap:12px;padding:14px 0;display:flex;position:sticky}.editor-tools{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 16px;display:flex}.editor-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.editor-card.dragging{opacity:.5}.editor-card.drop-target{box-shadow:0 0 0 3px var(--accent), var(--shadow)}.editor-card-head{border-bottom:2px solid var(--bg);color:var(--text-2);justify-content:space-between;align-items:center;padding:8px 10px 8px 20px;font-weight:750;display:flex}.editor-card-body{grid-template-columns:1fr 1fr;gap:28px;padding:18px 20px 20px;display:grid}@media (width<=720px){.editor-card-body{grid-template-columns:1fr;gap:18px}}.editor-field{flex-direction:column;gap:6px;display:flex}.editor-field .label{letter-spacing:.06em;font-size:.72rem}.editor-definition{align-items:flex-start;gap:12px;display:flex}.image-slot{border:2px dashed var(--border-strong);width:84px;height:64px;color:var(--text-2);cursor:pointer;background:0 0;border-radius:10px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:2px;font-size:.7rem;font-weight:700;display:flex;position:relative;overflow:hidden}.image-slot:hover{border-color:var(--accent);color:var(--accent)}.image-slot img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.image-slot.filled{border-style:solid}.drag-handle{cursor:grab;touch-action:none}.add-card{border-radius:var(--radius-lg);background:var(--surface);width:100%;min-height:84px;box-shadow:var(--shadow);letter-spacing:.04em;cursor:pointer;color:var(--text);border:none;border-bottom:4px solid #0000;font-weight:800}.add-card:hover{border-bottom-color:var(--accent);color:var(--accent)}.editor-card.invalid{box-shadow:0 0 0 2px var(--bad), var(--shadow)}.preview-table{border-collapse:collapse;width:100%;font-size:.875rem}.preview-table th,.preview-table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 10px}.preview-table th{color:var(--text-2);font-size:.78rem}.preview-table td.used{background:var(--accent-soft)}.preview-scroll{border:1px solid var(--border);border-radius:var(--radius);max-height:280px;overflow:auto}.dropzone{border:2px dashed var(--border-strong);border-radius:var(--radius-lg);text-align:center;cursor:pointer;flex-direction:column;align-items:center;gap:10px;padding:32px 20px;transition:border-color .15s,background-color .15s;display:flex}.dropzone:hover,.dropzone.over{border-color:var(--accent);background:var(--accent-soft)}.form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}@media (width<=640px){.form-grid{grid-template-columns:1fr}}.welcome{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.welcome .card{flex-direction:column;gap:18px;width:min(460px,100%);padding:32px;display:flex}.welcome .brand{font-size:1.6rem}.settings-section{flex-direction:column;gap:14px;display:flex}.member-row{border-radius:var(--radius);background:var(--surface-2);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;display:grid}.code-box{border-radius:var(--radius);background:var(--surface-2);overflow-wrap:anywhere;align-items:center;gap:8px;padding:10px 12px;font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:.82rem;display:flex}.code-box span{flex:1;min-width:0}kbd{border:1px solid var(--border-strong);min-width:24px;font:600 .8rem var(--font);text-align:center;background:var(--surface);border-bottom-width:2px;border-radius:6px;padding:1px 6px;display:inline-block}.shortcuts{grid-template-columns:auto 1fr;align-items:center;gap:8px 14px;display:grid}@media print{.topbar,.sidebar,.mode-grid,.no-print{display:none!important}.content{padding:0}.term-row{box-shadow:none;break-inside:avoid;border:1px solid #ccc}}
