
/* Every surface declares foreground and background together. Declaring one
   without the other is what makes a light notice unreadable under a dark
   colour scheme, and the non-authoritative banner is the last thing that may
   become illegible. */
:root {
  color-scheme: light dark;
  --fg: #18181b; --bg: #ffffff; --surface: #fafafa;
  --line: #d4d4d8; --muted: #52525b;
  --notice-bg: #fff7ed; --notice-line: #fdba74; --notice-fg: #7c2d12;
  --error-bg: #fef2f2; --error-line: #fca5a5; --error-fg: #7f1d1d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e4e4e7; --bg: #0b0b0e; --surface: #17171b;
    --line: #3f3f46; --muted: #a1a1aa;
    --notice-bg: #2a1a0b; --notice-line: #b45309; --notice-fg: #fed7aa;
    --error-bg: #2a1010; --error-line: #b91c1c; --error-fg: #fecaca;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--fg); }
header { border-bottom: 1px solid var(--line); padding: .75rem 1.25rem; display: flex;
  align-items: baseline; gap: 1rem; flex-wrap: wrap; }
header h1 { font-size: 1rem; margin: 0; font-weight: 600; }
nav a { margin-right: 1rem; }
form.signout { margin: 0; }
form.signout button { font: inherit; background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; }
main { padding: 1.25rem; max-width: 78rem; }
.banner { background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--notice-fg);
  border-radius: 6px; padding: .6rem .8rem; margin-bottom: 1.25rem; font-size: .875rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; min-width: 44rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { font-weight: 600; }
.cards { display: flex; flex-wrap: wrap; gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; flex: 1 1 20rem;
  min-width: 0; background: var(--surface); color: var(--fg); }
.card h2 { font-size: .95rem; margin: 0 0 .6rem; }
.pill { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem;
  border: 1px solid var(--line); }
.pill-unobserved { color: var(--muted); border-style: dashed; }
.meta { color: var(--muted); font-size: .8125rem; }
form.filters { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 1rem; }
label { display: block; font-size: .8125rem; color: var(--muted); }
.pager { margin-top: 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.error { border: 1px solid var(--error-line); background: var(--error-bg); color: var(--error-fg);
  border-radius: 6px; padding: 1rem; }
.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--notice-fg);
  border-radius: 6px; padding: .6rem .8rem; margin: 0 0 1rem; font-size: .875rem; }
form.note-form { display: block; margin: 0 0 1.25rem; max-width: 46rem; }
form.note-form label { font-size: .875rem; color: var(--fg); font-weight: 600; margin-bottom: .25rem; }
form.note-form textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: .5rem .6rem; resize: vertical; }
form.note-form textarea:focus-visible, form.note-form button:focus-visible,
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px; }
form.note-form button { font: inherit; margin-top: .6rem; padding: .4rem .9rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg);
  cursor: pointer; }
dl.detail { display: grid; grid-template-columns: 14rem 1fr; gap: .3rem 1rem; margin: 0 0 1.25rem; }
dl.detail dt { color: var(--muted); font-size: .8125rem; }
dl.detail dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  main { padding: 1rem; }
  .cards { display: block; }
  .card { margin-bottom: 1rem; }
  dl.detail { grid-template-columns: 1fr; gap: 0 0; }
  dl.detail dt { margin-top: .5rem; }
  form.filters { flex-direction: column; align-items: stretch; }
}
