:root {
  --paper: #f6f5ed;
  --white: #fffdf7;
  --ink: #172c26;
  --muted: #4f6259;
  --line: #c8d0c2;
  --jade: #183e32;
  --mint: #d6eee0;
  --open: #783911;
  --open-bg: #f9e9d9;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 16px/1.5 "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #2b715a; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1296px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 9px; font: 700 23px/1 Georgia, serif; letter-spacing: -.05em; }
main { padding: 33px 0 49px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; }
h1 { font: 500 clamp(37px, 5.2vw, 74px)/.98 Georgia, serif; letter-spacing: -.075em; }
.meta, .label { font: 700 11px/1.4 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.meta { color: var(--muted); padding-bottom: 4px; }
.balance-sheet { margin-bottom: 17px; background: var(--jade); color: var(--mint); border: 1px solid #193a2f; }
.balance-sheet header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px clamp(14px, 2vw, 26px); border-bottom: 1px solid #527567; }
.balance-sheet h2 { font-size: 13px; font-weight: 650; }
.balance-sheet dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.balance-sheet dl > div { min-width: 0; padding: 14px clamp(14px, 2vw, 26px) 17px; border-right: 1px solid #527567; }
.balance-sheet dl > div:last-child { border-right: 0; }
.balance-sheet dd { color: #f4fff7; font: 400 clamp(24px, 3.5vw, 49px)/1.1 Georgia, serif; letter-spacing: -.064em; font-variant-numeric: lining-nums tabular-nums; margin-top: 4px; }
.balance-sheet dt { font: 650 12px/1.4 var(--mono); }
.balance-sheet small { display: block; margin-top: 4px; color: var(--mint); font: 400 12px/1.5 "Helvetica Neue", Arial, sans-serif; letter-spacing: normal; }
.review { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ledger, .exception { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.ledger header, .exception { padding: 16px clamp(12px, 2.1vw, 24px); }
.ledger header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
h2 { font-weight: 700; font-size: 19px; line-height: 1.12; letter-spacing: -.032em; }
.ledger header p { color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px clamp(12px, 2vw, 24px); text-align: left; border-top: 1px solid var(--line); }
thead th { color: var(--muted); font: 650 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
tbody th { font-weight: 650; }
.currency { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.running { color: var(--muted); }
tfoot { background: #edf3e7; font-weight: 700; }
.exception { border-top: 3px solid #987257; }
.exception > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.state { color: var(--open); background: var(--open-bg); padding: 3px 6px; white-space: nowrap; }
.exception h2 { font: 500 clamp(25px, 3vw, 39px)/1.05 Georgia, serif; letter-spacing: -.05em; }
.exception > p { margin-top: 7px; color: var(--muted); font-size: 13px; }
@media (max-width: 690px) {
  .wrap { width: min(100% - 26px, 1296px); }
  .top .wrap { min-height: 52px; }
  main { padding-top: 22px; }
  .heading { margin-bottom: 14px; }
  .review { grid-template-columns: 1fr; gap: 12px; }
  .exception { grid-row: 1; }
  .balance-sheet dl > div { padding: 10px 8px; }
  .balance-sheet dt { font-size: 10px; }
  .balance-sheet dd { font-size: clamp(18px, 5.25vw, 30px); }
  .balance-sheet small { font-size: 10px; }
}
@media (max-width: 350px) {
  .balance-sheet dt { min-height: 2.8em; }
  th, td { padding-inline: 8px; }
}
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible { outline: 2px solid #2b715a; outline-offset: 3px; }
.skip { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 9px; background: var(--white); }
.skip:not(:focus) { clip-path: inset(50%); }
.mark { height: 17px; width: 20px; border: 0; border-block: 2px solid var(--jade); background: none; transform: skew(-23deg); }
.scope { font: 650 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .065em; text-decoration: none; }
.state.complete { color: var(--jade); background: #deeee0; }
.exception > p { max-width: 58ch; }
fieldset { min-inline-size: 0; margin: 14px 0 9px; border: 0; padding: 0; }
legend { margin-bottom: 5px; padding: 0; color: var(--muted); }
.candidate-row { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; min-height: 45px; padding: 6px 8px; border-top: 1px solid var(--line); cursor: pointer; }
.candidate-row:last-child { border-bottom: 1px solid var(--line); }
.candidate-row:hover { background: #f4f6ed; }
.candidate-row:has(:checked) { background: #e7f0e5; }
.candidate-row input { margin: 0; accent-color: var(--jade); }
.candidate-row small { display: block; color: var(--muted); font: 10px/1.3 var(--mono); }
.candidate-row strong { font-size: 13px; }
.evidence { padding: 9px; background: #eef3e9; border: 1px solid var(--line); margin-bottom: 10px; }
.evidence dl { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6px 15px; }
.evidence dt { font-size: 11px; color: var(--muted); }
.evidence dd { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
button { min-height: 40px; padding: 7px 11px; border: 1px solid var(--jade); border-radius: 2px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.primary { color: #fffdf7; background: var(--jade); }
.primary:hover { background: #245644; }
.secondary { color: var(--jade); background: var(--white); }
.secondary:hover { background: #e7f0e5; }
button:disabled { opacity: .55; cursor: default; }
#close-payout { margin-top: 12px; }
#feedback:empty { display: none; }
#feedback { color: var(--jade); font-size: 13px; font-weight: 650; }
#feedback.error { color: var(--open); }
.sources { padding: 10px clamp(12px, 2vw, 24px); border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 13px; font-weight: 700; }
#downloads { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 7px 0 0; font-size: 13px; }
.follow-up { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 16px; margin-top: 16px; align-items: start; }
#audit { list-style: none; margin: 0; padding: 0; }
#audit li { border-top: 1px solid var(--line); padding: 8px clamp(12px, 2vw, 24px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; }
#audit time { color: var(--muted); font: 11px/1.6 var(--mono); }
.guide { border: 1px solid var(--line); padding: 12px clamp(12px, 2vw, 24px); }
.guide ol { padding-left: 20px; font-size: 13px; }
.guide li + li { margin-top: 3px; }
.guide p { color: var(--muted); font-size: 13px; margin: 8px 0; }
dialog { color: var(--ink); background: var(--white); border: 1px solid var(--line); max-width: min(92vw, 390px); padding: 18px; }
dialog::backdrop { background: #122c25a8; }
dialog p { margin: 8px 0 12px; font-size: 14px; }
dialog form { display: flex; justify-content: end; gap: 7px; }
@media (max-width: 690px) {
  .follow-up { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .scope { font-size: 10px; }
}
