:root {
  color-scheme: light;
  --forest-950: #071a12;
  --forest-900: #0d2b1e;
  --forest-800: #16432f;
  --forest-700: #225b40;
  --forest-100: #e9f1ec;
  --gold-600: #865f15;
  --gold-500: #c49a43;
  --gold-100: #f8f0df;
  --scarlet: #a72b38;
  --ink-900: #17231d;
  --ink-700: #415148;
  --ink-500: #617068;
  --canvas: #f1f4f2;
  --surface: #fff;
  --line: #d9e2dc;
  --line-soft: #e9eeeb;
  --success: #25734a;
  --warning: #986113;
  --danger: #a33a34;
  --blue: #2a6688;
  --shadow-sm: 0 5px 18px rgba(7, 26, 18, .055);
  --shadow-lg: 0 30px 90px rgba(3, 19, 11, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); color: var(--ink-900); font-family: Inter, "Segoe UI", Arial, sans-serif; }
body { min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; left: 16px; top: -60px; padding: 11px 15px; color: #fff; background: var(--forest-900); border-radius: 6px; }
.skip-link:focus { top: 12px; }

.topbar { position: sticky; z-index: 100; top: 0; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 28px; color: #fff; background: rgba(7, 26, 18, .98); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 25px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.brand { min-width: 0; display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid rgba(196,154,67,.75); border-radius: 50%; }
.brand-mark img { width: 47px; height: 47px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 17px/1.1 Georgia, serif; }
.brand small { margin-top: 3px; color: #aebfb5; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.top-actions > a { color: #cedbd3; font-size: 10px; font-weight: 750; text-decoration: none; }
.top-actions > a:hover { color: #fff; }
.identity { display: flex; align-items: center; gap: 12px; padding-left: 17px; border-left: 1px solid rgba(255,255,255,.14); }
.identity strong, .identity small { display: block; text-align: right; }
.identity strong { font-size: 11px; }
.identity small { margin-top: 2px; color: #93aa9d; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.identity button { padding: 7px 10px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.23); border-radius: 6px; font-size: 9px; font-weight: 800; }

.auth-shell { position: relative; min-height: calc(100vh - 74px); display: grid; place-items: center; overflow: hidden; padding: 48px 18px; background: linear-gradient(128deg, var(--forest-950), #154831); }
.auth-shell::before { content: ""; position: absolute; inset: 0; opacity: .34; background: radial-gradient(circle at 20% 18%, rgba(196,154,67,.55), transparent 25%), radial-gradient(circle at 82% 80%, rgba(51,130,86,.55), transparent 30%), linear-gradient(135deg, transparent 49%, rgba(255,255,255,.045) 49.2%, transparent 49.4%); background-size: auto, auto, 44px 44px; }
.auth-card { position: relative; width: min(540px, 100%); padding: 43px 46px 38px; background: rgba(255,255,255,.985); border: 1px solid rgba(255,255,255,.65); border-top: 4px solid var(--gold-500); border-radius: 15px; box-shadow: var(--shadow-lg); }
.eyebrow { display: block; color: var(--gold-600); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #ddc483; }
.auth-card h1 { margin: 9px 0 12px; color: var(--forest-900); font: 600 clamp(34px, 6vw, 45px)/1 Georgia, serif; letter-spacing: -.025em; }
.auth-card > p { margin: 0 0 25px; color: var(--ink-700); font-size: 12px; line-height: 1.72; }
#login-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; }
label > span { color: var(--ink-700); font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
input, select { width: 100%; height: 43px; padding: 0 12px; color: var(--ink-900); background: #fbfcfb; border: 1px solid #c7d3cb; border-radius: 7px; outline: none; }
input:focus, select:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(34,91,64,.13); }
.message { min-height: 15px; margin: 0; color: var(--danger); font-size: 9px; line-height: 1.5; }
.privacy-note { display: grid; gap: 5px; margin-top: 22px; padding: 15px 17px; color: #69501d; background: var(--gold-100); border: 1px solid #e7d5ae; border-left: 4px solid var(--gold-500); border-radius: 8px; }
.privacy-note strong { font-size: 10px; }
.privacy-note span { font-size: 9px; line-height: 1.55; }
.provisioning-note { display: grid; gap: 5px; margin: 0 0 20px; padding: 13px 15px; color: #69430f; background: #fff8e8; border: 1px solid #ecd8aa; border-left: 4px solid var(--gold-500); border-radius: 7px; }
.provisioning-note strong { font-size: 10px; }
.provisioning-note span { font-size: 9px; line-height: 1.55; }

.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 10px; font-weight: 850; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button.primary { color: #fff; background: var(--forest-700); border-color: var(--forest-700); }
.button.primary:hover { background: var(--forest-800); }
.button.secondary { color: var(--forest-800); background: #fff; border-color: #becbc3; }
.button.ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.28); }
.button.gold { color: #2e230b; background: #e0bf70; border-color: #e8cd8d; }
.button.small { min-height: 30px; padding: 6px 9px; font-size: 8px; }
.button.danger { color: var(--danger); background: #fff4f3; border-color: #eac9c6; }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, output:focus-visible, .icon-button:focus-visible, .table-scroll:focus-visible { outline: 3px solid #0879b3; outline-offset: 3px; }
.topbar :focus-visible, .cohort-rail :focus-visible, .cohort-hero :focus-visible { outline-color: #f3cf70; }

.workspace { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.cohort-rail { position: sticky; top: 74px; height: calc(100vh - 74px); display: flex; flex-direction: column; overflow-y: auto; padding: 25px 17px 18px; color: #fff; background: var(--forest-950); border-right: 1px solid rgba(255,255,255,.06); }
.rail-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rail-heading h2, .panel-heading h2 { margin: 5px 0 0; font: 600 23px/1.15 Georgia, serif; }
.rail-heading h2 { color: #fff; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 50%; font-size: 20px; }
.cohort-list { display: grid; gap: 7px; margin-top: 19px; }
.cohort-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 12px; color: #c8d6ce; background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; }
.cohort-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.cohort-item.active { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(196,154,67,.3); box-shadow: inset 3px 0 var(--gold-500); }
.cohort-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cohort-item small { color: #8fa79a; font-size: 8px; }
.cohort-item .cohort-number { grid-row: 1 / 3; grid-column: 2; align-self: center; min-width: 24px; padding: 3px 6px; color: #dbc584; background: rgba(196,154,67,.12); border-radius: 999px; font-size: 8px; font-weight: 850; text-align: center; }
.cohort-empty { padding: 22px 11px; color: #8fa79a; font-size: 9px; line-height: 1.55; text-align: center; }
.rail-boundary { display: grid; gap: 5px; margin-top: auto; padding: 14px; color: #acbeb3; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-top: 2px solid var(--gold-500); border-radius: 8px; }
.rail-boundary strong { color: #ddc37f; font-size: 9px; }
.rail-boundary span { font-size: 8px; line-height: 1.55; }

.workspace-main { min-width: 0; }
.empty-workspace { min-height: calc(100vh - 74px); display: grid; place-content: center; justify-items: center; padding: 40px; color: var(--ink-500); text-align: center; }
.empty-icon { width: 74px; height: 74px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border: 1px solid #d3e0d8; border-radius: 50%; font: 700 14px Georgia, serif; }
.empty-workspace h1 { margin: 18px 0 7px; color: var(--forest-900); font: 600 34px Georgia, serif; }
.empty-workspace p { margin: 0; font-size: 11px; }
.cohort-hero { min-height: 220px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 42px max(28px, calc((100vw - 1500px) / 2)) 37px; color: #fff; background: linear-gradient(118deg, var(--forest-900), #1a5238); }
.cohort-hero h1 { margin: 7px 0 6px; font: 600 clamp(38px, 5vw, 58px)/1 Georgia, serif; }
.cohort-hero p { margin: 0; color: #b7c9be; font-size: 12px; }
.hero-actions { display: flex; gap: 9px; }
.summary-grid, .action-center, .content-grid, .roster-panel { width: min(1460px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: -35px; position: relative; z-index: 2; }
.summary-grid article { min-height: 128px; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: 9px; box-shadow: var(--shadow-sm); }
.summary-grid span, .summary-grid small { display: block; color: var(--ink-500); font-size: 8px; }
.summary-grid span { font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.summary-grid strong { display: block; margin: 13px 0 7px; color: var(--forest-900); font: 600 32px Georgia, serif; }
.workspace-main[aria-busy="true"] { cursor: progress; }
.workspace-main[aria-busy="true"] #cohort-workspace { opacity: .68; transition: opacity .15s; }
.action-center { margin-top: 15px; border-top: 3px solid var(--forest-700); }
.action-center-count { flex: 0 0 auto; padding: 7px 10px; color: var(--forest-800); background: var(--forest-100); border: 1px solid #d3e0d8; border-radius: 999px; font-size: .75rem; font-weight: 850; }
.action-center-list { display: grid; gap: 8px; margin-top: 17px; }
.action-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; background: #f7f9f8; border: 1px solid var(--line-soft); border-left: 4px solid var(--forest-700); border-radius: 8px; }
.action-item.critical { background: #fff8f6; border-left-color: var(--danger); }
.action-item.warning { background: #fffbf1; border-left-color: var(--gold-600); }
.action-rank { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--forest-700); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.action-item.critical .action-rank { background: var(--danger); }
.action-item.warning .action-rank { color: #2e230b; background: #e0bf70; }
.action-item > div:nth-child(2) > span { color: var(--gold-600); font-size: .75rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.action-item h3 { margin: 3px 0; color: var(--forest-900); font: 600 1.05rem/1.2 Georgia, serif; }
.action-item p { margin: 0; color: var(--ink-700); font-size: .875rem; line-height: 1.45; }
.action-center-empty { display: grid; gap: 5px; padding: 19px; color: var(--ink-700); background: #f5f8f6; border: 1px solid var(--line-soft); border-radius: 8px; }
.action-center-empty strong { color: var(--forest-800); font: 600 1.05rem Georgia, serif; }
.action-center-empty span, .action-center-more { font-size: .875rem; line-height: 1.5; }
.action-center-more { padding: 10px 14px; color: var(--ink-700); text-align: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 15px; margin-top: 15px; }
.panel { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.panel-heading h2 { color: var(--forest-900); }
.panel-heading p { margin: 5px 0 0; color: var(--ink-500); font-size: 9px; }
.assignment-form { display: grid; grid-template-columns: minmax(220px, 1fr) 145px auto auto; gap: 8px; align-items: end; margin-top: 18px; padding: 14px; background: #f5f8f6; border: 1px solid var(--line-soft); border-radius: 8px; }
.assignment-form input, .assignment-form select { height: 38px; font-size: 9px; }
.required-check { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 6px; }
.required-check input { width: 15px; height: 15px; accent-color: var(--forest-700); }
.required-check span { font-size: 8px; white-space: nowrap; }
.assignment-list, .candidate-list { display: grid; gap: 0; margin-top: 14px; }
.assignment-row, .candidate-row { display: grid; align-items: center; gap: 11px; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
.assignment-row { grid-template-columns: 32px minmax(0,1fr) auto auto; }
.candidate-row { grid-template-columns: 32px minmax(0,1fr); }
.row-icon, .candidate-initials { width: 32px; height: 32px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 7px; font-size: 8px; font-weight: 900; }
.assignment-row strong, .candidate-row strong { display: block; color: var(--ink-900); font-size: 10px; }
.assignment-row small, .candidate-row small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 8px; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.candidate-row > .row-actions { grid-column: 2; justify-content: flex-start; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; color: var(--success); background: #edf6f0; border-radius: 5px; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.status-pill.pending { color: var(--warning); background: #fff6e3; }
.status-pill.disabled, .status-pill.archived { color: var(--ink-500); background: #eef1ef; }
.status-key { color: var(--ink-500); font-size: 8px; }
.list-empty { padding: 28px 10px; color: var(--ink-500); font-size: 9px; line-height: 1.6; text-align: center; }
.roster-panel { margin-top: 15px; margin-bottom: 55px; }
.roster-tools { width: min(520px, 52vw); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, .8fr); gap: 8px; }
.search-field { width: 100%; }
.search-field input, .roster-filter-field select { width: 100%; height: 38px; font-size: 9px; }
.table-scroll { margin-top: 16px; overflow-x: auto; }
.table-scroll:focus-visible { border-radius: 6px; }
table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 9px; }
th { padding: 10px 9px; color: var(--ink-500); border-bottom: 1px solid var(--line); font-size: 8px; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
td { padding: 13px 9px; color: var(--ink-700); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td strong { display: block; color: var(--ink-900); font-size: 9px; }
td small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 8px; }
.progress-cell { min-width: 140px; }
.progress-cell progress { width: 100%; height: 7px; overflow: hidden; appearance: none; }
.progress-cell progress::-webkit-progress-bar { background: #e8eeea; border-radius: 999px; }
.progress-cell progress::-webkit-progress-value { background: linear-gradient(90deg, var(--forest-700), #4a9870); border-radius: 999px; }
.progress-cell progress::-moz-progress-bar { background: linear-gradient(90deg, var(--forest-700), #4a9870); border-radius: 999px; }
.progress-cell small { margin-top: 5px; }
.assessment-pass { color: var(--success); font-weight: 850; }
.assessment-attention { color: var(--warning); font-weight: 850; }
.version-warning { color: var(--danger); font-size: 7px; font-weight: 800; }

dialog { width: min(560px, calc(100% - 28px)); padding: 0; color: var(--ink-900); background: #fff; border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(4,18,11,.72); backdrop-filter: blur(2px); }
dialog form { display: grid; gap: 15px; padding: 0 24px 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 -24px; padding: 23px 24px 17px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 5px 0 0; color: var(--forest-900); font: 600 27px Georgia, serif; }
.dialog-heading button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-500); background: #f4f7f5; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; line-height: 1; }
dialog label > input { height: 42px; }
.read-only-summary { display: grid; gap: 4px; padding: 14px; color: var(--ink-700); background: #f5f8f6; border: 1px solid var(--line-soft); border-radius: 8px; }
.read-only-summary strong { color: var(--forest-900); font: 600 1.1rem Georgia, serif; }
.read-only-summary span { font-size: .75rem; }
.edit-required { justify-content: flex-start; padding: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.field-note { margin: -5px 0 0; color: var(--ink-500); font-size: 8px; line-height: 1.6; }
.button.danger { color: #fff; background: #8f1d2c; border-color: #8f1d2c; }
.button.danger:hover:not(:disabled), .button.danger:focus-visible:not(:disabled) { background: #741421; border-color: #741421; }
.destructive-dialog { width: min(620px, calc(100% - 28px)); }
.destructive-dialog .dialog-heading { border-top: 4px solid var(--danger); }
.danger-eyebrow { color: var(--danger); }
.destructive-dialog > form > p { margin: 0; color: var(--ink-700); font-size: .875rem; line-height: 1.65; }
.destructive-impact-list { display: grid; gap: 8px; margin: 0; padding: 14px 16px 14px 34px; color: #63202a; background: #fff7f7; border: 1px solid #edc7cd; border-radius: 8px; font-size: .875rem; line-height: 1.5; }
.destructive-dialog input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.code-dialog { padding: 0 24px 25px; text-align: center; }
.code-dialog .dialog-heading { text-align: left; }
.code-dialog > p { margin: 20px 0 14px; color: var(--ink-700); font-size: 10px; line-height: 1.6; }
.code-dialog output { display: block; padding: 18px 10px; color: var(--forest-900); background: #f5f8f6; border: 1px dashed #b9cbbf; border-radius: 8px; font: 700 clamp(19px, 5vw, 27px)/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.code-actions { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.code-dialog > small { display: block; margin-top: 12px; color: var(--ink-500); font-size: 8px; }
.dossier-dialog { width: min(900px, calc(100% - 28px)); max-height: min(880px, calc(100vh - 28px)); grid-template-rows: auto minmax(0, 1fr) auto; }
.dossier-dialog[open] { display: grid; }
.dossier-dialog .dialog-heading { margin: 0; }
.dossier-body { min-height: 0; display: grid; gap: 18px; overflow-y: auto; padding: 22px 24px 4px; }
.dossier-identity { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dossier-identity > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dossier-initials { width: 46px; height: 46px; flex: 0 0 46px; font-size: .75rem; }
.dossier-identity strong, .dossier-identity small { display: block; }
.dossier-identity strong { color: var(--forest-900); font: 600 1.35rem/1.15 Georgia, serif; }
.dossier-identity small { margin-top: 4px; color: var(--ink-500); font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.dossier-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.dossier-metrics article { min-width: 0; padding: 14px; background: #f5f8f6; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: 8px; }
.dossier-metrics span, .dossier-metrics small { display: block; color: var(--ink-500); font-size: .75rem; }
.dossier-metrics span { font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.dossier-metrics strong { display: block; margin: 10px 0 5px; color: var(--forest-900); font: 600 1.65rem/1 Georgia, serif; }
.dossier-next { padding: 18px 20px; color: #fff; background: linear-gradient(120deg, var(--forest-900), #174831); border-left: 4px solid var(--gold-500); border-radius: 9px; }
.dossier-next .eyebrow { color: #e1c77f; }
.dossier-next h3 { margin: 7px 0; font: 600 1.4rem/1.15 Georgia, serif; }
.dossier-next p { margin: 0; color: #dce8e1; font-size: .875rem; line-height: 1.6; }
.dossier-assignments > div:first-child h3 { margin: 5px 0 0; color: var(--forest-900); font: 600 1.35rem/1.15 Georgia, serif; }
#dossier-assignment-list { display: grid; gap: 9px; margin-top: 12px; }
.dossier-assignment { padding: 15px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--forest-700); border-radius: 8px; }
.dossier-assignment.overdue { border-left-color: var(--danger); }
.dossier-assignment header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dossier-assignment header > div > span { color: var(--gold-600); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.dossier-assignment h4 { margin: 4px 0 0; color: var(--forest-900); font: 600 1.05rem/1.25 Georgia, serif; }
.dossier-assignment-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 10px; color: var(--ink-500); font-size: .75rem; }
.dossier-assignment p { margin: 10px 0; color: var(--ink-700); font-size: .875rem; line-height: 1.5; }
.dossier-assignment progress { width: 100%; height: 8px; overflow: hidden; appearance: none; }
.dossier-assignment progress::-webkit-progress-bar { background: #e8eeea; border-radius: 999px; }
.dossier-assignment progress::-webkit-progress-value { background: linear-gradient(90deg, var(--forest-700), #4a9870); border-radius: 999px; }
.dossier-assignment progress::-moz-progress-bar { background: linear-gradient(90deg, var(--forest-700), #4a9870); border-radius: 999px; }
.dossier-assignment .version-warning { display: block; margin-top: 9px; }
.dossier-attempts > div:first-child h3 { margin: 5px 0 0; color: var(--forest-900); font: 600 1.35rem/1.15 Georgia, serif; }
.dossier-attempts > div:first-child p { margin: 6px 0 0; color: var(--ink-500); font-size: .8rem; line-height: 1.5; }
#dossier-attempt-list { display: grid; gap: 0; margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.attempt-timeline-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 14px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.attempt-timeline-item:last-child { border-bottom: 0; }
.attempt-timeline-marker { width: 9px; height: 9px; background: var(--warning); border-radius: 50%; }
.attempt-timeline-marker.passed { background: var(--success); }
.attempt-timeline-item strong, .attempt-timeline-item small { display: block; }
.attempt-timeline-item strong { color: var(--ink-900); font-size: .875rem; }
.attempt-timeline-item small { margin-top: 4px; color: var(--ink-500); font-size: .75rem; }
.attempt-score { color: var(--warning); font-size: .8rem; font-weight: 850; white-space: nowrap; }
.attempt-score.passed { color: var(--success); }
.timeline-state { display: grid; gap: 8px; padding: 16px; color: var(--ink-700); background: #f7f9f8; font-size: .875rem; line-height: 1.5; }
.timeline-state.error { color: var(--danger); background: #fff8f6; }
.timeline-state .button { justify-self: start; }
.dossier-boundary { margin: 0; }
.dossier-actions { margin: 0; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 1200; right: 22px; bottom: 22px; max-width: 370px; padding: 13px 16px; color: #fff; background: var(--forest-900); border-left: 4px solid var(--gold-500); border-radius: 7px; box-shadow: 0 12px 34px rgba(0,0,0,.22); font-size: 10px; font-weight: 750; }

/* Operational accessibility floor: recruiter evidence must remain legible at
   normal and high zoom, including dense roster and governance metadata. */
.top-actions > a, .identity strong, .identity button, label > span, .message, .privacy-note strong,
.privacy-note span, .provisioning-note strong, .provisioning-note span, .button, .cohort-item strong,
.cohort-empty, .rail-boundary strong, .empty-workspace p, .panel-heading p, .assignment-form input,
.assignment-form select, .assignment-row strong, .candidate-row strong, .list-empty, .search-field input,
table, td strong, .code-dialog > p, .toast { font-size: .875rem !important; }
.brand small, .identity small, .eyebrow, .cohort-item small, .cohort-item .cohort-number,
.rail-boundary span, .summary-grid span, .summary-grid small, .required-check span, .row-icon,
.candidate-initials, .assignment-row small, .candidate-row small, .status-pill, .status-key, th,
td small, .version-warning, .field-note, .code-dialog > small { font-size: .75rem !important; }
.button, .icon-button, .identity button, input, select, .dialog-heading button, .table-scroll { min-height: 44px; }

@media (max-width: 1120px) {
  .content-grid { grid-template-columns: 1fr; }
  .assignment-form { grid-template-columns: 1fr 145px auto; }
  .assignment-form .button { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 220px minmax(0,1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .top-actions > a { display: none; }
  .top-actions > a:first-child { display: inline-flex; font-size: 9px; }
  .cohort-hero { align-items: flex-start; flex-direction: column; }
  .action-item { grid-template-columns: 32px minmax(0, 1fr); }
  .action-item > .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .topbar { min-height: 66px; padding: 8px 12px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-mark img { width: 41px; height: 41px; }
  .brand strong { font-size: 14px; }
  .identity span { display: none; }
  .auth-card { padding: 31px 22px 28px; }
  .workspace { display: block; }
  .cohort-rail { position: static; width: 100%; height: auto; max-height: 285px; }
  .cohort-list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .rail-boundary { display: none; }
  .cohort-hero { min-height: 230px; padding: 34px 18px 55px; }
  .cohort-hero h1 { font-size: 40px; }
  .summary-grid, .action-center, .content-grid, .roster-panel { width: calc(100% - 24px); }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid article { min-height: 106px; }
  .panel { padding: 17px; }
  .assignment-form { grid-template-columns: 1fr; }
  .assignment-form .button { grid-column: auto; }
  .panel-heading { display: block; }
  .roster-tools { width: 100%; grid-template-columns: 1fr; margin-top: 12px; }
  .search-field { width: 100%; }
  .candidate-row { grid-template-columns: 32px minmax(0, 1fr); }
  .candidate-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dossier-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-heading { padding-left: 18px; padding-right: 18px; }
  dialog form { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 360px) {
  .topbar { position: static; align-items: stretch; flex-wrap: wrap; gap: 8px; padding: 8px; }
  .brand { width: 100%; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-mark img { width: 36px; height: 36px; }
  .brand strong { font-size: .9rem; overflow-wrap: anywhere; }
  .top-actions { width: 100%; flex-wrap: wrap; gap: 6px; }
  .top-actions > a:first-child, .identity, .identity button { width: 100%; justify-content: center; text-align: center; }
  .auth-shell { min-height: auto; padding: 18px 6px; }
  .auth-card { padding: 24px 12px; }
  .auth-card h1, .cohort-hero h1 { font-size: 2rem; overflow-wrap: anywhere; }
  .cohort-rail { padding-inline: 8px; }
  .cohort-list { grid-template-columns: minmax(0,1fr); }
  .cohort-hero { padding-inline: 8px; }
  .summary-grid, .action-center, .content-grid, .roster-panel { width: calc(100% - 12px); }
  .panel { padding-inline: 10px; }
  .hero-actions, .code-actions, .dialog-actions { flex-direction: column; width: 100%; }
  .hero-actions > *, .code-actions > *, .dialog-actions > * { width: 100%; }
  dialog { width: calc(100% - 8px); }
  dialog form, .code-dialog { padding-inline: 10px; }
  .dossier-body { padding-inline: 10px; }
  .dossier-metrics { grid-template-columns: minmax(0, 1fr); }
  .dossier-identity { align-items: flex-start; flex-direction: column; }
  .dossier-assignment header { align-items: flex-start; flex-direction: column; }
  .attempt-timeline-item { grid-template-columns: 12px minmax(0, 1fr); }
  .attempt-score { grid-column: 2; }
  .dossier-actions { padding-inline: 10px; }
  .dialog-heading { margin-inline: -10px; padding-inline: 10px; }
  .code-dialog output { padding-inline: 5px; overflow-wrap: anywhere; letter-spacing: .035em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
