:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#17242d;background:#f6f8fa;font-synthesis:none;letter-spacing:0;--blue:#0860a7;--line:#dce3e8;--muted:#637280;--green:#157257}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #cbd5dd;border-radius:6px;background:white;color:#253e50;padding:10px 15px;font-weight:600;min-height:42px}button:hover:not(:disabled){background:#edf4f9;border-color:#92b4ce}button:disabled{cursor:not-allowed;opacity:.55}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.primary:hover:not(:disabled){background:#064a82}button:focus-visible,a:focus-visible{outline:3px solid #67ade0;outline-offset:3px}a{color:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.2;margin-bottom:10px}h2{font-size:20px;margin-bottom:8px}h3{font-size:17px;margin-bottom:8px}p{line-height:1.6}.muted,small{color:var(--muted)}small{font-size:12px;line-height:1.5}.preview-bar{background:#eaf2f8;color:#315a76;font-size:12px;padding:8px 30px;display:flex;justify-content:space-between;align-items:center;gap:12px}.preview-bar button{padding:4px 9px;font-size:12px;min-height:30px;background:transparent;border-color:#bfcfdc}.separator{margin:0 10px;color:#7892a5}.header{background:white;border-bottom:1px solid var(--line);padding:15px max(24px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:15px;font-weight:800;min-width:0}.brand img{width:50px;height:50px;object-fit:contain}.brand small{display:block;font-weight:500;margin-top:4px}.header nav{display:flex;border-bottom:1px solid var(--line);gap:4px}.header nav button{border:0;border-radius:0;color:var(--muted)}.header nav button.selected{color:var(--blue);border-bottom:3px solid var(--blue)}main{max-width:1180px;margin:0 auto;padding:34px 24px 60px}.eyebrow{font-size:11px;font-weight:800;color:var(--blue);margin-bottom:10px;letter-spacing:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}.page-head p{margin-bottom:0}.identity{display:flex;gap:12px;align-items:center}.avatar{height:40px;width:40px;flex-shrink:0;display:grid;place-items:center;background:#dcebf7;color:var(--blue);border-radius:50%;font-weight:700}.identity strong{display:block;font-size:14px}.identity small{display:block}.toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.toolbar label{flex:1;min-width:190px;max-width:340px}.field,label.field{display:block;color:#364f61;font-size:13px;font-weight:600}label>input,label>select,label>textarea{display:block;width:100%;margin-top:7px}input,select,textarea{border:1px solid #bfcbd4;border-radius:5px;background:white;padding:11px;color:#17242d;max-width:100%;min-height:44px;font-size:16px}input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--blue)}.summary{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:0 0 22px;gap:24px;margin-bottom:28px}.summary strong{display:block;font-size:23px;font-weight:750;margin:4px 0}.summary small{display:block}.summary .meta{font-size:15px;margin-top:10px;color:var(--green)}.badge{display:inline-block;padding:5px 9px;background:#edf1f4;color:#5a6976;border-radius:4px;font-size:12px;font-weight:700;line-height:1.2}.badge.open,.badge.finished{color:#096149;background:#e1f3eb}.badge.scheduled,.badge.running{color:#085c9c;background:#e2f0fb}.badge.missed,.badge.expired,.badge.unpaid{color:#9e3028;background:#fbe8e6}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:30px 0 18px}.section-title p{font-size:13px;margin:5px 0 0;color:var(--muted)}.exam-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.exam{border:1px solid var(--line);border-radius:8px;background:#fff;padding:22px;display:flex;flex-direction:column;min-width:0;border-top:3px solid #a9bbc8}.exam.open{border-top-color:var(--green)}.exam.scheduled{border-top-color:var(--blue)}.exam.finished{border-top-color:var(--green)}.exam .top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.stage-number{font-size:14px;font-weight:800;color:#91a0aa}.exam h3{font-size:21px}.exam .description{font-size:13px;color:var(--muted);min-height:42px;margin-bottom:15px}.exam dl{font-size:13px;line-height:1.6;margin:0 0 20px;flex:1}.exam dt{color:var(--muted);margin-top:12px}.exam dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}.exam button{width:100%;margin-top:8px}.exam .note{margin:12px 0 0;font-size:12px;color:var(--muted)}.access-band{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-top:26px;border-left:3px solid var(--blue);background:#edf4fa;padding:18px 20px}.access-band p{margin:3px 0;font-size:13px}.access-band strong{font-size:14px}.access-band .badge{white-space:nowrap}.table-wrap{overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}table{border-collapse:collapse;width:100%;font-size:13px;min-width:650px;text-align:left}th{padding:12px 14px;background:#edf2f6;color:#526979;font-weight:600}td{padding:16px 14px;border-top:1px solid #e6ebef;vertical-align:middle}td strong{display:block}td small{display:block;margin-top:4px}td button{font-size:12px;min-height:34px;padding:7px 9px}.empty{padding:26px 0;color:var(--muted);font-size:14px}.actions{display:flex;gap:10px;flex-wrap:wrap}.admin-schedule{display:grid;grid-template-columns:1fr 2fr 1fr auto;gap:16px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.admin-schedule p{margin:3px 0;color:var(--muted);font-size:13px}.admin-schedule .actions{justify-content:flex-end}.result-score{font-size:36px;font-weight:800;color:var(--blue);margin:10px 0}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-block:1px solid var(--line);padding:20px 0;margin:24px 0}.result-grid strong{display:block;margin-top:8px}.exam-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:20px}.timer{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--blue);white-space:nowrap}.exam-body{max-width:760px;margin:24px auto}.reading{padding:22px;background:#edf4fa;border-left:3px solid var(--blue);font-size:15px}.question{border:0;border-bottom:1px solid var(--line);margin:24px 0;padding:0 0 20px;min-width:0}.question legend{font-size:16px;font-weight:650;line-height:1.5;margin-bottom:12px;max-width:100%}.option{display:flex;align-items:start;gap:12px;padding:12px;border:1px solid var(--line);background:white;border-radius:5px;margin:8px 0;cursor:pointer;font-size:15px;line-height:1.5}.option:has(input:checked){background:#eaf4fc;border-color:#6ea8d0}.option input{display:inline;width:auto;margin:4px 0;flex-shrink:0}.exam-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 0}.exam-footer p{font-size:13px;margin:0;color:var(--muted)}dialog{width:min(530px,calc(100% - 28px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:8px;padding:25px;box-shadow:0 18px 75px #19364d33;color:#17242d}dialog::backdrop{background:#14283c70}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-head h2{margin:0}.close{border:0;font-size:26px;background:none;padding:0;width:40px;height:40px;font-weight:400}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}#editor-fields{display:grid;gap:18px}#editor-fields .check{display:flex;gap:9px;align-items:center;font-size:14px}.check input{width:18px;height:18px;margin:0}.error{color:#a82b24;font-size:13px;margin:12px 0 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#143c32;color:white;padding:14px 20px;border-radius:6px;font-size:14px;z-index:20;max-width:calc(100% - 28px);box-shadow:0 4px 22px #0002}.notice{background:#fff6dc;border-left:3px solid #d5a622;padding:12px 16px;font-size:13px;line-height:1.6;margin-bottom:24px}.result-heading{max-width:700px;margin:0 auto}.result-heading .actions{margin-top:24px}.split-label{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}
@media(max-width:760px){.preview-bar{padding:8px 14px;font-size:10px}.separator{margin:0 4px}.header{padding:12px 16px;gap:12px}.brand{font-size:12px;gap:8px}.brand img{width:36px;height:36px}.brand small{font-size:11px}.header nav button{padding:10px;font-size:13px}main{padding:25px 16px 40px}h1{font-size:25px}.page-head{display:block;margin-bottom:22px}.identity{margin-top:20px}.summary{gap:12px}.summary strong{font-size:20px}.summary small{font-size:11px}.summary .meta{font-size:13px}.exam-list{grid-template-columns:1fr;gap:14px}.exam{padding:18px}.exam .description{min-height:0}.exam .top{margin-bottom:12px}.exam dl{display:grid;grid-template-columns:110px 1fr;gap:8px;margin:5px 0 15px}.exam dt,.exam dd{margin:0}.exam h3{font-size:20px}.access-band{display:block}.access-band .badge{margin-top:8px}.admin-schedule{grid-template-columns:1fr 1.3fr;gap:12px}.admin-schedule .actions{justify-content:flex-start;grid-column:1/-1}.admin-schedule .badge{justify-self:start}.toolbar{gap:12px}.toolbar label{max-width:none;min-width:100%}.exam-heading{align-items:flex-start}.exam-heading h1{font-size:22px}.timer{font-size:21px}.exam-footer{align-items:flex-start}.result-grid{gap:15px;grid-template-columns:1fr}.preview-bar span{max-width:75%}dialog{padding:20px}.section-title{align-items:flex-start}.section-title h2{font-size:19px}.section-title .actions button{font-size:12px;padding:8px}.reading{padding:16px}.question legend{font-size:15px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}}
#status{min-height:24px;margin:0 0 12px}.actions{flex-wrap:wrap}
button.danger{color:#a32632;border-color:#d6a2a8}button.danger:hover:not(:disabled){background:#fff0f1;border-color:#a32632}button.primary.danger{background:#a32632;border-color:#a32632;color:#fff}button.primary.danger:hover:not(:disabled){background:#831d27}
