:root {
  color-scheme: light;
  --ink: #17262c;
  --muted: #4e6269;
  --line: #cbd7d8;
  --paper: #fff;
  --ground: #f2f6f5;
  --accent: #155d55;
  --accent-light: #e5f3ef;
  font: 100%/1.55 "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #0b423b; }
:focus-visible { outline: 3px solid #aa6f1d; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.topbar { background: #142e32; color: #fff; }
.topbar-inner, .page-head, .list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-inner { min-height: 4.2rem; flex-wrap: wrap; padding-block: .65rem; }
.topbar nav, .brand, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.topbar a, .text-button { color: #fff; }
.topbar form { margin: 0; }
.brand { text-decoration: none; font-weight: 650; }
.brand-mark { background: #d8ae65; color: #142e32; border-radius: .35rem; padding: .3rem .55rem; font-size: .85rem; font-weight: 800; }
.role { color: #d5e5e1; }
.content { padding-block: 2.3rem 4rem; }
.page-head { flex-wrap: wrap; margin: .65rem 0 1.5rem; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; }
h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); letter-spacing: -.025em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; margin-top: 1.3rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; margin-bottom: 1.1rem; padding: 1.25rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.1rem; }
.auth-panel { width: min(100%, 30rem); margin: 3rem auto; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
td, th { padding: .72rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.empty { color: var(--muted); padding: .8rem .6rem; }
.list-row { padding: .65rem 0; border-top: 1px solid var(--line); }
.list-row p { margin: .2rem 0; }
.badge { display: inline-block; background: var(--accent-light); color: #174943; padding: .2rem .65rem; border-radius: 1rem; font-size: .88rem; font-weight: 650; }
.filters { display: flex; border: 1px solid var(--line); border-radius: .55rem; padding: .2rem; background: var(--paper); }
.filters a { padding: .28rem .73rem; border-radius: .35rem; text-decoration: none; }
.filters a[aria-current] { color: #fff; background: var(--accent); }
.details { margin: 0 0 1rem; }
.details div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .55rem 0; }
.details dd { margin: 0; text-align: right; }
.total { font-weight: 750; }
.form-stack label { display: block; font-weight: 650; margin-bottom: .25rem; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--paper); border: 1px solid #91a7a9; border-radius: .35rem; padding: .52rem .6rem; font: inherit; }
input[type=checkbox] { width: auto; }
button { font: inherit; font-weight: 700; border: 1px solid var(--accent); border-radius: .35rem; background: var(--accent); color: #fff; padding: .48rem .8rem; cursor: pointer; }
button:hover { background: #104843; }
.secondary { background: var(--paper); color: var(--accent); }
.secondary:hover { background: var(--accent-light); }
.text-button { background: transparent; border: 0; padding: .25rem; text-decoration: underline; }
.actions { margin-bottom: .75rem; }
.helptext { color: var(--muted); font-size: .9rem; }
.errorlist, .alert.error { color: #8a251e; }
.alert { background: var(--accent-light); border: 1px solid var(--line); border-radius: .35rem; padding: .7rem; margin-bottom: .8rem; }
.alert.error { background: #fce9e6; }
.skip { position: absolute; left: .5rem; top: -5rem; z-index: 1; background: #fff; padding: .5rem; }
.skip:focus { top: .5rem; }
@media (max-width: 44rem) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .content { padding-block: 1.4rem; }
  .panel { padding: .85rem; }
}
