:root{--ink:#162033;--muted:#667085;--line:#e4e9f0;--surface:#fff;--soft:#f5f7fa;--brand:#183b63;--brand-2:#2d6aa0;--accent:#dba84b;--danger:#b42318;--success:#087b58;--radius:18px;--shadow:0 16px 40px rgba(18,35,60,.09)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#f4f6f9;line-height:1.5}body{margin:0}button,input,select,textarea{font:inherit}a{color:inherit}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1280px)/2));position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:780}.brand img{width:38px;height:38px;object-fit:contain}.topbar nav{display:flex;align-items:center;gap:20px;font-size:14px}.topbar nav a{text-decoration:none;color:#475467;font-weight:600}.topbar nav a:hover{color:var(--brand)}.topbar nav form{margin:0}.user-chip{padding:8px 12px;background:var(--soft);border-radius:999px;color:#475467}.link-button{border:0;background:none;color:var(--danger);font-weight:700;cursor:pointer}.app-shell{max-width:1280px;margin:0 auto;padding:40px 24px 80px}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:30px}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.14em;color:var(--brand-2);font-size:11px;font-weight:800;margin-bottom:8px}.page-heading h1{font-size:clamp(30px,4vw,44px);line-height:1.08;letter-spacing:-.035em;margin:0}.page-heading p{color:var(--muted);max-width:680px;margin:10px 0 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:1px solid transparent;border-radius:12px;padding:11px 16px;background:var(--brand);color:#fff;text-decoration:none;font-weight:720;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:44px}.btn:hover{filter:brightness(1.06)}.btn.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.btn.danger{background:#fff;color:var(--danger);border-color:#f0c9c5}.btn.small{padding:7px 11px;min-height:36px;font-size:13px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.metric{background:#fff;border:1px solid var(--line);padding:20px;border-radius:var(--radius);box-shadow:0 5px 18px rgba(30,50,80,.04)}.metric span{display:block;color:var(--muted);font-size:13px}.metric strong{display:block;font-size:30px;letter-spacing:-.04em;margin-top:8px}.metric small{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 6px 24px rgba(20,40,70,.04)}.card h2,.card h3{margin-top:0;letter-spacing:-.02em}.project-card{display:flex;flex-direction:column;gap:18px}.project-card .meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}.project-card footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px}.badge{font-size:12px;padding:5px 9px;border-radius:999px;font-weight:750;background:#eef1f5;color:#475467;white-space:nowrap}.badge-active,.badge-completed{background:#e8f7f1;color:#087b58}.badge-in-progress{background:#fff4db;color:#8a5a00}.badge-closed,.badge-cancelled,.badge-timed-out{background:#fdecea;color:#b42318}.badge-draft,.badge-not-started{background:#eef2f6;color:#475467}.flash{padding:13px 16px;border-radius:12px;margin-bottom:20px;border:1px solid}.flash.success{background:#eaf8f2;border-color:#b6e6d4;color:#087b58}.flash.error{background:#fff0ef;border-color:#f4c7c3;color:#9b1c13}.form-card{max-width:900px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:720;color:#344054}.field input,.field select,.field textarea,.search{width:100%;border:1px solid #ced5df;background:#fff;border-radius:11px;padding:11px 12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus,.search:focus{border-color:var(--brand-2);box-shadow:0 0 0 4px rgba(45,106,160,.12)}.field small{color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}table{width:100%;border-collapse:collapse;min-width:720px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#667085;background:#f8fafc;padding:13px 16px;border-bottom:1px solid var(--line)}td{padding:15px 16px;border-bottom:1px solid #edf0f4;vertical-align:top}tr:last-child td{border-bottom:0}.table-actions{display:flex;gap:6px;flex-wrap:wrap}.search-row{display:flex;justify-content:space-between;gap:15px;margin-bottom:14px}.search{max-width:360px}.empty{text-align:center;padding:56px 24px;background:#fff;border:1px dashed #cfd6df;border-radius:var(--radius)}.empty-icon{font-size:34px;color:var(--brand-2)}.empty h3{margin:12px 0 4px}.empty p{margin:0;color:var(--muted)}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.auth-visual{background:linear-gradient(145deg,#102c4d,#1b517d);color:#fff;padding:8vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-visual:after{content:"";position:absolute;width:430px;height:430px;border:1px solid rgba(255,255,255,.16);border-radius:50%;right:-150px;bottom:-130px;box-shadow:0 0 0 70px rgba(255,255,255,.03),0 0 0 140px rgba(255,255,255,.025)}.auth-visual h1{font-size:clamp(40px,6vw,72px);letter-spacing:-.055em;line-height:.98;max-width:650px;margin:0}.auth-visual p{color:#cbdbe9;max-width:540px;font-size:18px}.auth-panel{background:#fff;padding:8vw;display:flex;align-items:center}.auth-form{width:100%;max-width:440px}.auth-form img{width:64px}.auth-form h2{font-size:34px;letter-spacing:-.035em;margin:22px 0 6px}.auth-form>p{color:var(--muted);margin:0 0 28px}.auth-form .field{margin-bottom:16px}.auth-form .btn{width:100%;margin-top:8px}.candidate-body{background:#eef2f6}.candidate-shell{max-width:1040px;margin:0 auto;padding:28px 18px 72px}.candidate-hero{border-radius:26px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;padding:clamp(26px,6vw,56px);box-shadow:var(--shadow);position:relative;overflow:hidden}.candidate-hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.07);right:-120px;top:-140px}.candidate-brand{display:flex;align-items:center;gap:14px;margin-bottom:52px}.candidate-brand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:14px;padding:7px}.candidate-hero h1{font-size:clamp(34px,7vw,60px);line-height:1.02;letter-spacing:-.05em;margin:0;max-width:720px}.candidate-hero p{color:rgba(255,255,255,.82);font-size:17px;max-width:660px}.intro-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-top:20px}.instruction-list{counter-reset:item;list-style:none;padding:0;margin:0}.instruction-list li{counter-increment:item;display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.instruction-list li:before{content:counter(item);width:26px;height:26px;border-radius:50%;background:#edf3f8;color:var(--brand);display:grid;place-items:center;font-weight:800;font-size:12px;flex:0 0 auto}.consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0}.consent input{width:20px;height:20px}.test-header{background:#fff;border-radius:18px;padding:16px 20px;position:sticky;top:12px;z-index:10;box-shadow:var(--shadow);display:flex;justify-content:space-between;align-items:center;gap:16px}.progress-track{height:7px;background:#e6ebf0;border-radius:99px;overflow:hidden;flex:1}.progress-bar{height:100%;background:var(--brand-2);transition:width .2s}.timer{font-variant-numeric:tabular-nums;font-weight:800;padding:8px 12px;background:#f3f6f9;border-radius:9px}.test-grid{display:grid;grid-template-columns:1fr 240px;gap:20px;margin-top:20px}.question-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(22px,5vw,42px);box-shadow:0 9px 30px rgba(20,40,70,.05)}.question-number{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--brand-2);font-weight:800}.question-card h2{font-size:clamp(21px,3vw,28px);line-height:1.35;letter-spacing:-.02em}.option{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:15px;margin:10px 0;cursor:pointer}.option:hover{border-color:#9eb5ca;background:#fafcfe}.option:has(input:checked){border-color:var(--brand-2);background:#eef6fc;box-shadow:0 0 0 2px rgba(45,106,160,.1)}.option input{margin-top:4px;width:18px;height:18px;accent-color:var(--brand-2)}.option-key{font-weight:800;color:var(--brand)}.question-actions{display:flex;justify-content:space-between;margin-top:25px}.qnav-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;height:max-content;position:sticky;top:104px}.qnav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.qnav button{border:1px solid var(--line);background:#fff;border-radius:8px;aspect-ratio:1;cursor:pointer}.qnav button.answered{background:#e9f6f1;border-color:#a5dbc8;color:#087b58}.qnav button.active{outline:2px solid var(--brand-2)}.save-status{font-size:12px;color:var(--success)}.profile-row{display:grid;grid-template-columns:190px 1fr 66px;align-items:center;gap:12px;margin:12px 0}.bar{height:10px;background:#edf0f4;border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-2));border-radius:99px}.result-score{display:flex;gap:18px;align-items:center}.score-ring{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--brand-2) calc(var(--score)*1%),#e9edf2 0);position:relative}.score-ring:after{content:"";position:absolute;inset:10px;background:#fff;border-radius:50%}.score-ring strong{z-index:1;font-size:28px}.print-only{display:none}@media(max-width:900px){.topbar nav>a,.user-chip{display:none}.metrics{grid-template-columns:repeat(2,1fr)}.grid,.intro-grid{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:30px}.test-grid{grid-template-columns:1fr}.qnav-card{position:static;order:-1}.qnav{grid-template-columns:repeat(10,1fr)}.profile-row{grid-template-columns:140px 1fr 55px}}@media(max-width:600px){.app-shell{padding:28px 16px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:15px}.metric strong{font-size:24px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.candidate-shell{padding:10px 10px 50px}.candidate-hero{border-radius:20px}.candidate-brand{margin-bottom:34px}.qnav{grid-template-columns:repeat(8,1fr)}.test-header{top:6px;flex-wrap:wrap}.test-header .progress-track{order:3;flex-basis:100%}.question-card{padding:22px 17px}.profile-row{grid-template-columns:1fr 50px}.profile-row .bar{grid-column:1/-1}.topbar{padding:0 16px}}@media print{.topbar,.actions,.btn,.flash{display:none!important}.app-shell{max-width:none;padding:0}.card{box-shadow:none;break-inside:avoid}.print-only{display:block}body{background:#fff}}
/* Contextual assessment fields */
.form-subheading{padding:14px 16px;background:var(--soft);border-radius:12px;border:1px solid var(--line)}
.form-subheading strong,.form-subheading small{display:block}
.btn:disabled{opacity:.58;cursor:not-allowed;filter:none}
.candidate-document-import{padding:16px;border:1px dashed #a8bbce;border-radius:14px;background:#f7fafc}
.candidate-document-import>div:first-child strong,.candidate-document-import>div:first-child small{display:block}
.candidate-document-import>div:first-child small{margin-top:3px;color:var(--muted)}
.candidate-document-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.candidate-document-status{min-height:20px;font-size:13px;color:var(--muted)}
.candidate-document-status.loading{color:var(--brand-2)}
.candidate-document-status.success{color:var(--success);font-weight:650}
.candidate-document-status.error{color:var(--danger);font-weight:650}
.candidate-document-loading-row{display:flex;align-items:center;gap:3px;font-weight:650}
.candidate-document-loading-dots{display:inline-flex;align-items:center;gap:3px;margin-left:2px}
.candidate-document-loading-dots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:candidate-document-dot 1.1s ease-in-out infinite}
.candidate-document-loading-dots i:nth-child(2){animation-delay:.15s}
.candidate-document-loading-dots i:nth-child(3){animation-delay:.3s}
.candidate-document-progress{position:relative;height:5px;margin-top:8px;overflow:hidden;border-radius:999px;background:#dbe7f1}
.candidate-document-progress span{position:absolute;inset-block:0;left:-42%;width:42%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-2),#62a8de);animation:candidate-document-progress 1.35s ease-in-out infinite}
.candidate-document-spinner{display:inline-block;width:16px;height:16px;flex:0 0 auto;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:candidate-document-spin .75s linear infinite}
.candidate-photo-picker{margin-top:10px;padding-top:14px;border-top:1px solid var(--line)}
.candidate-photo-picker[hidden]{display:none}
.candidate-photo-picker-heading strong,.candidate-photo-picker-heading small{display:block}
.candidate-photo-picker-heading small{color:var(--muted);margin-top:3px}
.candidate-photo-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;margin-top:12px}
.candidate-photo-choice{display:grid;grid-template-columns:auto 64px 1fr;align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.candidate-photo-choice:has(input:checked){border-color:var(--brand-2);box-shadow:0 0 0 3px rgba(45,106,160,.1);background:#f3f8fc}
.candidate-photo-choice img{width:64px;height:78px;object-fit:cover;border-radius:8px;background:var(--soft)}
.candidate-photo-choice span strong,.candidate-photo-choice span small{display:block}
.candidate-photo-choice span strong{font-size:12px;line-height:1.25}
.candidate-photo-choice span small{font-size:10px;color:var(--muted);margin-top:3px}
.candidate-photo-choice.none{grid-template-columns:auto 1fr;min-height:98px}
.candidate-photo-message{display:block;color:var(--muted);margin-top:8px}
.candidate-result-photo{display:flex;align-items:center;gap:14px;width:max-content;max-width:100%;margin:0 0 18px auto;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 18px rgba(30,50,80,.05)}
.candidate-result-photo img{width:70px;height:86px;object-fit:cover;border-radius:9px}
.candidate-result-photo strong,.candidate-result-photo small{display:block}
.candidate-result-photo small{color:var(--muted);margin-top:3px}
.candidate-result-photo .eyebrow{margin-bottom:2px}
.candidate-edit-photo{display:flex;align-items:center;gap:14px;padding:14px;margin-bottom:20px;background:var(--soft);border:1px solid var(--line);border-radius:14px}
.candidate-edit-photo img{width:72px;height:88px;object-fit:cover;border-radius:9px}
[data-extract-candidate]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
@keyframes candidate-document-spin{to{transform:rotate(360deg)}}
@keyframes candidate-document-progress{0%{left:-42%}55%{left:45%}100%{left:105%}}
@keyframes candidate-document-dot{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.candidate-document-spinner,.candidate-document-progress span,.candidate-document-loading-dots i{animation:none}}
.candidate-field-autofilled{border-color:var(--success)!important;box-shadow:0 0 0 4px rgba(8,123,88,.12)!important;transition:border-color .2s,box-shadow .2s}
.btn[hidden]{display:none!important}
.question-actions form{margin:0}
.btn.submit-action{background:linear-gradient(135deg,var(--success),#0a9669);border-color:#076b4d;box-shadow:0 8px 18px rgba(8,123,88,.22)}
.btn.submit-action:hover{filter:brightness(1.08)}
@media(max-width:900px){.question-card{scroll-margin-top:112px}}
@media(max-width:600px){.candidate-photo-choices{grid-template-columns:1fr}.candidate-result-photo{margin-left:0}.candidate-photo-choice{grid-template-columns:auto 72px 1fr}.candidate-photo-choice img{width:72px;height:88px}}

/* Administrator settings */
.settings-intro{color:var(--muted);margin:-4px 0 20px}
.analysis-model-options{display:grid;gap:12px;margin:18px 0}
.analysis-model-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:14px;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s}
.analysis-model-option:hover{border-color:#9eb5ca}
.analysis-model-option.selected{border-color:var(--brand-2);background:#f3f8fc;box-shadow:0 0 0 3px rgba(45,106,160,.1)}
.analysis-model-option.unavailable{cursor:not-allowed;opacity:.66;background:var(--soft)}
.analysis-model-option input{width:19px;height:19px;accent-color:var(--brand-2)}
.analysis-model-copy strong,.analysis-model-copy small{display:block}
.analysis-model-copy small{color:var(--muted);margin-top:3px}
.configuration-status{font-size:12px;font-weight:750;padding:5px 9px;border-radius:999px;white-space:nowrap}
.configuration-status.ready{color:var(--success);background:#e8f7f1}
.configuration-status.missing{color:var(--danger);background:#fdecea}
@media(max-width:600px){.analysis-model-option{grid-template-columns:auto 1fr}.configuration-status{grid-column:2;justify-self:start}}

/* Authentication workspace */
.auth-page{grid-template-columns:.85fr 1.15fr}
.auth-visual{padding:clamp(48px,7vw,96px);background:#173b62}
.auth-visual:after{opacity:.3}
.auth-intro{position:relative;z-index:1;max-width:480px}
.auth-visual .eyebrow{color:#b8d4e9;margin-bottom:16px}
.auth-visual h1{font-size:clamp(40px,4.5vw,54px);letter-spacing:-.04em;line-height:1.08;max-width:480px}
.auth-visual p{max-width:460px;font-size:17px;line-height:1.6;margin:16px 0 0}
.auth-visual>small{position:relative;z-index:1;color:#dce8f2}
.auth-form h2{margin-top:0}

/* Compact candidate profile actions; labels remain available to assistive technology. */
.btn.candidate-profile-action,.page-heading .actions .btn.candidate-profile-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;min-height:36px;padding:0;line-height:1;vertical-align:middle}
.candidate-profile-action svg{display:block;flex:none}
.candidate-profile-action:focus-visible{outline:2px solid currentColor;outline-offset:3px}
