:root {
  color-scheme: light;
  --ink: #152739;
  --muted: #496071;
  --navy: #123b55;
  --brand: #075974;
  --soft: #e8f2f5;
  --line: #d0dce3;
  --paper: #fff;
  --bg: #f5f8fa;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); margin: 0; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #0984a7; outline-offset: 3px; }
.skip { position: absolute; top: -5em; background: var(--paper); padding: .6rem; z-index: 1; }
.skip:focus { top: .25rem; }
.wrap { width: min(100% - 2rem, 76rem); margin: 0 auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.1rem; text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: .5rem; width: 2.1rem; height: 2.1rem; }
main { padding-bottom: 3rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; min-width: 0; }
.login { margin: clamp(2rem, 10vh, 6rem) auto 0; max-width: 31rem; padding: clamp(1.25rem, 5vw, 2rem); }
.login form { display: grid; gap: .7rem; margin-block: 1.25rem; }
.login form button, #verify-link { justify-self: start; }
.eyebrow { color: var(--brand); font-size: .8rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; margin-block: 0 .2rem; }
h1, h2, h3 { line-height: 1.2; margin-block: 0 .65rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin-block: .4rem .9rem; }
.notice, .muted { color: var(--muted); }
.error { background: #fff0ee; color: #872f22; border: 1px solid #f2c3b9; padding: .75rem; border-radius: .4rem; }
button, input, select { font: inherit; min-height: 2.7rem; border-radius: .45rem; }
button { background: var(--navy); border: 1px solid var(--navy); color: #fff; font-weight: 650; padding: .45rem .8rem; cursor: pointer; }
button:hover:not(:disabled) { background: #075974; }
button:disabled { opacity: .65; cursor: default; }
button.quiet { background: var(--paper); color: var(--navy); border-color: var(--line); }
button.quiet:hover:not(:disabled) { background: var(--soft); }
input, select { background: var(--paper); color: var(--ink); border: 1px solid #9eb0bc; padding: .4rem .65rem; width: 100%; }
label { font-weight: 650; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; padding-block: 1rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.nav a { text-decoration: none; font-weight: 700; color: var(--navy); padding: .5rem .8rem; border-radius: .45rem; }
.nav a[aria-current], .nav a:hover { background: var(--soft); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-block: 1rem; }
.metric strong { display: block; font-size: clamp(1.3rem, 3vw, 1.85rem); overflow-wrap: anywhere; }
.grid { display: grid; gap: .8rem; margin-block: 1rem; }
.grid.cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
.list { list-style: none; padding: 0; margin: .6rem 0 0; }
.list li { border-top: 1px solid var(--line); padding: .55rem 0; overflow-wrap: anywhere; }
.list li:first-child { border-top: 0; }
.stack { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.list .stack > div { min-width: 0; flex: 1 1 15rem; }
.chip { display: inline-block; background: var(--soft); color: var(--navy); border-radius: 100rem; font-size: .83rem; font-weight: 700; padding: .12rem .55rem; }
.filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; gap: .65rem; align-items: end; margin-block: 1rem; }
.filters label { display: block; margin-bottom: .2rem; }
.pager { margin-top: .9rem; }
.subtle { font-size: .9rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: .7rem; }
.raw-json { max-height: 34rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: .4rem; padding: .85rem; background: var(--bg); font-size: .85rem; }
details summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details[open] summary { margin-bottom: .55rem; }
code { overflow-wrap: anywhere; }
@media (max-width: 43rem) {
  .metrics, .grid.cols, .filters { grid-template-columns: 1fr; }
  .metrics .card { padding-block: .65rem; }
  .metrics .metric { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .filters button { justify-self: start; }
}
