:root { font-family: system-ui, sans-serif; color: #20323f; background: #f3f6f7; font-size: 16px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #102b37; color: white; }
.shell { width: min(1160px, 94%); margin-inline: auto; }
header .shell { height: 4.2rem; }
.brand { font-size: 1.3rem; }
.brand span { color: #9de8d6; }
.row, .actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row { justify-content: space-between; }
.heading { padding-block: 1.75rem; }
h1, h2, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
h2 { font-size: 1.25rem; }
.muted { color: #516672; }
.card, dialog { border: 1px solid #d8e2e5; border-radius: .9rem; background: white; padding: 1.3rem; }
.narrow { width: min(100%, 420px); margin: 8vh auto; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .75rem; margin-bottom: 1.2rem; }
.metrics strong { display: block; font-size: 1.45rem; margin-top: .5rem; }
button, input, select { font: inherit; border: 1px solid #bdcdd3; border-radius: .5rem; background: white; color: inherit; padding: .58rem .7rem; }
button { cursor: pointer; color: #17424c; min-height: 42px; }
button:disabled { opacity: .5; cursor: wait; }
.primary { background: #086458; color: white; border-color: #086458; }
label { display: grid; gap: .35rem; font-size: .9rem; }
form { display: grid; gap: .8rem; }
fieldset { display: grid; gap: .65rem; border: 1px solid #d8e2e5; margin: 0 0 .65rem; min-width: 0; }
input, select { min-width: 0; width: 100%; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-block: .7rem; text-align: left; }
th, td { padding: .85rem .65rem; border-bottom: 1px solid #e1e8ea; vertical-align: top; }
td { overflow-wrap: anywhere; }
th { background: #edf5f4; }
a { color: #075d53; }
.link { background: none; padding: 0; border: 0; text-decoration: underline; text-align: left; min-height: auto; }
dialog { width: min(620px, 96%); max-height: 90dvh; }
dialog::backdrop { background: #102b3777; }
#dialog-body { margin-top: 1rem; }
#feedback, #dialog-error { padding: .7rem; margin-top: .75rem; background: #fff3dd; border-radius: .5rem; }
.document { width: min(760px, 94%); margin: 5vh auto; }
dl div { display: flex; justify-content: space-between; padding-block: .45rem; gap: .5rem; }
@media print { :root { background: white; } .document { border: 0; width: 100%; margin: 0; } button { display: none; } }
.mobile-caption { display: none; }
@media (max-width: 640px) {
    .table-scroll { overflow: visible; }
    .table-scroll table, .table-scroll tbody { display: block; }
    .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .table-scroll tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d8e2e5; padding-block: .35rem; }
    .table-scroll td { border: 0; padding: .45rem .3rem; }
    .table-scroll td:first-child { grid-column: 1 / -1; font-weight: 650; }
    .mobile-caption { display: block; color: #516672; font-size: .875rem; margin-bottom: .15rem; }
}
