:root {
  --ink: #1d2939;
  --muted: #667085;
  --line: #d0d5dd;
  --soft: #f2f4f7;
  --paper: #ffffff;
  --navy: #153858;
  --blue: #246aa3;
  --teal: #19766f;
  --green-soft: #eaf6ef;
  --yellow-soft: #fff6d8;
  --red: #b42318;
  --red-soft: #feeceb;
  --radius: 6px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f7f8fa;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f7f8fa; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.topbar { height: 68px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 34px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 210px; }
.brand:hover { text-decoration: none; }
.brand span:last-child { display: grid; }
.brand strong { letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--teal); color: white; font-weight: 800; border-radius: 4px; }
.brand-mark.large { width: 48px; height: 48px; font-size: 22px; }
.main-nav { display: flex; align-self: stretch; gap: 8px; }
.main-nav a { color: #475467; display: flex; align-items: center; padding: 0 15px; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; }
.main-nav a:hover { text-decoration: none; background: var(--soft); }
.main-nav a.active { color: var(--navy); border-color: var(--teal); }
.nav-validation { gap: 7px; }
.nav-alert { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 10px; background: #d92d20; color: white; font-size: 10px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #feeceb; }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-menu form { margin: 0; }
.user-menu > a { display: grid; color: var(--ink); font-weight: 700; }
.user-menu > a small { color: var(--muted); font-size: 10px; font-weight: 600; }

.page-shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-heading h1, .profile-main h1 { margin: 2px 0 6px; font-size: 30px; line-height: 1.18; letter-spacing: 0; }
.page-heading p, .profile-main p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--teal) !important; text-transform: uppercase; font-size: 12px; font-weight: 800; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions.vertical { flex-direction: column; align-items: stretch; min-width: 165px; }
.actions form { margin: 0; }

.button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-height: 38px; padding: 8px 14px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; cursor: pointer; }
.button:hover { text-decoration: none; border-color: #98a2b3; }
.button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.button.secondary { background: var(--teal); border-color: var(--teal); color: white; }
.button.danger { background: var(--red); border-color: var(--red); color: white; }
.button.danger-outline { background: var(--paper); border-color: #f04438; color: var(--red); }
.button.ghost { background: transparent; }
.button.small { min-height: 30px; padding: 5px 10px; }
.button.full { width: 100%; }

.metrics { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); border: 1px solid var(--line); background: var(--paper); margin-bottom: 28px; }
.metrics article { padding: 18px; border-right: 1px solid var(--line); min-height: 92px; }
.metrics article:last-child { border-right: 0; }
.metrics span { display: block; color: var(--muted); font-size: 12px; min-height: 30px; }
.metrics strong { display: block; font-size: 25px; margin-top: 6px; }
.metrics article.warning { background: var(--yellow-soft); }
.metrics article.danger { background: var(--red-soft); color: var(--red); }

.section-band, .document-section { margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: #eaf0f4; color: #344054; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid #eaecf0; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fafb; }
td small { display: block; color: var(--muted); margin-top: 4px; max-width: 520px; word-break: break-word; }
.align-right { text-align: right; }
.code { display: inline-block; background: #e8f1f8; color: var(--navy); border: 1px solid #c7dbe9; border-radius: 3px; padding: 3px 6px; font-family: Consolas, monospace; font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

.filter-bar { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) minmax(150px, 1fr) auto auto; gap: 12px; align-items: end; background: var(--paper); border: 1px solid var(--line); padding: 16px; margin-bottom: 18px; }
label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid #98a2b3; background: white; border-radius: 4px; padding: 8px 10px; color: var(--ink); }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(36, 106, 163, .16); border-color: var(--blue); }

.profile-header { display: grid; grid-template-columns: 132px 1fr auto; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.profile-photo { width: 132px; height: 154px; background: #eaf0f4; display: grid; place-items: center; overflow: hidden; border: 1px solid #cbd5df; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo span { font-size: 45px; color: var(--navy); font-weight: 800; }
.profile-main .profession { color: var(--ink); font-size: 17px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.experience-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.experience-metrics article { min-height: 104px; padding: 16px 18px; border-right: 1px solid var(--line); }
.experience-metrics article:last-child { border-right: 0; }
.experience-metrics span { display: block; color: var(--muted); font-size: 12px; }
.experience-metrics strong { display: block; margin-top: 7px; color: var(--navy); font-size: 22px; }
.experience-metrics small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.personal-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.personal-grid div { padding: 14px; border-right: 1px solid var(--line); }
.personal-grid div:last-child { border-right: 0; }
.personal-grid span { display: block; color: var(--muted); font-size: 11px; }
.personal-grid strong { display: block; font-size: 13px; margin-top: 4px; word-break: break-word; }
.row-actions { display: flex; gap: 10px; white-space: nowrap; }
.status { display: inline-block; padding: 4px 7px; border-radius: 3px; font-weight: 700; font-size: 11px; }
.status.available { color: #067647; background: var(--green-soft); }
.status.pending { color: #854a0e; background: var(--yellow-soft); }
.status.missing { color: var(--red); background: var(--red-soft); }
.review-status { display: inline-block; max-width: 180px; padding: 4px 7px; border: 1px solid transparent; border-radius: 3px; font-size: 11px; font-weight: 800; line-height: 1.3; }
.review-status.pending_validation, .review-banner.pending_validation { color: #854a0e; background: var(--yellow-soft); border-color: #e9c56d; }
.review-status.validated, .review-banner.validated { color: #175cd3; background: #eff8ff; border-color: #b2ddff; }
.review-status.approved, .review-banner.approved { color: #067647; background: var(--green-soft); border-color: #a6d8b8; }
.review-status.changes_requested, .review-banner.changes_requested { color: var(--red); background: var(--red-soft); border-color: #f6aaa5; }
.review-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid; margin-bottom: 16px; font-size: 13px; }
.review-banner a { margin-left: auto; font-weight: 700; }
.review-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); margin: -14px 0 28px; }
.review-summary a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 12px 18px; color: var(--ink); border-right: 1px solid var(--line); }
.review-summary a:last-child { border-right: 0; }
.review-summary strong { color: var(--navy); font-size: 20px; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.review-filters a { padding: 8px 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; color: var(--ink); font-size: 12px; font-weight: 700; }
.review-filters a.active { border-color: var(--teal); background: #edf7f5; color: var(--teal); }
.review-filters a.has-alert:not(.active) { border-color: #f6aaa5; color: var(--red); }
.review-filters a.has-alert strong { color: var(--red); }
.review-filters strong { margin-left: 5px; }
.validation-cvs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.validation-cv-card { display: grid; align-content: start; gap: 7px; min-height: 128px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.validation-cv-card:hover { border-color: #88bdb7; text-decoration: none; }
.validation-cv-card.selected { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f1f8f7; }
.validation-cv-card .code { width: fit-content; }
.validation-cv-card > strong { font-size: 13px; line-height: 1.3; }
.validation-cv-card > small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.validation-cv-card.all-cvs { background: #edf5fa; }
.cv-progress { height: 6px; overflow: hidden; border-radius: 3px; background: #e4e7ec; }
.cv-progress span { display: block; height: 100%; background: var(--teal); }
.validation-list-heading { margin-top: 0; }
.review-table td:first-child a { display: grid; gap: 6px; color: var(--ink); min-width: 160px; }
.review-table td:first-child .code { width: fit-content; }
.review-note { color: var(--red) !important; font-weight: 700; }
.review-actions { display: grid; gap: 7px; min-width: 250px; }
.review-actions form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.review-actions input { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.inline-role { display: flex; align-items: center; gap: 7px; min-width: 250px; }
.inline-role select { min-height: 32px; padding: 5px 8px; }
.permission-check { display: flex; grid-template-columns: 18px 1fr; align-items: center; gap: 8px; }
.permission-check input { width: 17px; min-height: 17px; margin: 0; }
.permission-check.compact { white-space: nowrap; font-size: 11px; }
.deletion-status { display: inline-block; padding: 4px 7px; border-radius: 3px; font-size: 11px; font-weight: 800; }
.deletion-status.delete_requested { color: #854a0e; background: var(--yellow-soft); }
.deletion-status.delete_validated { color: var(--red); background: var(--red-soft); }
.deletion-panel { margin: 16px; padding: 13px; border: 1px solid var(--line); background: var(--soft); font-size: 12px; }
.deletion-panel.delete_requested, .deletion-panel.delete_validated { border-color: #e9c56d; background: var(--yellow-soft); }
.deletion-panel summary { color: var(--red); cursor: pointer; font-weight: 800; }
.deletion-panel form { display: grid; gap: 9px; margin-top: 10px; }
.deletion-panel p { margin: 7px 0; }
.deletion-panel .row-actions { margin-top: 10px; }
.deletion-panel .row-actions form { margin: 0; }
.delete-request-link { color: var(--red); font-weight: 700; }
.pdf-review-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(410px, .85fr); gap: 16px; height: calc(100vh - 175px); min-height: 680px; }
.pdf-pane { min-width: 0; border: 1px solid var(--line); background: #444; }
.pdf-pane iframe { width: 100%; height: 100%; border: 0; background: white; }
.review-data-pane { min-width: 0; overflow-y: auto; border: 1px solid var(--line); background: var(--paper); }
.review-data-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.review-data-head h2 { margin: 10px 0 4px; font-size: 18px; }
.review-data-head p { margin: 0; color: var(--muted); font-size: 11px; word-break: break-word; }
.review-data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.review-data-list div { min-height: 66px; padding: 11px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-data-list div:nth-child(2n) { border-right: 0; }
.review-data-list div.wide { grid-column: span 2; border-right: 0; }
.review-data-list dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.review-data-list dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.review-trace { display: grid; gap: 5px; padding: 13px 15px; background: var(--soft); color: var(--muted); font-size: 11px; }
.review-trace strong { color: var(--ink); }
.review-decision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.review-decision form { display: grid; gap: 10px; align-content: start; }
.review-guidance { margin: 16px; padding: 13px; border: 1px solid #e9c56d; background: var(--yellow-soft); color: #6f4b13; font-size: 13px; line-height: 1.45; }

.editor-form { background: var(--paper); border: 1px solid var(--line); }
.editor-form.narrow { max-width: 620px; }
fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px; }
legend { padding: 22px 22px 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.fieldset-help { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px; }
.format-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.format-option { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 11px; min-height: 84px; padding: 14px; border: 1px solid var(--line); background: white; border-radius: var(--radius); cursor: pointer; }
.format-option:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f1f8f7; }
.format-option input { width: 17px; min-height: 17px; margin: 2px 0 0; }
.format-option span { display: grid; gap: 5px; }
.format-option strong { font-size: 14px; color: var(--ink); }
.format-option small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.format-option.unavailable { cursor: not-allowed; background: var(--soft); opacity: .72; }
.format-fields[hidden] { display: none; }
.export-data-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: white; }
.export-data-summary div { min-height: 74px; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.export-data-summary div:nth-child(4n) { border-right: 0; }
.export-data-summary div:nth-last-child(-n + 4) { border-bottom: 0; }
.export-data-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.export-data-summary strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.45; word-break: break-word; }
.missing-data-entry { max-width: 520px; margin-top: 16px; padding: 14px; border: 1px solid #e4b553; background: var(--yellow-soft); }
.experience-checks { display: grid; gap: 8px; max-height: 390px; overflow-y: auto; border: 1px solid var(--line); padding: 8px; background: var(--soft); }
.check-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; background: white; border: 1px solid #e1e5ea; padding: 10px 12px; cursor: pointer; }
.check-row input { width: 16px; min-height: 16px; margin: 2px 0 0; }
.check-row span { display: grid; gap: 4px; }
.check-row strong { font-size: 13px; }
.check-row small { color: var(--muted); font-size: 11px; font-weight: 400; }
.empty-inline { margin: 8px; color: var(--muted); font-size: 13px; }
.repeat-list { display: grid; gap: 10px; margin-bottom: 12px; }
.repeat-row { display: flex; align-items: end; gap: 10px; }
.repeat-row label { min-width: 180px; }
.repeat-grow { flex: 1; }
.college-row label:first-child { flex: 0 0 220px; }
.remove-row:disabled { opacity: .4; cursor: not-allowed; }
.add-row { color: var(--teal); border-color: #88bdb7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag-list > span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #a7c7d9; background: #edf5fa; color: var(--navy); padding: 5px 8px; border-radius: 3px; font-size: 13px; font-weight: 700; }
.tag-list small { color: var(--teal); font-size: 10px; text-transform: uppercase; }
.warning-panel { max-width: 780px; border: 1px solid #f1c56f; background: var(--yellow-soft); padding: 16px; margin-bottom: 18px; }
.warning-panel p { color: #6f4b13; margin: 6px 0 0; }
.rule-help { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #edf5fa; color: var(--navy); padding: 12px 22px; font-size: 13px; font-weight: 700; }
.rule-help small { display: block; margin-top: 5px; color: #475467; font-size: 11px; font-weight: 600; }
.document-field.is-required input, .document-field.is-required select, .document-field.is-required textarea { border-left: 4px solid var(--teal); }
.field-hidden { display: none !important; }
.duration-preview, .current-file { border: 1px solid var(--line); background: var(--soft); padding: 10px 12px; min-height: 58px; }
.duration-preview span, .current-file span { display: block; color: var(--muted); font-size: 11px; }
.duration-preview strong, .current-file strong { display: block; margin-top: 5px; font-size: 13px; word-break: break-word; }
.document-confirm-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
.document-confirm-dialog::backdrop { background: rgba(16, 24, 40, .62); }
.confirm-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.confirm-dialog-head h2 { margin: 3px 0 0; font-size: 21px; }
.dialog-close { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: 23px; cursor: pointer; }
.document-confirm-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.document-confirm-summary div { min-height: 70px; padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.document-confirm-summary div:nth-child(2n) { border-right: 0; }
.document-confirm-summary div.wide { grid-column: span 2; border-right: 0; }
.document-confirm-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.document-confirm-summary dd { margin: 6px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; word-break: break-word; }
.coded-file-preview { color: var(--navy); font-family: Consolas, monospace; }
.confirm-note { margin: 14px 18px 0; padding: 10px 12px; border: 1px solid #e9c56d; background: var(--yellow-soft); color: #6f4b13; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px; }

.profession-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 1px solid var(--line); background: var(--paper); margin-bottom: 20px; }
.profession-summary div { display: flex; justify-content: space-between; gap: 15px; padding: 14px; border-right: 1px solid var(--line); }
.profession-summary span { color: var(--muted); font-size: 13px; }

.login-layout { min-height: calc(100vh - 130px); display: grid; place-items: center; }
.login-panel { width: min(430px, 100%); background: var(--paper); border: 1px solid var(--line); padding: 30px; }
.device-pending-panel { width: min(560px, 100%); }
.device-pending-panel > p { line-height: 1.55; }
.approval-steps { margin: 20px 0; padding-left: 22px; color: var(--ink); }
.approval-steps li { margin-bottom: 9px; line-height: 1.45; }
.login-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.login-heading h1 { margin: 0; font-size: 23px; }
.login-heading p { margin: 3px 0 0; color: var(--muted); }
.form-stack { display: grid; gap: 16px; }
.messages { margin-bottom: 16px; }
.message { border: 1px solid var(--line); padding: 12px 14px; background: var(--paper); transition: opacity .3s; }
.message.success { background: var(--green-soft); border-color: #a6d8b8; color: #05603a; }
.message.error { background: var(--red-soft); border-color: #f6aaa5; color: var(--red); }
.message.fade { opacity: .35; }
.empty-state { background: var(--paper); border: 1px solid var(--line); text-align: center; padding: 54px 24px; }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metrics article:nth-child(3) { border-right: 0; }
  .personal-grid { grid-template-columns: repeat(3, 1fr); }
  .personal-grid div:nth-child(3) { border-right: 0; }
  .experience-metrics { grid-template-columns: 1fr; }
  .experience-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-metrics article:last-child { border-bottom: 0; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .export-data-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-data-summary div:nth-child(4n) { border-right: 1px solid var(--line); }
  .export-data-summary div:nth-child(2n) { border-right: 0; }
  .export-data-summary div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .export-data-summary div:nth-last-child(-n + 2) { border-bottom: 0; }
  .pdf-review-layout { grid-template-columns: 1fr; height: auto; }
  .pdf-pane { height: 70vh; min-height: 520px; }
  .review-data-pane { overflow: visible; }
  .validation-cvs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 64px; padding: 10px 16px; flex-wrap: wrap; gap: 8px 18px; }
  .brand { min-width: 180px; }
  .main-nav { order: 3; width: 100%; height: 44px; overflow-x: auto; }
  .user-menu > a { display: none; }
  .page-shell { width: min(100% - 24px, 1500px); padding-top: 20px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .export-data-summary { grid-template-columns: 1fr; }
  .export-data-summary div, .export-data-summary div:nth-child(2n), .export-data-summary div:nth-child(4n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .export-data-summary div:last-child { border-bottom: 0; }
  .actions { flex-wrap: wrap; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(3) { border-right: 1px solid var(--line); }
  .metrics article:nth-child(even) { border-right: 0; }
  .profile-header { grid-template-columns: 92px 1fr; padding: 16px; }
  .profile-photo { width: 92px; height: 112px; }
  .profile-header .actions { grid-column: 1 / -1; flex-direction: row; }
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-grid div:nth-child(3) { border-right: 1px solid var(--line); }
  .personal-grid div:nth-child(even) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .format-options { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .repeat-row, .college-row { align-items: stretch; flex-direction: column; }
  .college-row label:first-child { flex-basis: auto; }
  .repeat-row .remove-row { align-self: flex-end; }
  .filter-bar { grid-template-columns: 1fr; }
  .review-summary, .review-decision { grid-template-columns: 1fr; }
  .review-summary a { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-summary a:last-child { border-bottom: 0; }
  .pdf-pane { height: 62vh; min-height: 430px; }
  .validation-cvs { grid-template-columns: 1fr; }
  .document-confirm-summary { grid-template-columns: 1fr; }
  .document-confirm-summary div, .document-confirm-summary div:nth-child(2n), .document-confirm-summary div.wide { grid-column: span 1; border-right: 0; }
}
