:root {
  color-scheme: light;
  --ink: #172e3b;
  --muted: #536978;
  --accent: #006a70;
  --line: #d7e2e7;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f8; color: var(--ink); line-height: 1.6; }
header { background: #112d39; color: white; padding: 1.25rem 4vw; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
header a { color: #e1f3f4; text-decoration: none; }
.brand { font-weight: 850; letter-spacing: .08em; font-size: 1.2rem; }
.brand span { display: block; font-size: .75rem; font-weight: 400; letter-spacing: .03em; color: #afd6db; }
nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; }
nav form { margin: 0; }
main { max-width: 1280px; margin: 2.5rem auto; padding: 0 1.5rem; min-height: 70vh; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; border-top: 1px solid var(--line); }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin: .75rem 0 1.2rem; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .16em; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; box-shadow: 0 3px 12px #112d3905; }
.narrow { max-width: 520px; margin: 3rem auto; }
.form-panel { max-width: 780px; margin: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.card { text-decoration: none; color: var(--ink); border-top: 3px solid var(--accent); overflow-wrap: anywhere; }
.card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 4px 16px #006a7015; }
.card p { color: var(--muted); }
.card span { font-size: .9rem; color: var(--accent); }
.filters { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin: 1.75rem 0; }
.filters label { flex: 1; min-width: 180px; }
.filters a { padding-bottom: .6rem; }
label { display: block; font-weight: 650; font-size: .92rem; }
input:not([type=radio]):not([type=checkbox]), select, textarea { display: block; width: 100%; padding: .7rem .8rem; margin-top: .35rem; border: 1px solid #aebfc8; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
input[type=radio] { accent-color: var(--accent); }
:focus-visible { outline: 3px solid #d38c12; outline-offset: 3px; }
button, .button { display: inline-block; cursor: pointer; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: white; padding: .7rem 1.15rem; font: inherit; font-weight: 650; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.9); text-decoration: none; }
button.link { background: transparent; padding: 0; color: #e1f3f4; font-weight: 400; }
.secondary { color: var(--accent); border-color: var(--accent); background: white; }
.danger { background: #aa263c; }
.field { margin: 1.25rem 0; }
.optional, .helptext { font-size: .85rem; color: var(--muted); font-weight: 400; }
.helptext { margin-top: .35rem; }
.errorlist { color: #a01c33; padding-left: 1.2rem; }
.message { padding: .9rem 1.1rem; background: #e0f3ee; border-left: 4px solid #198062; border-radius: 5px; }
.message.error { background: #ffeaed; border-color: #aa263c; }
.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { background: #eaf0f3; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td, th { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; max-width: 340px; }
.badge { display: inline-block; border-radius: 4px; background: #e3f2f1; color: #005b5c; font-size: .75rem; padding: .1rem .5rem; font-weight: 750; }
.pagination { margin: 1.5rem 0; justify-content: space-between; color: var(--muted); }
dl { display: grid; grid-template-columns: 200px 1fr; gap: .5rem 1.5rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: monospace; font-size: .85rem; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 640px) {
  main { padding: 0 1rem; }
  header { padding: 1rem; }
  nav { gap: .7rem; }
  .panel { padding: 1.2rem; }
  .table-wrap { padding: 0; }
  dl { grid-template-columns: 1fr; gap: .1rem; }
  dd { margin-bottom: .7rem; }
  .filters button { width: 100%; }
}
