:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#192c38;background:#f5f8fa;font-synthesis:none;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a:hover{color:var(--brand,#174e66)}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:-.045em;line-height:1.15;margin-bottom:.7rem}h2{font-size:1.18rem;letter-spacing:-.025em}h3{font-size:1.04rem;margin-bottom:.24rem}p{color:#5b6d78}.muted,small{color:#657884}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.eyebrow,.step{display:block;color:var(--brand,#174e66);font-size:.75rem;font-weight:800;letter-spacing:.13em;margin-bottom:.75rem}.topbar{height:72px;display:flex;align-items:center;gap:3rem;padding:0 max(24px,calc((100vw - 1200px)/2));background:#fff;border-bottom:1px solid #e0e9ed}.brand{font-weight:850;font-size:1.3rem;letter-spacing:-.06em;color:#173949;white-space:nowrap}.brand:first-letter{color:#18a6a2}.toplinks{display:flex;align-items:center;gap:2rem;flex:1}.toplinks a{font-size:.88rem;font-weight:650;color:#536874}.toplinks a:hover{color:var(--brand,#174e66)}.topright{display:flex;align-items:center;gap:1rem;white-space:nowrap}.topright form,.actions form{margin:0}.username{font-size:.83rem;font-weight:750}.textbtn{border:0;background:none;color:var(--brand,#174e66);padding:.4rem;font-weight:750;font-size:.85rem}.shell{max-width:1200px;margin:0 auto;padding:42px 24px 110px}.focused{max-width:860px;margin:0 auto;padding:clamp(28px,7vw,80px) 20px 60px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:30px}.page-heading p{margin-bottom:0}.page-heading .eyebrow{margin:0 0 8px}.back{display:block;color:#537180;font-size:.85rem;font-weight:700;margin-bottom:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;background:var(--brand,#174e66);border:1px solid var(--brand,#174e66);color:white;border-radius:11px;padding:12px 20px;font-size:.9rem;font-weight:750;min-height:46px;box-shadow:0 5px 12px rgba(20,70,92,.11);white-space:nowrap}.button:hover{color:white;filter:brightness(1.13)}.button.secondary{background:#fff;color:var(--brand,#174e66);box-shadow:none}.button.secondary:hover{color:var(--brand,#174e66);background:#eaf4f7}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 42px}.stat{border:1px solid #e0e9ed;background:#fff;border-radius:18px;padding:20px 24px;min-height:116px;display:flex;flex-direction:column;justify-content:space-between}.stat span{font-size:.85rem;font-weight:650;color:#627784}.stat strong{font-size:2rem;letter-spacing:-.06em;line-height:1}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:0 0 14px}.section-heading h2{margin:0}.section-heading a{color:var(--brand,#174e66);font-weight:750;font-size:.88rem}.card-list,.stack{display:grid;gap:12px}.list-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid #e1eaee;border-radius:16px;background:#fff;padding:18px 22px;transition:transform .15s,border-color .15s}.list-card:hover{transform:translateY(-2px);border-color:#8dc6ce;color:inherit}.list-card .eyebrow{font-size:.7rem;margin:0 0 5px}.list-card small{display:block;font-size:.82rem}.arrow{font-size:1.2rem;color:var(--brand,#174e66)}.badge{display:inline-block;border-radius:100px;padding:5px 12px;background:#e8edf0;color:#526774;font-size:.76rem;font-weight:800;text-transform:capitalize;white-space:nowrap}.badge.open{background:#e0f6ed;color:#0a7858}.badge.draft{background:#fff1d8;color:#966006}.badge.closed{background:#e7eff8;color:#345e8d}.split{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:24px;align-items:start}.panel,.auth-card{background:#fff;border:1px solid #dfe9ee;border-radius:20px;padding:26px}.panel h2{margin-bottom:16px}.narrow{max-width:610px}.panel p:last-child{margin-bottom:0}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.field>span:first-child{font-size:.84rem;color:#314e5c;font-weight:750}.field small{font-size:.77rem}.field input:not([type=checkbox]),.field select,.field textarea,.copy-row input{width:100%;border:1px solid #cad9e0;background:#fff;border-radius:10px;min-height:46px;padding:10px 12px;color:#19323f;outline:none}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.copy-row input:focus{border-color:var(--brand,#174e66);box-shadow:0 0 0 3px #dbecef}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.panel form>.button,.auth-card form>.button{margin-top:2px}.empty{padding:44px 24px;text-align:center;background:#fff;border:1px dashed #c5d7de;border-radius:17px;color:#536b77}.empty p{margin:8px 0 18px}.notice{padding:12px 16px;border-radius:10px;margin-bottom:20px;font-size:.9rem}.notice.success{background:#e1f7eb;color:#135e43}.notice.error{background:#fff0ec;color:#9c3528}.notice a{text-decoration:underline;font-weight:700}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:start;font-size:.86rem}th,td{padding:12px 14px;border-bottom:1px solid #e7eef1;white-space:nowrap;text-align:start}th{font-size:.76rem;letter-spacing:.03em;color:#5c7280;font-weight:800;background:#f5f9fa}th small{display:block;font-weight:500}tr:last-child td{border:0}.checklist{display:flex;flex-wrap:wrap;gap:8px}.section-choice{border:1px solid #d7e3e8;background:#f7fafb;border-radius:10px;padding:8px 12px;font-size:.85rem;cursor:pointer}.section-choice input{accent-color:var(--brand,#174e66)}.exam-form{display:grid;gap:18px;max-width:850px}.step{margin-bottom:18px}.actions{display:flex;gap:8px;flex-wrap:wrap}.key-values{display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid #edf1f3;padding-top:15px;font-size:.87rem}.key-values span{color:#6b7d85}.key-values strong{text-align:end;text-transform:capitalize}.copy-row{display:flex;gap:8px}.copy-row input{font-size:.77rem;min-width:0}.copy-row .button{min-width:80px}.inline-form{margin-bottom:12px}.auth-card{max-width:500px;margin:0 auto;padding:clamp(25px,5vw,42px);box-shadow:0 22px 60px rgba(12,52,67,.09)}.auth-card .button{width:100%}.auth-card h1{margin-bottom:12px}.auth-card p{margin-bottom:26px}.auth-card hr{border:0;border-top:1px solid #e5ecef;margin:20px 0}.logo-mark{width:49px;height:49px;display:grid;place-items:center;color:#fff;background:var(--brand,#174e66);font-size:1.7rem;border-radius:14px;margin-bottom:28px}.auth-card.center{text-align:center}.done-icon{display:grid;place-items:center;width:58px;height:58px;background:#dff7eb;color:#12805c;border-radius:50%;font-size:2rem;margin:0 auto 25px}.receipt{display:grid;grid-template-columns:1fr 1fr;text-align:start;gap:12px;border-block:1px solid #e5ecef;padding:20px 0;margin:24px 0}.receipt span{color:#667b86}.receipt strong{text-align:end}.secret-code{text-align:center;letter-spacing:.2em;font:800 1.6rem ui-monospace,monospace;padding:24px;border-radius:12px;background:#eaf4f7;margin-bottom:25px;user-select:all}.review-list>div{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #e7eef1;padding:8px}.right{color:#07835c}.wrong{color:#c34f3d}.section-filter{max-width:300px;margin-bottom:18px}.mobile-nav{display:none}
/* The exam keeps the compact, aligned answer grid on narrow phones. */
body:has(.answer-app){background:#eaf0f3}.answer-app{max-width:680px;margin:0 auto;padding:18px 15px 115px}.answer-app.font-serif{font-family:Georgia,serif}.answer-app.font-rounded{font-family:"Trebuchet MS",ui-sans-serif,sans-serif}.answer-header{background:var(--brand,#174e66);color:#fff;border-radius:20px;padding:22px;display:flex;justify-content:space-between;gap:16px;box-shadow:0 13px 25px rgba(22,72,90,.18)}.answer-header .eyebrow{color:#a9ecdf;font-size:.67rem}.answer-header h1{font-size:1.4rem;margin-bottom:8px}.student-name{font-size:.79rem;opacity:.88}.answer-meta{text-align:end;display:grid;align-content:start;gap:0;min-width:95px}.answer-meta strong{font-size:1rem}.answer-meta small{font-size:.7rem;color:#c5e0e4;margin-bottom:8px}.save-status{text-align:center;font-size:.76rem;color:#516c78;min-height:27px;margin:13px 0 7px}.save-status.error{color:#aa312c}.bubble-sheet{display:grid;gap:18px}.bubble-group{background:#fff;border:1px solid #d9e4e9;border-radius:18px;padding:10px 12px 13px;box-shadow:0 4px 12px rgba(31,66,79,.03)}.bubble-row{display:grid;grid-template-columns:minmax(40px,1fr) repeat(6,minmax(35px,54px));align-items:center;justify-content:center;min-height:49px;border-bottom:1px solid #eef2f4;text-align:center}.bubble-row:last-child{border:0}.bubble-row:has(>.bubble:nth-child(3):last-child){grid-template-columns:minmax(40px,1fr) repeat(2,minmax(35px,54px))}.bubble-row:has(>.bubble:nth-child(4):last-child){grid-template-columns:minmax(40px,1fr) repeat(3,minmax(35px,54px))}.bubble-row:has(>.bubble:nth-child(5):last-child){grid-template-columns:minmax(40px,1fr) repeat(4,minmax(35px,54px))}.bubble-row:has(>.bubble:nth-child(6):last-child){grid-template-columns:minmax(40px,1fr) repeat(5,minmax(35px,54px))}.bubble-row strong{font-size:.88rem;color:#425a67;text-align:start;padding-inline-start:10px}.bubble-titles{position:sticky;top:0;background:#fff;z-index:2;color:#526b78;font-size:.8rem;font-weight:800;letter-spacing:.07em;min-height:43px}.bubble-titles span:first-child{text-align:start;padding-inline-start:10px}.bubble{display:grid;place-items:center;height:48px;position:relative;cursor:pointer}.bubble input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.bubble span{display:block;width:27px;height:27px;border:2px solid #95aab5;border-radius:50%;background:#fff;transition:transform .1s,background .1s;pointer-events:none}.bubble input:checked+span{border:7px solid var(--brand,#174e66);background:#fff;transform:scale(1.1)}.bubble input:focus-visible+span{outline:3px solid #edb964;outline-offset:3px}.submit-bar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d9e5e9;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px max(16px,calc((100vw - 680px)/2 + 15px));box-shadow:0 -10px 30px rgba(21,58,72,.06);font-size:.8rem;color:#536b78;z-index:5}.submit-bar strong{color:#203b49}.submit-bar .button{min-width:152px}
html[dir=rtl] .brand,html[dir=rtl] .mono{direction:ltr;unicode-bidi:isolate}html[dir=rtl] .receipt strong{text-align:start}html[dir=rtl] th,html[dir=rtl] td{text-align:start}
@media(max-width:800px){.topbar{height:64px;padding:0 18px}.toplinks,.username{display:none}.topright{margin-inline-start:auto}.shell{padding:30px 16px 105px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:#fff;border-top:1px solid #dfe9ed;justify-content:space-around;z-index:8;padding:11px 8px max(12px,env(safe-area-inset-bottom))}.mobile-nav a{font-size:.78rem;font-weight:750;color:#4c6a79}.split{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading .button{font-size:.8rem;padding:10px 13px}.stat-grid{gap:8px;margin-bottom:30px}.stat{padding:14px;min-height:93px}.stat strong{font-size:1.55rem}.stat span{font-size:.72rem}.panel{padding:20px}.form-grid{grid-template-columns:1fr}.submit-bar{padding-bottom:max(14px,env(safe-area-inset-bottom))}}@media(max-width:420px){.answer-app{padding-inline:8px}.answer-header{padding:16px}.answer-header h1{font-size:1.12rem}.student-name{font-size:.71rem}.bubble-group{padding:8px 6px}.bubble-row{grid-template-columns:minmax(35px,1fr) repeat(6,minmax(34px,48px));min-height:49px}.bubble-row strong{padding-inline-start:8px}.submit-bar span{display:none}.submit-bar .button{min-width:140px}.page-heading{flex-wrap:wrap}.page-heading>.button{margin-top:4px}}@media print{.topbar,.mobile-nav,.actions,.back,.section-filter,.submit-bar{display:none!important}.shell{max-width:none;padding:0}.panel,.stat{box-shadow:none;break-inside:avoid}body{background:#fff}table{font-size:10px}th,td{padding:5px}}

.bubble-group .bubble-row{grid-template-columns:minmax(40px,1fr) repeat(var(--cols),minmax(35px,54px))}
@media(max-width:420px){.bubble-group .bubble-row{grid-template-columns:minmax(35px,1fr) repeat(var(--cols),minmax(34px,48px))}}
.utility-links{display:flex;gap:22px;flex-wrap:wrap;margin:-24px 0 32px;font-size:.82rem;font-weight:750;color:var(--brand,#174e66)}
.key-editor{display:grid;grid-template-columns:50px minmax(0,1fr);min-height:260px;border:1px solid #cad9e0;border-radius:10px;overflow:hidden;background:#fff}.key-editor:focus-within{border-color:var(--brand,#174e66);box-shadow:0 0 0 3px #dbecef}.key-gutter{padding:12px 8px;white-space:pre;text-align:end;overflow:hidden;background:#edf3f6;color:#5d7480;font:700 .9rem/2rem ui-monospace,SFMono-Regular,Menlo,monospace;user-select:none}.field .key-editor textarea{border:0;border-radius:0;box-shadow:none!important;min-height:260px;height:260px;resize:vertical;white-space:pre;line-height:2rem;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1rem;letter-spacing:.08em}
/* Answer key: each number occupies its own line outside the answer box. */
.field .key-editor{display:flex;flex-direction:row;align-items:stretch;gap:8px;min-height:320px;border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none!important;direction:ltr}
.field .key-editor .key-gutter{flex:0 0 36px;width:36px;height:320px;min-height:320px;padding:12px 2px 12px 0;overflow:hidden;background:transparent;color:#b63636;text-align:right;white-space:normal;font:700 16px/32px ui-monospace,SFMono-Regular,Menlo,monospace}
.field .key-editor .key-gutter>div{display:block;height:32px;line-height:32px}
.field .key-editor textarea{display:block;flex:1 1 auto;width:0;min-width:0;height:320px;min-height:320px;resize:none;border:1px solid #cad9e0;border-radius:10px;padding:12px 14px;line-height:32px;font-size:16px;letter-spacing:0;white-space:pre;overflow:auto;direction:ltr;text-align:left}
.field .key-editor textarea:focus{border-color:var(--brand,#174e66);box-shadow:0 0 0 3px #dbecef!important}

/* AnswerSheet 1.3.0 */
.quick-actions-wrap{margin:-24px 0 34px}.quick-actions-wrap>h2{font-size:1rem;margin:0 0 10px}.quick-actions{display:flex;gap:12px;flex-wrap:wrap}.quick-action{min-width:190px;min-height:62px;display:flex;align-items:center;gap:13px;padding:12px 16px;background:#fff;border:1px solid #dfe9ee;border-radius:13px;font-size:.84rem;font-weight:780;color:#17465a;box-shadow:0 5px 14px rgba(20,70,92,.04);transition:transform .15s,border-color .15s,box-shadow .15s}.quick-action:hover{transform:translateY(-2px);border-color:#8dc6ce;box-shadow:0 8px 18px rgba(20,70,92,.07);color:#17465a}.quick-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#eaf4f7;color:var(--brand,#174e66);font-size:1.25rem;font-weight:800;flex:0 0 auto}
.template-panel{margin-bottom:18px}.template-panel .section-heading{align-items:flex-start}.template-panel .section-heading p{margin:.3rem 0 0}.template-language{display:flex;border:1px solid #d7e3e8;border-radius:10px;overflow:hidden;background:#fff;flex:0 0 auto}.template-language a{padding:8px 11px;font-size:.78rem;font-weight:800;color:#5c7280}.template-language a.active{background:var(--brand,#174e66);color:#fff}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.template-card{display:flex;flex-direction:column;gap:3px;padding:14px;border:1px solid #dbe6ea;border-radius:13px;background:#f9fbfc;min-height:105px}.template-card strong{font-size:.95rem}.template-card span{font-size:.77rem;color:#637985}.template-card small{margin-top:auto;color:var(--brand,#174e66);font-weight:800}.template-card.selected{border-color:var(--brand,#174e66);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand,#174e66) 12%,transparent);background:#fff}.toggle-field{display:flex;align-items:center;gap:10px;margin-bottom:18px;min-height:46px;padding:10px 12px;border:1px solid #d7e3e8;border-radius:10px;background:#f8fbfc;font-size:.84rem;font-weight:720;color:#314e5c}.toggle-field input{width:18px;height:18px;accent-color:var(--brand,#174e66)}.disabled-field{opacity:.55}.disabled-field small{display:block}.table-link{color:var(--brand,#174e66);font-weight:760}.wrap-cell{white-space:normal!important;min-width:220px;max-width:480px;line-height:1.4}
.question-editor-form{display:grid;gap:16px}.question-editor-list{display:grid;gap:12px}.question-editor-card{background:#fff;border:1px solid #dfe9ee;border-radius:17px;overflow:hidden}.question-editor-card summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;font-weight:800;color:#274757}.question-editor-card summary::-webkit-details-marker{display:none}.question-editor-card summary::after{content:'＋';font-size:1.1rem;color:var(--brand,#174e66)}.question-editor-card[open] summary::after{content:'−'}.question-editor-card[open] summary{border-bottom:1px solid #e8eff2}.question-editor-body{padding:20px}.option-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.media-editor{border-top:1px solid #e8eff2;padding-top:18px}.media-editor h3{margin-bottom:12px}.current-media{display:grid;gap:10px;margin-bottom:14px}.question-media{margin:12px 0;max-width:100%}.question-media img,.question-media video{display:block;max-width:100%;max-height:360px;border-radius:13px;border:1px solid #dce7eb;background:#0e1820}.question-media audio{width:100%}.sticky-save{position:sticky;bottom:80px;display:flex;justify-content:flex-end;z-index:4;pointer-events:none}.sticky-save .button{pointer-events:auto;box-shadow:0 12px 30px rgba(20,70,92,.2)}
.attempt-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.attempt-stats{margin-bottom:18px}.correct,.right{color:#07835c}.wrong{color:#c34f3d}.blank{color:#7b8790}.review-table td,.review-table th{vertical-align:top}
.leaderboard-preview{margin-bottom:18px}.leaderboard-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.leader-card{border:1px solid #e1eaee;background:#f8fbfc;border-radius:13px;padding:13px;display:grid;gap:3px}.rank{display:inline-grid;place-items:center;min-width:36px;height:30px;padding:0 8px;border-radius:100px;background:#e9f4f7;color:var(--brand,#174e66);font-weight:850;font-size:.78rem}.leaderboard-table{display:grid;gap:8px}.leaderboard-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px;border:1px solid #e5edef;border-radius:12px}.leaderboard-row small{display:block}.leader-score{text-align:end}.candidate-leaderboard{margin:24px 0;text-align:start;border-top:1px solid #e6edef;padding-top:18px}.candidate-leaderboard>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f4;font-size:.82rem}
.resume-notice{display:flex;gap:10px;align-items:flex-start;margin:13px 0 7px;padding:11px 13px;border-radius:11px;background:#fff7df;border:1px solid #eed79a;color:#67511d;font-size:.8rem}.resume-notice strong{white-space:nowrap}.full-exam-app{max-width:820px}.full-question-list{display:grid;gap:16px}.candidate-question{position:relative;background:#fff;border:1px solid #d9e4e9;border-radius:18px;padding:20px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px}.candidate-question-number{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eaf3f6;color:var(--brand,#174e66);font-weight:850}.candidate-question-content h2{font-size:1.05rem;line-height:1.55;letter-spacing:0;margin:4px 0 14px}.candidate-options{display:grid;gap:9px}.candidate-option{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;border:1px solid #d8e4e8;border-radius:12px;padding:10px 12px;cursor:pointer;transition:border-color .12s,background .12s}.candidate-option:hover{border-color:#91bdc6}.candidate-option input{position:absolute;opacity:0}.candidate-option:has(input:checked){border-color:var(--brand,#174e66);background:#edf7f8;box-shadow:0 0 0 2px color-mix(in srgb,var(--brand,#174e66) 10%,transparent)}.option-choice{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;border:2px solid #9db2bc;font-weight:850;color:#49636f}.candidate-option:has(input:checked) .option-choice{border:7px solid var(--brand,#174e66);font-size:0}.option-wording{font-size:.93rem;line-height:1.45;color:#283f4c}.candidate-option:has(.option-wording:empty){grid-template-columns:34px}.candidate-option .option-wording:empty{display:none}
.report-toolbar{display:flex;justify-content:flex-end;gap:8px;margin:0 auto 14px;max-width:210mm}.attempt-report{width:min(210mm,100%);min-height:277mm;margin:0 auto;background:#fff;border:1px solid #dfe8ec;border-radius:8px;padding:10mm;color:#172c37}.report-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:2px solid var(--brand,#174e66);padding-bottom:5mm;margin-bottom:5mm}.report-brand{font-weight:900;color:var(--brand,#174e66);font-size:.85rem}.report-head h1{font-size:1.25rem;margin:.8mm 0 1mm}.report-head p{font-size:.78rem;margin:0}.report-score{text-align:end;display:flex;flex-direction:column}.report-score strong{font-size:1.55rem;color:var(--brand,#174e66)}.report-score span{font-size:.7rem;color:#657884}.report-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm 4mm;margin-bottom:4mm}.report-meta>div{display:flex;flex-direction:column;border-bottom:1px solid #e5ecef;padding-bottom:1.5mm;min-width:0}.report-meta span{font-size:6.8pt;color:#667b86}.report-meta strong{font-size:8.2pt;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-counts{display:flex;gap:5mm;padding:2.5mm 0;margin-bottom:3mm;font-size:8pt;font-weight:750}.attempt-report h2{font-size:9pt;margin:0 0 2mm}.report-answer-grid{display:grid;grid-template-columns:repeat(var(--report-cols,4),minmax(0,1fr));gap:1.5mm}.report-answer{display:grid;grid-template-columns:8mm 1fr 5mm;align-items:center;gap:1mm;border:1px solid #e1eaee;border-radius:2mm;padding:1.8mm 2mm;font-size:7.6pt;min-height:8mm}.report-answer b{font-family:ui-monospace,monospace;color:#4f6874}.attempt-report.report-dense .report-answer{font-size:6.2pt;min-height:5.5mm;padding:1mm}.attempt-report.report-dense .report-meta strong{font-size:7.5pt}.attempt-report.report-ultra{padding:5mm}.attempt-report.report-ultra .report-head{padding-bottom:2mm;margin-bottom:2mm}.attempt-report.report-ultra .report-head h1{font-size:1rem;margin:.4mm 0}.attempt-report.report-ultra .report-meta{gap:1mm 2mm;margin-bottom:1.5mm}.attempt-report.report-ultra .report-meta>div{padding-bottom:.5mm}.attempt-report.report-ultra .report-meta span{font-size:5.6pt}.attempt-report.report-ultra .report-meta strong{font-size:6.4pt}.attempt-report.report-ultra .report-counts{padding:.8mm 0;margin-bottom:1mm;font-size:6.2pt}.attempt-report.report-ultra h2{font-size:7pt;margin-bottom:1mm}.attempt-report.report-ultra .report-answer-grid{gap:.5mm}.attempt-report.report-ultra .report-answer{font-size:5.2pt;min-height:4mm;padding:.4mm .7mm;grid-template-columns:5mm 1fr 3mm;border-radius:1mm}.attempt-report.report-ultra .report-footer{margin-top:1.5mm;padding-top:1mm;font-size:5.5pt}.report-answer strong{text-align:end}.report-answer.correct{border-color:#b8e4d3;background:#f4fbf8}.report-answer.wrong{border-color:#efd0ca;background:#fff8f6}.report-footer{margin-top:5mm;padding-top:2mm;border-top:1px solid #e4ecef;font-size:6.8pt;color:#71828a;text-align:center}
html[lang=ar] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif}html[dir=rtl] .candidate-question{grid-template-columns:42px minmax(0,1fr)}html[dir=rtl] .leader-score{text-align:start}html[dir=rtl] .report-score{text-align:start}
@media(max-width:900px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.leaderboard-strip{grid-template-columns:1fr}.attempt-summary-grid{grid-template-columns:1fr}.report-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.report-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quick-action{min-width:0}.sticky-save{bottom:76px}.question-editor-body{padding:16px}.candidate-question{padding:15px;grid-template-columns:36px minmax(0,1fr);gap:10px}.candidate-question-number{width:34px;height:34px}.full-exam-app{padding-inline:10px}.leaderboard-row{grid-template-columns:auto minmax(0,1fr) auto}.report-toolbar{padding-inline:8px}}
@media(max-width:540px){.topbar{gap:.7rem;padding-inline:12px}.brand{font-size:1.06rem}.topright{gap:.05rem}.topright .textbtn{font-size:.69rem;padding:.3rem}.quick-actions{grid-template-columns:1fr}.quick-action{min-height:55px}.template-panel .section-heading{display:grid}.template-language{width:max-content}.template-grid{grid-template-columns:1fr 1fr}.template-card{padding:11px;min-height:96px}.option-editor-grid{grid-template-columns:1fr}.question-editor-card summary{padding:13px 14px;font-size:.84rem}.candidate-question{grid-template-columns:30px minmax(0,1fr);padding:13px 10px}.candidate-question-number{width:29px;height:29px;border-radius:8px;font-size:.8rem}.candidate-option{padding:9px}.report-answer-grid{grid-template-columns:1fr 1fr}.report-meta{grid-template-columns:1fr 1fr}.leaderboard-row{gap:8px;padding:10px}.leader-score strong{font-size:.84rem}}
@media print{@page{size:A4 portrait;margin:8mm}.report-toolbar{display:none!important}.focused:has(.attempt-report){max-width:none!important;padding:0!important}.attempt-report{width:194mm;min-height:278mm;border:0;border-radius:0;padding:4mm;box-shadow:none}.report-head{margin-bottom:3mm;padding-bottom:3mm}.report-meta{gap:2mm 3mm;margin-bottom:2.5mm}.report-counts{margin-bottom:2mm;padding:1.5mm 0}.report-answer-grid{grid-template-columns:repeat(var(--report-cols,4),minmax(0,1fr));gap:1.2mm}.report-answer{min-height:7mm;padding:1.2mm 1.5mm}.report-footer{margin-top:3mm}}
.focus-tools{position:fixed;top:10px;inset-inline-end:12px;z-index:20;display:flex;gap:3px;background:rgba(255,255,255,.88);border:1px solid #dfe9ed;border-radius:10px;padding:2px 4px;backdrop-filter:blur(8px)}.focus-tools form{margin:0}.focus-tools .textbtn{font-size:.72rem}@media(max-width:540px){.focus-tools{top:6px;inset-inline-end:7px}.focus-tools .textbtn{font-size:.66rem;padding:.25rem}}
@media print{.focus-tools{display:none!important}}

@media print{.attempt-report.report-ultra{padding:2mm}.attempt-report.report-ultra .report-answer{min-height:3.8mm;padding:.35mm .6mm}.attempt-report.report-ultra .report-answer-grid{gap:.45mm}}

/* AnswerSheet v1.4.0 — administration, student portal and responsive controls */
.brand{display:flex;align-items:center;gap:.48rem}.brand-copy{display:flex;flex-direction:column;line-height:1.02}.brand-copy>span{display:block}.brand-copy small{font-size:.62rem;font-weight:800;letter-spacing:.06em;color:#728892;margin-top:4px}.badge.scheduled{background:#e9e5ff;color:#5f49a4}.badge.pending{background:#fff1d8;color:#966006}.badge.approved{background:#e0f6ed;color:#0a7858}.badge.rejected{background:#fde7e3;color:#9b4034}.badge.suspended{background:#eceff2;color:#4f6069}.status-note{margin:.45rem 0 0;color:#667b86;font-size:.8rem}.danger{background:#a53d31!important;border-color:#a53d31!important}.danger:hover{filter:brightness(1.08)}.danger-outline{background:#fff!important;color:#9d3d32!important;border-color:#d8aaa4!important;box-shadow:none!important}.danger-outline:hover{background:#fff5f3!important;color:#873129!important}.danger-text{color:#a23c31!important}.row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.row-actions form{margin:0}.table-link{font-weight:750;color:var(--brand,#174e66)}

.result-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px}.filter-pills{display:flex;gap:7px;flex-wrap:wrap}.filter-pills a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid #d4e0e5;border-radius:999px;background:#fff;font-size:.8rem;font-weight:750;color:#506976}.filter-pills a.active,.filter-pills a:hover{background:#e8f3f6;border-color:#9bc6d0;color:var(--brand,#174e66)}.sort-head{display:inline-flex;align-items:center;gap:4px;color:inherit;font-weight:800}.sort-head:hover{color:var(--brand,#174e66)}.sortable-table th{position:sticky;top:0;z-index:1}.wrap-cell{white-space:normal;min-width:180px}

.leaderboard-export-card{background:#fff;border:1px solid #dfe9ed;border-radius:22px;padding:clamp(20px,4vw,34px);overflow:hidden}.leaderboard-meta{display:flex;gap:8px 18px;flex-wrap:wrap;margin:0 0 22px;color:#607681;font-size:.82rem}.leaderboard-meta strong{color:#253f4c}.leaderboard-preview{max-width:850px}.leaderboard-table{display:grid;gap:7px}.leaderboard-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #e3ebef;border-radius:13px;padding:11px 14px;background:#fff}.leaderboard-row:first-child{border-color:#b4d8df;background:#f3fafb}.leaderboard-row .rank{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e9f3f5;color:#174e66;font-weight:850}.leader-score{text-align:end;font-size:1.05rem;font-weight:850}.leaderboard-strip{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #e6edef;padding:10px 0}.leaderboard-strip:last-child{border:0}.leader-card{min-width:0}

.student-shell{max-width:980px;margin:0 auto;padding:38px 22px 100px}.student-portal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.student-portal-head h1{margin-bottom:5px}.student-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}.student-summary>div{background:#fff;border:1px solid #dfe9ed;border-radius:16px;padding:16px 18px}.student-summary span{display:block;color:#647984;font-size:.78rem;font-weight:700;margin-bottom:5px}.student-summary strong{font-size:1.35rem}.student-result-list{display:grid;gap:12px}.student-result-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;background:#fff;border:1px solid #dfe9ed;border-radius:17px;padding:18px 20px}.student-result-card h3{margin:0 0 4px}.student-result-card p{margin:0;font-size:.83rem}.student-score{text-align:end;min-width:105px}.student-score strong{display:block;font-size:1.35rem}.student-score small{display:block}.portal-link{color:var(--brand,#174e66);font-weight:800}.auth-alt{text-align:center;margin-top:20px;font-size:.86rem}.student-review{margin-top:22px;border-top:1px solid #e6edef;padding-top:18px}

.system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.system-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #dfe9ed;border-radius:18px;padding:22px;min-height:175px}.system-card h2{margin:0}.system-card p{margin:0 0 auto}.system-card .button{align-self:flex-start}.update-sequence{counter-reset:update-step;display:grid;gap:9px;margin:18px 0}.update-sequence>div{position:relative;padding:10px 12px 10px 44px;border:1px solid #e1eaee;border-radius:11px;background:#f8fbfc;font-size:.85rem}.update-sequence>div:before{counter-increment:update-step;content:counter(update-step);position:absolute;left:12px;top:9px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#dceef2;color:#174e66;font-weight:850;font-size:.72rem}.restore-details{margin-top:8px;padding:13px 15px;border:1px solid #ecd4cf;background:#fff7f5;border-radius:11px;font-size:.82rem}.restore-details summary{cursor:pointer;font-weight:800;color:#87352d}

html[dir="rtl"] .update-sequence>div{padding:10px 44px 10px 12px}html[dir="rtl"] .update-sequence>div:before{left:auto;right:12px}.schedule-field[hidden]{display:none!important}

@media(max-width:900px){.system-grid{grid-template-columns:1fr}.leaderboard-row{grid-template-columns:46px minmax(0,1fr) auto}.student-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.result-controls{align-items:stretch}.result-controls>*{max-width:100%}.leaderboard-export-card{padding:18px}.leaderboard-row{grid-template-columns:42px minmax(0,1fr) auto}.leaderboard-row .duration-col{display:none}.student-portal-head{flex-direction:column}.student-result-card{grid-template-columns:1fr auto}.topbar .brand-copy small{font-size:.57rem}}
@media(max-width:540px){.student-shell{padding:24px 14px 80px}.student-summary{grid-template-columns:1fr}.student-result-card{grid-template-columns:1fr;padding:15px}.student-score{text-align:start}.leaderboard-row{grid-template-columns:36px minmax(0,1fr);padding:10px}.leaderboard-row .leader-score,.leaderboard-row .duration-col{grid-column:2;text-align:start}.leaderboard-meta{display:grid;gap:4px}.system-card{padding:18px}.filter-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.filter-pills a{justify-content:center;text-align:center}.row-actions{align-items:stretch}.row-actions .button{flex:1}.brand-copy small{display:block}.result-controls .field{width:100%;margin-bottom:0}}
.system-grid{margin-bottom:20px}.mobile-nav a{min-width:0;text-align:center}
.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-copy small{display:block;font-size:.68rem;font-weight:600;opacity:.72;margin-top:2px}
