:root{color-scheme:light;--ink:#1d2b44;--muted:#778aa6;--border:#e3e9f2;--navy:#10213c;--blue:#3c72e5;--canvas:#f7f9fd;--paper:#fff;--green:#008b73;--system:system-ui,-apple-system,"Malgun Gothic","Apple SD Gothic Neo",sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;font:13px/1.58 var(--system);color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #71b4ff;outline-offset:2px}
.exam-app{height:100vh;min-height:560px;display:flex;flex-direction:column;background:white}
.exam-topbar{height:72px;flex:none;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:24px}.exam-brand{display:flex;align-items:center;gap:12px;flex:0 0 235px}.exam-logo{width:36px;height:36px;border:1px solid #6689b9;display:grid;place-items:center;background:#3469cf;color:#fff;font-weight:900;font-size:23px;border-radius:8px}.exam-brand small{display:block;font-size:9px;letter-spacing:1.3px;color:#9bb5d5}.exam-brand strong{display:block;font-size:14px}.exam-session{display:flex;flex-wrap:wrap;gap:11px;align-items:center;min-width:0}.session-name{font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-mode-tag{display:inline-flex;align-items:center;background:#293e5a;border:1px solid #46607f;border-radius:5px;padding:4px 9px;font-size:10px;color:#d4e5f7;white-space:nowrap}.exam-top-actions{display:flex;align-items:center;gap:10px}.save-indicator{font-size:11px;color:#a8c8d5;white-space:nowrap}.timer-box{min-width:123px;display:flex;flex-direction:column;border-left:1px solid #445a78;padding:0 9px 0 16px;line-height:1.28}.timer-box small{font-size:9px;color:#9ab3ce}.timer-box strong{font:700 21px/1.25 ui-monospace,Consolas,monospace;letter-spacing:.3px;color:#fff}.timer-box.urgent strong{color:#ffbda4}.btn{appearance:none;border:1px solid #d8e1ed;color:#253e64;background:white;border-radius:7px;min-height:37px;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:850;white-space:nowrap;transition:background .15s}.btn:hover{background:#edf3ff}.btn-primary{background:#4b84f4;border-color:#4b84f4;color:#fff}.btn-primary:hover{background:#326ddf}.btn-ghost{color:#fff;background:#27405e;border-color:#416080}.btn-ghost:hover{background:#335478}.btn-secondary{background:#eef3fa;border-color:#dfe8f5}.btn.block{width:100%;margin-bottom:9px}
.exam-notice{display:flex;align-items:center;gap:10px;flex:none;height:34px;padding:0 20px;background:#f0f5fc;border-bottom:1px solid #e0e9f3;color:#72839b;font-size:10px}.exam-notice strong{color:#24436c}.exam-notice a{margin-left:auto;color:#376bc3;font-weight:750}.notice-pulse,.online-indicator{width:7px;height:7px;background:#34a88c;display:inline-block;border-radius:50%;flex:none}.exam-layout{flex:1;min-height:0;display:grid;grid-template-columns:232px minmax(340px,1fr) 382px}.exam-files{display:flex;flex-direction:column;justify-content:space-between;min-height:0;background:#f6f8fc;border-right:1px solid var(--border)}.side-block{overflow:auto}.side-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 17px 10px;color:#6981a1;font-weight:800;font-size:10px;letter-spacing:1px}.side-heading button{background:transparent;border:0;font-size:21px;color:#617d9f}.project-name{font-size:11px;padding:13px 17px;background:#eaf0f9;color:#234a85;font-weight:850;letter-spacing:.3px}.file-list{padding:10px 8px}.file-item,.folder-name{display:flex;gap:8px;width:100%;align-items:center;text-align:left;white-space:nowrap;border:0;background:transparent;color:#556d8a;border-radius:6px;padding:8px 9px;font-size:11px}.file-item:hover{background:#e5edf8}.file-item.active{color:#1c4d9f;background:#dbe7fb;font-weight:850}.file-item .file-ico{display:inline-flex;width:18px;font:750 10px Consolas,monospace;color:#b8744b}.file-item[data-ext="css"] .file-ico{color:#347ab1}.file-item[data-ext="js"] .file-ico{color:#b28a17}.folder-name{color:#7e90a7;cursor:default;margin-top:9px;font-weight:800}.file-child{padding-left:20px}.file-name{overflow:hidden;text-overflow:ellipsis}.file-size{margin-left:auto;color:#a1aec3;font-size:9px}.file-help{padding:10px 17px 20px;font-size:10px;color:#94a1b4;line-height:1.8}.side-bottom{padding:15px 14px;border-top:1px solid #e1e8f2;background:#f8faff}.side-status{display:flex;gap:9px;align-items:center;margin-bottom:15px}.side-status strong{font-size:10px}.side-status small{display:block;font-size:9px;color:#8ca0ba}.side-bottom p{font-size:9px;color:#899db8;line-height:1.7;margin:4px 0 0}
.exam-coding{min-width:0;display:flex;flex-direction:column;min-height:0}.editor-tabbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);height:47px;flex:none;background:#fff}.editor-tab{height:47px;min-width:140px;max-width:300px;background:#fbfcff;border-top:2px solid #5280df;padding:11px 16px;border-right:1px solid var(--border);font:700 12px ui-monospace,Consolas,monospace;overflow:hidden;text-overflow:ellipsis}.editor-tab-actions{display:flex;align-items:center;gap:17px;color:#90a0b5;font-size:10px;padding-right:13px}.editor-tab-actions button{background:none;border:0;color:#386bc2;font-weight:800;font-size:10px}.code-editor-wrap{flex:1;min-height:0;position:relative}.code-editor-wrap textarea{display:block;width:100%;height:100%;resize:none;padding:20px;border:0;outline:none;font:13px/1.8 Consolas,monospace}.code-editor-wrap .CodeMirror{height:100%;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;color:#203450}.CodeMirror-gutters{background:#f9fbfe;border-right:1px solid #e8edf4}.CodeMirror-linenumber{color:#b0bdce}.CodeMirror-lines{padding:16px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 18px}.CodeMirror-cursor{border-left:2px solid #3f70e4}.editor-footer{height:30px;flex:none;padding:0 12px;background:#f9fbfd;border-top:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7e90a8;font-size:10px}.editor-footer>div{display:flex;align-items:center;gap:7px}.status-square{width:7px;height:7px;border-radius:2px;background:#4dab8f}.exam-coach{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#e9f1ff;border-top:1px solid #d2e1f8;color:#4f6d99;min-height:58px}.exam-coach span{color:#3060bc;font-weight:900;white-space:nowrap}.exam-coach p{margin:0;font-size:11px;flex:1}.exam-coach button{background:#fff;border:1px solid #c7d9f4;border-radius:5px;padding:6px 10px;color:#3057a0;font-size:11px;font-weight:850;white-space:nowrap}
.exam-paper{min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--border)}.paper-head{min-height:77px;flex:none;border-bottom:1px solid #edf0f5;padding:16px 21px;display:flex;align-items:center;justify-content:space-between}.paper-head small{font-size:9px;color:#6e91bd;font-weight:900;letter-spacing:1.2px}.paper-head h2{font-size:17px;letter-spacing:-.4px;margin:2px 0}.paper-head button{border:0;background:none;color:#8997ad;font-size:18px}.paper-scroll{padding:19px 21px;min-height:0;overflow:auto}.paper-meta{display:flex;justify-content:space-between;gap:10px;color:#5273a2;font-size:10px;font-weight:850;letter-spacing:.2px}.paper-info{border:1px solid #e6edf5;border-radius:8px;padding:14px 15px;margin:17px 0;background:#f8faff}.paper-info h3{font-size:11px;margin:0 0 6px}.paper-info p{font-size:11px;line-height:1.75;color:#6e819b;margin:0}.paper-section{margin-top:23px}.sec-label{display:flex;align-items:center;gap:9px;margin-bottom:11px}.sec-label>span:first-child{display:grid;place-items:center;background:#eaf0fb;color:#5278bd;width:25px;height:24px;border-radius:5px;font-weight:900;font-size:10px}.sec-label strong{font-size:12px}.training-only-label{margin-left:auto;font-size:9px;color:#7991ae}.paper-note{font-size:10px;color:#9aa6b6;line-height:1.65}.wireframe{overflow:hidden;border:1px solid #d9e1ed;border-radius:6px;padding:8px;background:#f4f7fa;min-height:205px;font:700 10px var(--system)}.wireframe>div{border:1px dashed #a7b8cf;background:#fff;text-align:center;color:#647a98;display:grid;place-items:center}.wireframe .wf-head{background:#e4ecf8;height:34px}.wireframe .wf-hero{background:#d4e1f6;height:68px}.wireframe .wf-content{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;border:0;background:transparent;margin:5px 0}.wireframe .wf-content span{display:grid;place-items:center;border:1px dashed #b8c8db;min-height:56px;background:#fff;color:#6e83a0;font-size:9px;padding:3px}.wireframe .wf-foot{height:25px;background:#e7ebf4}.wireframe.sidebar-wire{display:grid;grid-template-columns:26% 1fr;gap:6px}.wireframe .wf-aside{background:#dbe9dc;grid-row:1/4}.wireframe .wf-main{display:flex;flex-direction:column;gap:5px}.wireframe.sidebar-wire .wf-hero{height:84px}.wireframe.sidebar-wire .wf-content span{min-height:55px}.wireframe.wide-wire .wf-hero{height:90px;background:#e4d9f3}.requirements{padding:0 0 0 21px;margin:0}.requirements li{color:#60738d;padding:0 0 11px 0;font-size:11px;line-height:1.7}.requirements li::marker{color:#7b95b6;font-weight:700}.asset-list{display:grid;gap:8px}.asset-line{background:#f8faff;border:1px solid #e8edf6;border-radius:7px;display:flex;align-items:center;gap:10px;padding:6px 9px;min-width:0}.asset-line img{width:45px;height:33px;object-fit:cover;background:#e8eef5;border-radius:4px}.asset-line div{min-width:0}.asset-line strong{display:block;font:700 10px Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-line span{font-size:9px;color:#90a2bb}.asset-line button{border:0;background:transparent;color:#4670bf;white-space:nowrap;font-size:9px;margin-left:auto}.guide-steps{display:grid;gap:7px}.guide-step{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#7085a0;line-height:1.6;background:#f6f9fc;border-radius:6px;padding:9px 10px}.guide-step input{margin-top:3px;accent-color:#3f70dd}.exam-checklist{border-left:3px solid #6888c4;background:#f2f6ff;font-size:11px;color:#677fa1;line-height:1.8;padding:13px}.mobile-quick{display:none}
.exam-layout.paper-hidden{grid-template-columns:232px minmax(0,1fr)}.paper-hidden .exam-paper{display:none}
.exam-modal{position:fixed;inset:0;background:rgba(5,17,38,.76);z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.modal-card{background:#fff;border-radius:18px;box-shadow:0 35px 100px #0004;width:min(100%,620px);padding:35px;max-height:min(90vh,850px);overflow:auto}.modal-symbol{background:#3269d7;color:white;font-size:30px;width:57px;height:57px;display:grid;place-items:center;border-radius:13px;font-weight:900;margin-bottom:19px}.modal-eyebrow{color:#4f74b1;font-size:10px;letter-spacing:1.3px;font-weight:900}.modal-card h1{font-size:29px;line-height:1.4;letter-spacing:-1.2px;margin:11px 0}.modal-card>p{color:#6e7f99;font-size:13px;line-height:1.9}.gate-specs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.gate-specs>div{background:#f3f7fd;border:1px solid #e4ecf6;border-radius:9px;padding:15px}.gate-specs small{display:block;color:#8291a8;font-size:10px}.gate-specs strong{display:block;color:#19345c;margin-top:7px;font-size:14px}.gate-mode{padding:15px;background:#edf5f2;border-radius:9px;color:#426f61;font-size:12px;line-height:1.7}.gate-actions{display:flex;gap:10px;margin-top:25px}.gate-actions>.btn{flex:1}.modal-footnote{font-size:10px!important;color:#96a2b5!important;margin-top:16px!important}.result-card{width:min(100%,720px)}.result-header{display:flex;justify-content:space-between;align-items:center}.result-header button{font-size:18px;background:none;border:0;color:#8190a4}.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.result-summary>div{background:#eff4fb;border:1px solid #e4ecf6;border-radius:9px;padding:13px}.result-summary small{font-size:10px;color:#8496ad;display:block}.result-summary strong{font-size:19px;margin-top:6px;display:block}.result-tests,.manual-tests{display:grid;gap:7px}.result-test{display:flex;gap:9px;align-items:center;background:#f8fafc;padding:10px 12px;border:1px solid #e8edf4;border-radius:6px;font-size:11px;color:#53677e}.result-test b{font-size:11px;color:#0c987a}.result-test.error b{color:#d25b60}.result-test i{font-size:9px;color:#8da0bb;margin-left:auto;font-style:normal;max-width:170px;text-align:right}.result-card h2{font-size:14px;margin:25px 0 12px}.manual-tests label{display:flex;gap:8px;align-items:center;padding:8px;border-bottom:1px solid #edf1f6;font-size:11px;color:#5f7188}.manual-tests input{accent-color:#4478dd}.result-foot{display:flex;gap:10px;margin-top:27px}
@media(max-width:1300px){.exam-layout{grid-template-columns:205px minmax(300px,1fr) 335px}.exam-layout.paper-hidden{grid-template-columns:205px 1fr}.exam-brand{flex:0 0 auto}.save-indicator{display:none}.exam-topbar{gap:10px}.exam-paper .paper-scroll{padding:16px}.exam-notice span:nth-of-type(2){display:none}}
@media(max-width:1030px){.exam-layout{grid-template-columns:195px minmax(0,1fr)}.exam-paper{position:fixed;z-index:200;top:106px;bottom:0;right:0;width:min(400px,100vw);box-shadow:-12px 0 45px #111f3b28;display:none}.exam-layout.paper-show .exam-paper{display:flex}.exam-layout.paper-hidden{grid-template-columns:195px minmax(0,1fr)}.exam-topbar{height:67px}.exam-top-actions .btn-ghost{padding:8px}.exam-session{display:none}}
@media(max-width:660px){.exam-app{min-height:0;height:100dvh}.exam-topbar{height:64px;padding:0 12px}.exam-brand{gap:6px}.exam-brand strong{font-size:12px}.exam-brand small{font-size:8px}.exam-logo{width:30px;height:30px;font-size:19px}.exam-top-actions{gap:6px}.exam-top-actions .btn-ghost{display:none}.exam-top-actions .btn-primary{min-height:33px;padding:6px 8px}.timer-box{min-width:92px;padding:0 3px 0 9px}.timer-box strong{font-size:16px}.exam-notice{padding:0 10px;font-size:9px}.exam-notice span:nth-of-type(2){display:none}.exam-layout,.exam-layout.paper-hidden{display:block;position:relative;flex:1}.exam-files{display:none;position:absolute;z-index:210;top:0;bottom:0;left:0;width:min(290px,80vw);box-shadow:5px 0 30px #15233f37}.exam-layout.files-show .exam-files{display:flex}.exam-coding{height:100%}.exam-paper{top:99px;bottom:52px}.editor-tab-actions span{display:none}.mobile-quick{height:51px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #dfe6f1;background:#fff}.mobile-quick button{background:none;border:0;font-weight:800;color:#456ba7}.exam-coach{min-height:46px;padding:7px 9px}.exam-coach p{font-size:10px}.editor-footer div:last-child span:last-child{display:none}.modal-card{padding:24px 18px;border-radius:12px}.modal-card h1{font-size:24px}.gate-specs>div{padding:9px}.gate-specs strong{font-size:11px}.result-summary>div{padding:10px}.result-summary strong{font-size:14px}.result-foot{flex-direction:column}}

.file-manager-actions{display:flex;gap:5px;margin:0 9px 6px}.file-manager-actions button{border:1px solid #dce6f4;color:#6e84a3;background:#fff;border-radius:5px;padding:6px 8px;font-size:10px;flex:1}.file-manager-actions button:disabled{opacity:.4;cursor:not-allowed}.paper-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px}.paper-specs div{padding:9px;background:#f4f7fc;border:1px solid #e8edf6;border-radius:5px}.paper-specs small{font-size:9px;color:#8fa2bb;display:block}.paper-specs strong{font-size:11px;color:#486a9a}.color-guide{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}.color-guide span{display:flex;gap:5px;align-items:center;border:1px solid #e7ecf3;border-radius:5px;padding:5px;color:#647e9f;font:10px Consolas,monospace}.color-guide i{width:13px;height:13px;border:1px solid #dce5ee;border-radius:2px;display:inline-block}

/* R08: reference previews, offline return, actionable exam diagnostics */
.target-card{display:block;background:#f8fafc;border:1px solid #dae3ef;border-radius:10px;overflow:hidden;color:#253d5c}.target-card img{width:100%;height:auto;aspect-ratio:12/7;display:block;object-fit:cover;object-position:top;image-rendering:auto}.target-card span{display:block;padding:10px 12px}.target-card b{display:block;color:#2859a2;font-size:11px}.target-card small{display:block;color:#788ba5;font-size:10px;line-height:1.7;margin-top:3px}.target-card:hover{border-color:#86b2ec;box-shadow:0 4px 12px #102c5019}
.btn-import{border-style:dashed;background:#eef8f5;color:#257464;border-color:#afdbca}.import-hint{font-size:10px!important;margin-top:4px!important}.result-group{font-size:11px;color:#597dac;margin:15px 0 5px;font-weight:900;border-bottom:1px solid #e5ecf4;padding-bottom:6px}.result-test{flex-wrap:wrap}.result-test>span{flex:1}.result-test i{max-width:unset}.result-tip{font-size:10px;line-height:1.7;color:#9b6741;background:#fff6ec;border-left:3px solid #f2c087;padding:6px 9px;width:100%;margin-left:22px}.result-guidance{color:#8191a5;font-size:10px;line-height:1.8}.guide-step{display:block}.guide-step-main{display:flex;align-items:flex-start;gap:8px}.guide-step details{padding-left:24px;margin-top:7px;color:#5a7796;font-size:10px}.guide-step summary{cursor:pointer;color:#3e6cb6;font-weight:800}.guide-step code{display:block;overflow:auto;white-space:pre;margin-top:7px;padding:9px 12px;background:#e9f0fc;border:1px solid #dce7f7;border-radius:5px;line-height:1.7;color:#365576;font-family:Consolas,monospace;font-size:10px}.guide-step details p{margin:7px 0}
@media print{.exam-app,.start-card{display:none!important}#resultGate[hidden]{display:none!important}#resultGate:not([hidden]){position:static;background:#fff;padding:0;display:block;backdrop-filter:none}.modal-card.result-card{width:100%;max-height:none;overflow:visible;box-shadow:none;padding:15px;border-radius:0}.result-test,.result-summary>div,.manual-tests label{break-inside:avoid}.result-foot,#resultClose{display:none!important}@page{size:A4;margin:16mm}}

.runtime-bar{flex:none;background:#fff0e8;border-top:1px solid #f0d0b7;color:#ad4e34;padding:7px 15px;font-size:11px;line-height:1.6}

/* R09: evidence report, deliberately separate from the 15 code checks */
.behavior-results{display:grid;gap:6px}.behavior-row{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border:1px solid #e5ebf4;border-radius:7px;background:#f8fafc;font-size:11px}.behavior-row strong{color:#415873}.behavior-row span{color:#909fb0}.behavior-row .behavior-ok{color:#12856e;font-weight:800}.behavior-row .behavior-review{color:#b98148;font-weight:800}.behavior-row small{grid-column:1/-1;color:#8294ae;line-height:1.5}.behavior-empty{font-size:11px;color:#8195ac;background:#f8fafc;border:1px dashed #ccd7e7;padding:14px;border-radius:6px;line-height:1.7}

/* R10: independent diagnostic evidence in student's report. */
.layout-results{display:grid;gap:9px;margin-top:12px}.layout-empty{font-size:11px;color:#8191a5;background:#f4f7fb;padding:12px;border-radius:8px;line-height:1.7}.layout-device{border:1px solid #e1e9f2;border-radius:8px;overflow:hidden}.layout-device>strong{display:block;background:#edf4fd;color:#375d9a;padding:11px;font-size:12px}.layout-device>div{padding:9px 11px;border-top:1px solid #edf1f5;font-size:11px;line-height:1.6;display:flex;justify-content:space-between;gap:10px}.layout-device>div b{font-size:10px;color:#ad7042;flex:none}.layout-device>div b.good{color:#168a6b}.layout-device>p{padding:9px 11px;font-size:10px;color:#8591a0}

/* R12 member-save status */
.cloud-status{font:700 11px/1.4 system-ui,sans-serif;color:#bce4e4;background:#20354b;border:1px solid #3c556d;border-radius:7px;padding:7px 10px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1180px){.cloud-status{max-width:170px}}
@media(max-width:680px){.cloud-status{display:none}}
