:root{--blue:#195cbb;--nav:#132846;--ink:#26384f;--muted:#748298;--line:#e1e7f0;--bg:#f3f6fa;--green:#138269;--red:#c74e56}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}a{color:var(--blue);text-decoration:none}button,.button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:7px;padding:11px 18px;background:var(--blue);color:white;font-weight:650;line-height:1.4}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.45;cursor:wait}.secondary{background:#edf2f9;color:#345475}.danger{background:var(--red)}.tiny{font-size:12px;padding:7px 10px}.wide{width:100%;margin-top:18px}.muted{color:var(--muted)}h1{font-size:29px;line-height:1.25;letter-spacing:-.6px;margin:0 0 10px}h2{font-size:21px;margin:0 0 8px}h3{font-size:16px;margin:0 0 8px}p{margin:9px 0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#78a9f4;display:block;margin:16px 0}.logo{background:#1d62bc;color:white;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:25px}.layout{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:var(--nav);color:#d6e3f4;padding:28px 20px;display:flex;flex-direction:column;gap:25px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:750}.brand small{display:block;font-size:9px;color:#99b0d0;letter-spacing:1px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav button{justify-content:flex-start;background:transparent;color:#a6bddb;font-size:13px;padding:12px 13px}.sidebar nav button.active{background:#27486f;color:white}.sidebar .bottom{margin-top:auto;font-size:11px;color:#8ca5c6}.main{min-width:0}.topbar{height:80px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 35px;gap:15px}.userbox{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#e5eefb;color:var(--blue);border-radius:50%;font-weight:bold}.content{max-width:1450px;padding:32px;margin:0 auto}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 4px 14px #1a314203}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.metric{font-size:32px;font-weight:750;line-height:1.4;color:var(--blue)}.split{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.pill{display:inline-flex;align-items:center;border:1px solid #d4e2f4;border-radius:20px;padding:4px 11px;font-size:11px;background:#eff5fd;color:#32649d}.pill.good{background:#e9f7f1;color:#138269;border-color:#cbe9de}.pill.warn{background:#fff5dd;color:#967329;border-color:#f2dfac}.pill.bad{background:#fceef0;color:#b14c55;border-color:#f3d6da}.alert{padding:13px 16px;border-radius:7px;background:#edf4ff;border:1px solid #d9e7fd;font-size:13px}.alert.bad{background:#fcedef;color:#aa454c;border-color:#f3cfd3}.alert.good{background:#eaf7f1;color:#147e60;border-color:#c9eadb}.notice{background:#fff7df;color:#8e6d27;border:1px solid #f2e3b4}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar input,.toolbar select{width:auto;min-width:160px;max-width:100%}label{display:block;font-size:12px;font-weight:650;margin:14px 0 5px}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;padding:11px 12px;color:var(--ink);background:white;border:1px solid #ced9e7;border-radius:6px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #195cbb13}textarea{resize:vertical;min-height:80px}input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:16px;height:16px;vertical-align:middle}.check{display:flex;align-items:center;gap:9px;font-weight:500;margin:9px 0}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{border-bottom:1px solid var(--line);padding:13px 12px;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:#7a89a0;background:#f8fafc}td.wrap{white-space:normal;min-width:200px;max-width:450px}td .toolbar{flex-wrap:nowrap}table tr:last-child td{border-bottom:0}.token{font:750 24px/1.4 ui-monospace,monospace;letter-spacing:4px;color:var(--blue);background:#edf5ff;padding:12px 18px;border:1px dashed #aec8e9;border-radius:7px;display:inline-block;margin:10px 0}.examcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.examcard{display:flex;flex-direction:column;gap:5px}.examcard .toolbar{margin-top:auto;padding-top:18px}.empty{text-align:center;padding:40px;color:var(--muted)}.loading{padding:65px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:12px;padding:0;max-width:850px;width:calc(100% - 32px);max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #152b4966}dialog::backdrop{background:#13243a88}.dialoghead{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.dialogbody{padding:4px 26px 26px}.dialogfoot{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.qoption{border:1px solid var(--line);padding:12px;border-radius:7px;margin:10px 0}.qoption .optiongrid{display:grid;grid-template-columns:1fr 150px;gap:12px}.thumb{max-width:180px;max-height:130px;display:block;object-fit:contain;margin:9px 0}.image-field small{font-size:10px;color:var(--muted)}.image-field input[type=file]{font-size:11px;padding:6px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.gallery img{width:100%;height:140px;object-fit:contain;background:#f6f8fb}.gallery .card{padding:14px}.gallery p{font-size:11px;overflow-wrap:anywhere}.questionlist{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:10px}.questionlist label{border-bottom:1px solid var(--line);padding:8px 3px;font-size:12px;align-items:flex-start}.login-wrap{max-width:1050px;min-height:100vh;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px;padding:45px 25px}.login-info h1{font-size:45px;line-height:1.2;letter-spacing:-1.7px;margin:15px 0}.login-info .eyebrow{color:var(--blue)}.login-info p{color:var(--muted);font-size:15px}.login-card{padding:35px}.fine{font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:999;max-width:85vw;background:#203853;color:white;border-radius:9px;padding:13px 20px;box-shadow:0 5px 25px #0002;display:none}.exam-header{background:white;padding:18px 5%;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.exam-main{max-width:1250px;margin:auto;padding:28px 24px}.exam-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px}.timer{font:700 24px ui-monospace,monospace;background:#e7f0ff;color:var(--blue);padding:8px 16px;border-radius:7px}.timer.urgent{background:#fce9ec;color:#b44451}.qtop{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px;gap:12px}.stimulus{white-space:pre-wrap;border-left:3px solid #84a9d9;background:#f5f8fc;padding:19px;margin:22px 0}.qbody{font-size:17px}.qbody .question{white-space:pre-wrap;font-weight:650;margin:22px 0}.qimage{max-width:100%;max-height:350px;object-fit:contain;display:block;margin:16px 0}.choice{display:flex;align-items:center;gap:15px;border:1px solid var(--line);padding:15px;border-radius:7px;margin:10px 0;cursor:pointer;font-size:16px;font-weight:400}.choice:has(input:checked){border-color:var(--blue);background:#edf5ff}.choice img{max-width:240px;max-height:170px;object-fit:contain;display:block;margin:5px 0}.choice span{white-space:pre-wrap}.qnav{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:25px}.numbers{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0}.numbers button{padding:8px 0;background:#f1f4f8;border:1px solid var(--line);color:#687a90}.numbers button.answered{background:#e1efff;color:var(--blue);border-color:#bad3f5}.numbers button.flagged{background:#fff0bf;color:#936a11;border-color:#efdb97}.numbers button.current{outline:2px solid var(--blue);outline-offset:1px}.progress{height:5px;background:#ecf0f5;border-radius:9px;overflow:hidden}.progress i{height:100%;background:var(--blue);display:block}.category{white-space:normal}.category th,.category td{font-size:14px}.category td:first-child{width:70%}.category img{max-width:180px;max-height:150px;object-fit:contain}.reviewcard{margin:18px 0}.score{font-size:72px;font-weight:750;line-height:1.3;color:var(--blue)}.result{text-align:center;max-width:850px;margin:40px auto}.footerline{font-size:11px;color:var(--muted);margin-top:25px}.mobiletitle{display:none}@media(max-width:1000px){.layout{grid-template-columns:190px 1fr}.sidebar{padding:20px 12px}.brand{font-size:17px}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.content{padding:25px 20px}.topbar{padding:0 20px}.exam-grid{grid-template-columns:1fr}.numbers{grid-template-columns:repeat(10,1fr)}}@media(max-width:700px){.layout{display:block}.sidebar{padding:14px 18px;gap:13px}.sidebar nav{flex-direction:row;overflow:auto}.sidebar nav button{white-space:nowrap;padding:9px 12px}.sidebar .bottom{display:none}.sidebar .brand{font-size:19px}.topbar{height:65px}.content{padding:22px 15px}.pagehead{align-items:flex-start;flex-wrap:wrap}h1{font-size:25px}.card{padding:19px}.cards{gap:12px}.login-wrap{grid-template-columns:1fr;gap:20px;padding:30px 20px}.login-info h1{font-size:34px}.login-info p{font-size:13px}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.qoption .optiongrid{grid-template-columns:1fr}.exam-header{padding:13px 18px}.exam-main{padding:20px 12px}.qtop{font-size:12px}.timer{font-size:19px}.qbody{font-size:16px}.choice{font-size:15px}.dialoghead{padding:18px}.dialogbody{padding:0 18px 18px}.userbox .muted{display:none}.topbar .toolbar button{font-size:10px;padding:7px}.result{margin:20px 12px}.numbers{grid-template-columns:repeat(8,1fr)}}@media print{.sidebar,.topbar,button,.toolbar,.footerline{display:none!important}.layout{display:block}.card{box-shadow:none}.reviewcard{break-inside:avoid}.content{padding:0}.result{max-width:none;margin:0}}
.identity{margin:18px 0}.identity>div{padding:9px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:130px 1fr;gap:14px}.identity dt{color:var(--muted);font-size:12px}.identity dd{margin:0;font-size:13px;font-weight:650;overflow-wrap:anywhere}.sidebar .brand small{font-size:8px;max-width:140px;line-height:1.6}.sidebar nav{gap:3px}.sidebar nav button{padding:10px 12px}.topbar>b{max-width:50%}@media(max-width:700px){.identity>div{grid-template-columns:110px 1fr}.sidebar .brand small{max-width:230px}.topbar>div:first-child{max-width:45%;font-size:12px}.userbox{gap:7px}.userbox>b,.userbox>div{font-size:11px}}

/* Login CBT: scoped so the dashboard and installer retain their own layout. */
.cbt-login{min-height:100vh;min-height:100dvh;background:#f7f8fa;display:flex;flex-direction:column;color:#333;font-family:Arial,Helvetica,sans-serif}.cbt-header{height:220px;flex-shrink:0;background:#326594;padding:30px max(28px,calc((100vw - 1120px)/2))}.cbt-brand{display:flex;gap:14px;align-items:center;color:white}.cbt-mark{font-size:30px;line-height:1;width:48px;height:48px;border:1px solid #ffffff80;border-radius:50%;display:grid;place-items:center}.cbt-brand strong{display:block;font-size:22px;letter-spacing:1px}.cbt-brand div>span{display:block;font-size:10px;letter-spacing:1.8px;margin-top:7px;color:#e3edf6}.cbt-main{width:100%;flex:1;padding:0 20px 30px}.cbt-card{position:relative;max-width:510px;margin:-80px auto 0;background:#fff;border-radius:13px;padding:50px 52px 34px;box-shadow:0 24px 48px #00000026}.cbt-card h1{font-family:inherit;font-size:23px;line-height:1.3;font-weight:700;letter-spacing:0;margin:0 0 10px}.cbt-intro{font-size:15px;line-height:1.8;margin:0 0 35px;color:#41474d}.cbt-form{display:grid;gap:22px}.cbt-field{display:flex;align-items:center;gap:15px;margin:0;font-weight:400}.cbt-icon{width:22px;flex-shrink:0;color:#515c65}.cbt-icon svg,.cbt-eye svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.cbt-control{display:block;flex:1;min-width:0;border-bottom:2px solid #e7e9eb}.cbt-control>span{display:block;font-size:11px;color:#626d76;margin-bottom:2px}.cbt-control input{display:block;width:100%;padding:7px 0 11px;border:0!important;border-radius:0;background:transparent;font-family:inherit;font-size:16px;color:#20272e;box-shadow:none!important;margin:0;min-width:0}.cbt-control:focus-within{border-color:#087cff}.cbt-control input:focus{outline:none}.cbt-control input::placeholder{font-size:14px;color:#9ba3ab}.cbt-eye{width:32px;height:38px;display:grid;place-items:center;padding:4px;border:0;background:transparent;color:#515c65;border-radius:4px;flex-shrink:0}.cbt-eye:hover{background:#edf4fa;color:#176eae}.cbt-submit{width:100%;border:0;border-radius:30px;background:#087cff;color:#fff;font-family:inherit;font-size:18px;font-weight:400;padding:13px 22px;margin-top:3px;cursor:pointer}.cbt-submit:hover{background:#006bea}.cbt-submit:focus-visible,.cbt-eye:focus-visible{outline:3px solid #193e67;outline-offset:4px}.cbt-help{font-size:11px;line-height:1.8;color:#78818a;text-align:center;margin:24px 0 0}.cbt-footer{text-align:center;padding:18px 20px 24px;font-size:11px;color:#87909a}.cbt-card .alert{font-size:13px;margin-bottom:20px}.cbt-login button:disabled{opacity:.65;cursor:wait}@media(max-width:560px){.cbt-header{height:185px;padding:24px}.cbt-brand strong{font-size:19px}.cbt-main{padding:0 18px 20px}.cbt-card{margin-top:-65px;padding:35px 25px 28px}.cbt-intro{font-size:14px;margin-bottom:28px}.cbt-card h1{font-size:22px}.cbt-field{gap:12px}}@media(max-height:580px) and (min-width:561px){.cbt-header{height:155px;padding-top:20px}.cbt-card{margin-top:-50px;padding-top:30px}.cbt-intro{margin-bottom:20px}}

/* Branding and accessible navigation, version 2.4 */
:root{--brand:#326594;--blue:#246da9}body,input,select,textarea,button{font-family:"Segoe UI",Arial,Helvetica,sans-serif}body{font-size:15px;line-height:1.6}button,input,select,textarea{font-size:14px}label{font-size:14px}.fine{font-size:12px;line-height:1.65}table th,table td{font-size:14px}.sidebar{background:var(--brand);color:#fff}.sidebar .brand{font-size:19px;line-height:1.35;overflow-wrap:anywhere}.sidebar .brand small{font-size:10px;max-width:155px;letter-spacing:.4px;color:#dce9f6}.sidebar nav button{display:flex;align-items:center;gap:12px;color:#f1f6fb;font-size:14px;font-weight:500;padding:11px 12px;white-space:normal;text-align:left}.sidebar nav button.active{background:#fff;color:#285b87}.sidebar nav button:hover{background:#ffffff22;color:#fff}.sidebar nav button.active:hover{background:#eef5fc;color:#285b87}.sidebar .bottom{color:#e1ecf6}.nav-icon{width:21px;height:21px;flex-shrink:0}.brand-image{width:44px;height:44px;object-fit:contain;flex-shrink:0;background:#ffffffed;border-radius:10px;padding:4px}.brand{gap:12px}.cbt-header{background:var(--brand)}.cbt-login{font-family:"Segoe UI",Arial,Helvetica,sans-serif}.cbt-app-logo{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;padding:5px;flex-shrink:0}.cbt-brand strong{max-width:550px;overflow-wrap:anywhere}.cbt-footer,.footerline,.confirmation-footer{white-space:pre-wrap;overflow-wrap:anywhere}.confirmation-footer{grid-column:1/-1;text-align:center;font-size:12px;color:#64748b}.topbar-identity{display:flex;align-items:center;gap:10px;min-width:0}.mobile-brand-image{display:none}.branding-settings{max-width:760px}.branding-preview{display:flex;align-items:center;gap:18px;margin:20px 0;color:#64748b;font-size:13px}.settings-logo{width:90px;height:90px;object-fit:contain;border:1px solid #dce4ee;border-radius:16px;padding:8px;background:#f7f9fc}.mobile-bottom{display:none}.mobile-menu-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-menu-list button{display:flex;align-items:center;gap:10px;text-align:left;font-size:14px;padding:14px;white-space:normal}.sidebar nav{overflow-y:auto}.sidebar .brand>div{min-width:0}.cbt-card{font-family:"Segoe UI",Arial,Helvetica,sans-serif}.cbt-intro{font-size:16px}.cbt-help{font-size:12px}
@media(max-width:700px){.sidebar{display:none}.layout{display:block}.content{padding-bottom:120px}.topbar{padding:12px 16px;height:auto;min-height:76px}.topbar>div:first-child{max-width:none;font-size:14px;flex:1}.topbar-identity{max-width:none!important}.topbar-identity b{display:block;line-height:1.4;font-size:14px;overflow-wrap:anywhere}.topbar-identity .fine{font-size:11px}.mobile-brand-image{display:block;width:38px;height:38px;object-fit:contain;flex-shrink:0}.userbox>div,.userbox>button{display:none}.userbox .avatar{width:34px;height:34px}.mobile-bottom{position:fixed;z-index:50;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-around;gap:2px;width:calc(100% - 24px);max-width:540px;padding:8px 10px;border-radius:999px;background:var(--brand);box-shadow:0 8px 30px #18354d40;border:1px solid #ffffff55}.mobile-bottom button{display:flex;flex:1;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border:0;border-radius:30px;background:transparent;color:#e8f2fc;font-size:10px;line-height:1.2;white-space:nowrap}.mobile-bottom button .nav-icon{width:21px;height:21px}.mobile-bottom button.active{background:white;color:var(--brand);font-weight:700}.mobile-bottom button:focus-visible{outline:2px solid white;outline-offset:2px}.mobile-menu-list{grid-template-columns:1fr}.cbt-brand strong{font-size:19px}.cbt-header{padding-right:24px}.footerline{margin-top:24px}.branding-settings .branding-preview{align-items:flex-start}.card{font-size:14px}}

.delete-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0}.delete-toolbar>span:first-child{font-weight:600}.delete-toolbar>.fine{flex-basis:100%}td input[data-delete-id],#delete-select-visible{width:19px;height:19px;accent-color:var(--brand);cursor:pointer}.maintenance-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.maintenance-grid h2{margin-bottom:16px}.maintenance-grid form{margin-top:22px}.maintenance-grid p{font-size:14px}.maintenance-grid .fine{font-size:12px}.danger.secondary{color:#b42333;border-color:#e9b7bd;background:#fff5f5}@media(max-width:850px){.maintenance-grid{grid-template-columns:1fr}.delete-toolbar button{min-height:40px}}

.user-nav-group summary{display:flex;align-items:center;gap:12px;padding:11px 12px;font-size:14px;cursor:pointer;list-style:none;color:#f1f6fb;border-radius:8px}.user-nav-group summary::-webkit-details-marker{display:none}.user-nav-group summary:hover{background:#ffffff22}.user-nav-group summary>span:nth-child(2){flex:1}.user-nav-group .nav-chevron{transition:transform .15s}.user-nav-group[open] .nav-chevron{transform:rotate(180deg)}.user-nav-group>div{margin:4px 0 8px 20px;border-left:1px solid #ffffff50;padding-left:7px}.user-nav-group>div button{width:100%;font-size:13px}.user-nav-group summary:focus-visible{outline:2px solid white;outline-offset:2px}
