:root {
  color-scheme: light;
  --navy:#19255a; --cyan:#00cde2;
  --canvas:#edf3fc; --header:#fff; --surface:#fff; --elevated:#dce8fb;
  --line:#bfd0ee; --control-line:#6b7fa8; --text:#0f1a47; --muted:#455579;
  --heading:#19255a; --link:#2447c8; --eyebrow:#2447c8; --trim:#00b4cc;
  --btn-bg:#19255a; --btn-fg:#fff; --btn-border:#19255a;
  --btn2-bg:#fff; --btn2-fg:#19255a; --btn2-border:var(--control-line);
  --accent-bg:#00cde2; --accent-fg:#0f1a47;
  --error:#9e253b; --danger-bg:#9e253b; --danger-fg:#fff;
  --notice-bg:#e6f4f8; --notice-fg:#183d53; --notice-line:#086d82;
  --notice-err-bg:#fff0f2; --notice-err-fg:#7a1c30; --notice-err-line:#9e253b;
  --status-bg:#e9eef8; --status-fg:#19255a;
  --selected-bg:#eaf0fd; --selected-line:#19255a; --option-line:#8a9bbf;
  --focus:#2447c8; --sel-bg:#19255a; --sel-fg:#fff;
  --hero-bg:#19255a; --hero-fg:#fff; --hero-muted:#e0e8f7; --hero-eyebrow:#00cde2;
  --shadow:0 6px 20px #19255a14;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--text); background:var(--canvas); font-size:16px; line-height:1.55;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas:#070c22; --header:#0c1433; --surface:#101a3c; --elevated:#142047;
  --line:#304274; --control-line:#6e84bd; --text:#eaeffb; --muted:#a3afcf;
  --heading:#eaeffb; --link:#00cde2; --eyebrow:#00cde2; --trim:#00cde2;
  --btn-bg:#00cde2; --btn-fg:#070c22; --btn-border:#00cde2;
  --btn2-bg:#142047; --btn2-fg:#eaeffb; --btn2-border:var(--control-line);
  --accent-bg:#00cde2; --accent-fg:#070c22;
  --error:#ff8fa3; --danger-bg:#b8324e; --danger-fg:#fff;
  --notice-bg:#0f2a4a; --notice-fg:#d6f6fb; --notice-line:#00cde2;
  --notice-err-bg:#3a1020; --notice-err-fg:#ffd3db; --notice-err-line:#ff8fa3;
  --status-bg:#142047; --status-fg:#eaeffb;
  --selected-bg:#142047; --selected-line:#00cde2; --option-line:#4a5f98;
  --focus:#00cde2; --sel-bg:#00cde2; --sel-fg:#070c22;
  --shadow:0 6px 20px #00000066;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--canvas);color:var(--text)}
a{color:var(--link);text-underline-offset:3px}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.6}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
header{background:var(--header);border-bottom:2px solid var(--trim)}
.topbar{max-width:none;min-height:60px;margin:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px clamp(12px,2vw,28px);gap:10px 18px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--text);min-width:0;max-width:100%}
.brand img{width:112px;height:auto;display:block;flex:none}
.logo-dark{display:none!important}
:root[data-theme="dark"] .logo-light{display:none!important}
:root[data-theme="dark"] .logo-dark{display:block!important}
.brand span{border-left:1px solid var(--line);padding-left:14px;font-size:.78rem;font-weight:650;letter-spacing:.015em;overflow-wrap:anywhere;line-height:1.35}
.header-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;margin-left:auto;min-width:0;max-width:100%}
.theme-switch{position:relative;display:inline-flex;align-items:center;justify-content:space-between;flex:none;width:84px;height:38px;padding:0 11px;border:1px solid #b4c7ee;border-radius:999px;background:#e3ecfb;color:#2447c8}
.theme-switch .ts-icon{display:block;width:16px;height:16px;position:relative;z-index:1}
.theme-switch .ts-thumb{position:absolute;top:4px;left:5px;width:28px;height:28px;border-radius:50%;background:#fff;border:2px solid #19255a;transform:translateX(0)}
:root[data-theme="dark"] .theme-switch{background:#0c1433;border-color:var(--control-line);color:#a3afcf}
:root[data-theme="dark"] .theme-switch .ts-thumb{background:#00cde2;border-color:#00cde2;transform:translateX(44px)}
.theme-switch .ts-thumb{z-index:0;pointer-events:none}
.theme-switch .ts-sun{color:var(--navy)}
.theme-switch .ts-moon{color:#6b7fa8}
:root[data-theme="dark"] .theme-switch .ts-sun{color:var(--muted)}
:root[data-theme="dark"] .theme-switch .ts-moon{color:var(--canvas)}
#account{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 10px;min-width:0;max-width:100%;color:var(--text);overflow-wrap:anywhere}
#account:empty,#signout-feedback:empty{display:none}
body[data-portal] #account .session-action{min-height:36px;padding:7px 12px;font-size:.78rem;border-radius:8px;white-space:nowrap}
#signout-feedback{font-size:.76rem;max-width:26ch}
main{width:min(1124px,100%);margin:0 auto;padding:48px 28px 72px;flex:1}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2rem,4vw,3rem);line-height:1.14;letter-spacing:-.045em;color:var(--heading)}
h2{font-size:1.4rem;line-height:1.25;color:var(--heading)}
p{max-width:70ch}
.eyebrow{font-size:.77rem;letter-spacing:.13em;text-transform:uppercase;font-weight:750;color:var(--eyebrow)}
.muted{color:var(--muted)}
.hero{background:var(--hero-bg);color:var(--hero-fg);border-radius:20px;padding:clamp(28px,6vw,66px);margin-bottom:28px;overflow:hidden;position:relative;border:1px solid var(--line)}
.hero h1,.hero h2{color:var(--hero-fg);max-width:18ch}
.hero .eyebrow{color:var(--hero-eyebrow)}
.hero p{color:var(--hero-muted)}
.hero::after{content:"";position:absolute;right:-110px;bottom:-210px;border:36px solid var(--cyan);width:280px;height:280px;border-radius:50%;opacity:.18;pointer-events:none}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:var(--shadow)}
.stack{display:grid;gap:18px}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 20px;border-radius:9px;border:1px solid var(--btn-border);font-weight:650;text-decoration:none;background:var(--btn-bg);color:var(--btn-fg)}
.btn.secondary{background:var(--btn2-bg);color:var(--btn2-fg);border-color:var(--btn2-border)}
.btn.accent{background:var(--accent-bg);color:var(--accent-fg);border-color:var(--accent-bg)}
.btn.danger{background:var(--danger-bg);color:var(--danger-fg);border-color:var(--danger-bg)}
.notice{border-left:4px solid var(--notice-line);padding:13px 16px;border-radius:7px;background:var(--notice-bg);color:var(--notice-fg);overflow-wrap:anywhere}
.notice.error{border-color:var(--notice-err-line);background:var(--notice-err-bg);color:var(--notice-err-fg)}
.purge-card{border-color:var(--danger-bg);max-width:100%;overflow-wrap:anywhere;display:grid;gap:12px}
.purge-card>*{margin:0}
.purge-card{padding:16px}
.purge-body>*{margin:0}
.purge-confirm .btn{justify-self:start}
.purge-card .btn{min-height:36px;padding:7px 14px;font-size:.84rem}
.purge-title{color:var(--error)}
.purge-body{display:grid;gap:12px;min-width:0}
.purge-scope{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.purge-scope>div{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;min-width:0}
.purge-phases{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.purge-phases li{padding:4px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}
.purge-phases li.current{border-color:var(--danger-bg);color:var(--text);font-weight:700}
.purge-card progress{width:100%;max-width:100%}
.purge-confirm{display:grid;gap:10px}
.purge-confirm input{max-width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--control-line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit}
.purge-actions{display:flex;flex-wrap:wrap;gap:10px}
.purge-prev{padding:10px 12px;border:1px dashed var(--line);border-radius:9px}
.purge-prev h3{margin:0 0 4px}
.status{display:inline-flex;padding:4px 10px;border-radius:999px;background:var(--status-bg);color:var(--status-fg);font-size:.8rem;font-weight:650}
footer{margin-top:auto;padding:12px clamp(12px,2vw,28px);text-align:center;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem;line-height:1.4;background:var(--header)}
.skip{position:absolute;left:8px;top:-80px;background:var(--surface);color:var(--text);padding:12px;z-index:10}
.skip:focus{top:8px}
@media(max-width:600px){.topbar{padding:10px 12px;gap:8px 10px}.brand{gap:10px;flex:1}.brand img{width:94px}.brand span{padding-left:10px;font-size:.7rem}.header-tools{gap:8px;margin-left:auto}.topbar:has(#account .session-action) .brand{flex:1 0 100%}.topbar:has(#account .session-action) .header-tools{width:100%;justify-content:space-between}body[data-portal] #account .session-action{min-height:40px}main{padding:30px 18px 48px}.panel{padding:20px}}
.section-title{margin-bottom:28px}
.section-title h1{margin-bottom:10px}
.section-title p:last-child{margin-bottom:0}
.page-actions{margin-top:24px}
.rules{margin:0;padding-left:1.5rem;display:grid;gap:12px}
/* Candidate question surface: no enclosing card, server-derived progress and clock. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.question-layout{display:grid;gap:12px;min-width:0;position:relative;isolation:isolate}
.question-layout::before{content:"";position:absolute;inset:0 0 auto;height:280px;z-index:-1;pointer-events:none;--question-grid:#2447c81a;background:linear-gradient(var(--question-grid) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,var(--question-grid) 1px,transparent 1px) 0 0/48px 48px;mask:radial-gradient(50% 90% at 50% 0,#000,transparent)}
:root[data-theme="dark"] .question-layout::before{--question-grid:#30467e75}
body[data-portal="candidate"] main{width:min(1120px,100%);padding:clamp(16px,3vw,28px) clamp(16px,4vw,32px) clamp(28px,5vw,56px)}
.question-meta{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:.82rem}
.question-position{font-weight:650;color:var(--text);font-variant-numeric:tabular-nums}
progress{width:100%;height:8px;accent-color:var(--link)}
.question-meta progress{flex:1;min-width:100px;height:5px}
.question-text{font-size:clamp(1.3rem,3vw,1.75rem);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35;max-width:65ch;margin:4px 0 10px;letter-spacing:-.025em}
.question-layout form{min-width:0;gap:12px}
.options{border:0;padding:0;margin:0;display:grid;gap:6px;min-width:0}
.options legend{font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:650;margin-bottom:8px}
.answer-option{display:grid;grid-template-columns:18px 28px minmax(0,1fr);align-items:center;gap:10px;cursor:pointer;border:1px solid var(--option-line);min-height:44px;padding:8px 12px;border-radius:8px;overflow-wrap:anywhere;background:var(--surface)}
.answer-option:hover{border-color:var(--link)}
.answer-option:has(input:checked){border-color:var(--selected-line);background:var(--selected-bg);box-shadow:inset 3px 0 0 var(--selected-line)}
.answer-option:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.answer-option input{width:18px;height:18px;margin:0;accent-color:var(--link)}
.option-letter{border-radius:6px;background:var(--elevated);color:var(--heading);padding:4px;text-align:center;font-weight:650;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem}
.answer-option:has(input:checked) .option-letter{background:var(--btn-bg);color:var(--btn-fg)}
.answer-text{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.question-prose{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;max-width:70ch}
.code-viewer{min-width:0;max-width:100%;border:1px solid var(--control-line);border-radius:10px;overflow:hidden;background:var(--surface)}
.code-toolbar{display:flex;justify-content:space-between;gap:12px;padding:7px 14px;border-bottom:1px solid var(--line);background:var(--header);color:var(--muted);font:600 .75rem ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.question-code{margin:0;padding:16px 0;overflow-x:auto;font:400 .95rem/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;tab-size:4;counter-reset:code-line;color:var(--text);background:var(--canvas)}
.question-code code{display:block;width:max-content;min-width:100%;padding-right:16px;font:inherit}
.code-line{counter-increment:code-line}
.code-line::before{content:counter(code-line);display:inline-block;width:3.2ch;margin:0 1.6ch 0 1.2ch;text-align:right;color:var(--muted);user-select:none}
.question-code:focus-visible{outline-offset:-3px}
/* Local Prism token palette; classes come from a fixed internal mapping. */
:root{--code-bg:#f7faff;--syntax-keyword:#6035a0;--syntax-number:#914000;--syntax-string:#176b3a;--syntax-comment:#56668c;--syntax-function:#005d72;--syntax-property:#2447a8;--syntax-operator:#455579}
:root[data-theme="dark"]{--code-bg:#050a1c;--syntax-keyword:#c5a5fa;--syntax-number:#e8b27a;--syntax-string:#a6dfa0;--syntax-comment:#a3afcf;--syntax-function:#64dcec;--syntax-property:#a7bbff;--syntax-operator:#c3cee9}
.question-code{background:var(--code-bg)}
.syntax-keyword{color:var(--syntax-keyword)}.syntax-number{color:var(--syntax-number)}
.syntax-string{color:var(--syntax-string)}.syntax-comment{color:var(--syntax-comment);font-style:italic}
.syntax-function{color:var(--syntax-function)}.syntax-property{color:var(--syntax-property)}.syntax-operator{color:var(--syntax-operator)}
.answer-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.answer-rich{display:grid;gap:6px;min-width:0}
.answer-code-block{display:block;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--code-bg)}
.answer-prose{white-space:pre-wrap}


.timer{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--control-line);background:var(--header);padding:6px 12px;border-radius:8px}
.timer-label{font-size:.76rem;color:var(--muted)}
.timer-value{display:block;color:var(--link);font-size:1.55rem;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2}
.timer-help{font-size:.78rem;margin:0}
.answer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between;margin-top:6px}
.answer-actions p{margin:0;flex:1;min-width:180px;font-size:.84rem}
.answer-actions .btn{margin-left:auto}
.question-secondary{display:flex;gap:8px 14px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:8px}
.question-secondary .btn.secondary{border:0;background:transparent;color:var(--muted);min-height:36px;padding:4px;font-size:.82rem;text-underline-offset:3px}
.question-secondary .btn.secondary:hover{color:var(--link);text-decoration:underline}
@media(max-width:560px){.question-meta{gap:8px}.question-meta progress{order:3;flex:1 0 100%;min-width:0}.timer{margin-left:auto;padding:5px 8px;gap:6px}.timer-value{font-size:1.25rem}.timer-label{font-size:.7rem}.answer-actions .btn{width:100%;margin-left:0}.answer-actions p{min-width:0;flex-basis:100%}.answer-option{padding:8px;gap:8px}}
@media(prefers-reduced-motion:no-preference){.btn{transition:background-color .15s,color .15s,border-color .15s}.theme-switch,.theme-switch .ts-thumb{transition:background-color .2s,border-color .2s,transform .2s}}
/* Landing only (body.landing); shares semantic tokens with the other pages. */
body.landing main{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(28px,6vw,88px);align-items:center;width:min(1180px,100%);padding:clamp(40px,8vw,96px) clamp(18px,4vw,48px)}
body.landing main::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;--grid:#2447c81a;background:linear-gradient(var(--grid) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/48px 48px;-webkit-mask:radial-gradient(70% 80% at 30% 40%,#000,transparent);mask:radial-gradient(70% 80% at 30% 40%,#000,transparent)}
:root[data-theme="dark"] body.landing main::before{--grid:#30467e75}
body.landing .eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0 0 22px;font-size:.74rem;font-weight:700;letter-spacing:.14em}
body.landing .eyebrow::before{content:"";width:22px;height:3px;background:var(--trim)}
body.landing h1{margin:0 0 22px;font-size:clamp(2.2rem,5.2vw,4rem);line-height:1.04;letter-spacing:-.05em;font-weight:700}
body.landing h1 em{font-style:normal;color:var(--link)}
body.landing .lead{max-width:46ch;margin:0;color:var(--muted);font-size:1.06rem}
body.landing .paths{display:grid;border:1px solid #a9bfec;border-top:4px solid var(--btn-bg);border-radius:16px;background:#eef4ff;overflow:hidden}
body.landing .path{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:6px 20px;align-items:center;padding:clamp(22px,3vw,32px);color:var(--text);text-decoration:none}
body.landing .path+.path{background:#dfeafc;border-top:1px solid #a9bfec}
body.landing .path::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--trim);transform:scaleY(0)}
body.landing .path:hover::before,body.landing .path:focus-visible::before{transform:scaleY(1)}
body.landing .path:hover,body.landing .path:focus-visible{background:#cddffa}
body.landing .path:focus-visible{outline-offset:-4px}
body.landing .num{grid-row:span 3;align-self:start;padding-top:5px;font:600 .8rem ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--link)}
body.landing .path small{font-size:.7rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--link)}
body.landing .path h2{margin:0;font-size:1.4rem;letter-spacing:-.025em;line-height:1.2;color:var(--heading)}
body.landing .path:hover h2,body.landing .path:focus-visible h2{color:var(--link)}
body.landing .path p{margin:0;grid-column:2;color:var(--muted);font-size:.92rem;max-width:40ch}
body.landing .go{grid-column:3;grid-row:1/span 3;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--btn-bg);color:var(--btn-fg);font-weight:700}
body.landing .path:hover .go,body.landing .path:focus-visible .go{background:var(--link);color:#fff}
:root[data-theme="dark"] body.landing .eyebrow::before{height:2px}
:root[data-theme="dark"] body.landing h1{color:var(--heading)}
:root[data-theme="dark"] body.landing .paths{background:var(--surface);border-color:var(--line);border-top-width:1px}
:root[data-theme="dark"] body.landing .path+.path{background:var(--elevated);border-top-color:var(--line)}
:root[data-theme="dark"] body.landing .path:hover,:root[data-theme="dark"] body.landing .path:focus-visible{background:#192951;box-shadow:inset 0 0 0 1px #00cde270}
:root[data-theme="dark"] body.landing .path small{color:var(--muted)}
:root[data-theme="dark"] body.landing .path:hover h2,:root[data-theme="dark"] body.landing .path:focus-visible h2{color:var(--heading)}
:root[data-theme="dark"] body.landing .path:hover .go,:root[data-theme="dark"] body.landing .path:focus-visible .go{background:var(--btn-bg);color:var(--btn-fg)}
@media(prefers-reduced-motion:no-preference){body.landing .path,body.landing .path::before,body.landing .go{transition:background-color .2s,transform .25s,box-shadow .2s}body.landing .path:hover .go{transform:translateX(4px)}}
@media(max-width:820px){body.landing main{grid-template-columns:1fr;align-items:start}}
@media(max-width:560px){body.landing .path{grid-template-columns:auto 1fr}body.landing .go{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Staff directory: shared tokens, compact responsive management surface. */
body[data-portal="staff"] main.staff-mounted{width:100%;padding:0;display:flex}
.staff-shell{display:grid;grid-template-columns:208px minmax(0,1fr);width:100%;min-width:0}
.staff-shell.staff-collapsed{grid-template-columns:62px minmax(0,1fr)}
.staff-nav{background:var(--surface);border-right:1px solid var(--line);padding:14px 10px;min-width:0}
.staff-nav .staff-collapse{padding:7px;min-height:36px;width:40px;margin-bottom:16px}
.staff-nav p{font-size:.68rem;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin:0 6px 8px}
.staff-current{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:var(--selected-bg);border:1px solid var(--line);box-shadow:inset 3px 0 0 var(--selected-line);font-weight:650;font-size:.86rem}
.staff-current svg{flex:none;color:var(--link)}
.staff-collapsed .staff-nav-label{display:none}
.staff-content{padding:clamp(16px,3vw,32px);max-width:1240px;min-width:0;width:100%}
.staff-content h1{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:18px}
.staff-content .eyebrow{margin-bottom:4px}
.staff-directory{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.staff-toolbar,.staff-pagination{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:12px}
.staff-toolbar{border-bottom:1px solid var(--line)}
.staff-toolbar input{width:min(230px,100%);min-height:36px;border:1px solid var(--control-line);background:var(--canvas);color:var(--text);border-radius:8px;padding:6px 10px}
.staff-toolbar select{width:min(260px,100%);min-width:0;min-height:36px;border:1px solid var(--control-line);background:var(--canvas);color:var(--text);border-radius:8px;padding:6px 10px}
.staff-filter{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap;min-width:0;max-width:100%}
.staff-filter .btn{min-height:32px;padding:4px 10px;font-size:.76rem}
.evaluations-table{min-width:850px}
.evaluations-table small{display:block}
.evaluations-table th:nth-last-child(2),.evaluations-table th:last-child{width:auto}
.staff-toolbar .muted,.staff-pagination .muted{font-size:.76rem}
.staff-pagination{justify-content:space-between;border-top:1px solid var(--line)}
.staff-pagination .btn,.staff-feedback .btn{min-height:36px;padding:6px 12px;font-size:.8rem}
.staff-feedback:not(:empty){padding:12px;display:grid;gap:8px;justify-items:start}
.staff-feedback p{margin:0}
.staff-table-wrap{overflow-x:auto;min-width:0}
.staff-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.83rem}
.staff-table th{background:var(--elevated);text-align:left;text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;color:var(--muted)}
.staff-table th,.staff-table td{padding:8px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.staff-table th:last-child{width:120px}
.staff-table tr:last-child td{border-bottom:0}
.staff-person{display:flex;align-items:center;gap:9px;min-width:0}
.staff-person>div{min-width:0}
.staff-avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--btn-bg);color:var(--btn-fg);font-size:.7rem;font-weight:700}
.staff-email-small{display:none;color:var(--muted);font-size:.73rem}
.staff-email{color:var(--muted)}
@media(max-width:820px){.staff-table .staff-email{display:none}.staff-email-small{display:block}}
@media(max-width:700px){.staff-shell,.staff-shell.staff-collapsed{grid-template-columns:62px minmax(0,1fr)}.staff-nav .staff-collapse,.staff-nav .staff-nav-label{display:none}.staff-current{justify-content:center;padding:8px 4px}.staff-content{padding:16px 10px}.staff-table th,.staff-table td{padding:8px}.staff-table th:last-child{width:96px}.staff-person{gap:6px}.staff-avatar{width:25px;height:25px;font-size:.62rem}}

/* Staff provisioning dialog; no credential storage. */
.staff-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.staff-page-heading h1{margin-bottom:0}
.staff-page-heading .btn{min-height:36px;padding:7px 14px;font-size:.84rem}
.staff-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;border:1px solid var(--control-line);border-radius:14px;padding:clamp(16px,4vw,28px);background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.staff-dialog::backdrop{background:#050a1c99}
.staff-dialog h2{margin-bottom:16px}
.staff-dialog .muted{font-size:.84rem}
.staff-recipient{overflow-wrap:anywhere;font-weight:650;font-size:.86rem}
.staff-dialog .btn{min-height:38px;padding:8px 14px;font-size:.84rem}
.staff-dialog .notice{font-size:.84rem}
.staff-form{display:grid;gap:14px}
.staff-form p{margin:0}
.staff-field{display:grid;gap:4px;font-size:.84rem;font-weight:650}
.staff-field input{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--control-line);border-radius:8px;background:var(--canvas);color:var(--text)}
.staff-form [role="alert"]:not(:empty){display:grid;gap:8px;justify-items:start}
.staff-credential{border:1px solid var(--control-line);background:var(--canvas);border-radius:8px;padding:12px;margin:12px 0}
.staff-credential p{margin:0 0 6px}
.staff-secret{display:block;overflow-wrap:anywhere;user-select:all;font:600 1rem/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}
.staff-dialog .actions{margin-bottom:8px}

/* Account details share the staff dialog and credential palette. */
.staff-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.staff-workspace.staff-has-detail{grid-template-columns:minmax(0,1fr) 320px}
.staff-detail[open]:not(:modal){position:static;width:100%;max-width:none;max-height:none;margin:0;padding:16px;box-shadow:none}
.staff-detail h2{font-size:1.15rem;overflow-wrap:anywhere}
.staff-detail h3{font-size:.84rem;margin:16px 0 10px}
.staff-detail p{overflow-wrap:anywhere}
.staff-detail .actions{margin-bottom:16px}
.staff-account-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;font-size:.8rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}
.staff-account-facts dt{color:var(--muted)}
.staff-account-facts dd{margin:0;overflow-wrap:anywhere}
.staff-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.staff-table th:nth-last-child(2){width:112px}
.staff-table th:last-child{width:86px}
.staff-table .staff-row-action{min-height:32px;padding:4px 8px;font-size:.76rem}
.staff-table tr.staff-selected{background:var(--selected-bg);box-shadow:inset 3px 0 0 var(--selected-line)}
/* Consistent subtle hover/focus affordances (never hover-only; disabled stays inert). */
.staff-table tbody tr:hover,.staff-table tbody tr:focus-within{background:var(--selected-bg)}
.staff-table tbody tr.staff-selected,.staff-table tbody tr.staff-selected:hover,.staff-table tbody tr.staff-selected:focus-within{background:var(--selected-bg);box-shadow:inset 3px 0 0 var(--selected-line)}
.staff-table tbody tr.staff-row-clickable,.staff-catalog-host .catalog-table tbody tr:has(button.staff-row-action:not(:disabled)){cursor:pointer}
.btn:hover:not(:disabled){filter:brightness(.94)}
:root[data-theme="dark"] .btn:hover:not(:disabled){filter:brightness(1.12)}
.btn:disabled{filter:none}
.staff-nav-item:hover:not(:disabled),[role=menuitem]:hover:not([aria-disabled=true]):not(:disabled){background:var(--selected-bg)}
.staff-nav-item.staff-current:hover:not(:disabled){background:var(--selected-bg)}
.staff-nav-item:disabled:hover{background:transparent}
@media (hover:hover) {
  .candidate-assignment:has(button:not(:disabled)):hover{border-color:var(--selected-line)}
}
.candidate-assignment:focus-within{border-color:var(--selected-line)}
@media(prefers-reduced-motion:no-preference){.staff-table tbody tr,.staff-nav-item,.candidate-assignment{transition:background-color .12s,border-color .12s}}
@media(max-width:1180px){.staff-workspace.staff-has-detail{grid-template-columns:minmax(0,1fr)}.staff-detail:modal{position:fixed;inset:0 0 0 auto;margin:0;width:min(380px,100%);height:100%;max-height:100%;max-width:100%;border-radius:12px 0 0 12px}}
@media(max-width:700px){.staff-table th:nth-last-child(2){width:86px}.staff-table th:last-child{width:66px}.staff-table .staff-avatar{display:none}.staff-table .staff-row-action{padding:4px 5px}}

.staff-assessment-title{font-size:1rem;margin:0 0 12px}
.staff-attempt-list{display:grid;gap:8px;margin:12px 0}
.staff-attempt{border:1px solid var(--line);border-radius:8px;padding:10px;display:grid;gap:7px;justify-items:start;min-width:0;overflow-wrap:anywhere}
.staff-attempt p{margin:0}
.staff-attempt-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:12px 0}
.staff-attempt-pagination .btn{font-size:.76rem;padding:6px 9px}
.staff-field select{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--control-line);border-radius:8px;background:var(--canvas);color:var(--text)}
.staff-assessment-content{display:grid;gap:10px;min-width:0}
.staff-assessment-content .actions{margin:0;gap:8px}
.staff-assessment-content>.btn{justify-self:start}
.staff-assessment-content p,.staff-assessment-content h4{margin:0;overflow-wrap:anywhere}

/* Catalog metadata and authoring share the Staff palette. */
.catalog-table th:nth-last-child(2){width:112px}
.catalog-dialog{width:min(600px,calc(100% - 24px))}
.catalog-dialog .staff-form{margin-bottom:16px}
.catalog-dialog textarea,.catalog-field textarea{font:inherit;width:100%;min-width:0;resize:vertical;padding:10px;border:1px solid var(--control-line);background:var(--canvas);color:var(--text);border-radius:8px}
.catalog-table td{vertical-align:top}
@media(max-width:700px){.catalog-table{min-width:480px}.catalog-table th:nth-last-child(2){width:94px}}
.catalog-release{display:grid;gap:3px;min-width:0}
.catalog-release small,.catalog-description{display:block;font-size:.74rem;overflow-wrap:anywhere}
.catalog-description{margin-top:4px}
.catalog-section-title{font-size:1.04rem;margin:0 0 10px}
.catalog-area-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.catalog-area-label{display:grid;min-width:0;overflow-wrap:anywhere}
.catalog-area-row .actions{gap:6px}
.catalog-area-row .btn,.catalog-area-add .btn{min-height:34px;padding:6px 12px;font-size:.8rem}
.catalog-area-add{margin-top:12px;grid-template-columns:minmax(0,1fr) auto;align-items:end}
.catalog-area-edit{width:100%}
@media(max-width:520px){.catalog-area-add{grid-template-columns:minmax(0,1fr)}}
.dq{container-type:inline-size;min-width:0}
.dq-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:20px;align-items:start}
.dq-index,.dq-editor{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px}
.dq-section+.dq-section{margin-top:18px}
.dq-section-head,.dq-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.dq h4,.dq h5{margin:0;color:var(--heading)}
.dq-duration,.dq-hint,.dq-count,.dq-meta{color:var(--muted);font-size:.8rem;margin:4px 0}
.dq-list,.dq-option-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.dq-item{display:flex;align-items:stretch;gap:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.dq-item.is-selected{background:var(--selected-bg);border-color:var(--selected-line);box-shadow:inset 3px 0 0 var(--selected-line)}
.dq-select{flex:1;min-width:0;display:flex;gap:10px;align-items:center;text-align:left;background:none;border:0;border-radius:10px;padding:8px;color:var(--text);font:inherit;cursor:pointer}
.dq-num{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--status-bg);color:var(--status-fg);font-size:.8rem;font-weight:700}
.dq-main{display:grid;min-width:0}
.dq-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.dq-move{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:4px}
.dq .dq-btn{min-height:34px;min-width:34px;padding:4px 10px;font-size:.82rem}
.dq .dq-move .dq-btn{min-height:28px;min-width:28px;padding:0 6px}
.dq-select:focus-visible,.dq-btn:focus-visible,.dq-field :is(input,select,textarea):focus-visible,.dq-option input:focus-visible,.dq-switch input:focus-visible,[data-k="editor"]:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.dq-btn:disabled{opacity:.5;cursor:not-allowed}
.dq-form{display:grid;gap:14px}
.dq-field{display:grid;gap:4px;font-weight:600}
.dq-field :is(input,select,textarea),.dq-option textarea{width:100%;box-sizing:border-box;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--control-line);border-radius:8px;padding:8px 10px}
.dq-field textarea{resize:vertical}
.dq-row{display:grid;grid-template-columns:minmax(0,200px) auto;gap:16px;align-items:end}
.dq-switch{display:flex;align-items:center;gap:8px;min-height:40px;font-weight:600}
.dq-switch input{width:20px;height:20px}
.dq-options{border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:0}
.dq-option{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dq-option textarea{flex:1 1 140px;min-width:0;width:auto}
.dq-option input[type=radio]{width:20px;height:20px}
.dq-option-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.dq-error{flex-basis:100%;margin:2px 0 0;color:var(--notice-err-fg);background:var(--notice-err-bg);border-left:3px solid var(--notice-err-line);padding:4px 8px;font-size:.82rem;font-weight:500}
.dq-error[hidden]{display:none}
.dq-readout{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0}
.dq-readout dt{font-weight:700}.dq-readout dd{margin:0;overflow-wrap:anywhere}
.dq-text,.dq-readout-options{white-space:pre-wrap;overflow-wrap:anywhere}
.dq-empty{color:var(--muted)}
@container (max-width:720px){.dq-grid{grid-template-columns:minmax(0,1fr)}.dq-row{grid-template-columns:minmax(0,1fr)}}
.dq-code-field{display:grid;gap:8px;min-width:0;width:100%}
.dq-option>.dq-code-field{flex:1 1 200px;min-width:0}
.dq-code-block{display:grid;gap:8px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--canvas)}
.dq-field textarea.dq-code-input,.dq-code-preview{font:15.2px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;overflow-x:auto;tab-size:4;max-width:100%}
.dq-code-preview{margin:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface);color:var(--text)}
.dq-code-field .actions{gap:6px}
.dq-code-field .btn{min-height:34px;padding:6px 10px;font-size:.8rem}
.dq-code-switch{min-height:30px;font-size:.85rem}
/* Shared Candidate and Staff presentation: local code scrolling, same safe renderer. */
.dq-code-preview code{font:inherit}
.catalog-preview{margin-top:16px}
.catalog-preview .staff-pagination{padding:10px 0}
/* Staff section navigation and integrated catalog / editor / history views */
.staff-nav-item{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 4px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-weight:600;font-size:.86rem;text-align:left;cursor:pointer;min-height:40px}
.staff-nav-item svg{flex:none;color:var(--muted)}
.staff-nav-item:hover:not(:disabled){background:var(--selected-bg)}
.staff-nav-item:focus-visible{outline:3px solid var(--selected-line);outline-offset:2px}
.staff-nav-item:disabled{opacity:.55;cursor:not-allowed}
.staff-nav-item.staff-current{background:var(--selected-bg);border-color:var(--line);box-shadow:inset 3px 0 0 var(--selected-line);font-weight:650}
.staff-nav-item.staff-current svg{color:var(--link)}
.staff-collapsed .staff-nav-item{justify-content:center;padding:8px 4px}
.staff-candidates[hidden],.staff-catalog-host[hidden]{display:none}
.staff-catalog-host,.staff-view{min-width:0}
.staff-page-heading h1:focus,.staff-dialog h2:focus{outline:none}
.staff-page-heading h1:focus-visible{outline:3px solid var(--selected-line);outline-offset:4px;border-radius:4px}
.staff-directory[aria-busy="true"],.staff-editor[aria-busy="true"]{cursor:progress}
.staff-editor,.staff-version-history{display:grid;gap:16px;min-width:0}
.staff-editor-heading,.staff-editor-status{min-width:0;overflow-wrap:anywhere}
.staff-editor-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.staff-editor-areas,.staff-editor-preview,.staff-editor-publish,.staff-version-detail{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:clamp(12px,2.5vw,20px)}
.staff-editor-areas:empty,.staff-editor-questions:empty,.staff-editor-preview:empty,.staff-editor-publish:empty,.staff-editor [hidden]{display:none}
.staff-editor-questions{min-width:0}
.staff-editor pre,.staff-version-history pre{max-width:100%;overflow-x:auto}
.staff-editor textarea,.staff-editor input[type="text"],.staff-editor select{max-width:100%;min-width:0}
.staff-editor .actions,.staff-version-history .actions{flex-wrap:wrap}
.staff-editor button:disabled,.staff-version-history button:disabled{cursor:not-allowed}
.staff-version-history ul,.staff-version-history ol{list-style:none;padding:0;margin:0;display:grid;gap:8px}
@media(max-width:700px){.staff-nav-item{justify-content:center;padding:8px 4px}}

/* Compact Staff workspace */
body[data-portal="staff"]{font-size:14px;line-height:1.45}
body[data-portal="staff"] .btn{min-height:32px;padding:5px 11px;font-size:12px;border-radius:6px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body[data-portal="staff"] .actions{gap:7px}
body[data-portal="staff"] .status{font-size:11px;padding:3px 7px;border-radius:5px}
body[data-portal="staff"] .notice{font-size:13px;padding:8px 10px}
.staff-shell{grid-template-columns:176px minmax(0,1fr)}
.staff-shell.staff-collapsed{grid-template-columns:52px minmax(0,1fr)}
.staff-nav{padding:9px 7px}
.staff-nav .staff-collapse{width:32px;min-height:30px;margin-bottom:12px;padding:5px}
.staff-nav-item,.staff-nav-item.staff-current{min-height:32px;gap:8px;padding:5px 8px;font-size:12px;border-radius:6px;margin-bottom:2px}
.staff-nav-item svg{width:17px;height:17px}
.staff-collapsed .staff-nav-item{padding:5px 0}
.staff-content{padding:16px 20px;max-width:none}
.staff-content h1{font-size:23px;line-height:1.2;letter-spacing:-.025em;margin-bottom:8px}
.staff-content h2,.staff-dialog h2{font-size:16px;line-height:1.3}
.staff-content .eyebrow{font-size:10px;letter-spacing:.1em;margin-bottom:3px}
.staff-page-heading{margin-bottom:10px;gap:8px}
.staff-page-heading h1{margin-bottom:0}
.staff-page-heading .btn{min-height:32px;padding:5px 10px;font-size:12px}
.staff-toolbar,.staff-pagination{padding:8px 10px;gap:8px}
.staff-toolbar input{min-height:32px;font-size:13px}
.staff-table{font-size:13px}
.staff-table th{font-size:10px}
.staff-table th,.staff-table td{padding:6px 10px}
.staff-directory,.staff-detail[open]:not(:modal),.staff-editor-areas,.staff-editor-preview,.staff-editor-publish,.staff-version-detail,.dq-index,.dq-editor{border-radius:8px}
.staff-dialog{padding:16px}
.staff-dialog h2{margin-bottom:10px}
.staff-form{gap:9px}
.staff-field{gap:4px;font-size:12px}
.staff-field input,.staff-field select,.catalog-dialog textarea{min-height:32px;padding:5px 8px;font-size:13px;border-radius:6px}
.staff-editor,.staff-version-history,.staff-editor-body{gap:10px}
.staff-editor-status:empty{display:none}
.staff-editor-heading h1{margin:0 0 4px;overflow-wrap:anywhere}
.staff-editor-heading p{margin:0;font-size:12px}
.staff-editor .actions>small{font-size:11px}
.staff-editor-areas,.staff-editor-preview,.staff-editor-publish,.staff-version-detail{padding:12px}
.staff-editor-areas{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.staff-editor-areas .catalog-section-title{font-size:13px;margin:0;flex:0 0 auto}
.staff-editor-areas>p.muted{flex:1 1 320px;font-size:12px;margin:0;max-width:none}
.staff-editor-areas .catalog-area-row{flex:0 1 auto;padding:4px 7px;border:1px solid var(--line);border-radius:6px;gap:8px;max-width:100%;min-width:0}
.staff-editor-areas .catalog-area-row:has(.catalog-area-edit){flex:1 1 100%}
.staff-editor-areas .catalog-area-row strong{font-size:12px}
.staff-editor-areas .catalog-area-row small{font-size:10px}
.staff-editor-areas .catalog-area-row .btn{min-height:26px;font-size:11px;padding:3px 7px}
.staff-editor-areas .catalog-area-add{display:flex;flex-wrap:wrap;flex:1 1 230px;gap:6px;align-items:flex-end;margin:0;min-width:0}
.staff-editor-areas .catalog-area-add .staff-field{flex:1 1 120px;min-width:0}
.staff-editor-areas .catalog-area-add .btn{min-height:32px;flex:none}
.dq-grid{grid-template-columns:minmax(180px,235px) minmax(0,1fr);gap:10px}
.dq-index,.dq-editor{padding:11px}
.dq-form{gap:9px}
.dq-field{gap:3px;font-size:12px}
.dq-field :is(input,select,textarea),.dq-option textarea{font-size:13px;padding:6px 8px;border-radius:6px}
.dq-section+.dq-section{margin-top:12px}
.dq-select{padding:6px;gap:6px}
.dq-item{border-radius:6px}
.dq-switch{min-height:28px;font-size:12px;gap:6px}
.dq-switch input{width:16px;height:16px}
.dq-code-field,.dq-code-block{gap:6px}
.dq-code-block,.dq-options{padding:8px}
.dq-field textarea.dq-code-input,.dq-code-preview{font:15.2px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@container (max-width:620px){.dq-grid,.dq-row{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
  .staff-shell,.staff-shell.staff-collapsed{grid-template-columns:48px minmax(0,1fr)}
  .staff-nav{padding:8px 4px}
  .staff-nav-item,.staff-nav-item.staff-current{padding:5px 0;justify-content:center;min-height:36px}
  .staff-content{padding:12px 9px}
  .staff-content h1{font-size:20px}
  .staff-editor-areas{gap:6px}
  .staff-editor-areas .catalog-area-add{flex-basis:100%}
  body[data-portal="staff"] .btn{min-height:36px}
}

/* Versioned assignment chooser, compact backoffice. */
.staff-attempt-group,.staff-attempt-candidacy{display:grid;min-width:0;gap:4px;overflow-wrap:anywhere}
.staff-attempt-group{border-top:1px solid var(--line);padding-top:8px}
.staff-attempt-group h4,.staff-attempt-group p{margin:0}
.staff-attempt-group .staff-id{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.staff-attempt-candidacy+.staff-attempt-candidacy{margin-top:5px}
.staff-choices{min-width:0;border:1px solid var(--line);border-radius:7px;padding:8px;display:grid;gap:6px;margin:0}
.staff-choices legend{font-weight:650;font-size:12px;padding:0 4px}
.staff-choice{display:flex;align-items:flex-start;gap:8px;padding:6px;border:1px solid var(--line);border-radius:5px;min-width:0;overflow-wrap:anywhere;cursor:pointer;font-size:12px}
.staff-choice input{flex:none;margin:3px 0;accent-color:var(--link)}
.staff-choice span{min-width:0}.staff-choice .staff-id{display:block;color:var(--muted);font-size:10px}
.staff-choice:has(input:checked){background:var(--selected-bg);border-color:var(--selected-line)}
.staff-choice:has(input:disabled){opacity:.7;cursor:default}
.staff-choices p,.staff-recipient{margin:0;font-size:12px;overflow-wrap:anywhere}

/* Candidate current assignments: clear form/candidacy context without changing assessment controls. */
.candidate-assignment{min-width:0;gap:8px;overflow-wrap:anywhere;align-content:start}
.candidate-assignment h2,.candidate-assignment p{margin:0}
.candidate-assignment-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.8rem}
.candidate-assignment .btn{justify-self:start;margin-top:8px}
.candidate-assignment-context{font-size:.82rem;margin:0;overflow-wrap:anywhere}

.staff-history-host:empty{display:none}
.staff-history-host{min-width:0;max-width:100%;margin-top:4px}
.staff-history-host .btn{font-size:.76rem;padding:5px 8px;white-space:normal}
.staff-attempt-history ul{list-style:none;padding:0;margin:6px 0;display:grid;gap:6px}
.staff-history-item{border-top:1px solid var(--line);padding-top:6px;overflow-wrap:anywhere}
.staff-history-item .staff-id{font-size:10px}
.evaluations-table th:nth-child(5){min-width:160px}

.staff-result-host{margin-top:4px;min-width:0;max-width:100%}
.staff-result-host>.btn{font-size:.76rem;padding:5px 8px;white-space:normal}
.staff-result-dialog{width:min(900px,calc(100% - 24px));max-width:calc(100% - 24px);text-align:left;overflow-wrap:anywhere;white-space:normal}
.staff-result-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.staff-result-heading h2{margin:0}
.staff-result-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:5px 12px;font-size:.84rem;margin:10px 0}
.staff-result-meta dt{color:var(--muted)}
.staff-result-meta dd{margin:0;min-width:0}
.staff-result-areas{padding-left:20px;font-size:.84rem}
.staff-result-question{padding:10px 0;border-top:1px solid var(--line);min-width:0}
.staff-result-question .question-text{font-size:1rem;margin:4px 0 8px}
.staff-result-question .tag{display:inline-block;margin:4px 6px 0 0;font-size:.75rem;color:var(--muted)}
.staff-result-question .answer-text{white-space:pre-wrap;overflow-wrap:anywhere}
.staff-result-question .code-viewer{min-width:0;max-width:100%}

.staff-table.evaluations-table{table-layout:auto;min-width:940px}
.staff-table.evaluations-table th{white-space:nowrap;overflow-wrap:normal}
.staff-table.evaluations-table th:nth-last-child(-n+3){min-width:108px}
.staff-result-ids{font-size:.8rem;margin:6px 0 12px;color:var(--muted)}
.staff-result-ids summary{cursor:pointer;min-height:28px;padding:4px 0}

#staff-admin-menu{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}

/* Visual checkpoint: subtle corporate background, candidate surface, staff shell. */
:root{--bg-tint-a:#00cde214;--bg-tint-b:#2447c812;--bg-tint-c:#19255a0d}
:root[data-theme="dark"]{--bg-tint-a:#00cde212;--bg-tint-b:#2447c81f;--bg-tint-c:#00cde208}
body{background-image:radial-gradient(900px 480px at 8% -8%,var(--bg-tint-a),transparent 70%),radial-gradient(900px 520px at 100% 0,var(--bg-tint-b),transparent 70%),linear-gradient(180deg,var(--bg-tint-c),transparent 420px);background-repeat:no-repeat}
body[data-portal="candidate"] main.candidate-mounted{width:min(1120px,calc(100% - 2*clamp(8px,3vw,32px)));margin:clamp(12px,2.5vw,28px) auto;padding:clamp(16px,3.5vw,40px);background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);flex:0 0 auto;min-width:0}
body[data-portal="candidate"] main.candidate-mounted.candidate-wide{width:min(1320px,calc(100% - 2*clamp(8px,3vw,32px)))}
.candidate-group{display:grid;gap:14px;margin-bottom:28px}
.candidate-group>h2{display:flex;align-items:center;gap:10px;margin:0;font-size:1.2rem}
.candidate-group .candidate-assignments{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));align-items:start;gap:16px}
.candidate-assignment h3{font-size:1.25rem;line-height:1.25;margin:0;color:var(--heading)}
.candidate-assignment p{margin:0}
.candidate-group-pending .candidate-assignment{border-left:4px solid var(--selected-line)}
.candidate-group-completed>h2{color:var(--muted);font-size:1.05rem}
.candidate-group-completed .candidate-assignment{background:var(--canvas);box-shadow:none;padding:20px}
.candidate-group-completed .candidate-assignment h3{font-size:1.05rem}
.candidate-empty{margin-bottom:28px}
@media(max-width:700px){body[data-portal="candidate"] main.candidate-mounted{border-radius:14px}}

body[data-portal="staff"] main.staff-mounted{padding:clamp(8px,2vw,28px);justify-content:center;align-items:flex-start;min-width:0}
.staff-shell{max-width:1680px;margin-inline:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);align-items:stretch}
.staff-nav{background:transparent;padding:18px 12px;border-right:1px solid var(--line);border-radius:17px 0 0 17px}
.staff-content{max-width:none;padding:clamp(16px,2.5vw,32px)}
@media(max-width:700px){body[data-portal="staff"] main.staff-mounted{padding:6px}.staff-shell{border-radius:12px}.staff-nav{border-radius:11px 0 0 11px;padding:12px 6px}.staff-content{padding:12px 9px}}

/* Keep portal headers edge-aligned; bound list scrolling separately from pagination. */
.staff-directory>.staff-table-wrap{max-block-size:max(120px,calc(100dvh - 360px));overflow:auto}
.staff-directory>.staff-table-wrap:focus-visible{outline-offset:-2px}
.staff-directory>.staff-table-wrap thead th{position:sticky;top:0;z-index:1}
@media(max-width:700px){.staff-directory>.staff-table-wrap{max-block-size:max(120px,calc(100dvh - 420px))}}

/* T12.4: preserve form state while exposing a clear workflow and current context. */
.assignment-context,.assignment-summary,.assignment-existing{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;min-width:0;overflow-wrap:anywhere}
.assignment-context strong{font-size:.95rem}
.assignment-context .muted,.assignment-existing p{font-size:.8rem;margin:0}
.assignment-summary p{margin:0}
.assignment-progress{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:8px 0}
.assignment-progress li{flex:1 1 130px;padding:8px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:.78rem}
.assignment-progress li[aria-current="step"]{color:var(--text);border-color:var(--control-line);font-weight:650;background:var(--canvas)}
.assignment-trace{min-width:0;overflow-wrap:anywhere;font-size:.75rem;color:var(--muted)}
.assignment-trace summary{cursor:pointer}
.catalog-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.editor-general{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.editor-general>div{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.editor-general small{font-size:.75rem}
.editor-general strong{font-size:.86rem}
.editor-shortcuts{display:flex;flex-wrap:wrap;gap:6px}
.editor-shortcuts .btn{font-size:.8rem}
.staff-editor [tabindex="-1"]{scroll-margin-top:16px}


/* T12.5: shared visual language; status is always also visible in text. */
:root{--state-open-bg:#e5edf9;--state-open-fg:#19255a;--state-live-bg:#dff5f8;--state-live-fg:#145367;--state-done-bg:#e5f3ec;--state-done-fg:#20573a;--state-inactive-bg:#edf0f7;--state-inactive-fg:#455579;--state-cancel-bg:#fff0f2;--state-cancel-fg:#7a1c30}
:root[data-theme="dark"]{--state-open-bg:#1d2b55;--state-open-fg:#d9e3ff;--state-live-bg:#0f364a;--state-live-fg:#a9f3fa;--state-done-bg:#163b2d;--state-done-fg:#b7eed0;--state-inactive-bg:#202b48;--state-inactive-fg:#c4cce1;--state-cancel-bg:#3a1020;--state-cancel-fg:#ffd3db}
.status{line-height:1.35;border:1px solid transparent}
.status[data-status="pending"],.status[data-status="ACTIVE"]{background:var(--state-open-bg);color:var(--state-open-fg)}
.status[data-status="in_progress"]{background:var(--state-live-bg);color:var(--state-live-fg)}
.status[data-status="completed"],.status[data-status="COMPLETED"]{background:var(--state-done-bg);color:var(--state-done-fg)}
.status[data-status="ARCHIVED"],.status[data-status="DISABLED"],.status[data-status="superseded"],.status[data-status="DELETED"]{background:var(--state-inactive-bg);color:var(--state-inactive-fg)}
.status[data-status="cancelled"],.status[data-status="DISCARDED"]{background:var(--state-cancel-bg);color:var(--state-cancel-fg)}
.portal-loading{display:grid;gap:8px;max-width:680px;margin-inline:auto}
.portal-loading h1,.portal-loading p{margin:0}
.portal-loading-message{display:flex;align-items:center;gap:8px}
.portal-loading-message::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--trim)}
@media(hover:hover){.brand:hover span{color:var(--link)}.theme-switch:hover{border-color:var(--focus)}}
