:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d1118;--surface:#151b25;--surface-raised:#1b2330;--surface-soft:#202937;--border:#2b3748;--text:#f6f8fb;--muted:#9aa8ba;--accent:#73a7ff;--accent-strong:#4f8ff7;--accent-soft:#4f8ff729;--success:#4fd39b;--warning:#ffbd66;--danger:#ff6b78;--shadow:0 14px 40px #00000047;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%}body{background:var(--bg);margin:0}#root{border-inline:1px solid var(--border);flex-direction:column;min-width:0;max-width:1126px;min-height:100svh;margin:0 auto;display:flex;overflow:hidden}button,input,select,textarea{font:inherit}button{background:var(--surface-soft);min-height:42px;color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:11px;padding:9px 14px;font-weight:650}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.42;cursor:not-allowed}input,select,textarea{border:1px solid var(--border);min-height:42px;color:var(--text);background:var(--surface-soft);border-radius:10px;padding:9px 11px}.app-shell{background:var(--bg);flex-direction:column;width:100%;min-width:0;height:100dvh;display:flex;overflow:hidden}.app-content{flex-direction:column;flex:1;width:100%;min-width:0;min-height:0;display:flex;overflow:hidden}.screen{background:var(--bg);flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex}.screen-scroll{flex:1;min-height:0;padding:14px;overflow-y:auto}.page-header{border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0d1118f5;flex:none;align-items:center;gap:10px;width:100%;min-width:0;min-height:66px;padding:10px 14px;display:flex}.page-header__copy{text-align:left;flex:1;min-width:0}.page-header h1{color:var(--text);letter-spacing:-.25px;margin:0;font-size:20px;font-weight:760;line-height:1.15}.page-header__subtitle{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-size:12px;overflow:hidden}.page-header__actions{align-items:center;gap:7px;min-width:0;display:flex}.icon-button{background:var(--surface-raised);border-radius:11px;place-items:center;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;display:grid}.button-primary{background:var(--accent-strong);color:#fff}.button-secondary{background:var(--surface-raised);border-color:var(--border)}.button-danger{color:var(--danger);background:#ff6b7824;border-color:#ff6b7859}.button-ghost{color:var(--muted);background:0 0}.button-with-icon{justify-content:center;align-items:center;gap:7px;display:inline-flex}.desktop-action-label{display:none}.card-panel{border:1px solid var(--border);background:var(--surface);border-radius:16px;padding:15px;box-shadow:0 1px #ffffff05}.section-title{color:var(--text);text-align:left;margin:0;font-size:16px}.section-copy{color:var(--muted);text-align:left;margin:4px 0 0;font-size:13px}.stack{flex-direction:column;gap:12px;display:flex}.inline-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.segmented-control{background:var(--surface);border:1px solid var(--border);border-radius:12px;gap:3px;padding:3px;display:flex}.segmented-control button{min-height:34px;color:var(--muted);background:0 0;flex:1;padding:6px 9px;font-size:12px}.segmented-control button.active{background:var(--surface-soft);color:var(--text);box-shadow:0 1px 3px #0000004d}.status-pill{border-radius:999px;align-items:center;gap:6px;width:fit-content;padding:5px 9px;font-size:12px;font-weight:700;display:inline-flex}.status-pill.success{color:var(--success);background:#4fd39b1f}.status-pill.warning{color:var(--warning);background:#ffbd661f}.status-pill.error{color:var(--danger);background:#ff6b781f}.status-pill.muted{color:var(--muted);background:var(--surface-soft)}.empty-state{color:var(--muted);text-align:center;place-items:center;gap:8px;padding:36px 22px;display:grid}.empty-state strong{color:var(--text)}.loading-state{min-height:180px;color:var(--muted);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:11px;padding:28px;display:flex}.loading-state strong{color:var(--text);font-size:13px}.loading-spinner{border:3px solid var(--surface-soft);border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;animation:.75s linear infinite loading-spin}@keyframes loading-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.loading-spinner{animation-duration:1.5s}}.toast-host{left:50%;bottom:calc(78px + env(safe-area-inset-bottom));z-index:2000;pointer-events:none;width:min(100% - 28px,480px);position:fixed;transform:translate(-50%)}.toast{color:#fff;background:var(--surface-raised);border:1px solid var(--border);box-shadow:var(--shadow);text-align:center;border-radius:12px;padding:11px 14px;font-size:13px;font-weight:650}.toast.success{border-color:#4fd39b80}.toast.error{border-color:#ff6b7880}details.disclosure{border:1px solid var(--border);background:var(--surface);border-radius:14px;overflow:hidden}details.disclosure>summary{cursor:pointer;min-height:48px;color:var(--text);align-items:center;padding:12px 14px;font-weight:700;list-style:none;display:flex}details.disclosure>summary::-webkit-details-marker{display:none}details.disclosure>summary:after{content:"›";color:var(--muted);margin-left:auto;font-size:22px;transition:transform .15s;transform:rotate(90deg)}details.disclosure[open]>summary:after{transform:rotate(-90deg)}.disclosure__content{border-top:1px solid var(--border);padding:14px}@media (width>=760px){.screen-scroll{padding:20px}.page-header{padding-inline:20px}}@media (width>=1024px) and (hover:hover){body{background:#090d13}#root{border-inline:0;max-width:none}.app-shell{flex-direction:row}.app-content{background:radial-gradient(circle at 15% 0,#4f8ff717,#0000 30%),radial-gradient(circle at 100% 100%,#765af40e,#0000 35%),#0b0f16;padding:20px 22px}.app-content>.screen{border:1px solid var(--border);border-radius:18px;max-width:1600px;margin:0 auto;overflow:hidden;box-shadow:0 20px 60px #0000003d}.page-header{background:#151b25e6;min-height:78px;padding-inline:24px}.page-header h1{letter-spacing:-.4px;font-size:23px}.page-header__subtitle{margin-top:5px;font-size:12px}.page-header__actions{gap:9px}.screen-scroll{padding:22px 24px}.card-panel{border-radius:17px;padding:18px}button{transition:background-color .14s,border-color .14s,color .14s,transform .1s}button:hover:not(:disabled){border-color:#73a7ff66}.icon-button:hover:not(:disabled),.button-secondary:hover:not(:disabled){background:#273243}.icon-button:has(.desktop-action-label){gap:7px;width:auto;padding-inline:12px;display:inline-flex}.desktop-action-label{font-size:12px;display:inline}.toast-host{bottom:28px;left:calc(50% + 122px)}}.bottom-nav{width:100%;min-width:0;min-height:58px;padding:5px max(10px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));border-top:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:50;background:#131821f5;flex:none;grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.nav-brand,.nav-footer{display:none}.nav-items{display:contents}.nav-link{min-width:0;min-height:48px;color:var(--muted);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;font-weight:650;text-decoration:none;transition:color .15s,background .15s;display:flex}.nav-link__icon{place-items:center;display:grid}.nav-link__copy{flex-direction:column;align-items:center;min-width:0;display:flex}.nav-link__copy strong{font:inherit}.nav-link__copy small{display:none}.nav-link-active{color:var(--accent);background:var(--accent-soft)}@media (width>=1024px) and (hover:hover){.bottom-nav{border-top:0;border-right:1px solid var(--border);background:linear-gradient(#151b25fa,#0d1118fa);flex-direction:column;order:-1;gap:28px;width:244px;min-width:244px;height:100dvh;min-height:0;padding:24px 16px 18px;display:flex}.nav-brand{align-items:center;gap:11px;padding:0 8px;display:flex}.nav-brand__mark{color:#fff;background:linear-gradient(145deg, var(--accent), #765af4);border-radius:13px;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 9px 24px #4f8ff747}.nav-brand__copy{flex-direction:column;line-height:1.05;display:flex}.nav-brand__copy strong{letter-spacing:-.02em;font-size:16px}.nav-brand__copy small{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-top:4px;font-size:11px}.nav-items{flex-direction:column;gap:6px;display:flex}.nav-link{border:1px solid #0000;border-radius:13px;flex-direction:row;justify-content:flex-start;gap:12px;min-height:58px;padding:9px 11px;font-size:13px}.nav-link:hover{color:var(--text);background:#ffffff09}.nav-link-active{color:var(--text);background:var(--accent-soft);border-color:#73a7ff3d}.nav-link__icon{width:34px;height:34px;color:var(--muted);border-radius:10px;flex:0 0 34px}.nav-link-active .nav-link__icon{color:var(--accent);background:#73a7ff1f}.nav-link__copy{text-align:left;align-items:flex-start;gap:2px}.nav-link__copy strong{color:inherit;font-size:13px;font-weight:730}.nav-link__copy small{color:var(--muted);white-space:nowrap;font-size:10px;display:block}.nav-footer{border-top:1px solid var(--border);color:var(--muted);margin-top:auto;padding:12px 9px 0;font-size:10px;line-height:1.4;display:block}}.category-screen{background:var(--bg)}.category-selection-toolbar,.category-browse-toolbar{border-bottom:1px solid var(--border);background:var(--surface);flex:none;align-items:center;gap:7px;min-height:50px;padding:7px 12px;display:flex}.category-selection-toolbar strong{margin-right:auto;font-size:12px}.category-selection-toolbar button{min-height:36px;padding:6px 9px;font-size:11px}.category-selection-toolbar .icon-button{width:36px;min-width:36px}.category-browse-toolbar span{color:var(--muted);text-align:left;flex:1;font-size:11px}.category-browse-toolbar select{width:80px;min-height:34px;padding:5px 8px;font-size:12px}.category-content-scroll{flex:1;min-height:0;padding-bottom:8px;overflow-y:auto}.gridlist.category-grid,.gridlist.quiz-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;overflow:visible}.category-grid .card,.quiz-preview-grid .card{background:var(--surface);border-radius:13px;min-width:0;padding:7px}.category-grid .thumbnail,.category-grid .placeholder-img,.quiz-preview-grid .thumbnail,.quiz-preview-grid .placeholder-img{object-fit:cover;border-radius:9px;width:100%;height:92px;margin:0}.category-grid .title,.quiz-preview-grid .title{-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;min-height:34px;font-size:12px;line-height:17px;display:-webkit-box;overflow:hidden}.category-grid .card.confirmed{border:2px solid #4fd39bb3}.selected-quizzes-section{border:1px solid var(--border);background:var(--surface);border-radius:15px;margin:0 10px 10px;overflow:hidden}.selected-quizzes-heading{border-bottom:1px solid var(--border);align-items:center;min-height:50px;padding:8px 12px;display:flex}.selected-quizzes-heading>div{flex-direction:column;flex:1;align-items:flex-start;display:flex}.selected-quizzes-heading strong{font-size:13px}.selected-quizzes-heading span{color:var(--muted);font-size:11px}.selected-quizzes-heading button{font-size:11px}.quiz-start-bar{border-top:1px solid var(--border);background:var(--surface);flex:none;grid-template-columns:auto auto 1fr;gap:8px;min-height:60px;padding:8px 12px;display:grid}.quiz-start-bar select{width:92px}.shuffle-toggle{color:var(--muted);align-items:center;gap:5px;padding:8px 10px;display:flex}.shuffle-toggle.active{color:var(--accent);background:var(--accent-soft);border-color:#73a7ff73}.quiz-start-button{justify-content:center;align-items:center;gap:7px;display:flex}.quiz-start-spinner{border-width:2px;width:18px;height:18px}.placeholder-img{background:var(--surface-soft);color:var(--muted);justify-content:center;align-items:center;display:flex}@media (width<=420px){.category-selection-toolbar .button-primary,.category-selection-toolbar .button-secondary{font-size:0}.category-selection-toolbar .button-primary:after{content:"Add";font-size:11px}.category-selection-toolbar .button-secondary:after{content:"Remove";font-size:11px}.shuffle-toggle span{display:none}}@media (width>=700px){.gridlist.category-grid,.gridlist.quiz-preview-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width>=1024px) and (hover:hover){.category-selection-toolbar,.category-browse-toolbar{min-height:56px;padding-inline:20px}.category-browse-toolbar span{font-size:12px}.category-browse-toolbar select{width:96px}.gridlist.category-grid,.gridlist.quiz-preview-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:13px;padding:18px 20px}.category-grid .card,.quiz-preview-grid .card{padding:9px}.category-grid .thumbnail,.category-grid .placeholder-img,.quiz-preview-grid .thumbnail,.quiz-preview-grid .placeholder-img{height:140px}.category-grid .title,.quiz-preview-grid .title{min-height:38px;padding:2px 3px 0;font-size:13px;line-height:18px}.selected-quizzes-section{margin:2px 20px 20px}.selected-quizzes-heading{min-height:58px;padding-inline:16px}.quiz-start-bar{grid-template-columns:130px 165px minmax(200px,320px);justify-content:flex-end;min-height:70px;padding:12px 20px}.quiz-start-bar select{width:130px}}.gridlist{box-sizing:border-box;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));align-content:start;gap:15px;width:100%;padding:15px;display:grid}.thumbnail{object-fit:cover;-webkit-user-drag:none;user-drag:none;border-radius:8px;width:auto;height:100px;margin:auto;display:block}.folder{justify-content:center;align-items:center;height:100px;font-size:80px;display:flex}.title{text-overflow:ellipsis;white-space:nowrap;margin-top:8px;overflow:hidden}.card{background:var(--surface);text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:10px;padding:10px;transition:all .2s;position:relative;overflow:hidden}.card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.card.selected{background:#2a3c53;border:3px solid #3498db;transform:scale(.95)}.selection-indicator{color:#fff;background-color:#3498db;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;font-weight:700;display:flex;position:absolute;top:5px;right:5px;box-shadow:0 2px 4px #0006}.card.confirmed{border-color:#2ecc71}.selection-indicator.confirmed-indicator{background-color:#2ecc71}@media (hover:hover){.card:hover{background:var(--surface-raised);border-color:#73a7ff6b;transform:translateY(-2px);box-shadow:0 10px 24px #0003}.card.selected:hover{transform:translateY(-2px)scale(.98)}}.image-library-screen{background:var(--bg)}.file-input-button{cursor:pointer}.selection-toolbar,.image-filter-row{border-bottom:1px solid var(--border);background:var(--surface);flex:none;align-items:center;gap:8px;min-height:50px;padding:7px 12px;display:flex}.selection-toolbar strong{margin-right:auto;font-size:13px}.selection-toolbar .icon-button{width:38px;min-width:38px;min-height:38px}.image-filter-row .segmented-control{flex:1}.usage-scan-status{color:var(--muted);white-space:nowrap;font-size:11px}.image-library-grid-wrap{background:var(--bg);flex:1;min-width:0;min-height:0;overflow-y:auto}.image-library-grid{flex:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;overflow:visible}.image-library-grid .card{background:var(--surface);border-radius:13px;min-width:0;padding:7px}.image-library-grid .thumbnail{object-fit:cover;border-radius:9px;width:100%;height:92px}.image-library-grid .folder{height:92px;color:var(--warning);justify-content:center;align-items:center;display:flex}.image-library-grid .title{-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;min-height:34px;font-size:12px;line-height:17px;display:-webkit-box;overflow:hidden}.image-library-thumbnail{min-height:92px;position:relative}.image-usage-badge{color:#fff;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;max-width:calc(100% - 8px);padding:3px 6px;font-size:9px;font-weight:750;line-height:1.2;position:absolute;bottom:4px;left:4px;overflow:hidden;box-shadow:0 1px 4px #000000a6}.image-usage-badge.used{background:#198754f0}.image-usage-badge.unused{color:#c0cad7;background:#2a3443db}.image-backup-panel{z-index:2;border-top:1px solid var(--border);background:var(--surface);flex:none;position:relative}.image-backup-panel summary{min-height:46px;color:var(--muted);cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding:6px 14px;font-size:12px;font-weight:700;list-style:none;display:flex}.image-backup-panel summary::-webkit-details-marker{display:none}.image-backup-title{white-space:nowrap;align-items:center;gap:7px;min-width:0;display:flex}.image-backup-status{border-radius:999px;flex:none;align-items:center;gap:5px;padding:4px 7px;font-size:10px;display:inline-flex}.image-backup-status>span{background:currentColor;border-radius:50%;width:7px;height:7px}.image-backup-status.needed{color:var(--warning);background:#ffbd661f}.image-backup-status.current{color:var(--success);background:#4fd39b1f}.image-backup-actions{align-items:center;gap:8px;padding:0 12px 12px;display:flex}.image-backup-actions p{color:var(--muted);text-align:left;flex:1;margin:0;font-size:11px}.image-backup-actions button{padding:7px 9px;font-size:11px}.image-modal-overlay{z-index:1000;background:#000000e0;justify-content:center;align-items:center;padding:14px;display:flex;position:fixed;inset:0}.image-modal-content{background:var(--surface);border:1px solid var(--border);width:100%;max-width:900px;max-height:calc(100dvh - 28px);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;gap:9px;padding:12px;display:flex}.image-modal-toolbar{justify-content:flex-end;gap:8px;display:flex}.image-modal-image-wrapper{background:#05070a;border-radius:11px;flex:1;justify-content:center;align-items:center;min-height:220px;max-height:60vh;display:flex;overflow:hidden}.image-modal-image{-webkit-user-select:none;user-select:none;pointer-events:none;max-width:100%;max-height:100%}.image-modal-caption{color:var(--text);text-align:center;overflow-wrap:anywhere;font-size:14px;font-weight:700}.image-modal-details{color:var(--muted);text-align:center;font-size:11px}.image-modal-usage{color:var(--text);text-align:left;border-radius:10px;padding:8px 11px;font-size:12px}.image-modal-usage.used{background:#19875429;border:1px solid #4fd39b66}.image-modal-usage.unused{background:var(--surface-soft);border:1px solid var(--border);text-align:center;color:var(--muted)}.image-modal-usage ul{max-height:90px;margin:5px 0 0;padding-left:20px;overflow-y:auto}@media (width>=700px){.image-library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.image-library-grid .thumbnail,.image-library-grid .folder,.image-library-thumbnail{height:120px;min-height:120px}}@media (width<=520px){.image-backup-actions{flex-direction:column;align-items:stretch}.image-backup-actions p{text-align:center;width:100%}.image-backup-actions button{width:100%}}@media (width>=1024px) and (hover:hover){.selection-toolbar,.image-filter-row{min-height:56px;padding-inline:20px}.image-filter-row .segmented-control{flex:0 0 330px}.image-library-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:13px;padding:18px 20px 24px}.image-library-grid .card{border-radius:14px;padding:9px}.image-library-grid .thumbnail,.image-library-grid .folder,.image-library-thumbnail{height:146px;min-height:146px}.image-library-grid .title{min-height:38px;padding:2px 3px 0;font-size:13px;line-height:18px}.image-usage-badge{padding:4px 8px;font-size:10px;bottom:7px;left:7px}.image-backup-panel summary{min-height:54px;padding-inline:20px}.image-backup-actions{padding:0 20px 16px}.image-backup-actions button{padding:8px 12px;font-size:12px}.image-modal-content{width:min(1100px,100vw - 80px);padding:16px}.image-modal-image-wrapper{min-height:55vh}}.stored-image-placeholder{box-sizing:border-box;background:var(--surface-soft);color:var(--muted);justify-content:center;align-items:center;display:flex}.stored-image-placeholder.loading{opacity:.55}.stored-image-placeholder.failed{opacity:.8}.quiz-editor-form{text-align:left;flex-direction:column;flex:1;gap:14px;min-height:0;padding:14px;display:flex;overflow-y:auto}.quiz-editor-form h3{color:var(--text);font-size:13px}.quiz-editor-form input,.quiz-editor-form select,.quiz-editor-form textarea{border-color:var(--border)!important;background:var(--surface)!important}.quiz-editor-form input[type=radio]{width:20px;height:20px;min-height:20px;accent-color:var(--accent-strong);flex:0 0 20px;margin:0;padding:0}.quiz-editor-actions{border-top:1px solid var(--border);background:var(--surface);flex:none;justify-content:flex-end;gap:9px;padding:9px 14px;display:flex}.quiz-editor-actions .button-primary{min-width:130px}.quiz-editor-field{flex-direction:column;gap:5px;min-width:0;display:flex}.quiz-editor-field>h3{margin:0 0 2px!important}.quiz-editor-question textarea{width:100%;min-height:130px}.quiz-editor-media{gap:10px}.quiz-editor-image-picker,.quiz-editor-answer-image{background:var(--surface-soft);border-radius:12px;border-color:var(--border)!important}.quiz-editor-search-field{flex-direction:column;gap:5px;min-width:0;display:flex}.quiz-editor-search-field small{line-height:1.4;color:var(--muted)!important}.quiz-editor-answers{gap:8px!important}.quiz-editor-answer-row{border:1px solid var(--border);background:var(--surface);border-radius:12px;align-items:center;gap:8px;padding:8px;display:flex}.quiz-editor-answer-row>button{color:var(--danger);background:0 0}.quiz-editor-answer-controls{justify-content:center;gap:10px;display:flex}@media (width<=420px){.quiz-editor-actions>button{flex:1;min-width:0;padding-inline:9px}}@media (width>=1024px) and (hover:hover){.quiz-editor-form{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:18px;width:100%;max-width:1100px;margin:0 auto;padding:24px;display:grid}.quiz-editor-field{border:1px solid var(--border);background:var(--surface);border-radius:15px;padding:16px}.quiz-editor-question,.quiz-editor-media,.quiz-editor-answers,.quiz-editor-answer-controls{grid-column:1/-1}.quiz-editor-question textarea{background:var(--surface-soft)!important;height:150px!important}.quiz-editor-media{grid-template-columns:280px minmax(0,1fr);align-items:center;display:grid}.quiz-editor-image-picker{width:280px!important;height:190px!important}.quiz-editor-input-answer{grid-template-columns:180px minmax(0,1fr);display:grid}.quiz-editor-answer-row{padding:10px 12px}.quiz-editor-answer-image{width:72px!important;height:72px!important}.quiz-editor-answer-controls{background:0 0;border:0;justify-content:flex-start;padding:0}.quiz-editor-category{grid-column:1/-1}.quiz-editor-actions{min-height:66px;padding:11px 24px}}.quiz-player-screen{z-index:100;background:var(--bg);padding-bottom:env(safe-area-inset-bottom);gap:10px;position:fixed;inset:0}.quiz-progress{background:var(--surface-soft);flex:none;height:4px}.quiz-progress>div{background:var(--accent);height:100%;transition:width .2s}.quiz-question-wrap{padding:0 15px}.quiz-question{resize:none;width:100%;height:15vh}.quiz-question-image-wrap{justify-content:center;display:flex}.quiz-question-image{width:80vw;max-width:400px;height:30vh;position:relative}.quiz-answer-area{flex:1;min-height:0;padding:0 15px;overflow-y:auto}.quiz-answer-area>input{width:100%}.quiz-text-answers{flex-direction:column;gap:8px;display:flex}.quiz-text-answers button{padding:10px}.quiz-text-answers button.selected{color:#fff;border-color:var(--accent);background:var(--accent-strong)}.quiz-image-answers{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.quiz-image-answer{border:2px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:5px;width:40vw;padding:5px;display:flex}.quiz-image-answer.selected{border-color:var(--accent);background:var(--accent-soft)}.quiz-image-answer__visual{cursor:pointer;border-radius:9px;width:100%;height:22vh;position:relative;overflow:hidden}.quiz-image-answer__label{color:var(--text);font-size:12px}.quiz-answer-action{min-width:140px}.quiz-player-screen .placeholder-img{width:100%;height:100%}.quiz-player-footer{flex-direction:column;flex:none;align-items:center;gap:10px;padding:10px;display:flex}.quiz-answer-actions{justify-content:center;gap:10px;width:100%;display:flex}.quiz-judging-feedback{width:100%;max-width:480px;color:var(--accent);background:var(--accent-soft);text-align:left;border:1px solid #73a7ff61;border-radius:12px;align-items:center;gap:11px;padding:10px 12px;display:flex}.quiz-judging-feedback.slow{color:var(--warning);background:#ffbd661a;border-color:#ffbd6666}.quiz-judging-feedback>span:last-child{flex-direction:column;gap:2px;min-width:0;display:flex}.quiz-judging-feedback strong{color:var(--text);font-size:13px}.quiz-judging-feedback small{color:var(--muted);font-size:11px}.quiz-judging-spinner{border-width:2px;flex:0 0 24px;width:24px;height:24px}.quiz-complete-screen{z-index:100;padding:28px max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));text-align:center;background:var(--bg);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex;position:fixed;inset:0}.quiz-complete-icon{width:72px;height:72px;color:var(--success);background:#4fd39b24;border-radius:50%;place-items:center;display:grid}.quiz-complete-screen h2,.quiz-complete-screen p{margin:0}.quiz-score{color:var(--text);font-size:56px;font-weight:800;line-height:1}.quiz-score span{color:var(--muted);font-size:22px}.quiz-complete-screen p{color:var(--muted)}@media (width<=360px){.quiz-answer-action{flex:1;min-width:0}}@media (width>=1024px) and (hover:hover){.quiz-player-screen{background:radial-gradient(circle at 50% 0%, #4f8ff71a, transparent 38%), var(--bg);gap:14px;padding-bottom:0}.quiz-player-screen .page-header{padding-inline:max(28px,50vw - 550px)}.quiz-question-wrap,.quiz-answer-area{width:min(900px,100% - 64px);margin-inline:auto;padding:0}.quiz-question{background:var(--surface);border-radius:15px;height:130px;padding:18px;font-size:18px;line-height:1.5}.quiz-question-image{border:1px solid var(--border);background:var(--surface);border-radius:16px;width:min(560px,50vw);max-width:none;height:min(36vh,360px);padding:12px}.quiz-answer-area{padding-block:2px 12px}.quiz-answer-area>input{min-height:54px;padding-inline:16px;font-size:16px}.quiz-text-answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.quiz-text-answers button{text-align:left;min-height:58px;padding:13px 16px}.quiz-image-answers{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.quiz-image-answer{width:auto;padding:9px}.quiz-image-answer__visual{height:min(25vh,240px)}.quiz-player-footer{width:min(900px,100% - 64px);margin-inline:auto;padding:4px 0 18px}.quiz-answer-actions{justify-content:flex-end}.quiz-answer-action{min-width:180px}}.settings-scroll{text-align:left}.settings-ready-banner{color:var(--success);text-align:center;background:#4fd39b1f;border:1px solid #4fd39b73;border-radius:12px;padding:10px 12px;font-size:13px;font-weight:700}.settings-section{flex-direction:column;gap:13px;display:flex}.settings-section-heading{align-items:center;gap:11px;display:flex}.settings-section-heading>div:last-child{min-width:0}.settings-section-icon{width:40px;height:40px;color:var(--accent);background:var(--accent-soft);border-radius:12px;flex:none;place-items:center;display:grid}.settings-row{border-top:1px solid var(--border);align-items:center;gap:12px;min-height:54px;padding-top:11px;display:flex}.settings-row>span{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.settings-row strong{font-size:13px}.settings-row small,.muted-help,.model-meta{color:var(--muted);font-size:11px;line-height:1.35}.settings-row input[type=time]{width:115px}.toggle-row input[type=checkbox]{appearance:none;background:var(--surface-soft);border:0;border-radius:999px;width:46px;height:26px;min-height:26px;padding:0;transition:background .15s;position:relative}.toggle-row input[type=checkbox]:after{content:"";background:var(--muted);border-radius:50%;width:20px;height:20px;transition:transform .15s,background .15s;position:absolute;top:3px;left:3px}.toggle-row input[type=checkbox]:checked{background:var(--accent-strong)}.toggle-row input[type=checkbox]:checked:after{background:#fff;transform:translate(20px)}.download-progress{flex-direction:column;gap:5px;display:flex}.download-progress__track{background:var(--surface-soft);border-radius:999px;height:7px;overflow:hidden}.download-progress__track>div{background:var(--accent);height:100%;transition:width .2s}.ollama-help{color:var(--text);background:#ffbd6614;border:1px solid #ffbd664d;border-radius:12px;flex-direction:column;gap:7px;padding:11px 12px;font-size:12px;line-height:1.4;display:flex}.ollama-help code{color:var(--accent);white-space:nowrap;background:#00000038;border-radius:8px;padding:8px 9px;font-size:11px;display:block;overflow-x:auto}.ollama-help small{color:var(--muted);overflow-wrap:anywhere}.grader-test-card label,.advanced-settings label{color:var(--muted);flex-direction:column;gap:5px;font-size:11px;display:flex}.settings-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.settings-field-grid>*,.advanced-settings label{min-width:0}.settings-field-grid input,.advanced-settings>label input{width:100%}.grader-result{text-align:center;border-radius:10px;padding:9px;font-weight:750}.grader-result.correct{color:var(--success);background:#4fd39b1f}.grader-result.wrong{color:var(--danger);background:#ff6b781f}.grader-result.error{color:var(--warning);background:#ffbd661f}@media (width<=430px){.settings-field-grid{grid-template-columns:1fr}.ai-status-card .inline-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.ai-status-card .inline-actions button{white-space:nowrap;width:100%;min-width:0;padding-inline:8px;font-size:13px}}@media (width>=1024px) and (hover:hover){.settings-scroll.stack{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px;display:grid}.settings-section{min-height:0;padding:20px}.settings-section-heading{margin-bottom:2px}.settings-section-icon{width:44px;height:44px}.settings-row{min-height:62px}.grader-test-card,.settings-scroll>details.disclosure{align-self:start}}.dashboard-screen{background:radial-gradient(circle at 50% -20%, #4f8ff724, transparent 42%), var(--bg)}.dashboard-scroll{flex-direction:column;flex:1;gap:12px;min-height:0;padding:14px;display:flex;overflow-y:auto}.dashboard-hero{min-height:150px;box-shadow:var(--shadow);background:linear-gradient(135deg,#4f8ff738,#4f8ff712);border:1px solid #73a7ff57;border-radius:20px;justify-content:space-between;align-items:center;gap:18px;padding:20px;display:flex}.dashboard-hero>div:first-child{flex-direction:column;gap:3px;min-width:0;display:flex}.dashboard-eyebrow{color:#b9d1ff;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:750}.dashboard-hero>div:first-child strong{letter-spacing:-.05em;font-size:clamp(38px,12vw,58px);line-height:1}.dashboard-hero>div:first-child>span:last-child{color:var(--muted);margin-top:5px;font-size:12px}.accuracy-ring{--accuracy:0deg;text-align:center;background:radial-gradient(circle at center, #172131 55%, transparent 57%), conic-gradient(var(--success) var(--accuracy), #ffffff17 0);border-radius:50%;flex:0 0 94px;place-content:center;width:94px;height:94px;display:grid}.accuracy-ring span{font-size:23px;font-weight:800;line-height:1}.accuracy-ring small{color:var(--muted);margin-top:3px;font-size:10px}.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.dashboard-stat-card{border:1px solid var(--border);background:var(--surface);border-radius:15px;flex-direction:column;gap:2px;min-width:0;padding:14px;display:flex}.dashboard-stat-card>span{color:var(--muted);font-size:11px;font-weight:700}.dashboard-stat-card strong{margin-top:2px;font-size:25px;line-height:1.1}.dashboard-stat-card small{color:var(--muted);font-size:10px}.dashboard-section{flex-direction:column;gap:14px;display:flex}.dashboard-section-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.dashboard-section-heading h2{margin:0;font-size:16px}.dashboard-section-heading p{color:var(--muted);margin:3px 0 0;font-size:11px}.trend-pill{border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800}.trend-pill.positive{color:var(--success);background:#4fd39b1f}.trend-pill.negative{color:var(--danger);background:#ff6b781f}.activity-chart{grid-template-columns:repeat(14,minmax(0,1fr));align-items:end;gap:4px;height:132px;display:grid}.activity-day{grid-template-rows:17px 1fr 15px;place-items:end center;min-width:0;height:100%;display:grid}.activity-value{color:var(--muted);font-size:9px}.activity-bar{background:var(--surface-soft);border-radius:5px 5px 3px 3px;flex-direction:column-reverse;width:min(14px,75%);height:100%;min-height:2px;display:flex;overflow:hidden}.activity-bar span{width:100%;min-height:0;display:block}.activity-correct{background:var(--success)}.activity-wrong{background:var(--danger)}.activity-day small{color:var(--muted);font-size:9px}.chart-legend{color:var(--muted);justify-content:flex-end;gap:13px;font-size:10px;display:flex}.chart-legend span:before{content:"";border-radius:2px;width:7px;height:7px;margin-right:5px;display:inline-block}.chart-legend .correct:before{background:var(--success)}.chart-legend .wrong:before{background:var(--danger)}.difficulty-list,.recent-answer-list{flex-direction:column;display:flex}.difficulty-row{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:11px 0;display:grid}.difficulty-row:first-child,.recent-answer:first-child{border-top:0;padding-top:0}.difficulty-row:last-child,.recent-answer:last-child{padding-bottom:0}.difficulty-copy,.difficulty-score{flex-direction:column;gap:2px;min-width:0;display:flex}.difficulty-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.difficulty-copy span,.difficulty-score span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.difficulty-score{align-items:flex-end}.difficulty-score strong{color:var(--warning);font-size:14px}.difficulty-meter{background:var(--surface-soft);border-radius:999px;grid-column:1/-1;height:4px;overflow:hidden}.difficulty-meter span{border-radius:inherit;background:linear-gradient(90deg, var(--danger), var(--warning), var(--success));height:100%;display:block}.dashboard-positive-state{color:var(--success);background:#4fd39b14;border-radius:11px;align-items:center;gap:8px;padding:10px;font-size:12px;display:flex}.recent-answer{border-top:1px solid var(--border);align-items:center;gap:10px;padding:10px 0;display:flex}.recent-result{border-radius:50%;flex:0 0 29px;place-items:center;width:29px;height:29px;display:grid}.recent-result.correct{color:var(--success);background:#4fd39b1f}.recent-result.wrong{color:var(--danger);background:#ff6b781f}.recent-answer>div{flex-direction:column;gap:2px;min-width:0;display:flex}.recent-answer strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.recent-answer span{color:var(--muted);font-size:10px}.dashboard-empty{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:38px;display:flex}.dashboard-empty-icon{width:72px;height:72px;color:var(--accent);background:var(--accent-soft);border-radius:22px;place-items:center;display:grid}.dashboard-empty h2{margin:6px 0 0;font-size:20px}.dashboard-empty p{max-width:360px;color:var(--muted);margin:0;font-size:13px;line-height:1.5}@media (width>=700px){.dashboard-scroll{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;padding:20px;display:grid}.dashboard-hero,.dashboard-stat-grid{grid-column:1/-1}.dashboard-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=1024px) and (hover:hover){.dashboard-scroll{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;padding:24px}.dashboard-hero{grid-column:span 5;min-height:178px;padding:26px}.dashboard-stat-grid{grid-column:span 7;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-stat-card{padding:17px 18px}.dashboard-stat-card strong{font-size:29px}.dashboard-section:nth-of-type(3){grid-column:span 7}.dashboard-section:nth-of-type(4){grid-column:span 5}.dashboard-section:nth-of-type(5){grid-column:1/-1}.activity-chart{gap:8px;height:180px}.activity-bar{width:min(18px,68%)}.difficulty-row{padding-block:14px}.recent-answer-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;display:grid}.recent-answer:nth-child(2){border-top:0;padding-top:0}}
