@import "https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap";
:root{--blue:#1747cb;--blue-light:#edf2ff;--ink:#192437;--muted:#6b7688;--line:#e2e7ef;--bg:#f5f7fb;--white:#fff;--amber:#a86908;--red:#b52e37;--radius:14px}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-family:Noto Sans KR,Malgun Gothic,sans-serif;font-size:16px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{letter-spacing:-.04em;font-size:1.9rem;line-height:1.4}h2{letter-spacing:-.025em;font-size:1.25rem}h3{font-size:1.1rem}small{font-size:.875rem}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #86a9ff}input:not([type=radio]):not([type=checkbox]),textarea,select{width:100%;color:var(--ink);background:#fff;border:1px solid #ccd4e0;border-radius:8px;min-width:0;margin-top:8px;padding:12px 14px;display:block}textarea{resize:vertical;line-height:1.7}label{font-weight:500}label small{color:var(--muted);margin-top:6px;font-weight:400;display:block}.muted{color:var(--muted)}.eyebrow{letter-spacing:.09em;color:var(--muted);margin-bottom:9px;font-size:.75rem;font-weight:700;display:block}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.sr-only{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.button{border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:45px;padding:11px 19px;font-size:.9375rem;font-weight:600;display:inline-flex}.button:hover:not(:disabled){filter:brightness(.94)}.button.secondary{color:var(--ink);border-color:var(--line);background:#fff}.full{width:100%}.text-button{color:var(--blue);background:0 0;border:0;align-items:center;gap:7px;padding:8px 0;font-size:.9rem;font-weight:500;display:inline-flex}.icon-button{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.badge{background:var(--blue-light);color:var(--blue);border-radius:5px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.badge.warm{color:#93610b;background:#fff4da}.topbar{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;gap:20px;height:80px;padding:0 40px;display:flex}.brand{white-space:nowrap;align-items:center;gap:10px;font-size:1.15rem;font-weight:800;display:flex}.brand-icon{background:var(--blue);color:#fff;border-radius:9px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.brand-light{font-weight:500}.account{align-items:center;gap:14px;font-size:.9rem;display:flex}.portal-shell{grid-template-columns:226px 1fr;min-height:calc(100vh - 80px);display:grid}.sidebar{border-right:1px solid var(--line);background:#fff;flex-direction:column;padding:36px 22px;display:flex}.sidebar .eyebrow{margin-bottom:18px;padding-left:14px;font-size:.7rem}.sidebar nav{flex-direction:column;gap:7px;display:flex}.sidebar nav button{color:#526074;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;width:100%;padding:13px 14px;font-size:.93rem;font-weight:500;display:flex}.sidebar nav button.active{color:var(--blue);background:var(--blue-light);font-weight:700}.sidebar-bottom{flex-direction:column;margin-top:auto;padding:40px 14px 0;font-size:.85rem;display:flex}.sidebar-bottom span{color:var(--muted);font-size:.8rem}.dashboard{width:100%;max-width:1250px;padding:44px 48px 80px}.page-heading{margin-bottom:30px}.page-heading p{margin-top:12px}.stat-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:38px;display:grid}.stat{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:22px 24px}.stat>span{color:var(--muted);justify-content:space-between;align-items:center;font-size:.875rem;display:flex}.stat strong{letter-spacing:-.04em;margin-top:13px;font-size:2.25rem;line-height:1.4;display:block}.stat small{color:var(--muted);margin-left:8px;font-weight:400}.section-heading{justify-content:space-between;align-items:center;gap:15px;margin:26px 0 17px;display:flex}.section-heading>.muted{font-size:.875rem}.exam-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.exam-tile{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:24px;overflow:hidden}.exam-tile>div:first-child{justify-content:space-between;align-items:center;display:flex}.tile-number{color:#c7d1e5;font-size:1.5rem;font-weight:800}.exam-tile h3{margin-top:18px;font-size:1.2rem}.exam-tile p{align-items:center;gap:7px;margin-top:10px;font-size:.875rem;display:flex}.exam-tile p svg:nth-of-type(2){margin-left:10px}.tile-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;margin-top:24px;padding-top:18px;display:flex}.tile-footer small{color:var(--muted)}.history-list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.history-row{text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;align-items:center;gap:18px;width:100%;padding:20px;display:flex}.history-row:last-child{border-bottom:0}.history-row:hover{background:#f9fbff}.history-row>span:nth-child(2){flex:1}.history-row small{color:var(--muted);margin-top:4px;font-size:.8rem;display:block}.history-row strong{color:var(--blue);white-space:nowrap}.history-icon{background:var(--blue-light);width:42px;height:42px;color:var(--blue);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.empty{border-radius:var(--radius);text-align:center;color:var(--muted);background:#fff;border:1px dashed #cbd4e2;padding:46px 24px}.error,.notice,.success{overflow-wrap:anywhere;border-radius:8px;margin:12px 0;padding:14px 18px;font-size:.9rem}.error{color:#962831;background:#fff0f0;border:1px solid #f4cccc}.notice{color:#886113;background:#fff7e5}.success{color:#236146;background:#ecf8f1}.login-shell{grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.login-intro{color:#fff;background:#102d7a;flex-direction:column;justify-content:space-between;min-height:100vh;padding:48px 9%;display:flex}.login-intro .brand-icon{color:#1747cb;background:#fff}.login-intro .eyebrow{color:#a8c4ff}.login-intro h1{margin:18px 0;font-size:2.65rem;line-height:1.5}.login-intro p{color:#c2d0ed;line-height:1.9}.login-intro>small{color:#afc0e1;font-size:.75rem}.login-features{color:#dce6ff;flex-wrap:wrap;gap:24px;margin-top:34px;font-size:.875rem;display:flex}.login-features span{align-items:center;gap:8px;display:flex}.login-features svg{width:18px}.login-form-wrap{background:#fff;place-items:center;padding:44px;display:grid}.login-form{width:100%;max-width:370px}.login-form h2{margin-bottom:10px;font-size:1.65rem}.login-form>p{margin-bottom:34px;font-size:.9rem}.login-form label{margin:22px 0 0;display:block}.login-form>.button{margin:28px 0 20px}.login-form>small{text-align:center;font-size:.8rem;display:block}.setup-box{background:var(--bg);border:1px solid var(--line);border-radius:12px;margin-top:30px;padding:24px}.setup-box p{color:var(--muted);margin:10px 0 24px;font-size:.9rem}.exam-shell{grid-template-columns:minmax(0,1fr) 264px;align-items:start;gap:26px;max-width:1260px;margin:auto;padding:36px 32px 70px;display:grid}.exam-heading{justify-content:space-between;align-items:center;gap:20px;min-height:64px;margin-bottom:24px;display:flex}.exam-heading h1{font-size:1.45rem}.timer{color:var(--blue);border:1px solid var(--line);font-variant-numeric:tabular-nums;white-space:nowrap;background:#fff;border-radius:10px;align-items:center;gap:10px;padding:10px 16px;font-size:1.2rem;font-weight:700;display:flex}.timer.urgent{color:var(--red);border-color:#f2c4c4}.question-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:30px 34px}.question-top{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;margin-bottom:26px;padding-bottom:22px;font-size:.9rem;display:flex}.question-top b{color:var(--blue)}.text-button.marked{color:var(--amber)}.question-title{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:24px;font-size:1.15rem;font-weight:600;line-height:1.9}.passage{background:#f6f8fc;border:1px solid #e6eaf0;border-radius:8px;margin:20px 0;padding:20px 22px;font-size:.95rem;line-height:1.85}.passage .eyebrow{color:#526582}.common .preserve{font-size:.9rem}.choices{border:0;flex-direction:column;gap:12px;margin:26px 0 8px;padding:0;display:flex}.choice{border:1px solid var(--line);cursor:pointer;border-radius:9px;align-items:flex-start;gap:13px;padding:15px 17px;font-size:.95rem;font-weight:400;line-height:1.75;display:flex;position:relative}.choice:hover{border-color:#acbee9}.choice.selected{border-color:var(--blue);background:var(--blue-light);color:#163b9b}.choice input{opacity:0;width:1px;height:1px;position:absolute}.choice:focus-within{outline-offset:2px;outline:3px solid #86a9ff}.choice-number{background:#fff;border:1px solid #cdd5e1;border-radius:50%;flex-shrink:0;place-items:center;width:25px;height:25px;margin-top:1px;font-size:.8rem;display:grid}.selected .choice-number{background:var(--blue);border-color:var(--blue);color:#fff}.question-image{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;margin:20px 0;padding:12px;display:block;position:relative}.question-image img{object-fit:contain;max-width:100%;max-height:340px;margin:auto;display:block}.question-image>span{color:var(--muted);justify-content:center;align-items:center;gap:6px;margin-top:10px;font-size:.8rem;display:flex}.short-answer{margin:24px 0;display:block}.short-answer input{font-size:1.1rem}.exam-navigation{justify-content:space-between;align-items:center;gap:12px;margin-top:22px;display:flex}.exam-navigation>.muted{font-size:.875rem}.answer-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-top:88px;padding:24px;position:sticky;top:24px}.answer-panel h2{font-size:2rem}.answer-panel h2 span{font-size:1rem;font-weight:400}.progress{background:#e9edf5;border-radius:6px;height:5px;margin:15px 0 24px;overflow:hidden}.progress i{background:var(--blue);height:100%;transition:width .2s;display:block}.question-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;display:grid}.question-grid button,.review-numbers button{border:1px solid var(--line);height:35px;color:var(--muted);background:#fff;border-radius:6px;font-size:.8rem;font-weight:500;position:relative}.question-grid button.answered{background:var(--blue-light);color:var(--blue);border-color:#d9e3ff}.question-grid button.current,.review-numbers button.current{border:2px solid var(--blue);color:var(--blue);font-weight:700}.question-grid button.flagged:after{content:"";background:#dea02e;border-radius:2px;width:6px;height:6px;position:absolute;top:2px;right:2px}.legend{color:var(--muted);flex-wrap:wrap;gap:12px;margin:18px 0 25px;font-size:.75rem;display:flex}.legend span{align-items:center;gap:5px;display:flex}.legend i{border-radius:2px;width:10px;height:10px;display:inline-block}.blue-square{background:#dce6ff}.amber-square{background:#dea02e}.save-state{color:#537268;justify-content:center;align-items:center;gap:6px;margin:16px 0;font-size:.8rem;display:flex}.answer-panel>small{text-align:center;margin-top:12px;font-size:.75rem;display:block}.side-note{color:var(--muted);gap:8px;margin:20px 0;font-size:.85rem;display:flex}.preview-note{text-align:center;color:#31539d;background:#edf2ff;padding:10px 20px;font-size:.85rem}.modal-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:50;background:#10204099;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-dialog{background:#fff;border-radius:16px;width:100%;max-width:440px;padding:30px}.confirm-dialog h2{margin-bottom:16px}.button-row{justify-content:flex-end;gap:12px;margin-top:26px;display:flex}.image-dialog{background:#fff;border-radius:12px;max-width:95vw;max-height:95vh;padding:50px 20px 20px;position:relative;overflow:auto}.image-dialog img{object-fit:contain;max-width:100%;max-height:80vh}.close{position:absolute;top:10px;right:12px}.result-shell{max-width:1000px;margin:auto;padding:38px 30px 80px}.result-heading{justify-content:space-between;align-items:center;gap:30px;margin:24px 0;display:flex}.result-heading p{margin-top:10px;font-size:.9rem}.score-circle{border:7px solid #dce6ff;border-top-color:var(--blue);border-right-color:var(--blue);border-radius:50%;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;width:134px;height:134px;display:flex}.score-circle strong{color:var(--blue);font-size:2.25rem;line-height:1.2}.score-circle span{color:var(--muted);margin-top:6px;font-size:.75rem}.result-summary{border:1px solid var(--line);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;margin:28px 0;padding:22px;display:flex}.result-summary span{align-items:center;gap:8px;font-size:.9rem;display:flex}.result-summary svg{color:var(--blue)}.result-summary>span:last-child{color:var(--muted);font-size:.8rem}.tabs{border-bottom:1px solid var(--line);gap:5px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 14px;font-size:.9rem}.tabs button.active{color:var(--blue);border-color:var(--blue);font-weight:700}.review-numbers{flex-wrap:wrap;gap:8px;margin:20px 0;display:flex}.review-numbers button{width:36px}.review-numbers .wrong{color:#916016;background:#fff4e4}.review-numbers .right{color:var(--blue);background:#eef4ff}.explanation{border-left:3px solid var(--blue);background:#f0f5ff;border-radius:6px;margin-top:28px;padding:24px;font-size:.95rem;line-height:1.9}.explanation h3{color:var(--blue)}.explanation p{margin:8px 0 14px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:28px}.form-stack{flex-direction:column;gap:20px;display:flex}.form-stack>.button{align-self:flex-start}.form-pair{grid-template-columns:1fr 1fr;gap:20px;display:grid}.form-fieldset{border:1px solid var(--line);border-radius:8px;padding:18px}.form-fieldset legend{padding:0 6px;font-size:.9rem;font-weight:600}.preset-row{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.preset-row .button{min-height:35px;padding:7px 10px;font-size:.8rem}.admin-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.check-label{align-items:center;gap:8px;margin-right:22px;padding:8px 0;display:inline-flex}.check-label input{width:18px;height:18px;accent-color:var(--blue)}.admin-columns{grid-template-columns:1fr 1fr;gap:24px;display:grid}.student-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:20px 0;display:flex}.student-row .badge{margin-left:auto}.avatar{background:var(--blue-light);width:36px;height:36px;color:var(--blue);border-radius:50%;place-items:center;display:grid}.manage-exam{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:20px 0;display:flex}.manage-exam small{color:var(--muted);margin-top:6px;display:block}.spaced{margin-top:24px}.bank-list{border:1px solid var(--line);background:#fff;border-radius:12px;max-height:380px;overflow:auto}.bank-row{border:0;border-bottom:1px solid var(--line);text-align:left;background:#fff;align-items:center;gap:14px;width:100%;padding:15px 20px;font-size:.9rem;display:flex}.bank-row span{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.bank-row b{color:var(--blue)}.bank-row small{white-space:nowrap;color:var(--muted)}.bank-row.active{background:var(--blue-light)}@media (min-width:1500px){.dashboard{padding-top:54px}.login-intro{padding:60px 12%}.exam-shell{padding-top:48px}}@media (max-width:1000px){.portal-shell{grid-template-columns:185px 1fr}.sidebar{padding:28px 12px}.dashboard{padding:32px 24px}.exam-cards{grid-template-columns:1fr}.exam-shell{grid-template-columns:minmax(0,1fr) 225px;gap:18px;padding:24px 20px}.question-card{padding:24px}.answer-panel{padding:18px}.login-intro h1{font-size:2rem}.admin-columns{grid-template-columns:1fr}.stat{padding:18px}.topbar{padding:0 24px}}@media (max-width:720px){h1{font-size:1.5rem}.topbar{flex-wrap:wrap;gap:10px;height:auto;min-height:66px;padding:14px 18px}.brand{font-size:1rem}.brand-icon{width:31px;height:31px}.account{gap:8px;font-size:.85rem}.portal-shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:12px 14px}.sidebar>.eyebrow,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;gap:3px}.sidebar nav button{flex:1;justify-content:center;gap:6px;width:auto;padding:10px 8px;font-size:.82rem}.sidebar nav svg{width:16px}.dashboard{padding:28px 18px 60px}.page-heading p{font-size:.9rem}.stat-grid{gap:8px;margin-bottom:26px}.stat{padding:14px 12px}.stat>span{font-size:.75rem}.stat>span svg{display:none}.stat strong{font-size:1.65rem}.stat small{font-size:.75rem}.exam-tile{padding:20px}.history-row{gap:10px;padding:15px}.history-row b{font-size:.9rem}.history-row small{font-size:.75rem}.history-icon{display:none}.login-shell{display:block}.login-intro{min-height:0;padding:28px 25px 32px}.login-intro h1{margin:24px 0 12px;font-size:1.7rem}.login-intro .eyebrow{margin-top:32px}.login-intro p{font-size:.9rem}.login-features{display:none}.login-intro>small{text-align:center;margin-top:30px;line-height:1.7;display:block}.login-form-wrap{padding:36px 24px}.login-form h2{font-size:1.45rem}.exam-shell{flex-direction:column;padding:22px 16px 50px;display:flex}.exam-shell>section{width:100%}.exam-heading{gap:10px;margin-bottom:18px}.exam-heading h1{font-size:1.2rem}.exam-heading .eyebrow{font-size:.7rem}.timer{gap:6px;padding:8px 10px;font-size:1rem}.timer svg{width:17px}.question-card{padding:20px 18px}.question-top{margin-bottom:20px;padding-bottom:16px;font-size:.8rem}.question-top .text-button{font-size:.8rem}.question-title{font-size:1.05rem}.passage{padding:16px;font-size:.9rem}.choice{gap:10px;padding:13px 12px;font-size:.9rem}.answer-panel{width:100%;margin-top:6px;padding:22px;position:static}.answer-panel .question-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.exam-navigation .button{padding:10px 13px;font-size:.85rem}.result-shell{padding:24px 16px 60px}.score-circle{border-width:5px;width:102px;height:102px}.score-circle strong{font-size:1.7rem}.result-heading{gap:15px}.result-heading h1{font-size:1.3rem}.result-summary{flex-wrap:wrap;gap:12px;padding:18px}.section-heading{flex-wrap:wrap}.section-heading .button{padding:8px 12px;font-size:.8rem}.tabs button{padding:9px 10px;font-size:.85rem}.panel{padding:20px}.admin-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.form-pair{gap:12px}.form-pair label{font-size:.9rem}.manage-exam{flex-wrap:wrap}.bank-row{padding:13px 14px}.preview-note{font-size:.8rem}.image-dialog{padding:50px 10px 10px}}.markup-field>label{margin-bottom:8px;display:block}.format-toolbar{border:1px solid var(--line);background:#f5f7fb;border-bottom:0;border-radius:8px 8px 0 0;gap:6px;padding:8px;display:flex}.format-toolbar button{border:1px solid var(--line);background:#fff;border-radius:6px;align-items:center;gap:5px;padding:6px 9px;font-size:.8rem;display:inline-flex}.markup-field textarea{border-radius:0 0 8px 8px;margin-top:0}.markup-field>small{color:var(--muted);margin-top:6px;display:block}.rich-preview{background:#fbfcff;border:1px solid #d9e3f6;border-radius:8px;margin-top:12px;padding:16px 18px;font-weight:400}.rich-preview .eyebrow{margin-bottom:6px}.validation-warning{color:#962831;margin-top:8px;font-size:.85rem}.issue-badge{background:#fff4da;border-radius:5px;padding:3px 7px;color:#9a6613!important}.admin-actions{flex-wrap:wrap;gap:8px;display:flex}.button.danger{color:#a2242d;background:#fff;border-color:#e5aeb2}.button.danger:hover:not(:disabled){background:#fff1f1}.student-row .danger-icon{color:#a2242d;border-color:#efc7ca;margin-left:0}.student-identity{flex-direction:column;line-height:1.4;display:flex}.student-identity small{color:var(--muted);margin-top:3px}.brand-credit a,.brand-site-link{text-underline-offset:3px;text-decoration:underline}.brand-credit a{color:#dbe6ff;margin-left:8px}.brand-site-link{color:var(--blue);width:max-content;margin-top:3px;font-size:.72rem}.login-hero-title span{display:block}.login-hero-title span+span{color:#dce6ff;letter-spacing:-.015em;margin-top:8px;font-size:.62em;font-weight:400;line-height:1.6}.login-mobile-footer{display:none}@media (max-width:720px){.login-hero-title span+span{margin-top:6px;font-size:.62em}.login-intro>small.brand-credit{display:none}.login-mobile-footer{color:#afc0e1;text-align:center;background:#102d7a;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;padding:24px 20px;font-size:.75rem;display:flex}.login-mobile-footer a{color:#dbe6ff;text-underline-offset:3px;text-decoration:underline}}.login-form .welcome-label{letter-spacing:.08em;text-align:center;margin-bottom:12px;font-size:1.5rem}.login-form>p{text-align:center}.student-management-grid{grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);align-items:start;gap:24px;display:grid}.student-management-grid h2,.password-panel h2{align-items:center;gap:9px;display:flex}.student-list-heading{margin:0 0 10px}.account-example{background:var(--bg);border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:4px;padding:18px;display:flex}.account-example span,.account-example small{color:var(--muted);font-size:.8rem}.account-example strong{letter-spacing:.08em;font-size:1.5rem}.password-panel{max-width:560px}@media (max-width:900px){.student-management-grid{grid-template-columns:1fr}}.image-upload{border:1px solid var(--line);border-radius:10px;padding:18px}.image-label{align-items:center;gap:7px;display:flex}.image-upload>p{margin-top:14px}.inline-image-preview{background:#fbfcff;border:1px solid #d9e3f6;border-radius:10px;padding:18px}.inline-image-preview img{object-fit:contain;background:#fff;border-radius:8px;max-width:100%;max-height:360px;margin:0 auto 16px;display:block}.inline-image-preview .button{margin-left:auto;display:flex}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.question-picker-heading{justify-content:space-between;align-items:center;gap:12px;margin:16px 0 8px;display:flex}.question-picker-heading>div{gap:14px;display:flex}.question-picker{border:1px solid var(--line);background:#fff;border-radius:8px;max-height:360px;overflow:auto}.question-pick{border-bottom:1px solid var(--line);cursor:pointer;grid-template-columns:20px 36px minmax(0,1fr);align-items:center;gap:10px;padding:12px 14px;font-size:.875rem;font-weight:400;display:grid}.question-pick:last-child{border-bottom:0}.question-pick:hover{background:#f8faff}.question-pick.selected{background:var(--blue-light)}.question-pick input{width:17px;height:17px;accent-color:var(--blue)}.question-pick b{color:var(--blue);font-variant-numeric:tabular-nums}.question-pick span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.teacher-preview{grid-template-columns:minmax(0,1fr) 250px;align-items:start;gap:24px;display:grid}.preview-navigation{position:sticky;top:24px}.preview-navigation .question-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.preview-actions{flex-wrap:wrap;gap:10px;margin-top:24px;display:flex}.preview-warning{flex-direction:column;gap:3px;margin-bottom:22px;display:flex}.preview-warning b{margin-bottom:3px}@media (max-width:900px){.teacher-preview{grid-template-columns:1fr}.preview-navigation{order:-1;position:static}.preview-navigation .question-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}@media (max-width:520px){.preview-navigation .question-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.preview-actions .button{width:100%}}.practical-answer textarea{min-height:230px;font-size:1rem}.review-numbers .manual{color:#7040a0;background:#f3ecff}.answer-bank{border:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:26px 0 8px;padding:0;display:grid}.answer-bank legend{grid-column:1/-1;margin-bottom:6px;font-weight:700}.answer-bank-item{border:1px solid var(--line);text-align:center;cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:9px;min-height:52px;padding:9px 11px;font-size:.88rem;font-weight:400;display:flex}.answer-bank-item input{opacity:0;width:1px;height:1px;position:absolute}.answer-bank-item b{color:#536174;background:#eef2f8;border-radius:50%;flex:none;place-items:center;width:25px;height:25px;display:grid}.answer-bank-item.selected{border-color:var(--blue);background:var(--blue-light);color:#163b9b;font-weight:700}.answer-bank-item.selected b{background:var(--blue);color:#fff}.answer-bank-item:focus-within{outline-offset:2px;outline:3px solid #86a9ff}@media (max-width:960px){.answer-bank{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:720px){.answer-bank{grid-template-columns:repeat(2,minmax(0,1fr))}}.student-history-layout{grid-template-columns:minmax(210px,280px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.student-history-students,.student-history-records{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}.student-history-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;display:flex}.student-history-heading span{color:var(--muted);font-size:.8rem}.student-history-button{border:0;border-bottom:1px solid var(--line);text-align:left;width:100%;color:var(--ink);background:#fff;align-items:center;gap:11px;padding:14px 16px;display:flex}.student-history-button:last-child{border-bottom:0}.student-history-button:hover,.student-history-button.active{background:var(--blue-light)}.student-history-button.active{color:var(--blue)}.student-history-button>span:nth-child(2){flex-direction:column;flex:1;min-width:0;display:flex}.student-history-button small{color:var(--muted);font-size:.75rem}.student-history-button em{color:var(--muted);white-space:nowrap;font-size:.75rem;font-style:normal}.student-history-empty{padding:20px}.student-history-records .history-list{border:0;border-radius:0}.pagination{justify-content:center;align-items:center;gap:14px;margin-top:20px;display:flex}.pagination .button{min-height:38px;padding:8px 13px}.pagination span{color:var(--muted);text-align:center;min-width:48px;font-size:.85rem}@media (max-width:720px){.student-history-layout{grid-template-columns:1fr}.student-history-students{max-height:280px;overflow:auto}.student-history-heading{padding:15px 16px}.student-history-button{padding:12px 14px}.pagination{gap:9px}.pagination .button{font-size:.82rem}}.teacher-exam-list{grid-template-columns:1fr}.teacher-exam-list .exam-tile{grid-template-columns:150px minmax(220px,1fr) minmax(190px,.7fr) auto;align-items:center;gap:20px;padding:20px 24px;display:grid}.teacher-exam-list .exam-tile>div:first-child{justify-content:flex-start;gap:14px}.teacher-exam-list .exam-tile h3,.teacher-exam-list .exam-tile p{margin-top:0}.teacher-exam-list .tile-footer{border-top:0;justify-content:flex-end;margin-top:0;padding-top:0}.teacher-exam-list .tile-footer>small{display:none}.teacher-exam-list .exam-tile.interactive{cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s;position:relative}.teacher-exam-list .exam-tile.interactive:has(.exam-tile-hitbox:hover){background:#fbfcff;border-color:#bdcbed}.teacher-exam-list .exam-tile.interactive:has(.exam-tile-hitbox:focus-visible){outline-offset:3px;outline:3px solid #86a9ff}.teacher-exam-list .exam-tile.interactive.expanded{border-color:#bdcbed;box-shadow:0 8px 24px #1747cb12}.exam-tile-hitbox{z-index:1;border-radius:inherit;background:0 0;border:0;position:absolute;inset:0}.exam-tile-hitbox:focus-visible{outline:0}.teacher-exam-list .tile-footer .button-row,.teacher-exam-list .distribution-detail{z-index:2;position:relative}.teacher-exam-list .tile-footer .button-row{margin-top:0}.exam-list-filters{grid-template-columns:minmax(240px,2fr) repeat(3,minmax(150px,1fr));gap:10px;margin-bottom:16px;display:grid}.exam-list-filters input:not([type=radio]):not([type=checkbox]),.exam-list-filters select{height:48px;min-height:48px;margin-top:0;line-height:1.4}.distribution-detail{border-top:1px solid var(--line);grid-column:1/-1;margin-top:2px;padding-top:22px}.distribution-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.distribution-heading h3{margin:0 0 4px!important}.distribution-heading p{margin:0!important}.distribution-students{border:1px solid var(--line);border-radius:10px;margin-top:16px;overflow:hidden}.distribution-student{border-bottom:1px solid var(--line);grid-template-columns:minmax(170px,1fr) 110px auto auto;align-items:center;gap:16px;padding:14px 16px;display:grid}.distribution-student:last-child{border-bottom:0}.distribution-student>div:first-child{flex-direction:column;display:flex}.distribution-student small{color:var(--muted)}.distribution-add{grid-template-columns:minmax(220px,420px) auto;align-items:end;gap:12px;margin-top:18px;display:grid}.distribution-add select{margin-top:6px}.compact-button{min-height:36px;padding:7px 11px}.danger-text{color:var(--red)}.compact-empty{margin-top:16px;padding:20px}.question-set-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.student-exam-list{grid-template-columns:1fr}.student-exam-list .exam-tile{grid-template-columns:150px minmax(220px,1fr) minmax(170px,.7fr) minmax(235px,auto);align-items:center;gap:20px;padding:20px 24px;display:grid}.student-exam-list .exam-tile>div:first-child{justify-content:flex-start;gap:14px}.student-exam-list .exam-tile h3,.student-exam-list .exam-tile p{margin-top:0}.student-exam-list .tile-footer{border-top:0;justify-content:flex-end;margin-top:0;padding-top:0}.student-exam-list .tile-footer .button{min-height:38px;padding:8px 14px;font-size:.875rem}@media (max-width:920px){.teacher-exam-list .exam-tile{grid-template-columns:130px minmax(180px,1fr) auto}.teacher-exam-list .exam-tile p{grid-column:2}.teacher-exam-list .tile-footer{grid-area:1/3/3}.exam-list-filters{grid-template-columns:1fr 1fr}.exam-list-filters>input{grid-column:1/-1}.teacher-exam-list .distribution-detail{grid-area:auto/1/auto/-1}.distribution-student{grid-template-columns:minmax(150px,1fr) 100px auto}.distribution-student .danger-text{grid-column:1/-1;justify-self:end}.student-exam-list .exam-tile{grid-template-columns:130px minmax(180px,1fr) auto}.student-exam-list .exam-tile p{grid-column:2}.student-exam-list .tile-footer{flex-direction:column;grid-area:1/3/3;align-items:flex-end}}@media (max-width:720px){.teacher-exam-list .exam-tile{padding:18px;display:block}.teacher-exam-list .exam-tile>div:first-child{justify-content:flex-start;gap:12px;padding-right:48px}.teacher-exam-list .exam-tile h3{margin-top:14px}.teacher-exam-list .exam-tile p{margin-top:8px}.teacher-exam-list .tile-footer{border-top:1px solid var(--line);justify-content:flex-start;min-height:39px;margin-top:16px;padding-top:14px;padding-right:48px;position:relative}.teacher-exam-list .tile-footer>small{display:block}.teacher-exam-list .tile-footer .button-row{position:absolute;bottom:0;right:0}.teacher-exam-list .icon-button{width:40px;height:40px}.exam-list-filters{grid-template-columns:1fr}.exam-list-filters>input{grid-column:auto}.distribution-detail{margin-top:18px}.distribution-heading{flex-direction:column;align-items:flex-start}.distribution-student{grid-template-columns:1fr auto;gap:10px;display:grid}.distribution-student .compact-button,.distribution-student .danger-text{grid-column:auto;justify-self:start}.distribution-add{grid-template-columns:1fr}.distribution-add .button{width:100%}.student-exam-list .exam-tile{display:block}.student-exam-list .exam-tile>div:first-child{justify-content:space-between}.student-exam-list .exam-tile h3{margin-top:18px}.student-exam-list .exam-tile p{margin-top:10px}.student-exam-list .tile-footer{border-top:1px solid var(--line);flex-direction:row;align-items:center;margin-top:20px;padding-top:16px}}.level1-topbar{z-index:30;position:sticky;top:0}.level1-shell{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:24px;max-width:1320px;margin:auto;padding:30px 28px 80px;display:grid}.level1-paper{min-width:0}.level1-heading{z-index:20;background:var(--bg);margin:0 0 10px;padding:14px 0;position:sticky;top:80px}.level1-question{margin-bottom:18px;scroll-margin-top:174px}.omr-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:20px;position:sticky;top:104px}.omr-panel h2{font-size:1.6rem}.omr-panel h2 span{font-size:.9rem;font-weight:400}.omr-list{border:1px solid var(--line);border-radius:8px;max-height:calc(100vh - 350px);overflow:auto}.omr-row{border-bottom:1px solid var(--line);width:100%;min-height:39px;color:var(--muted);background:#fff;grid-template-columns:38px 1fr;align-items:center;padding:4px 8px;display:grid;position:relative}.omr-row:last-child{border-bottom:0}.omr-row.current{color:var(--blue);background:#f1f5ff}.omr-row.answered .omr-question-link{color:var(--blue)}.omr-row.flagged:after{content:"";background:#dea02e;border-radius:2px;width:6px;height:6px;position:absolute;top:3px;right:3px}.omr-question-link,.omr-short-link{color:inherit;background:0 0;border:0;padding:4px;font-size:.75rem}.omr-question-link{height:31px}.omr-list span{justify-content:space-around;gap:3px;display:flex}.omr-list span button{width:28px;height:28px;color:var(--muted);background:#fff;border:1px solid #d1d8e5;border-radius:50%;place-items:center;padding:0;font-size:.75rem;display:grid}.omr-list span button:hover:not(:disabled){border-color:var(--blue);color:var(--blue)}.omr-list span button.selected{background:var(--blue);border-color:var(--blue);color:#fff}.omr-short-link{text-overflow:ellipsis;white-space:nowrap;text-align:center;overflow:hidden}.phase-wait{border:1px solid var(--line);text-align:center;background:#fff;border-radius:18px;max-width:620px;margin:10vh auto;padding:42px}.phase-wait h1{margin-bottom:20px}.phase-wait>p{margin:18px 0}.waiting-clock{color:var(--blue);font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:10px;font-size:2rem;font-weight:800;display:flex}.part2-shell{max-width:980px;margin:auto;padding:38px 28px 80px}.part2-progress{background:#e7ebf2;border-radius:8px;height:34px;margin-bottom:22px;position:relative;overflow:hidden}.part2-progress i{background:#cddcff;height:100%;display:block}.part2-progress span{color:#173b93;place-items:center;font-size:.8rem;font-weight:700;display:grid;position:absolute;inset:0}.gemini-link{margin:4px 0 22px}.answer-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:15px;margin-top:14px;font-size:.8rem;display:flex}.bank-answer-input{max-width:340px;margin-bottom:8px}@media (max-width:900px){.level1-shell{grid-template-columns:1fr}.omr-panel{position:static}.omr-list{max-height:310px}.level1-heading{top:66px}.level1-question{scroll-margin-top:160px}}@media (max-width:720px){.level1-shell,.part2-shell{padding:18px 14px 55px}.level1-heading{top:66px}.level1-heading .eyebrow{display:none}.level1-question{scroll-margin-top:140px}.phase-wait{margin:30px 14px;padding:28px 20px}.answer-meta{align-items:flex-end}.answer-meta .button{padding:8px 12px}}.omr-row{cursor:pointer}.omr-row:hover{background:#f7f9ff}.omr-row.current:hover{background:#f1f5ff}.omr-list span button.selected:hover:not(:disabled){background:var(--blue);border-color:var(--blue);color:#fff}.attachment-download{width:fit-content;color:var(--blue);background:#f6f9ff;border:1px solid #cbd8f4;border-radius:9px;align-items:center;gap:12px;margin:14px 0 24px;padding:12px 16px;display:flex}.attachment-download:hover{background:#edf3ff}.attachment-download span{flex-direction:column;line-height:1.4;display:flex}.attachment-download small{color:var(--muted);font-weight:400}.vertical-preview{grid-template-columns:minmax(0,1fr) 250px}.vertical-preview .preview-navigation{top:24px}.preview-scroll-list{border:1px solid var(--line);border-radius:8px;max-height:calc(100vh - 180px);overflow:auto}.preview-scroll-list button{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--muted);text-align:left;background:#fff;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.preview-scroll-list button:last-child{border-bottom:0}.preview-scroll-list button.current{background:var(--blue-light);color:var(--blue)}.preview-scroll-list button.answered b{color:var(--blue)}.preview-scroll-list button span{font-size:.72rem}.history-row-with-action{gap:0;padding:0}.history-row-main{text-align:left;min-width:0;color:var(--ink);background:0 0;border:0;flex:1;align-items:center;gap:18px;padding:20px;display:flex}.history-row-main:hover{background:#f9fbff}.history-row-main>span:nth-child(2){flex:1;min-width:0}.history-row-main small{color:var(--muted);margin-top:4px;font-size:.8rem;display:block}.history-row-main strong{color:var(--blue);white-space:nowrap}.history-delete{color:#a2242d;border-color:#efc7ca;flex:none;margin-right:18px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23192437' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 16px center;background-repeat:no-repeat;background-size:16px;padding-right:46px}.exam-title-content{align-items:center;gap:10px;min-width:0;display:inline-flex}.exam-title-content>span:last-child{min-width:0}.level-chip{white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:4px 10px;font-size:.75rem;font-weight:700;line-height:1.35;display:inline-flex}.level-chip.level-1{color:#6536c6;background:#f0eafe}.level-chip.level-2{color:#087a6a;background:#e3f7f3}.manage-exam .exam-title-content{flex-wrap:wrap}.practical-grading{margin:24px 0}.practical-grading>.section-heading{margin-top:0}.grading-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(220px,1fr) 110px minmax(280px,1.25fr);align-items:start;gap:18px;padding:20px 0;display:grid}.grading-row>div{flex-direction:column;gap:6px;display:flex}.grading-row>div span{color:var(--muted);font-size:.875rem;line-height:1.6}.grading-row label small{margin-left:6px;display:inline}.teacher-feedback{border-left:3px solid var(--blue);background:#eef3ff;flex-direction:column;gap:5px;margin:14px 0;padding:14px 16px;display:flex}.teacher-feedback b{color:var(--blue)}@media (max-width:800px){.grading-row{grid-template-columns:1fr}}.start-summary{grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0;display:grid}.start-summary span{background:var(--bg);color:var(--muted);border-radius:8px;flex-direction:column;align-items:center;padding:14px 8px;font-size:.8rem;display:flex}.start-summary b{color:var(--ink);font-size:1.25rem}.import-report{border:1px solid var(--line);background:var(--bg);border-radius:10px;flex-direction:column;gap:8px;padding:18px;display:flex}.import-report .button{align-self:flex-start;margin-top:8px}.history-filters{border:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;background:#fff;border-bottom:0;grid-template-columns:2fr 1fr 1fr;align-items:start;gap:10px;padding:14px;display:grid}.history-filters input:not([type=radio]):not([type=checkbox]),.history-filters select{height:52px;min-height:52px;margin-top:0;line-height:1.4}.grading-status{color:#93610b;background:#fff4da;border-radius:999px;width:max-content;margin-top:7px;padding:2px 8px;font-size:.72rem;font-style:normal;display:inline-flex}.grading-status.done{color:#27673d;background:#e7f7ed}.button-row.compact{flex-wrap:wrap;margin-top:0}@media (max-width:800px){.history-filters{grid-template-columns:1fr}.start-summary{grid-template-columns:1fr 1fr 1fr}}
