:root {
  color-scheme: light;
  --navy: #071e49;
  --crimson: #d00e2c;
  --red-text: #a31028;
  --cream: #eadfb5;
  --ink: #172743;
  --muted: #50627a;
  --line: #dce3ec;
  --canvas: #f2f5f9;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); line-height: 1.55; display: flex; flex-direction: column; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: .19rem solid #2467b4; outline-offset: .22rem; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 10; padding: .7rem 1rem; background: white; }
.skip:focus { transform: none; }
.wrap, .mast-inner { width: min(100% - 3.4rem, 73rem); margin-inline: auto; }
.masthead { background: var(--navy); color: white; border-top: .28rem solid var(--crimson); }
.mast-inner { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 1.12rem; color: white; text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img { object-fit: contain; }
.brand > span { display: grid; gap: .2rem; font-size: 1.27rem; }
.brand strong { color: var(--cream); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { background: white; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 1.9rem; overflow-x: auto; }
.nav a { display: block; border-bottom: .21rem solid transparent; padding: .87rem 0 .74rem; text-decoration: none; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.nav a[aria-current] { border-color: var(--crimson); color: var(--red-text); }
main { padding-block: 2.5rem 4rem; flex: 1; }
main.narrow { width: min(100% - 3.4rem, 42rem); }
main.form-width { width: min(100% - 3.4rem, 57rem); }
main.public { padding-top: clamp(2.5rem, 8vw, 6.15rem); }
footer { padding: 1.4rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .93rem; }
.heading-rule { background: var(--crimson); width: 3.4rem; height: .24rem; margin: 0 0 .9rem; }
.eyebrow { text-transform: uppercase; font-size: .8rem; color: var(--red-text); font-weight: 700; letter-spacing: .15em; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.045em; font-weight: 380; margin-bottom: .55rem; }
h2 { font-size: 1.38rem; font-weight: 620; margin-bottom: .8rem; }
h3 { font-size: 1.03rem; font-weight: 680; margin: 1rem 0 .25rem; }
p { margin: .65rem 0 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin: .55rem 0 1.45rem; }
.muted { color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.4rem; }
.page-head .lead { margin-bottom: 0; }
.page-head > a { margin-bottom: .14rem; flex-shrink: 0; }
.back { display: inline-block; margin-bottom: 1.3rem; font-weight: 640; }
.card { border: 1px solid var(--line); background: white; box-shadow: 0 .4rem 1rem #071e4909; }
.form-card, .signin { padding: clamp(1.1rem, 2.7vw, 1.75rem); margin-bottom: 1.15rem; }
.signin { margin-top: 1.6rem; padding-block: 2rem; border-top: .18rem solid var(--navy); }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; text-decoration: none;
  border: 1px solid transparent; border-radius: .08rem; padding: .55rem .95rem; font: inherit; font-weight: 675; cursor: pointer; line-height: 1.3; }
.primary { background: var(--crimson); color: white; }
.primary:hover { background: #a70d25; color: white; }
.secondary { background: white; border-color: #aebbd0; color: var(--navy); }
.secondary:hover { background: #edf2fa; color: var(--navy); }
.light { background: transparent; color: white; border-color: #9caac1; }
.light:hover { color: var(--cream); border-color: var(--cream); }
[hidden] { display: none !important; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.4rem 0; }
.metrics > div { background: white; border: 1px solid var(--line); padding: .95rem 1.1rem; border-top: .17rem solid #c7d2e2; }
.metrics span { font-weight: 650; color: var(--muted); font-size: .9rem; display: block; }
.metrics strong { color: var(--navy); font-weight: 550; font-size: 2rem; font-variant-numeric: tabular-nums; }
.toolbar, .filters { border-bottom: 1px solid var(--line); display: flex; gap: 1rem; padding: .95rem 1.15rem; align-items: center; justify-content: space-between; }
.views { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.view { padding: .37rem .65rem; text-decoration: none; font-weight: 660; font-size: .93rem; }
.view.selected { background: #ebeff8; color: var(--navy); }
.filters { align-items: end; justify-content: start; gap: .8rem; background: #fbfcfe; }
.filters label { min-width: 10rem; }
.filters label:first-of-type { flex: 1 1 16rem; max-width: 27rem; }
label { color: var(--navy); display: block; font-size: .95rem; font-weight: 640; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { min-width: 0; display: block; width: 100%; color: var(--ink); border: 1px solid #aab8cb; background: white;
  font: inherit; font-size: 1rem; font-weight: 400; border-radius: .1rem; padding: .5rem .65rem; margin-top: .26rem; min-height: 2.65rem; }
textarea { resize: vertical; }
form > label + label, form > button, form > .actions, form > label + .checks { margin-top: .7rem; }
form.filters > button, form.filters > label + label { margin-top: 0; }
.fields, .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.15rem; }
.fields { margin-bottom: .85rem; }
.two { align-items: start; }
.checks { display: grid; gap: .32rem; margin: .6rem 0; }
.checks.inline { display: flex; flex-wrap: wrap; gap: .55rem .95rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.check input { margin: .25rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--navy); flex-shrink: 0; }
fieldset { margin: .7rem 0; border: 1px solid var(--line); padding: .4rem .7rem; min-width: 0; }
legend { color: var(--navy); font-weight: 660; }
.stack { display: grid; gap: .7rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .83rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .86rem; font-weight: 690; color: var(--muted); background: #f6f8fc; white-space: nowrap; }
td { font-size: .94rem; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); font-size: .86rem; margin-top: .16rem; }
.record-link { font-weight: 700; }
.badge { display: inline-block; padding: .27rem .54rem; color: #233951; background: #e8eff8; font-size: .83rem; font-weight: 700; line-height: 1.3; }
.badge.approved,.badge.sent { color: #18523b; background: #e2f2e9; }
.badge.review,.badge.invited,.badge.queued { color: #694308; background: #f9efdb; }
.badge.rejected,.badge.suspended,.badge.failed,.badge.blocked,.badge.uncertain { color: #862738; background: #f9e9ed; }
.badge.inactive,.badge.expired { color: #3f4d61; background: #edf0f4; }
.empty { padding: 2rem 1.2rem; }
.empty p { margin-bottom: .15rem; color: var(--muted); }
dl { display: grid; grid-template-columns: minmax(6rem, auto) minmax(0, 1fr); gap: .4rem 1rem; }
dt { color: var(--muted); font-weight: 620; }
dd { margin: 0; overflow-wrap: anywhere; }
.reference { font-family: monospace; font-size: .86rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
details { margin: .6rem 0; }
summary { color: var(--navy); cursor: pointer; font-weight: 660; padding: .38rem 0; }
.person { border-top: 1px solid var(--line); padding: .4rem 0; }
.person summary .muted { font-size: .83rem; margin-inline-start: .32rem; font-weight: 500; }
.evidence { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: .5rem 0; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.timeline li span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.notice { background: #f8f0dc; color: #573f10; border-left: .29rem solid #ac781c; padding: .7rem .9rem; margin: .6rem 0 1.2rem; }
.notice.success { background: #e6f3eb; color: #1d4937; border-color: #297753; }
@media (max-width: 48rem) {
  .wrap, .mast-inner, main.narrow, main.form-width { width: calc(100% - 2rem); }
  .brand img { width: 2.35rem; height: 3.6rem; }
  .brand > span { font-size: 1.08rem; }
  .nav-inner { gap: 1.15rem; }
  .two { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .toolbar { flex-wrap: wrap; }
  .filters label:first-of-type { flex-basis: 100%; max-width: none; }
}
@media (max-width: 32rem) {
  .fields { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .brand strong { font-size: .66rem; letter-spacing: .07em; }
  .light { padding-inline: .65rem; }
}
