:root {
  color-scheme: light;
  --ink: #13283f;
  --muted: #52647a;
  --line: #cbd5df;
  --blue: #164ead;
  --band: #e7effd;
  --radius: 5px;
  font: 16px/1.45 "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.container { width: min(1440px, 94%); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.header-inner, .brand-link, .account, .section-heading, .table-heading { display: flex; align-items: center; gap: 18px; }
.header-inner { min-height: 62px; justify-content: space-between; }
.brand-link { text-decoration: none; color: var(--ink); gap: 22px; }
.brand-link strong { font-size: 1.6rem; letter-spacing: -.055em; line-height: 1; }
.brand-link span { border-left: 1px solid var(--line); padding-left: 22px; font-weight: 650; }
.account { font-size: .92rem; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a, .text-button { color: var(--blue); }
a:hover, .text-button:hover { text-decoration: underline; }
button { border-radius: var(--radius); }
button:disabled { opacity: .56; cursor: wait; }
.text-button { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; padding: 0 0 0 18px; }
:focus-visible { outline: 3px solid #2763c5; outline-offset: 3px; }
main { padding-block: clamp(26px,3vw,48px) 64px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem,3.4vw,3.05rem); letter-spacing: -.045em; line-height: 1.14; font-weight: 720; }
h2 { font-size: clamp(1.4rem,2vw,2rem); line-height: 1.22; letter-spacing: -.025em; }
.section-heading { justify-content: space-between; margin-bottom: 26px; }
input, select, textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #94a3b3; border-radius: var(--radius); padding: 9px 12px; min-height: 42px; }
input::placeholder, textarea::placeholder { color: #667487; opacity: 1; }
.section-heading select { width: auto; min-width: 190px; }
.bonus-band { display: grid; grid-template-columns: 1.35fr 1fr 1fr; background: var(--band); border-radius: 6px; padding: 20px clamp(16px,2.5vw,38px); }
.bonus-band > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.bonus-band h2 { font-size: clamp(1.17rem,1.7vw,1.6rem); }
.amount { display: block; font-size: clamp(2.1rem,3vw,3rem); line-height: 1.15; letter-spacing: -.045em; }
.amount.empty-amount { margin-block: 4px; font-size: clamp(1.55rem,2.2vw,2.1rem); }
.bonus-band span { color: #35485e; font-size: .94rem; }
.metric { border-left: 1px solid #b5c2d4; padding-left: clamp(18px,3.5vw,50px); }
.metric strong { font-size: 1.7rem; line-height: 1.15; }
details { margin: 12px 0; color: var(--muted); font-size: .9rem; }
summary { cursor: pointer; color: var(--blue); font-weight: 550; width: fit-content; }
.bonus-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; max-width: 650px; gap: 12px; }
.table-heading { gap: 18px; margin: 30px 0 16px; flex-wrap: wrap; }
.table-heading span, .muted { color: var(--muted); }
.table-heading select { margin-left: auto; width: auto; min-height: 36px; padding-block: 5px; font-size: .9rem; }
.report-status { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.bonus-row > :last-child { text-align: right; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 810px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { font-size: .89rem; color: #32455d; font-weight: 650; }
td { font-size: .95rem; }
th:first-child, td:first-child { width: 40px; }
.money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.archive-mark { display: block; color: var(--muted); font-size: .72rem; }
.project { font-weight: 600; }
.row-expander { display: grid; place-items: center; background: none; border: 0; color: var(--blue); min-height: 28px; min-width: 28px; margin: -2px; }
.chevron { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
[aria-expanded="true"] .chevron { transform: rotate(135deg); }
tbody tr:hover:not(.expanded) { background: #f8faff; }
.expanded td { background: #f6f8fb; padding: 15px 32px; }
dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 28px; margin: 0; }
dl > div { display: grid; grid-template-columns: minmax(110px,.8fr) 1.2fr; gap: 10px; font-size: .9rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.quiet, .field-hint, .lead-title { color: var(--muted); }
#registry-message { padding-block: 8px 16px; }
.narrow { max-width: 420px; margin: min(8vh,72px) auto; }
.form-page { max-width: 830px; margin-inline: auto; }
.stack { display: grid; gap: 20px; margin-top: 24px; }
fieldset { margin: 0; border: none; border-top: 1px solid var(--line); padding: 18px 0 6px; }
legend { font-size: 1.25rem; font-weight: 650; padding: 0 12px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.form-grid .wide { grid-column: 1/-1; }
label { display: grid; font-weight: 600; font-size: .92rem; align-content: start; gap: 5px; }
label > :is(input, select, textarea) { font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; }
.field-hint { font-size: .92rem; padding: 10px 14px; background: var(--band); border-radius: var(--radius); }
.primary, .secondary { padding: 10px 18px; border: 1px solid var(--blue); font-weight: 600; }
.primary { color: white; background: var(--blue); }
.primary:hover:not(:disabled) { background: #103e92; }
.secondary { color: var(--blue); background: white; }
.back { display: inline-block; margin-bottom: 18px; }
.lead-title { margin-top: 8px; font-size: 1.12rem; }
.notice, .alert { border-radius: var(--radius); padding: 14px 18px; }
.notice { margin-top: 20px; background: var(--band); }
.notice a, .notice button, #registry-message button { margin-left: 12px; }
.alert { color: #8c251c; background: #ffefed; }
.error-page p { margin: 14px 0; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 10px; padding: 8px; background: white; z-index: 1; }
@media(max-width:740px) {
  .container { width: 92%; }
  .filters { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bonus-band { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bonus-band > div:first-child { grid-column: 1/-1; }
  .metric { border: 0; border-top: 1px solid #becde0; padding: 10px 0 0; }
  .metric strong { font-size: 1.2rem; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: 12px; }
  .section-heading select { min-width: 0; }
  .account { gap: 9px; }
  .account span { max-width: 112px; overflow-wrap: anywhere; font-size: .82rem; }
  .brand-link { gap: 11px; }
  .brand-link span { padding-left: 11px; font-size: .93rem; }
  .text-button { padding-left: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
}
@media(max-width:420px) {
  .container { width: calc(100% - 28px); }
  .header-inner, .account { gap: 7px; }
  .brand-link strong { font-size: 1.4rem; }
  .filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .filters :is(input,select) { min-width: 0; }
}
