:root{--bg:#f8f7f3;--surface:#fff;--surface-subtle:#f1f1ee;--surface-strong:#18223a;--text:#18223a;--muted:#687386;--border:#dfe2e8;--border-strong:#c7ccd6;--primary:#5b5ce2;--primary-dark:#4647c7;--primary-soft:#efefff;--success:#288a62;--success-soft:#e8f6ef;--danger:#d4584e;--danger-dark:#b8423b;--danger-soft:#fff0ee;--share:#259d90;--share-dark:#1e7d73;--share-soft:#e8f8f5;--energy:#c78b20;--energy-dark:#9d6c13;--energy-soft:#fff4d6;--track:#eceef3;--focus-ring:#5b5ce247;--shadow-sm:0 2px 8px #18223a12;--shadow-md:0 14px 36px #18223a1a;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;color:var(--text);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:0 0;font-family:Inter,Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif}*{box-sizing:border-box}body{background:0 0;margin:0}.desktop-shell{min-height:100vh}.desktop-window-chrome{border-bottom:1px solid var(--border);z-index:50;background:#fffffff7;justify-content:space-between;align-items:center;height:34px;display:flex;position:fixed;top:0;left:0;right:0}.desktop-drag-handle{-webkit-app-region:drag;app-region:drag;color:var(--muted);cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;flex:1;align-self:stretch;align-items:center;gap:7px;padding:0 10px;font-size:12px;font-weight:700;display:flex}.desktop-drag-handle .brand-logo{object-fit:contain;width:auto;height:20px}.desktop-window-actions{-webkit-app-region:no-drag;align-items:center;display:flex}.desktop-window-actions button{color:var(--text);background:0 0;border:0;border-radius:0;width:38px;min-height:33px;padding:0}.desktop-window-actions button:hover{background:var(--track)}.desktop-window-actions button:last-child:hover{background:var(--danger);color:#fff}button,input,select,textarea{font:inherit}button,.primary-link,.file-button{background:var(--primary);border:1px solid var(--primary);border-radius:var(--radius-md);color:#fff;cursor:pointer;touch-action:manipulation;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 14px;text-decoration:none;transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s,transform .12s;display:inline-flex}button svg,.primary-link svg,.file-button svg{stroke-width:2px;flex:none}button:hover,.primary-link:hover,.file-button:hover{background:var(--primary-dark)}button:active,.primary-link:active,.file-button:active{filter:brightness(.96);transform:translateY(1px)}button:focus-visible,.primary-link:focus-visible,.file-button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.55}input,select,textarea{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text);width:100%;padding:11px 12px;transition:border-color .16s,box-shadow .16s}input:hover,select:hover,textarea:hover{border-color:var(--border-strong)}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring);outline:none}textarea{resize:vertical;min-height:112px}label{color:var(--muted);text-align:left;gap:8px;display:grid}h1,h2,p{margin:0}h1{letter-spacing:-.025em;font-size:clamp(32px,4vw,44px);line-height:1.12}h2{letter-spacing:-.012em;font-size:18px;line-height:1.2}.home-page,.center-page,.participant-page{background:radial-gradient(circle at 92% 8%, #bfe8d059, transparent 25rem), radial-gradient(circle at 4% 96%, #5b5ce21a, transparent 28rem), var(--bg);min-height:100svh;padding:24px}.home-page,.center-page{justify-content:center;align-items:center;display:flex}.home-content{box-shadow:var(--shadow-md);background:#ffffffd1;border:1px solid #ffffffe0;border-radius:24px;max-width:820px;padding:clamp(28px,6vw,64px)}.lede{color:var(--muted);margin-top:18px;font-size:20px;line-height:1.6}.home-content h1{margin-top:12px}.home-content .eyebrow{color:var(--primary)}.home-actions,.join-form{gap:12px;margin-top:28px;display:flex}.home-actions{justify-content:center}.home-actions .join-form{width:min(100%,520px)}.home-actions .join-form input{flex:1}.home-actions>.primary-link{min-height:48px}.join-form input{min-width:220px}.join-form{margin-top:0}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:20px}.form-panel{gap:20px;width:100%;max-width:520px;padding:32px;display:grid}.form-panel>h1{font-size:clamp(32px,5vw,46px)}.form-panel>button{min-height:52px}.manage-sessions-button{width:100%}.caption-setup-fields{border:1px solid var(--border);border-radius:var(--radius-md);gap:14px;margin:0;padding:16px;display:grid}.caption-setup-fields legend{color:var(--text);padding:0 6px;font-weight:800}.caption-language-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.caption-interpretation-toggle,.caption-language-options label{color:var(--text);align-items:center;gap:8px;display:flex}.caption-interpretation-toggle input,.caption-language-options input{accent-color:var(--primary);width:18px;height:18px}.caption-language-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.caption-cost-note{font-size:12px;line-height:1.5}.interpretation-audio-toggle{background:var(--primary-soft);border-radius:var(--radius-sm);border:1px solid #288e7140;padding:11px 12px}.form-heading-icon,.heading-icon,.metric-icon{background:var(--primary-soft);color:var(--primary);border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.form-heading-icon{width:48px;height:48px}.heading-icon{width:28px;height:28px}.qr-heading-logo{object-fit:contain;width:20px;height:20px}.metric-icon{background:var(--success-soft);color:var(--success);width:34px;height:34px}.notice{background:var(--energy-soft);border-radius:var(--radius-md);color:var(--energy-dark);text-align:left;z-index:20;border:1px solid #c78b204d;gap:4px;max-width:520px;padding:12px 14px;display:grid;position:fixed;top:24px;left:24px}.eyebrow,.muted{color:var(--muted)}.eyebrow{letter-spacing:.08em;text-transform:uppercase;font-size:13px;font-weight:700}.error{color:var(--danger)}.success{color:var(--success)}.presenter-page{background:0 0;min-height:100svh;position:relative}.desktop-shell .center-page{padding-top:58px}.desktop-shell .presenter-page{overscroll-behavior:contain;touch-action:pan-y;gap:10px;height:100vh;min-height:0;padding:5px;display:grid;overflow:hidden auto}.desktop-shell .presenter-page:not(.controls-open){overflow-y:hidden}.desktop-shell .qr-floating{width:100%;min-width:0;max-height:none;position:static;top:auto;right:auto}.desktop-shell .presenter-page:not(.controls-open) .qr-panel,.desktop-shell .presenter-page:not(.controls-open) .qr-box{width:100%;min-width:0}.desktop-shell .presenter-page:not(.controls-open) .qr-box svg{width:156px;max-width:100%;height:auto}.desktop-shell .presenter-page.controls-open .qr-floating{width:100%}.desktop-shell .presenter-page.settings-open{grid-template-columns:minmax(0,680px) 420px}.desktop-shell .presenter-page.settings-open .qr-floating,.desktop-shell .presenter-page.settings-open .presenter-controls-overlay{grid-column:2}.desktop-shell .presenter-page.settings-open .presenter-settings-backdrop{background:0 0;justify-content:flex-start;align-items:flex-start;padding:5px 10px 5px 5px;inset:0 440px 0 0}.desktop-shell .presenter-page.settings-open .presenter-settings-modal{max-width:none;max-height:calc(100vh - 10px);overflow-y:auto}.desktop-shell .presenter-page.controls-open .qr-panel{justify-items:center;width:100%}.desktop-shell .presenter-page.controls-open .qr-panel .panel-heading{justify-content:center;width:100%;position:relative}.desktop-shell .presenter-page.controls-open .qr-window-actions{position:absolute;right:0}.desktop-shell .presenter-controls-overlay{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;padding:0;position:static;top:auto;right:auto;overflow:visible}.desktop-shell .presenter-page.selecting-capture{padding:0;display:block;overflow:hidden}.stage{pointer-events:none;justify-content:center;align-items:center;min-height:100svh;padding:32px;display:flex;position:relative;overflow:hidden}.stage h1{color:#fff;text-align:center;max-width:900px;font-size:64px}.stage-image{object-fit:contain;max-width:100%;max-height:92svh}.presenter-controls-overlay{background:var(--bg);border-left:1px solid var(--border);overscroll-behavior:contain;z-index:3;gap:14px;width:360px;max-height:calc(100svh - 24px);padding:14px;display:grid;position:fixed;top:244px;right:16px;overflow:auto;box-shadow:-20px 0 48px #18223a33}.qr-floating{z-index:5;touch-action:manipulation;width:230px;position:fixed;top:16px;right:16px}.presenter-page.controls-open .qr-floating{width:360px}.presenter-page.controls-open .qr-panel{justify-items:center;width:100%}.presenter-page.controls-open .qr-panel .panel-heading{justify-content:center;width:100%}.qr-floating .qr-panel{grid-template-columns:minmax(0,1fr);gap:4px;padding:8px}.qr-floating .qr-panel>*{min-width:0}.qr-floating .qr-box,.qr-floating .join-url{justify-self:stretch;width:100%}.qr-floating .qr-box svg{width:172px;height:172px;display:block}.qr-floating .join-url{display:block}.panel-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.qr-panel .panel-heading{gap:8px}.qr-panel .panel-heading h2{white-space:nowrap;align-items:center;gap:6px;min-width:0;display:flex;overflow:hidden}.desktop-shell .qr-panel .panel-heading{-webkit-app-region:drag;app-region:drag;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.desktop-shell .qr-box{cursor:pointer;touch-action:manipulation}.desktop-shell .qr-panel .panel-heading h2{white-space:nowrap;font-size:15px}.qr-window-actions{-webkit-app-region:no-drag;flex:none;align-items:center;gap:2px;margin-top:2px;margin-right:2px;display:flex}.qr-window-actions button{border-radius:var(--radius-sm);color:var(--text);background:0 0;border:0;justify-content:center;align-items:center;width:28px;min-height:30px;padding:0;display:flex}.qr-window-actions button:hover{background:var(--track)}.qr-window-actions button:last-child:hover{background:var(--danger);color:#fff}.code,.status{background:var(--track);color:var(--text);border-radius:999px;padding:4px 8px;font-size:13px;font-weight:700}.status.active{background:var(--success-soft);color:var(--success)}.status.stopped{background:var(--danger-soft);color:var(--danger-dark)}.qr-panel,.control-panel,.result-panel,.message-form{gap:12px;display:grid}.qr-box{justify-content:center;display:flex}.join-url{color:var(--muted);overflow-wrap:anywhere;text-align:center;font-size:12px}.desktop-shell .join-url{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.2;overflow:hidden}.ghost-button{background:var(--surface);border-color:var(--border);color:var(--text)}.ghost-button:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.end-class-button{background:var(--surface);color:var(--danger);border-color:#d4584e6b;width:100%}.end-class-button:hover{background:var(--danger-soft);border-color:var(--danger)}.control-toggle-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.control-toggle-row button{min-width:0;padding:10px 6px;font-size:13px}.control-section{border-top:1px solid var(--border);gap:9px;padding-top:12px;display:grid}.control-section-label{color:var(--muted);letter-spacing:.06em;align-items:center;gap:6px;font-size:12px;font-weight:800;display:flex}.control-toggle{background:var(--surface);border-color:var(--border);color:var(--muted);text-align:left;grid-template-columns:18px minmax(0,1fr) auto;justify-content:stretch;gap:4px;display:grid}.control-toggle:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.control-toggle b{background:var(--track);color:var(--muted);border-radius:999px;padding:3px 7px;font-size:11px}.control-toggle.is-active{background:var(--success-soft);color:var(--success);border-color:#288a6247}.control-toggle.is-active b{background:var(--surface);color:var(--success)}.control-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.control-action-grid>:last-child:nth-child(odd){flex-direction:row;grid-column:1/-1;min-height:50px}.control-action{background:var(--surface);border-color:var(--border);color:var(--text);flex-direction:column;min-height:76px;padding:10px 8px;font-size:13px}.control-action:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.control-action-icon{background:var(--track);border-radius:9px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.share-action .control-action-icon{background:var(--share-soft);color:var(--share)}.share-action:hover{background:var(--share-soft);border-color:#259d9047}.energy-control-action .control-action-icon{background:var(--energy-soft);color:var(--energy)}.caption-control-action.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.caption-control-action.is-active .control-action-icon{color:#fff;background:#ffffff2e}.caption-control-error{margin:0;font-size:12px;line-height:1.45}.live-caption-overlay{color:#fff;pointer-events:none;z-index:4;background:#0a0f1ceb;border:1px solid #fff3;justify-content:center;align-items:center;gap:14px;width:max-content;max-width:min(920px,100vw - 48px);padding:14px 18px;display:flex;position:fixed;left:50%;box-shadow:0 12px 32px #00000047}.live-caption-overlay.caption-position-bottom{top:auto;bottom:18px;transform:translate(-50%)}.live-caption-overlay.caption-position-top{top:18px;bottom:auto;transform:translate(-50%)}.live-caption-overlay.caption-position-center{top:50%;bottom:auto;transform:translate(-50%,-50%)}.live-caption-language{color:#b9f2e8;flex:none;align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.live-caption-overlay p{overflow-wrap:anywhere;text-align:center;white-space:normal;max-width:100%;margin:0;font-size:clamp(20px,2.4vw,32px);line-height:1.35}.participant-language-switcher{bottom:max(18px, env(safe-area-inset-bottom));right:max(18px, env(safe-area-inset-right));z-index:60;justify-items:end;gap:8px;display:grid;position:fixed}.participant-language-button{background:var(--surface-strong);box-shadow:var(--shadow-lg);color:#fff;border:1px solid #ffffff2e;border-radius:999px;align-items:center;gap:7px;min-height:48px;padding:10px 14px;display:inline-flex}.participant-language-menu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);min-width:170px;padding:6px;display:grid;overflow:hidden}.participant-language-menu button{color:var(--text);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.participant-language-menu button:hover,.participant-language-menu button[aria-checked=true]{background:var(--primary-soft);color:var(--primary-dark)}.desktop-overlay-root .live-caption-overlay{border-radius:var(--radius-md);box-shadow:var(--shadow-sm);color:var(--text);z-index:3;background:#ffffffe0;border:1px solid #dfe2e8d9;align-items:center;width:max-content;max-width:min(1400px,100vw - 96px);padding:12px 18px;left:50%}.desktop-overlay-root .live-caption-overlay.caption-position-bottom{bottom:48px}.desktop-overlay-root .live-caption-overlay.caption-position-top{top:48px}.desktop-overlay-root .live-caption-language{color:var(--share-dark);font-size:16px}.desktop-overlay-root .live-caption-overlay p{width:auto;font-size:clamp(28px,3vw,48px)}.energy-control-action:hover{background:var(--energy-soft);border-color:#c78b204d}.control-footer-actions{gap:8px;display:grid}.stop-question-button{background:var(--surface);border-color:var(--border);color:var(--text)}.stop-question-button:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.exit-ticket-button{background:var(--primary-soft);color:var(--primary-dark);border-color:#5b5ce240}.exit-ticket-button:hover{border-color:var(--primary);background:#e5e5ff}.question-history{gap:10px;padding:10px;display:grid}.question-history-toggle{background:var(--surface);border-color:var(--border);color:var(--text);text-align:left;grid-template-columns:22px minmax(0,1fr) auto 22px;width:100%;display:grid}.question-history-toggle:hover{background:var(--track)}.question-history-toggle strong{background:var(--track);text-align:center;border-radius:999px;min-width:24px;padding:2px 7px}.question-history-list{gap:6px;display:grid}.question-history-item{background:var(--surface);border-color:var(--border);color:var(--text);text-align:left;grid-template-columns:auto minmax(0,1fr) auto;justify-content:stretch;gap:2px;width:100%;min-height:48px;display:grid}.question-history-item:hover{background:var(--track)}.question-history-item.selected{background:var(--primary-soft);border-color:#5b5ce266}.question-history-item span,.question-history-item small{color:var(--muted);font-size:12px}.question-history-item small{text-align:right}.question-history-return{background:var(--surface-strong);border-color:var(--surface-strong);min-height:38px}.question-heading-actions{align-items:center;gap:8px;display:flex}.question-unanswered-draw{justify-content:center;align-items:center;width:48px;height:48px;padding:0;display:inline-flex}.file-button input{display:none}.metric{align-items:center;gap:8px;font-weight:700;display:flex}.metric-row{justify-content:space-between;align-items:center;display:flex}.metric-actions{align-items:center;gap:6px;display:flex}.metric-action{min-width:40px;min-height:36px;padding:6px}.buzzer-menu-button.active{background:var(--danger);border-color:var(--danger);color:#fff}.energy-action{color:var(--energy-dark)}.energy-action:hover{background:var(--energy-soft);border-color:#c78b2059}.danmaku-layer{pointer-events:none;z-index:2;position:fixed;inset:0;overflow:hidden}.danmaku-item{border-radius:var(--radius-md);box-shadow:var(--shadow-sm);color:var(--text);text-overflow:clip;white-space:nowrap;background:#ffffffe0;border:1px solid #dfe2e8d9;width:max-content;max-width:none;padding:8px 14px;font-size:24px;font-weight:700;animation-name:danmaku-move;animation-timing-function:linear;position:absolute;left:100%;overflow:visible}@keyframes danmaku-move{0%{transform:translate(0)}to{transform:translate(calc(-100vw - 100%))}}.option-results{gap:10px;display:grid}.bar-row{grid-template-columns:82px minmax(0,1fr) 60px;align-items:center;gap:8px;display:grid}.bar-track{background:var(--track);border-radius:999px;height:12px;overflow:hidden}.bar-fill{background:var(--primary);height:100%}.correct-option{background:var(--success);border-color:var(--success)}.correctness{background:var(--success-soft);border-radius:var(--radius-md);color:var(--success);border:1px solid #288a6233;justify-content:space-between;align-items:center;padding:12px;display:flex}.ai-analysis-panel,.analysis-content,.analysis-content section,.analysis-content details{gap:10px;display:grid}.ai-analysis-panel .panel-heading{align-items:flex-start}.ai-analysis-panel .panel-heading h2{align-items:center;gap:7px;display:flex}.analysis-content{border-top:1px solid var(--border);padding-top:12px}.analysis-content h3,.analysis-content h4{letter-spacing:0;margin:0}.analysis-content h3{font-size:16px}.analysis-content h4{margin-top:4px;font-size:14px}.analysis-content details{border-top:1px solid var(--border);padding-top:10px}.analysis-content summary{cursor:pointer;font-weight:700}.analysis-list{gap:6px;margin:0;padding-left:20px;display:grid}.ai-suggestion{background:var(--primary-soft);border-radius:var(--radius-md);border:1px solid #5b5ce240;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;display:flex}.ai-suggestion .ghost-button{margin-left:auto}.modal-backdrop{overscroll-behavior:contain;touch-action:pan-y;z-index:10;background:#18223a9e;justify-content:center;align-items:flex-start;padding:24px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--surface);border-radius:var(--radius-lg);border:1px solid #ffffff8c;gap:14px;width:100%;max-width:520px;margin:auto;padding:20px;display:grid;box-shadow:0 24px 72px #18223a40}.confirm-backdrop{z-index:40}.confirm-dialog{max-width:500px}.confirm-dialog-heading{grid-template-columns:42px minmax(0,1fr) 40px;align-items:flex-start;gap:12px;display:grid}.confirm-dialog-heading>span{background:var(--danger-soft);color:var(--danger);border-radius:10px;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.confirm-dialog-heading p{color:var(--muted);margin-top:6px;line-height:1.6}.confirm-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.confirm-dialog-actions>button{flex:140px}.danger-button{background:var(--danger);border-color:var(--danger)}.danger-button:hover{background:var(--danger-dark);border-color:var(--danger-dark)}.pause-button{background:var(--energy);border-color:var(--energy);color:#fff}.pause-button:hover{background:var(--energy-dark);border-color:var(--energy-dark);color:#fff}.danger-ghost-button{background:var(--surface);color:var(--danger);border-color:#d4584e6b}.danger-ghost-button:hover{background:var(--danger-soft);border-color:var(--danger)}.session-manager-modal{max-width:820px;max-height:min(780px,100svh - 48px);overflow:auto}.session-manager-heading-actions,.managed-session-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.session-manager-content,.session-manager-content>section,.managed-session-list{gap:12px;display:grid}.session-manager-content{gap:22px}.session-manager-content>section>h3{align-items:center;gap:8px;display:flex}.session-manager-content>section>h3 span{background:var(--track);border-radius:999px;padding:3px 7px;font-size:12px}.managed-session-item{border:1px solid var(--border);border-radius:var(--radius-md);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;display:grid}.managed-session-meta{gap:6px;min-width:0;display:grid}.managed-session-meta>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.managed-session-meta h3{overflow-wrap:anywhere}.managed-session-meta p,.session-manager-loading{color:var(--muted);font-size:13px}.session-manager-loading{justify-content:center;align-items:center;gap:8px;min-height:160px;display:flex}.status.ended{background:var(--track);color:var(--muted)}.question-modal{max-width:560px}.capture-preview{background:var(--surface-strong);border-radius:var(--radius-md);object-fit:contain;width:100%;max-height:280px}.type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.type-grid .send-screen-type{grid-column:auto}.selected-type{background:var(--primary);border-color:var(--primary);color:#fff}.selected-type:hover,.selected-type:focus-visible{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}.type-grid .ghost-button{min-height:48px}.option-editor{gap:10px;display:grid}.question-prompt-field{gap:7px;display:grid}.custom-quiz-editor{gap:14px;display:grid}.custom-quiz-settings-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.custom-quiz-settings-row label{gap:7px;font-weight:700;display:grid}.custom-quiz-hint{margin:-4px 0 0;font-size:13px}.custom-quiz-result .result-heading,.quiz-status-heading,.quiz-graded-item>div{justify-content:space-between;align-items:center;gap:16px;display:flex}.custom-quiz-result .eyebrow,.quiz-grading-note{align-items:center;gap:7px;display:flex}.custom-quiz-heading-actions{flex:none;align-items:center;gap:8px;display:flex}.custom-quiz-heading-actions .icon-button{border-radius:10px;min-width:38px;min-height:38px;padding:7px}.quiz-result-stats{grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0;display:grid}.quiz-result-stats>div{background:var(--surface-soft);border-radius:16px;flex-direction:column;padding:14px;display:flex}.quiz-result-stats strong{font-size:1.45rem}.quiz-attempt-list,.custom-quiz-form{gap:14px;display:grid}.presenter-quiz-review-hint{color:var(--muted);margin:0 0 12px;font-size:13px}.presenter-quiz-inline-review{max-height:440px;margin-bottom:18px;padding-right:4px;overflow:auto}.presenter-quiz-review-list{gap:12px;display:grid}.presenter-quiz-review-item{background:var(--surface-soft);border:1px solid var(--border);border-radius:14px;gap:12px;padding:14px;display:grid}.presenter-quiz-question-heading{grid-template-columns:28px minmax(0,1fr) auto;align-items:flex-start;gap:10px;line-height:1.45;display:grid}.presenter-quiz-question-heading>span{background:var(--primary);color:#fff;border-radius:50%;place-items:center;width:28px;height:28px;font-size:13px;display:grid}.presenter-quiz-question-heading small{color:var(--muted);white-space:nowrap}.presenter-quiz-options{gap:8px;display:grid}.presenter-quiz-options button{border-color:var(--border);color:var(--text);text-align:left;background:#fff;justify-content:flex-start;align-items:center;gap:10px;width:100%;min-height:42px;padding:9px 12px;font-weight:500;display:flex}.presenter-quiz-options button.selected{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.presenter-answer-marker{border:1px solid;border-radius:50%;flex:0 0 22px;place-items:center;width:22px;height:22px;display:grid}.presenter-reference-answer{gap:8px;display:grid}.presenter-reference-answer label{color:var(--muted);font-size:13px;font-weight:700}.presenter-reference-answer textarea{min-height:76px}.presenter-reference-answer button{justify-self:end}.custom-quiz-review-backdrop{z-index:120;background:#18223aad;justify-content:center;align-items:center;padding:3vh 3vw;display:flex;position:fixed;inset:0}.custom-quiz-review-modal{background:var(--surface);border:1px solid #ffffffa6;border-radius:22px;grid-template-rows:auto minmax(0,1fr);width:80vw;height:80vh;display:grid;overflow:hidden;box-shadow:0 28px 90px #18223a59}.custom-quiz-review-modal>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;display:flex}.custom-quiz-review-modal h2,.custom-quiz-review-modal h3,.custom-quiz-review-modal p{margin:0}.custom-quiz-review-content{grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);gap:18px;min-height:0;padding:18px;display:grid}.custom-quiz-source-panel,.custom-quiz-question-panel{background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;min-height:0;padding:16px;overflow:auto}.custom-quiz-source-panel img{border-radius:12px;max-width:100%;height:auto;margin-top:12px;display:block}.custom-quiz-question-panel>h3{margin-bottom:12px}.custom-quiz-native-page{background:var(--background);grid-template-rows:auto minmax(0,1fr);height:100vh;display:grid;overflow:hidden}.custom-quiz-native-page>header{-webkit-app-region:drag;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 22px;display:flex}.custom-quiz-native-page>header h1,.custom-quiz-native-page>header p{margin:0}.custom-quiz-native-page>header h1{margin-top:4px;font-size:clamp(1.35rem,2vw,2rem)}.custom-quiz-native-page>header button{-webkit-app-region:no-drag}.custom-quiz-native-content{grid-template-columns:minmax(320px,.85fr) minmax(440px,1.15fr);gap:20px;min-height:0;padding:20px;display:grid}.custom-quiz-native-content .custom-quiz-source-panel,.custom-quiz-native-content .custom-quiz-question-panel{background:var(--surface)}.custom-quiz-native-content h2{margin:0 0 12px}.custom-quiz-native-error,.custom-quiz-native-loading{margin:24px}.quiz-attempt-list article,.quiz-graded-item,.custom-quiz-item{border:1px solid var(--border);background:#fff;border-radius:16px;padding:16px}.quiz-attempt-list article>div{justify-content:space-between;gap:12px;display:flex}.quiz-attempt-list p,.quiz-graded-item p,.quiz-overall-feedback{margin:8px 0 0}.participant-custom-quiz{gap:18px;display:grid}.quiz-status-heading{justify-content:flex-start}.quiz-status-heading h2,.quiz-status-heading p{margin:0}.quiz-total-score{color:var(--primary);margin-left:auto;font-size:1.7rem}.custom-quiz-item{min-width:0;margin:0}.custom-quiz-item legend{align-items:flex-start;gap:10px;width:100%;padding:0 4px 10px;font-weight:650;display:flex}.custom-quiz-item legend>span{background:var(--primary);color:#fff;border-radius:50%;flex:0 0 30px;place-items:center;width:30px;height:30px;display:grid}.custom-quiz-item legend small{color:var(--muted);white-space:nowrap;margin-left:auto}.custom-quiz-item>input,.custom-quiz-item>textarea{width:100%}.quiz-choice-list{gap:9px;display:grid}.quiz-choice-list label{border:1px solid var(--border);cursor:pointer;border-radius:13px;align-items:center;gap:10px;padding:12px 14px;display:flex}.quiz-choice-list input[type=radio]{accent-color:var(--primary);flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;padding:0}.quiz-choice-list label>span{flex:auto;min-width:0;line-height:1.45}.quiz-choice-list label.selected{background:var(--primary-soft);border-color:var(--primary)}.option-edit-row{grid-template-columns:minmax(0,1fr) 44px;gap:8px;display:grid}.icon-button{min-height:40px;padding:8px}.capture-selection-layer{cursor:crosshair;overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none;z-index:100;position:fixed;inset:0}.capture-selection-hint{color:#fff;background:#18223ae0;border:1px solid #fff3;border-radius:999px;padding:10px 16px;font-weight:700;position:fixed;top:20px;left:50%;transform:translate(-50%)}.capture-selection-box{border:2px solid var(--primary);background:#5b5ce224;position:fixed;box-shadow:0 0 0 9999px #18223a17}.modal-actions{justify-content:flex-end;gap:10px;display:flex}.participant-page{gap:18px;max-width:720px;margin:0 auto;padding-top:32px;display:grid}.participant-live-captions{background:var(--surface-strong);color:#fff;gap:14px;display:grid}.participant-caption-heading{justify-content:space-between;align-items:center;display:flex}.participant-caption-heading>span{color:#b9f2e8;align-items:center;gap:7px;font-weight:800;display:inline-flex}.participant-caption-heading select{color:#fff;background:#ffffff1f;border-color:#ffffff3d;max-width:180px;padding:8px 10px}.participant-caption-heading option{color:var(--text)}.participant-live-captions>p{min-height:33px;font-size:22px;font-weight:750;line-height:1.5}.participant-interpretation-audio{gap:12px;display:grid}.participant-interpretation-heading{justify-content:space-between;align-items:center;display:flex}.participant-interpretation-heading>span{color:var(--primary-dark);align-items:center;gap:7px;font-weight:850;display:inline-flex}.participant-interpretation-heading .interpretation-speaker-test{color:var(--success);background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;padding:0;display:inline-flex}.participant-interpretation-heading .interpretation-speaker-test:hover,.participant-interpretation-heading .interpretation-speaker-test:focus-visible{background:var(--success-soft)}.participant-interpretation-audio label{gap:6px;display:grid}.participant-interpretation-audio button{justify-self:start}.interpretation-language-buttons{flex-wrap:wrap;gap:8px;display:flex}.interpretation-language-buttons button{min-height:40px;padding:8px 12px}.interpretation-language-buttons button.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.participant-interpretation-audio>p{font-size:13px}.interpretation-playing-icon{color:var(--success)}@media (width<=560px){.caption-language-row,.caption-language-options{grid-template-columns:1fr}.live-caption-overlay{flex-direction:column;align-items:stretch;gap:6px}}.student-social-links{z-index:30;align-items:center;gap:8px;display:flex;position:fixed;top:14px;right:14px}.student-social-link{border:1px solid var(--border);box-shadow:var(--shadow-sm);background:#ffffffeb;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;transition:box-shadow .16s,transform .16s;display:inline-flex}.student-social-link:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.student-social-link:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.student-social-link svg{fill:currentColor;width:22px;height:22px}.student-social-link.facebook{color:#1877f2}.student-social-link.youtube{color:red}.student-social-link .youtube-play{fill:#fff}.student-social-link.viewsonic img{object-fit:contain;width:30px;height:30px}.participant-header{background:var(--surface);border:1px solid var(--border);border-left:5px solid var(--primary);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:16px 18px}.participant-header h1{letter-spacing:0;font-size:24px;line-height:1.45}.participant-exit-ticket-priority .exit-ticket-panel{border:2px solid var(--primary);box-shadow:0 12px 30px #5b5ce229}.participant-ended-page{align-content:start;padding-bottom:48px}.participant-ended-hero{background:radial-gradient(circle at 88% 12%, #bfe8d08c, transparent 14rem), linear-gradient(145deg, var(--primary-soft), var(--surface));box-shadow:var(--shadow-md);text-align:center;border:1px solid #5b5ce22e;border-radius:24px;justify-items:center;padding:clamp(32px,8vw,58px) 24px;display:grid}.participant-ended-icon{background:var(--primary);color:#fff;border-radius:18px;justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:18px;display:inline-flex;transform:rotate(-4deg);box-shadow:0 12px 28px #5b5ce23d}.participant-ended-hero .eyebrow{color:var(--primary-dark);font-weight:800}.participant-ended-hero h1{margin:8px 0 12px;font-size:clamp(44px,12vw,68px)}.participant-ended-hero>p:last-child{color:var(--muted);font-size:18px}.participant-summary-panel{border-top:4px solid var(--primary);gap:22px;display:grid}.participant-ended-shared-panel{border-top:4px solid var(--success)}.participant-summary-heading{align-items:center;gap:12px;display:flex}.participant-summary-heading .heading-icon{width:42px;height:42px}.participant-summary-heading .eyebrow{color:var(--primary);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:800}.participant-summary-heading h2{margin-top:3px}.participant-summary-content,.participant-summary-section{gap:10px;display:grid}.participant-summary-content{gap:20px}.participant-summary-lead{background:var(--primary-soft);border-radius:var(--radius-md);color:var(--text);padding:18px;font-size:18px;font-weight:700;line-height:1.7}.participant-summary-section{border-top:1px solid var(--border);padding-top:18px}.participant-summary-section h3{align-items:center;gap:8px;margin:0;font-size:16px;display:flex}.participant-summary-section p,.participant-summary-section li{color:var(--muted);line-height:1.75}.participant-summary-section ul{gap:8px;margin:0;padding-left:22px;display:grid}.participant-summary-pending{background:var(--surface-subtle);border-radius:var(--radius-md);color:var(--muted);align-items:center;gap:12px;padding:18px;line-height:1.6;display:flex}.participant-summary-pending svg{color:var(--primary);flex:none}.session-closed-card{text-align:center;justify-items:center}.participant-image{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);object-fit:contain;width:100%;max-height:50svh}.participant-question,.choice-list,.multi-choice-form,.multi-choice-list,.short-answer-form{gap:12px;display:grid}.multi-select-setting,.multi-choice-option{align-items:center;gap:10px;display:flex}.multi-select-setting{justify-content:flex-start;font-weight:700}.multi-select-setting input,.multi-choice-option input{width:18px;height:18px;margin:0}.multi-choice-option{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);cursor:pointer;min-height:48px;padding:12px 14px}.multi-choice-option.selected{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-dark)}.choice-list button{background:var(--surface);border-color:var(--border);color:var(--text);text-align:left;justify-content:flex-start;width:100%;min-height:52px;padding-inline:16px}.choice-list button:hover{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-dark)}.message-form{border-top:4px solid var(--primary)}.message-limit{color:var(--muted);font-size:13px;line-height:1.5}.message-limit.over-limit{color:var(--danger);font-weight:700}.message-form>button,.participant-question form>button,.exit-ticket-form>button{min-height:50px}.audio-recorder,.audio-response-card,.audio-result-list,.audio-result-item{gap:8px;display:grid}.recording-button{width:100%;min-height:72px}.recording-button.active{background:var(--danger);border-color:var(--danger);color:#fff}.audio-response-card,.audio-result-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text);align-content:start;padding:12px}.audio-response-card audio,.audio-result-item audio{width:min(100%,440px);max-width:440px;height:40px}.audio-feedback-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.audio-feedback-heading h3,.audio-feedback-heading p,.audio-feedback-summary,.audio-analysis-grid p,.audio-feedback-section ul{margin:0}.audio-feedback-summary{font-weight:650;line-height:1.55}.audio-analysis-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.audio-analysis-grid>div{background:var(--surface-subtle);border-left:3px solid var(--primary);padding:8px 10px}.audio-analysis-grid strong,.audio-feedback-section>strong{color:var(--primary-dark);margin-bottom:3px;font-size:13px;display:block}.audio-analysis-grid p,.audio-feedback-section li,.audio-response-card details,.audio-result-item details{font-size:14px;line-height:1.5}.audio-feedback-section ul{padding-left:20px}.audio-response-card details,.audio-result-item details{border-top:1px solid var(--border);padding-top:7px}.audio-score{color:var(--primary-dark);align-items:baseline;gap:4px;display:flex}.audio-score strong{font-size:30px;line-height:1}.audio-result-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.audio-result-score{background:var(--primary-soft);color:var(--primary-dark);border-radius:6px;padding:4px 8px;font-weight:800}@media (width<=640px){.audio-analysis-grid{grid-template-columns:minmax(0,1fr)}}@keyframes spin{to{transform:rotate(360deg)}}.detected-question{margin:10px 0;font-size:18px;font-weight:700}.exit-ticket-panel,.exit-ticket-form{gap:12px;display:grid}.exit-ticket-question{border:1px solid var(--border);border-radius:var(--radius-md);gap:12px;margin:0;padding:14px;display:grid}.exit-ticket-question legend,.exit-ticket-question-title{color:var(--text);font-weight:700;line-height:1.5}.exit-ticket-question legend{padding:0 6px}.exit-ticket-question legend span,.exit-ticket-question-title b{background:var(--track);color:var(--muted);border-radius:6px;margin-right:8px;padding:3px 6px;font-size:12px}.exit-ticket-submitted{gap:8px;display:grid}.exit-ticket-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.exit-ticket-heading span{background:var(--primary-soft);color:var(--primary-dark);border-radius:999px;padding:5px 9px;font-size:13px;font-weight:700}.exit-ticket-prompt{margin:0;font-size:18px;font-weight:700;line-height:1.55}.star-rating{grid-template-columns:repeat(5,48px);justify-content:center;gap:6px;display:grid}.star-rating button{color:#b8bdc7;background:0 0;border:0;min-height:48px;padding:6px}.star-rating button.selected{color:var(--energy)}.exit-ticket-result{gap:12px;display:grid}.exit-ticket-rating-summary{background:var(--energy-soft);border-radius:var(--radius-md);color:var(--energy-dark);border:1px solid #c78b204d;align-items:center;gap:10px;padding:12px;display:flex}.exit-ticket-rating-summary div{gap:2px;display:grid}.exit-ticket-rating-summary strong{font-size:24px}.exit-ticket-rating-summary span,.exit-ticket-response-heading span{color:var(--muted);font-size:12px}.rating-distribution{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;display:grid}.rating-distribution div{background:var(--track);text-align:center;border-radius:6px;gap:3px;padding:7px 3px;display:grid}.rating-distribution span{color:var(--muted);font-size:11px}.exit-ticket-response-heading{border-top:1px solid var(--border);align-items:flex-start;gap:8px;padding-top:12px;display:flex}.exit-ticket-response-heading div{gap:3px;display:grid}.exit-ticket-response-heading p{font-size:14px;font-weight:700;line-height:1.45}.exit-ticket-response-list{gap:0;max-height:280px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.exit-ticket-response-list li{border-top:1px solid var(--border);gap:4px;padding:9px 2px;display:grid}.exit-ticket-response-list li strong{font-size:12px}.exit-ticket-response-list li span{line-height:1.5}.modal-heading,.field-label-with-icon,.shared-content-heading,.shared-content-actions{align-items:center;display:flex}.modal-heading{justify-content:space-between}.modal-heading>div{gap:4px;display:grid}.field-label-with-icon,.shared-content-heading{gap:7px}.shared-content-heading{justify-content:space-between}.shared-content-heading>div{align-items:center;gap:7px;display:flex}.shared-content-toggle{min-height:36px;padding:6px 10px;font-size:13px}.text-dispatch-modal{max-width:620px}.presenter-settings-backdrop{z-index:45}.presenter-settings-modal{max-width:680px}.presenter-settings-modal .modal-heading h2,.presenter-settings-section-heading,.presenter-settings-section-heading>span,.microphone-meter-row{align-items:center;display:flex}.presenter-settings-modal .modal-heading h2{gap:8px}.presenter-settings-section{background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-md);gap:12px;padding:14px;display:grid}.presenter-settings-section-heading{justify-content:space-between}.presenter-settings-section-heading>span{color:var(--text);gap:7px;font-size:14px;font-weight:800}.settings-refresh-button{min-height:32px;padding:5px 9px;font-size:12px}.microphone-meter-row{gap:10px}.microphone-meter-row>span:first-child{color:var(--muted);flex:none;font-size:12px;font-weight:700}.microphone-meter{background:var(--track);border-radius:999px;flex:1;height:9px;overflow:hidden}.microphone-meter>span{background:linear-gradient(90deg, var(--success), var(--energy));border-radius:inherit;min-width:2px;height:100%;transition:width 80ms linear;display:block}.compact-error{margin:0;font-size:12px}.shared-content-section,.shared-content-list{gap:10px;display:grid}.shared-content-item{background:var(--primary-soft);border:1px solid #5b5ce23d;border-left:4px solid var(--primary);border-radius:var(--radius-md);gap:12px;padding:14px;display:grid}.shared-content-item p{white-space:pre-wrap;word-break:break-word;line-height:1.65}.shared-content-actions{flex-wrap:wrap;gap:8px}.shared-content-time{color:var(--muted);align-items:center;gap:5px;margin-left:auto;font-size:12px;display:inline-flex}.participant-history-section{gap:10px;display:grid}.participant-history-heading,.participant-history-heading>div,.participant-history-answer,.participant-history-audio>p,.participant-history-quiz>p{align-items:center;display:flex}.participant-history-heading{justify-content:space-between}.participant-history-heading>div{gap:8px}.participant-history-heading h2{margin:0;font-size:20px}.participant-history-heading>button{min-height:38px}.participant-history-list{gap:8px;display:grid}.participant-history-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}.participant-history-toggle{background:var(--surface);color:var(--text);text-align:left;border:0;border-radius:0;grid-template-columns:minmax(70px,auto) minmax(0,1fr) 22px;width:100%;min-height:54px;padding:10px 14px;display:grid}.participant-history-toggle:hover{background:var(--track)}.participant-history-toggle span{color:var(--muted);font-size:13px}.participant-history-toggle strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.participant-history-body{border-top:1px solid var(--border);gap:12px;padding:14px;display:grid}.participant-history-body>img{border-radius:var(--radius-sm);object-fit:contain;width:100%;max-height:45svh}.participant-history-answer,.participant-history-audio>p,.participant-history-quiz>p{gap:7px;margin:0}.participant-history-audio,.participant-history-quiz{gap:10px;display:grid}.participant-history-audio audio{width:100%;height:42px}.participant-history-audio small,.participant-history-quiz small{color:var(--muted);line-height:1.5}.participant-history-quiz>div{border-top:1px solid var(--border);gap:4px;padding-top:10px;display:grid}.participant-history-quiz>div p{margin:0}@media (width<=640px){.participant-history-heading{align-items:flex-start}.participant-history-heading h2{font-size:18px}.participant-history-toggle{grid-template-columns:minmax(0,1fr) 22px}.participant-history-toggle span{grid-column:1}.participant-history-toggle strong{white-space:normal;grid-column:1}.participant-history-toggle svg{grid-area:1/2/span 2}}.lottery-overlay{color:#fff;pointer-events:none;z-index:200;background:#18223af0;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow:hidden}.lottery-overlay.interactive{pointer-events:auto}.lottery-content{text-align:center;z-index:2;flex-direction:column;align-items:center;gap:16px;max-width:90vw;display:flex;position:relative}.lottery-content svg{color:#ffc94a}.lottery-content p{color:#cbd1e0;font-size:28px;font-weight:700}.lottery-content strong{overflow-wrap:anywhere;max-width:100%;font-size:72px;line-height:1.05}.lottery-name-button{color:#fff;overflow-wrap:anywhere;background:0 0;border:0;max-width:90vw;min-height:0;padding:8px 18px;font-size:72px;font-weight:700;line-height:1.05}.lottery-name-button:hover,.lottery-name-button:focus-visible{background:#ffffff1a}.lottery-content small{color:#aeb7cc;font-size:16px}.lottery-rays{border:2px solid #5b5ce26b;border-radius:50%;width:min(64vw,64vh);height:min(64vw,64vh);position:absolute}.lottery-overlay.revealed .lottery-rays{border-color:#ffc94a9e;animation:1.5s ease-out infinite lottery-pulse}.celebration-piece{animation:2.7s linear infinite celebration-fall;animation-delay:calc(var(--piece-index) * -.13s);background:var(--primary);height:18px;left:calc(2% + var(--piece-index) * 5.4%);transform:rotate(calc(var(--piece-index) * 23deg));width:8px;position:absolute;top:-24px}.celebration-piece:nth-child(3n){background:#ffc94a}.celebration-piece:nth-child(3n+1){background:#4ed7c5}.celebration-piece:nth-child(3n+2){background:#ff7f70}.buzzer-overlay{background:var(--surface-strong);color:#fff;z-index:210;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow:hidden}.buzzer-content{text-align:center;z-index:2;flex-direction:column;align-items:center;gap:18px;max-width:92vw;display:flex;position:relative}.buzzer-content>svg{color:#ffc94a}.buzzer-content p{color:#fff;font-size:28px;font-weight:800}.buzzer-content strong{overflow-wrap:anywhere;max-width:90vw;font-size:72px;line-height:1.05}.buzzer-content small{color:#cbd1e0;font-size:16px}.buzzer-button{aspect-ratio:1;background:var(--danger);color:#fff;touch-action:manipulation;-webkit-user-select:none;user-select:none;border:16px solid #ff8379;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:8px;width:min(72vw,340px);max-height:44vh;padding:24px;display:flex;box-shadow:0 18px #98352f,0 28px 54px #00000073}.buzzer-button span{font-size:32px;font-weight:900}.buzzer-button:not(:disabled):active{translate:0 12px;box-shadow:0 6px #98352f,0 14px 28px #00000061}.buzzer-button:disabled{cursor:default;opacity:1}.buzzer-button.waiting{background:var(--muted);border-color:#9da6b7;box-shadow:0 18px #444d5e,0 28px 54px #00000073}.buzzer-button.waiting:not(:disabled):active{box-shadow:0 6px #444d5e,0 14px 28px #00000061}.buzzer-rings{border:3px solid #ff837994;border-radius:50%;width:min(68vw,68vh);height:min(68vw,68vh);position:absolute}.buzzer-overlay.active .buzzer-rings{animation:1.15s ease-out infinite buzzer-pulse}.buzzer-overlay.revealed .buzzer-rings{border-color:#ffc94aa3;animation:1.5s ease-out infinite lottery-pulse}@keyframes buzzer-pulse{0%{opacity:.95;transform:scale(.72)}to{opacity:0;transform:scale(1.18)}}@media (width<=520px){.buzzer-content strong{font-size:42px}.buzzer-button{border-width:12px;width:min(76vw,300px);max-height:38vh}.buzzer-button span{font-size:28px}}@keyframes lottery-pulse{0%{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.45)}}@keyframes celebration-fall{0%{translate:0 -10vh}to{translate:30px 115vh;rotate:560deg}}.word-cloud-page{background:var(--surface-strong);color:#f7f8fc;grid-template-rows:auto minmax(0,1fr);height:100vh;padding:58px 34px 26px;display:grid;overflow:hidden}.word-cloud-header{border-bottom:1px solid #ffffff24;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:16px;display:flex}.word-cloud-header>div:first-child{gap:6px;display:grid}.word-cloud-header p,.word-cloud-tools>span{color:#b9c1d2;align-items:center;gap:7px;font-size:13px;font-weight:700;display:flex}.word-cloud-header h1{color:#fff;font-size:26px}.word-cloud-tools{place-items:flex-end end;gap:8px;display:grid}.segmented-control{border-radius:var(--radius-md);background:#ffffff12;border:1px solid #ffffff24;padding:3px;display:flex}.segmented-control button{color:#c5cbda;background:0 0;border:0;border-radius:5px;min-height:34px;padding:6px 12px}.segmented-control button.selected{background:var(--surface);color:var(--surface-strong)}.word-cloud-canvas{min-height:0;position:relative;overflow:hidden}.word-cloud-word{letter-spacing:0;text-shadow:0 2px 18px #0000004d;white-space:nowrap;font-weight:700;line-height:1;transition:color .3s,font-size .5s,transform .6s;position:absolute}.word-cloud-empty{color:#929db4;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.word-cloud-error{color:#ffd6d0;background:#c640362e;border:1px solid #ff7f6e73;margin:0 28px 12px;padding:10px 14px}.session-report-page{background:var(--bg);min-height:100vh;padding:64px 34px 48px}.report-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-end;gap:24px;max-width:1240px;margin:0 auto;padding-bottom:20px;display:flex}.report-header h1{align-items:center;gap:10px;margin:6px 0 8px;font-size:28px;display:flex}.report-actions{flex-wrap:wrap;gap:10px;display:flex}.report-mode-picker{border:1px solid var(--border);text-align:left;border-radius:12px;flex-direction:column;gap:10px;max-width:460px;margin:4px 0 16px;padding:14px 16px;display:flex}.report-mode-picker legend{padding:0 6px;font-size:.85rem;font-weight:600}.report-mode-picker label{cursor:pointer;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 10px;display:grid}.report-mode-picker input{grid-row:span 2;margin:0}.report-mode-label{font-weight:600}.report-mode-hint{color:var(--muted);grid-column:2;font-size:.8rem}.report-loading{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}.report-loading h1{font-size:28px}.spin{animation:.9s linear infinite spin}.report-inline-error{max-width:1240px;margin:14px auto 0}.report-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-width:1240px;margin:20px auto;display:grid}.report-metrics article{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);grid-template-columns:24px minmax(0,1fr);align-items:center;gap:6px;min-height:96px;padding:14px;display:grid}.report-metrics article svg{color:var(--primary);grid-row:span 2}.report-metrics article span{color:var(--muted);font-size:13px}.report-metrics article strong{font-size:22px}.report-section{border-bottom:1px solid var(--border);gap:12px;max-width:1240px;margin:0 auto;padding:24px 4px;display:grid}.report-summary-band{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--primary);max-width:1240px;padding:22px 24px}.report-section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.report-section h3{margin:8px 0 0;font-size:15px}.report-lead{font-size:17px;font-weight:700;line-height:1.7}.engagement-badge{white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:13px;font-weight:700}.engagement-badge.high{background:var(--success-soft);color:var(--success)}.engagement-badge.medium{background:var(--energy-soft);color:var(--energy-dark)}.engagement-badge.low{background:var(--danger-soft);color:var(--danger-dark)}.report-two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;max-width:1240px;margin:0 auto;display:grid}.report-list{gap:8px;margin:0;padding-left:22px;line-height:1.6;display:grid}.report-table-wrap{border:1px solid var(--border);overscroll-behavior:contain;touch-action:pan-x pan-y;overflow-x:auto}.report-table{border-collapse:collapse;width:100%;min-width:820px}.report-table th,.report-table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:11px 12px;line-height:1.5}.report-table th{background:var(--surface-strong);color:#fff;font-size:13px}.report-table tr:nth-child(2n) td{background:var(--surface-subtle)}@media (any-pointer:coarse){.desktop-window-chrome{height:48px}.desktop-window-actions button{width:48px;min-height:47px}.desktop-shell .center-page{padding-top:68px}button,.primary-link,.file-button{min-height:48px}input,textarea{min-height:48px;font-size:16px}.qr-window-actions button,.icon-button{min-width:48px;min-height:48px}.desktop-shell .qr-window-actions button{width:32px;min-width:32px;min-height:32px}.analysis-content summary{align-items:center;min-height:48px;display:flex}.multi-select-setting input,.multi-choice-option input{width:24px;height:24px}.question-history-toggle,.question-history-item{min-height:48px}}@media (width<=900px){.custom-quiz-settings-row,.quiz-result-stats{grid-template-columns:1fr}.custom-quiz-review-modal{width:92vw;height:88vh}.custom-quiz-review-content,.custom-quiz-native-content{grid-template-columns:1fr;overflow:auto}.custom-quiz-source-panel,.custom-quiz-question-panel{overflow:visible}.managed-session-item{grid-template-columns:minmax(0,1fr)}.managed-session-actions>button{flex:150px}.student-social-links{top:12px;right:12px}.stage{min-height:54svh}.presenter-controls-overlay{width:auto;max-height:none;position:fixed;top:220px;right:12px}.danmaku-layer{inset:0}.home-actions,.join-form{flex-direction:column}.notice{top:12px;left:12px;right:12px}.qr-floating{width:180px}.session-report-page{padding:58px 16px 32px}.report-header,.report-section-heading{flex-direction:column;align-items:flex-start}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-two-column{grid-template-columns:1fr;gap:0}}.file-transfer-modal{width:min(640px,92vw);max-width:640px}.file-transfer-tabs{gap:8px;margin-bottom:12px;display:flex}.file-transfer-tabs button{border:1px solid var(--border);color:var(--muted);background:0 0;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:6px;padding:9px 10px;display:flex}.file-transfer-tabs button.is-active{background:var(--surface);border-color:var(--accent);color:var(--text);font-weight:600}.file-transfer-body{flex-direction:column;gap:12px;max-height:60vh;display:flex;overflow-y:auto}.file-transfer-body h3{margin:4px 0 0;font-size:.92rem}.file-transfer-body h3 span{color:var(--muted);font-weight:400}.file-dropzone{border:2px dashed var(--border);cursor:pointer;text-align:center;border-radius:14px;flex-direction:column;align-items:center;gap:6px;padding:26px 16px;transition:border-color .15s,background .15s;display:flex}.file-dropzone.is-dragging{background:color-mix(in srgb, var(--accent) 8%, transparent);border-color:var(--accent)}.file-transfer-controls{flex-wrap:wrap;gap:8px;display:flex}.file-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.file-list>li{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 12px}.file-list-meta{flex-direction:column;gap:2px;min-width:0;display:flex}.file-list-meta strong{overflow-wrap:anywhere}.file-list-actions{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.file-response-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.file-response-row .file-list-meta{flex:1}.file-response-row .file-list-actions{margin-top:0}.file-response-thumb{object-fit:cover;border-radius:8px;flex:none;width:46px;height:46px}.file-response-thumb.is-placeholder{background:var(--border);color:var(--muted);justify-content:center;align-items:center;display:flex}.file-analysis-status{font-size:.78rem}.file-analysis-status.is-success{color:var(--success,#2e7d32)}.file-analysis-status.is-failed{color:var(--danger,#c62828)}.file-analysis-status.is-unsupported,.file-analysis-status.is-pending,.file-analysis-status.is-analyzing{color:var(--muted)}.file-analysis-error{margin:6px 0 0;font-size:.78rem}.file-analysis-detail{border-top:1px solid var(--border);margin-top:10px;padding-top:10px;font-size:.86rem}.file-analysis-detail h4{margin:10px 0 4px;font-size:.82rem}.file-analysis-detail ul{margin:0;padding-left:18px}.participant-shared-files ul,.participant-uploaded-list{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;list-style:none;display:flex}.participant-shared-files li{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.participant-shared-files a{overflow-wrap:anywhere}.participant-file-prompt{margin:6px 0 10px}.participant-uploaded-list li{color:var(--muted);align-items:center;gap:6px;font-size:.85rem;display:flex}.participant-upload-actions{flex-wrap:wrap;gap:8px;display:flex}.participant-upload-actions button{flex:140px}.backend-setup-page{padding:24px 16px;overflow-y:auto}.backend-setup{text-align:left;flex-direction:column;gap:4px;width:100%;max-width:560px;display:flex}.backend-setup h1{margin:4px 0 0}.backend-setup>.muted{margin:0 0 12px}.backend-setup label{margin-top:10px}.field-hint{color:var(--muted);margin:4px 0 0;font-size:.78rem}.backend-setup .success{align-items:center;gap:6px;display:flex}.backend-setup-actions{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.backend-setup-actions button{flex:160px}.backend-setup-help{border-top:1px solid var(--border);margin-top:18px;padding-top:14px}.backend-setup-help summary{cursor:pointer;font-weight:600}.backend-setup-help ol{margin:10px 0 0;padding-left:20px;font-size:.86rem}.backend-setup-help li{margin-bottom:6px}.backend-setup-help a{align-items:center;gap:3px;display:inline-flex}.backend-setup-footer{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.backend-deploy-button{width:100%;margin-top:12px}.deploy-steps{flex-direction:column;gap:5px;margin:14px 0 0;padding:0;list-style:none;display:flex}.deploy-steps li{align-items:center;gap:7px;font-size:.84rem;display:flex}.deploy-steps li.is-pending{color:var(--muted)}.deploy-steps li.is-done{color:var(--success,#2e7d32)}.deploy-steps li.is-failed{color:var(--danger,#c62828)}.deploy-steps em{opacity:.85;font-size:.78rem;font-style:normal}.system-setup-modal{width:min(600px,94vw);max-height:88vh;padding:0;overflow-y:auto}.system-setup-modal .backend-setup{box-shadow:none;border:none;max-width:none}.app-credit{color:var(--muted);text-align:center;margin:14px 0 0;font-size:.76rem}.app-credit a{color:inherit;text-underline-offset:2px;text-decoration:underline}.app-credit a:hover{color:var(--text)}.modal-backdrop.is-nested{z-index:30}.show-answers-toggle{color:var(--muted);cursor:pointer;align-items:center;gap:8px;margin:0 0 10px;font-size:.85rem;display:flex}.show-answers-toggle input{cursor:pointer;width:auto;margin:0}.presenter-answer-hidden{margin:0}.custom-quiz-review-content.is-single,.custom-quiz-native-content.is-single{grid-template-columns:minmax(0,1fr)}.online-count-link{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:none}.online-count-link:hover{opacity:.75}.roster-count{color:var(--muted);margin:0;font-size:.82rem}.roster-subhead{color:var(--muted);margin:10px 0 0;font-size:.8rem;font-weight:600}.roster-list li{border-radius:7px;align-items:center;gap:8px;padding:5px 7px;display:flex}.roster-list li:nth-child(odd){background:var(--surface-muted,#f7f8fb)}.roster-list.is-offline li{color:var(--muted)}.roster-window{background:var(--surface);flex-direction:column;gap:8px;height:100vh;padding:12px 14px 16px;display:flex;overflow-y:auto}.roster-heading{-webkit-app-region:drag;justify-content:space-between;align-items:center;display:flex}.roster-heading button{-webkit-app-region:no-drag}.roster-heading h1{align-items:center;gap:7px;margin:0;font-size:1rem;display:flex}.roster-toolbar{justify-content:space-between;align-items:center;gap:8px;display:flex}.roster-count{color:var(--muted);font-size:.82rem}.roster-sort{background:var(--surface-muted,#f2f4f8);color:var(--muted);cursor:pointer;border:0;border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:.76rem;display:inline-flex}.roster-sort:hover{color:var(--text)}.roster-hint,.roster-error{margin:0;font-size:.76rem}.roster-hint{color:var(--muted)}.roster-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.roster-row{border-left:3px solid #0000;border-radius:7px;align-items:center;gap:7px;padding:6px 8px;display:flex}.roster-row:nth-child(odd){background:var(--surface-muted,#f7f8fb)}.roster-row.is-pending{background:#fff6e8;border-left-color:#f79009}.roster-row.is-distracted{background:#fef1f1;border-left-color:#e5544b}.roster-row.is-offline{color:var(--muted);opacity:.65}.roster-name{flex:auto;align-items:center;gap:5px;min-width:0;display:flex}.roster-badges{letter-spacing:1px;flex:none;font-size:.85em}.roster-tags{flex:none;gap:4px;display:flex}.roster-tag{white-space:nowrap;border-radius:999px;padding:2px 7px;font-size:.68rem}.roster-tag.is-pending{color:#fff;background:#f79009}.roster-tag.is-distracted{color:#fff;background:#e5544b}.roster-score{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;flex:none;min-width:26px;font-size:.8rem}.roster-award,.roster-remove{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;padding:4px;display:inline-flex}.roster-award:hover:not(:disabled){color:#fff;background:#12b76a}.roster-remove:hover:not(:disabled){color:#fff;background:#e5544b}.roster-award:disabled,.roster-remove:disabled{cursor:default;opacity:.3}.roster-bonus{color:#087443;cursor:pointer;font-variant-numeric:tabular-nums;background:#12b76a24;border:0;border-radius:999px;flex:none;padding:2px 7px;font-size:.72rem;font-weight:700}.roster-bonus:hover:not(:disabled){color:#a3271f;background:#e5544b29}.roster-present{color:#12b76a;flex:none}.roster-row.is-absent{color:var(--muted);opacity:.55}.roster-tag.is-absent{background:var(--surface-muted,#eef0f5);color:var(--muted)}.roster-tag.is-unlisted{color:#3538cd;background:#eef2ff}.roster-tag.is-quiet{color:var(--muted);font-variant-numeric:tabular-nums;padding:2px 0}.roster-heading-actions{align-items:center;gap:2px;display:flex}.roster-dot{background:#c8cedb;border-radius:50%;flex:none;width:8px;height:8px}.roster-dot.is-online{background:#12b76a}.roster-empty{margin:4px 0}.link-button{color:var(--primary,#1463ff);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.upload-verdict-line{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.file-verdict{border-radius:999px;padding:2px 9px;font-size:.74rem;font-weight:600}.file-verdict.is-partial{color:#a15c00;background:#fff7e6}.file-verdict.is-incorrect{color:var(--danger,#c62828);background:#fdecec}.file-verdict.is-unscored{background:var(--border);color:var(--muted)}.upload-score{font-size:.78rem;font-weight:600}.upload-answer-list{margin-top:10px}.question-type-hint{margin:4px 0 0;font-size:.82rem;line-height:1.6}.participant-file-image{max-height:38svh;margin-bottom:10px}.upload-answer-list .file-response-thumb{object-fit:contain;object-position:top left;width:72px;height:72px}.upload-answer-list .file-response-thumb:not(.is-placeholder){background:var(--surface);border:1px solid var(--border)}.question-timing{border-top:1px solid var(--border);flex-direction:column;gap:10px;margin-top:12px;padding-top:12px;display:flex}.timing-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.timing-row-label{color:var(--muted);min-width:4.5em;font-size:.82rem}.timing-chips{flex-wrap:wrap;gap:6px;display:flex}.timing-chip{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:5px 12px;font-size:.8rem}.timing-chip:hover{border-color:var(--border-strong)}.timing-chip.is-selected{background:var(--primary-soft);border-color:#5b5ce273;font-weight:600}.answer-countdown,.question-countdown{font-variant-numeric:tabular-nums;font-weight:600}.answer-countdown{color:var(--muted);margin:0 0 10px}.question-countdown{background:var(--surface-subtle);color:var(--muted);border-radius:999px;padding:3px 10px;font-size:.8rem}.answer-countdown.is-urgent,.question-countdown.is-urgent{color:var(--danger,#c62828)}.question-stop-control{align-items:center;gap:8px;display:inline-flex}.question-stop-button{background:var(--surface);border:1px solid var(--border);color:var(--text);justify-content:center;align-items:center;padding:7px;display:inline-flex}.question-stop-button:hover{background:var(--surface-subtle);border-color:var(--border-strong)}.question-stop-button.is-resume{background:var(--pale-green,#ecfdf5);color:var(--success,#2e7d32);border-color:#2e7d3259}.question-stop-error{font-size:.76rem}.participant-mark{background:var(--surface-subtle);border-radius:var(--radius-lg);margin-top:12px;padding:14px 16px}.participant-mark h3{margin:0 0 8px;font-size:.92rem}.participant-mark h4{margin:12px 0 4px;font-size:.84rem}.participant-mark p{margin:0;line-height:1.7}.participant-mark ul{margin:0;padding-left:20px;line-height:1.7}.participant-mark-headline{align-items:center;gap:10px;margin-bottom:8px;display:flex}.participant-mark-score{font-size:1.05rem;font-weight:700}.participant-mark-waiting{margin-top:12px}.hotspot-frame{border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;line-height:0;display:block;position:relative;overflow:hidden}.hotspot-frame.is-answerable{cursor:crosshair}.hotspot-image{width:100%;display:block}.hotspot-pin{background:var(--primary,#5b5ce2);color:#fff;opacity:.82;border:2px solid #fff;border-radius:50% 50% 50% 2px;justify-content:center;align-items:center;width:26px;height:26px;padding:0;font-size:12px;font-weight:700;line-height:1;display:flex;position:absolute;transform:translate(-50%,-100%)rotate(-45deg);box-shadow:0 2px 6px #00000059}.hotspot-pin span{transform:rotate(45deg)}.hotspot-pin.is-own{background:var(--danger,#c62828)}.hotspot-pin:active{transform:translate(-50%,-100%)rotate(-45deg)scale(.9)}.hotspot-frame.is-answerable .hotspot-pin{cursor:pointer}.participant-hotspot-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:12px;display:flex}.hotspot-results-panel .hotspot-frame{margin-top:10px}.round-comparison h2{margin:0 0 10px;font-size:1rem}.round-summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:10px;display:grid}.round-summary>div{background:var(--surface-subtle);border-radius:var(--radius-lg);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.round-summary span{color:var(--muted);font-size:.82rem}.round-moves{flex-direction:column;gap:6px;margin:10px 0 0;padding:0;list-style:none;display:flex}.round-moves li{justify-content:space-between;gap:10px;font-size:.86rem;display:flex}.question-stop-button.is-repeat{background:var(--primary-soft);border-color:#5b5ce24d}.matching-prompt{flex:auto;font-size:.95rem}.ordering-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;display:flex}.ordering-actions .muted{margin-right:auto}.ordering-subheading{margin:16px 0 0;font-size:.9rem}.ordering-consensus{flex-direction:column;gap:6px;margin:8px 0 0;padding-left:22px;display:flex}.ordering-consensus li{font-size:.9rem}.ordering-consensus.is-key li::marker{color:var(--primary,#5b5ce2);font-weight:700}.ordering-mistakes{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;list-style:none;display:flex}.ordering-mistakes li{justify-content:space-between;gap:10px;font-size:.84rem;display:flex}.ordering-mistakes b{white-space:nowrap}.ordering-key-editor{border-top:1px solid var(--border);margin-top:16px;padding-top:12px}.ordering-key-set{margin-top:14px}.matching-breakdown{flex-direction:column;gap:12px;margin:10px 0 0;padding:0;list-style:none;display:flex}.matching-breakdown-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.matching-breakdown b.is-good{color:var(--success,#2e7d32)}.matching-breakdown b.is-weak{color:var(--danger,#c62828)}.matching-breakdown p{margin:4px 0 0;font-size:.8rem}.generated-items{border-top:1px solid var(--border);flex-direction:column;gap:10px;margin-top:14px;padding-top:14px;display:flex}.generated-items-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.generated-item-list,.generated-pair-list{flex-direction:column;gap:6px;margin:0;padding:0;display:flex}.generated-item-list{counter-reset:generated-item;list-style:none}.generated-item-list li,.generated-pair-list li{background:var(--surface-subtle);border-radius:var(--radius-md);align-items:center;gap:8px;padding:8px 10px;font-size:.88rem;display:flex}.generated-item-list li:before{counter-increment:generated-item;content:counter(generated-item);color:var(--muted);text-align:center;flex:0 0 20px;font-weight:700}.generated-item-list li>span:first-of-type,.generated-pair-list li>span:first-of-type{flex:auto}.generated-item-actions{flex:none;gap:2px;display:flex}.generated-pair-list li{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;display:grid}.generated-pair-arrow{color:var(--muted);flex:none}.ordering-ranked{flex-direction:column;gap:6px;margin:8px 0 0;padding-left:22px;display:flex}.ordering-ranked li{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.ordering-ranked-item{font-size:.9rem}.hotspot-heading-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hotspot-thumb-button{cursor:zoom-in;background:0 0;border:0;width:100%;padding:0;display:block}.hotspot-review-modal{background:var(--surface);border:1px solid #ffffffa6;border-radius:22px;grid-template-rows:auto minmax(0,1fr);width:88vw;height:88vh;display:grid;overflow:hidden;box-shadow:0 28px 90px #18223a59}.hotspot-review-modal>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:18px;padding:16px 20px;display:flex}.hotspot-review-modal>header h2{margin:0;font-size:1.05rem}.hotspot-review-stage{justify-content:center;align-items:center;min-height:0;padding:18px;display:flex;overflow:auto}.hotspot-review-stage .hotspot-frame{width:auto;min-width:0;max-width:100%;max-height:100%}.hotspot-review-stage .hotspot-image{width:auto;max-width:100%;max-height:calc(88vh - 116px)}.hotspot-review-window{background:var(--surface);grid-template-rows:auto auto minmax(0,1fr);height:100vh;display:grid;overflow:hidden}.hotspot-review-window>header{border-bottom:1px solid var(--border);-webkit-app-region:drag;justify-content:space-between;align-items:center;gap:18px;padding:14px 20px;display:flex}.hotspot-review-window>header h1{margin:0;font-size:1.1rem}.hotspot-review-window>header .show-answers-toggle,.hotspot-review-window>header .icon-button{-webkit-app-region:no-drag}.hotspot-review-window>.muted,.hotspot-review-window>.error{margin:10px 20px 0}.hotspot-review-window .hotspot-review-stage .hotspot-image{max-height:calc(100vh - 160px)}.upload-summary-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.upload-summary-row p{margin:0}.sortable-list{flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none;display:flex}.sortable-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:11px 12px;font-size:.92rem;display:flex}.sortable-list.is-disabled .sortable-row{cursor:default;opacity:.75}.sortable-rank{background:var(--primary,#5b5ce2);color:#fff;border-radius:50%;flex:0 0 24px;justify-content:center;align-items:center;height:24px;font-size:.78rem;font-weight:700;display:flex}.sortable-label{flex:45%;min-width:0;font-weight:600}.sortable-value{flex:auto;min-width:0}.sortable-grip{color:var(--muted);flex:none}.sortable-ghost{background:var(--surface-subtle);opacity:.5}.sortable-chosen{border-color:var(--primary,#5b5ce2)}.sortable-drag{cursor:grabbing;opacity:1;box-shadow:0 10px 26px #18223a47}.sortable-image{border:1px solid var(--border);border-radius:var(--radius-md);object-fit:contain;background:#fff;flex:auto;width:100%;min-width:0;max-height:110px;display:block}.sentence-order{gap:10px;margin-top:10px;display:grid}.sentence-bank,.sentence-line{flex-wrap:wrap;gap:8px;min-height:54px;margin:0;padding:10px;list-style:none;display:flex}.sentence-bank{background:var(--surface-subtle);border-radius:var(--radius-lg)}.sentence-line{border:1px dashed var(--border-strong,var(--border));border-radius:var(--radius-lg)}.sentence-line.is-empty:before,.sentence-bank.is-empty:before{color:var(--muted);content:attr(data-hint);font-size:.82rem}.sentence-word{background:var(--surface);border:1px solid var(--border);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:999px;padding:7px 14px;font-size:.95rem}.sentence-word.is-placed{background:color-mix(in srgb, var(--primary,#5b5ce2) 12%, var(--surface));border-color:var(--primary,#5b5ce2)}.sentence-readout{flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:0;list-style:none;display:flex}.sentence-readout li{background:var(--surface-subtle);border-radius:999px;padding:4px 10px;font-size:.84rem}.ordering-submissions{flex-direction:column;gap:10px;margin:8px 0 0;padding:0;list-style:none;display:flex}.ordering-submission-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.file-verdict.is-correct{background:var(--success-soft);color:var(--success)}.file-verdict.is-wrong{background:var(--danger-soft);color:var(--danger-dark)}.matching-board{gap:12px;margin-top:10px;display:grid}.matching-bank{background:var(--surface-subtle);border-radius:var(--radius-lg);flex-wrap:wrap;gap:8px;min-height:52px;margin:0;padding:10px;list-style:none;display:flex}.matching-rows{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.matching-rows>li{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:10px;padding:8px 10px;display:grid}.matching-slot{border:1px dashed var(--border-strong,var(--border));border-radius:999px;align-items:center;min-height:42px;margin:0;padding:4px;list-style:none;display:flex}.matching-slot.is-filled{border-style:solid;border-color:#0000}.ordering-tiles{flex-direction:column;gap:8px;margin:8px 0 0;padding-left:22px;display:flex}.ordering-tiles img{border:1px solid var(--border);border-radius:var(--radius-md);object-fit:contain;background:#fff;width:100%;max-height:90px;display:block}.ordering-ranked-image{border:1px solid var(--border);border-radius:var(--radius-md);object-fit:contain;background:#fff;flex:auto;min-width:0;max-height:72px;display:block}.ordering-agreement{white-space:nowrap;border-radius:999px;flex:none;padding:3px 10px;font-size:.76rem}.ordering-agreement.is-firm{background:var(--success-soft);color:var(--success)}.ordering-agreement.is-most{background:var(--surface-subtle);color:var(--muted)}.ordering-agreement.is-split{background:var(--danger-soft);color:var(--danger-dark)}.roster-manager{flex-direction:column;gap:10px;width:min(680px,94vw);max-width:min(680px,94vw);max-height:92vh;display:flex;overflow-y:auto}.roster-manager-head{align-items:center;gap:8px;display:flex}.roster-manager-head h2{flex:auto;margin:0;font-size:1.05rem}.roster-manager-hint{margin:0;font-size:.82rem;line-height:1.5}.roster-manager-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.roster-manager-footer{border-top:1px solid var(--border);justify-content:space-between;padding-top:10px}.roster-manager-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.roster-manager-list li{border:1px solid var(--border);border-radius:var(--radius-lg);justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.roster-manager-item{align-items:baseline;gap:8px;min-width:0;display:flex}.roster-manager-item-actions{flex:none;gap:4px;display:flex}.roster-manager-applied{color:#087443;background:#12b76a24;border-radius:999px;padding:2px 8px;font-size:.7rem}.roster-manager-name{flex-direction:column;gap:4px;font-size:.82rem;display:flex}.roster-manager-paste textarea{width:100%;margin-bottom:8px;font-family:inherit}.roster-manager-mapping{background:var(--surface-subtle,#f7f8fb);border-radius:var(--radius-lg);flex-direction:column;gap:8px;padding:10px;display:flex}.roster-manager-columns{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;display:grid}.roster-manager-columns label{flex-direction:column;gap:4px;font-size:.78rem;display:flex}.roster-manager-warning{border-radius:var(--radius-lg);color:#8a5300;background:#fff6e8;margin:0;padding:8px 10px;font-size:.8rem}.roster-manager-entries{flex-direction:column;gap:4px;max-height:46vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.roster-manager-entries li{grid-template-columns:28px minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 30px;align-items:center;gap:6px;display:grid}.roster-manager-entries li.is-duplicate input:first-of-type{border-color:#f79009}.roster-manager-index{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;font-size:.75rem}.roster-manager-entries input{width:100%;padding:5px 8px;font-size:.85rem}
