:root {
  font-family: system-ui, sans-serif;
  color: #172a35;
  background: #f2f6f7;
  line-height: 1.55;
  --accent: #075c52;
  --border: #c7d5dc;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #2775a0; outline-offset: 3px; }
h1, h2, p, dl { margin: 0 0 1rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.shell { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.nav, .heading, .actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nav, .heading { justify-content: space-between; }
.nav { padding-block: .75rem; }
.brand { color: #172a35; font-size: 1.2rem; font-weight: 750; text-decoration: none; }
main { padding-block: 2rem 4rem; }
.heading { margin-block: .75rem 1.25rem; }
.heading h1, .heading p { margin-bottom: 0; }
.muted, small { color: #405662; }
.panel, .table-wrap, .metrics > div { background: #fff; border: 1px solid var(--border); border-radius: .65rem; }
.panel, .metrics > div { padding: 1.2rem; }
.narrow { width: min(100%, 31rem); margin-inline: auto; }
.narrow h1 { margin-top: .5rem; }
.narrow p:last-child { margin: 1rem 0 0; }
.stack { display: grid; gap: .5rem; }
.stack label { margin-top: .3rem; font-weight: 600; }
.stack input[type="submit"] { justify-self: start; margin-top: .65rem; }
input, button, select, textarea { font: inherit; }
input:not([type="submit"]), textarea, select {
  width: 100%; padding: .55rem .65rem; border: 1px solid #758b96;
  border-radius: .35rem; background: #fff; color: inherit;
}
.button, button, input[type="submit"] {
  display: inline-block; padding: .48rem .85rem; border: 1px solid transparent;
  border-radius: .4rem; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 650; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { filter: brightness(.9); }
.secondary { background: #fff; border-color: var(--border); color: #25434c; }
.danger { color: #a32421; background: #fff; border-color: #dca7a4; }
.flash { padding: .75rem 1rem; margin: 0 0 1.25rem; border-radius: .4rem; background: #e2f3eb; }
.flash.alert { background: #ffe8e5; color: #7d1d19; }
ul.flash { padding-left: 2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; text-align: left; }
thead { background: #e6eef0; }
thead th { white-space: nowrap; }
tbody tr + tr { border-top: 1px solid var(--border); }
.metrics, .form-grid { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics dd { margin: 0; font-size: 1.65rem; font-weight: 750; overflow-wrap: anywhere; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.delete { margin-top: 1.4rem; }
@media (max-width: 36rem) {
  .form-grid { grid-template-columns: 1fr; }
  .metrics { gap: .45rem; }
  .metrics > div { padding: .65rem; }
  th, td { padding: .65rem; }
}
