.tests-root{display:grid;gap:18px}.tests-head,.tests-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.tests-head h1,.tests-section h2{margin:0}.tests-head p{margin:4px 0 0;color:var(--muted)}.tests-head button,.tests-root button{font-weight:800}.tests-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tests-stats div{padding:16px;border:1px solid #d7e0ea;border-radius:12px;background:#fff}.tests-stats strong,.tests-stats span{display:block}.tests-stats strong{font-size:24px;color:#174ea6}.tests-stats span{color:var(--muted);font-size:12px}.tests-section{display:grid;gap:12px}.test-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.test-card,.test-assignment,.student-test-card{border:1px solid #d7e0ea;border-radius:13px;padding:15px;background:#fff;box-shadow:0 7px 22px rgba(16,35,63,.06)}.test-card.archived{opacity:.72}.test-card header,.student-test-card header{display:flex;justify-content:space-between;gap:10px}.test-card h3,.student-test-card h2{margin:11px 0 5px}.test-card p,.student-test-card p{color:var(--muted)}.test-pill{display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:10px;font-weight:900}.test-pill.live{background:#fee2e2;color:#b42318}.test-meta,.test-window{margin-top:8px;color:#64748b;font-size:11px;font-weight:700}.test-card footer{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.test-assignment-list,.student-test-list{display:grid;gap:9px}.test-assignment{display:flex;align-items:center;justify-content:space-between;gap:15px}.test-assignment>div:first-child{display:grid;gap:4px}.test-assignment p,.test-assignment small{margin:0;color:var(--muted)}.test-assignment-actions{display:flex;gap:7px}.student-test-list{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}.student-test-card.live{border:2px solid #ef4444}.student-test-card>button{width:100%;margin-top:14px}.test-score{display:block;margin-top:10px;color:#166534;font-size:20px}.test-editor-sheet{width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto}.test-editor-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.test-editor-meta label,.test-question-editor>label,.test-review-sheet>label{display:grid;gap:5px;font-weight:800}.test-editor-meta .wide{grid-column:1/-1}.test-editor-meta input,.test-editor-meta select,.test-editor-meta textarea,.test-question-editor input,.test-question-editor select,.test-question-editor textarea,.test-review-sheet input,.test-review-sheet textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px}.test-check{display:flex!important;align-items:center;gap:7px}.test-check input{width:auto}.test-question-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}.test-question-toolbar>div{display:flex;flex-wrap:wrap;gap:5px}.test-question-editor{display:grid;grid-template-columns:1fr 130px;gap:10px;margin-top:10px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}.test-question-editor header{grid-column:1/-1;display:flex;align-items:center;gap:7px}.test-question-editor header strong{margin-right:auto}.test-question-editor>label:first-of-type,.test-option-editor,.test-question-editor>label:last-child{grid-column:1/-1}.test-option-editor{display:grid;gap:7px}.test-option-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px}.test-option-row input:first-child{width:auto}.test-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.test-form-status{min-height:18px;color:#b42318;font-weight:800}.test-student-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;max-height:230px;overflow:auto}.test-student-checks label{padding:8px;border-radius:7px;background:#f8fafc}.test-consent-sheet{width:min(620px,calc(100vw - 28px))}.test-consent-sheet li{margin:8px 0}.test-consent{display:flex;gap:9px;padding:12px;border:2px solid #f59e0b;border-radius:10px;background:#fffbeb;font-weight:800}.test-runner-modal{position:fixed;inset:0;z-index:2000;overflow:auto;background:#eef2f7}.test-runner{min-height:100vh}.test-runner>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 20px;background:#10233f;color:#fff}.test-runner>header>div:first-child{display:grid}.test-runner>header span{color:#dbe7f4;font-size:11px}.test-runner-clock{text-align:right}.test-runner-clock strong{display:block;font-size:24px}.test-runner main{display:grid;gap:14px;width:min(900px,calc(100% - 24px));margin:20px auto 100px}.test-run-question{padding:18px;border:1px solid #cbd5e1;border-radius:13px;background:#fff}.test-question-title{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start}.test-question-title span,.test-question-title small{color:#64748b;font-weight:800}.test-run-options{display:grid;gap:8px;margin-top:14px}.test-run-options label{display:flex;gap:10px;padding:11px;border:1px solid #d7e0ea;border-radius:9px}.test-run-question textarea{width:100%;margin-top:14px;border:1px solid #94a3b8;border-radius:9px;padding:11px}.test-runner>footer{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#fff;border-top:1px solid #cbd5e1}.test-result-score,.test-review-summary{display:grid;gap:4px;padding:16px;border-radius:11px;background:#eff6ff}.test-result-score strong,.test-review-summary strong{font-size:25px;color:#1d4ed8}.test-result-answers,.test-review-questions{display:grid;gap:9px;margin:12px 0}.test-result-answers article,.test-review-questions article{padding:12px;border:1px solid #d7e0ea;border-radius:10px;background:#f8fafc}.test-result-answers p,.test-review-questions p{margin:6px 0}.test-review-sheet{width:min(850px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto}.test-events{padding:10px;border:1px solid #d7e0ea;border-radius:9px}.test-events p{margin:5px 0;font-size:12px}@media(max-width:760px){.tests-head,.tests-section-head,.test-assignment{align-items:stretch;flex-direction:column}.tests-stats,.test-editor-meta{grid-template-columns:1fr}.test-editor-meta .wide{grid-column:auto}.test-question-editor{grid-template-columns:1fr}.test-question-editor>*{grid-column:1!important}.test-question-editor header{flex-wrap:wrap}.test-student-checks{grid-template-columns:1fr}.test-runner>header{align-items:flex-start}.test-question-title{grid-template-columns:1fr}.test-runner>footer{align-items:stretch;flex-direction:column}.test-runner>footer button{width:100%}}
.test-comparison{display:grid;gap:7px}.test-comparison div{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #d7e0ea;border-radius:9px;background:#fff}.test-comparison span{color:var(--muted);font-size:12px;font-weight:700}
.tab-notification-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:4px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:900}.notifications-button{min-width:52px}.notifications-panel{position:absolute;z-index:1100;top:155px;right:max(16px,calc((100vw - 1200px)/2));width:min(430px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:14px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;box-shadow:0 18px 55px rgba(15,23,42,.24)}.notifications-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.notifications-panel>header button{padding:6px 10px}.notification-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 4px;border-top:1px solid #e2e8f0}.notification-item>div{display:grid;gap:3px}.notification-item p,.notification-item small{margin:0;color:#64748b}.notification-item p{font-size:12px}.notification-item small{font-size:10px}.notification-item button{flex:none}.notification-toast{position:fixed;z-index:2500;right:18px;bottom:18px;display:grid;gap:3px;width:min(390px,calc(100vw - 36px));padding:14px 16px;border-radius:12px;background:#10233f;color:#fff;box-shadow:0 18px 50px rgba(15,23,42,.3)}.notification-toast span{color:#dbe7f4;font-size:12px}@media(max-width:760px){.notifications-panel{position:fixed;top:76px;right:12px}.notifications-button{min-width:auto}.notification-item{align-items:stretch;flex-direction:column}.notification-item button{width:100%}}
.tab-notification-badge.hidden,.notification-toast.hidden{display:none}
.notifications-button{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;padding:0;background:rgba(16,35,63,.08);font-size:1.05rem}.notifications-button:hover,.notifications-button:focus-visible{background:#10233f;color:#fff}.notification-count{position:absolute;top:-5px;right:-5px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:900;line-height:1}.notification-count.hidden{display:none}
.notification-item.unread{margin-inline:-6px;padding-inline:10px;border-radius:9px;background:#fff7ed}.notification-item.unread>div>strong::after{content:"Nowe";display:inline-flex;margin-left:7px;padding:2px 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:8px;vertical-align:middle}
.notification-header-actions,.notification-item-actions{display:flex;align-items:center;gap:6px}.notification-item-actions{flex:none}.notification-item-actions .notification-dismiss{border-color:#fecaca;color:#b91c1c;background:#fff}.notification-item-actions .notification-dismiss:hover{color:#fff;background:#b91c1c}@media(max-width:760px){.notification-header-actions{flex-wrap:wrap;justify-content:flex-end}.notification-item-actions{width:100%}.notification-item-actions button{flex:1}}
.notification-error-modal{position:fixed;z-index:3200;inset:0;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.68)}.notification-error-modal>section{width:min(900px,100%);max-height:90vh;overflow:auto;border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.38)}.notification-error-modal header,.notification-error-modal footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e2e8f0}.notification-error-modal footer{justify-content:flex-end;border-top:1px solid #e2e8f0;border-bottom:0}.notification-error-modal header h2{margin:5px 0 0;font-size:1.2rem}.notification-error-modal header>button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;padding:0;font-size:24px}.notification-error-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px}.notification-error-grid>div{display:grid;gap:5px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.notification-error-grid .wide,.notification-error-hint{grid-column:1/-1}.notification-error-grid small{color:#64748b;font-weight:700}.notification-error-grid pre{max-height:220px;overflow:auto;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.notification-error-hint{margin:0;padding:12px;border-radius:10px;color:#92400e;background:#fffbeb}@media(max-width:640px){.notification-error-modal{padding:8px}.notification-error-grid{grid-template-columns:1fr;padding:12px}.notification-error-grid .wide,.notification-error-hint{grid-column:auto}.notification-error-modal header,.notification-error-modal footer{padding:12px}}
