:root {
  color-scheme: dark;
  --bg: #11131b;
  --surface: #191b27;
  --raised: #222535;
  --border: #373b50;
  --text: #eeeef6;
  --muted: #b3b7ce;
  --accent: #c8baff;
  --amber: #ffcc86;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); overflow-wrap: anywhere; }
header { background: #151720; border-bottom: 1px solid var(--border); }
.top, nav, main { max-width: 70rem; padding: .8rem 1rem; margin: auto; min-width: 0; }
.top, nav, .filters, .actions, .pagination { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.top .brand { margin-right: auto; font-weight: 800; letter-spacing: .03em; font-size: 1.35rem; }
nav { padding-top: 0; }
nav a { display: inline-flex; min-height: 2.25rem; align-items: center; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 5vw, 2.35rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p, pre { margin: .6rem 0; }
.panel, .list, .actions > form { padding: .9rem; margin: .75rem 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: .65rem; min-width: 0; }
.list article { padding: .6rem; }
.list article + article { border-top: 1px solid var(--border); }
.meta { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; padding: .05rem .4rem; background: #302847; color: var(--accent);
  border-radius: .3rem; font-size: .85rem; }
.badge:empty { display: none; }
.flag { color: var(--amber); }
form, label { display: grid; gap: .5rem; min-width: 0; }
label { max-width: 45rem; }
.check { display: flex; align-items: start; }
button, input, textarea, select { max-width: 100%; color: inherit; font: inherit; border: 1px solid var(--border);
  background: var(--raised); border-radius: .4rem; padding: .5rem; min-width: 0; }
button { justify-self: start; cursor: pointer; color: var(--accent); font-weight: 650; min-height: 2.5rem; }
button:disabled { opacity: .6; cursor: wait; }
textarea { min-height: 6rem; resize: vertical; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
pre, code { font-family: ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
dd { margin-inline-start: 0; }
dt, summary { font-weight: 650; }
summary { cursor: pointer; }
.events { max-height: 24rem; overflow-y: auto; padding-inline-start: 1.5rem; }
.actions { align-items: start; }
.actions > form { flex: 1 1 12rem; }
#notice:not(:empty) { position: fixed; bottom: .8rem; inset-inline: .8rem; max-width: 40rem;
  margin-inline: auto; padding: .85rem; border: 1px solid var(--accent); border-radius: .6rem;
  background: var(--raised); }
