:root {
  color-scheme: light;
  --ink: #192434;
  --muted: #526176;
  --line: #d9e1ec;
  --blue: #1260bd;
  --blue-dark: #0c4f9d;
  --soft-blue: #ebf3ff;
  --surface: #fff;
  font: 100%/1.55 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f4f6fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue-dark); }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #5ba2f5;
  outline-offset: 3px;
}
.shell { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.top { background: #333639; color: #fff; }
.bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 5.5rem; padding-block: .875rem; }
.brand { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.brand span { display: block; color: #d1d8e0; font-weight: 500; }
.bar label { display: flex; gap: .5rem; align-items: center; font-size: .875rem; }
select { border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); color: var(--ink); padding: .4rem; }
main { padding-block: clamp(1.5rem, 4vw, 3.25rem); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 1.5rem; }
h2 { font-size: 1.125rem; line-height: 1.3; }
.eyebrow { color: var(--blue-dark); font-size: .875rem; font-weight: 750; margin: 0 0 .65rem; }
.notice:empty { display: none; }
.notice { margin: 0 auto 1rem; padding: .75rem 1rem; border-radius: .5rem; background: var(--soft-blue); overflow-wrap: anywhere; }
.panel { max-width: 30rem; margin-inline: auto; padding: clamp(1.25rem, 5vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: .875rem; }
.panel h1 { margin-bottom: .75rem; }
.panel form { display: grid; gap: 1rem; margin-block: 1.25rem .75rem; }
.panel label { display: grid; gap: .35rem; font-weight: 650; }
.panel input { width: 100%; min-height: 2.8rem; border-radius: .45rem; border: 1px solid #a9b7c8; color: var(--ink); background: var(--surface); padding: .5rem .7rem; }
.hint { color: var(--muted); font-size: .925rem; margin-bottom: 0; }
button, .action-link { border: 1px solid transparent; border-radius: .45rem; color: var(--blue-dark); font-weight: 700; cursor: pointer; background: transparent; padding: .55rem .75rem; }
button:hover, .action-link:hover { background: var(--soft-blue); }
button:disabled { opacity: .65; cursor: wait; }
button[type="submit"] { color: #fff; background: var(--blue); border-color: var(--blue); }
button[type="submit"]:hover { background: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; }
.quiet { background: var(--surface); border-color: var(--line); }
.workspace { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); column-gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.workspace-header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .875rem; margin-bottom: 1.5rem; }
.workspace-header .eyebrow { margin: 0; }
.sections { display: grid; gap: .25rem; }
.sections a { padding: .65rem .85rem; color: var(--ink); text-decoration: none; font-weight: 650; border-radius: .45rem; }
.sections a:hover { background: #e9edf4; }
.sections a[aria-current="page"] { color: var(--blue-dark); background: var(--soft-blue); box-shadow: inset 3px 0 var(--blue); }
.workspace-content { grid-column: 2; grid-row: 2; min-width: 0; }
.records { display: grid; gap: .85rem; }
.record, .profile, .empty { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1.125rem 1.25rem; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem 1.25rem; }
.record h2, .profile h2 { margin: 0 0 .35rem; }
.record p { margin: 0; overflow-wrap: anywhere; }
.record .detail { color: var(--muted); font-size: .875rem; }
.record .progress { color: var(--ink); font-size: .9rem; font-weight: 650; margin-top: .25rem; }
.action-link { border-color: var(--line); text-align: center; text-decoration: none; font-size: .875rem; }
.profile dl { margin: .5rem 0 0; }
.profile dl div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); }
.help { margin-top: 1.75rem; text-align: center; font-size: .875rem; }
@media (max-width: 44rem) {
  .workspace { display: block; }
  .workspace-header { margin-bottom: .75rem; }
  .sections { display: flex; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .sections a[aria-current="page"] { box-shadow: inset 0 -3px var(--blue); }
}
@media (max-width: 30rem) {
  .bar label span { display: none; }
  .record { grid-template-columns: 1fr; }
  .action-link { justify-self: start; }
  .profile dl div { grid-template-columns: 1fr; gap: .2rem; }
  .panel .actions button { text-align: left; }
}

.stage-progress-title { margin: .85rem 0 .4rem; font-size: .95rem; }
.stage-progress-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.stage-progress-checklist li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.stage-progress-check { display: inline-grid; place-items: center; flex: 0 0 1.15rem; height: 1.15rem; box-sizing: border-box; border: 1px solid #6c7d91; border-radius: .24rem; align-self: center; font-size: .85rem; }
.stage-progress-check.is-done { border-color: #257252; background: #e4f4eb; color: #15583d; }
.stage-progress-checklist a { color: #17528e; text-decoration: underline; text-underline-offset: .15em; }

.email-change { margin-top:1.25rem }
.email-change form { display:grid; gap:.75rem; max-width:32rem }
.email-change form label { display:grid; gap:.35rem }
.email-change form input { box-sizing:border-box; width:100%; min-width:0 }
.email-change form button { justify-self:start }
