:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --line: #d6d6d6;
  --accent: #1f4fd8;
  --accent-fg: #ffffff;
  --error: #b00020;
  --ok: #1b6e2e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #ececec;
    --muted: #a0a4ab;
    --line: #353a42;
    --accent: #6c93ff;
    --accent-fg: #0b0d12;
    --error: #ff7a8a;
    --ok: #6fd48a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 1.25rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem; }
#session { display: flex; gap: 0.75rem; align-items: center; color: var(--muted); }
label { display: block; font-weight: 600; margin-bottom: 0.75rem; }
input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40rem) { .row { grid-template-columns: 1fr; } }
button {
  padding: 0.5rem 1rem;
  font: inherit;
  color: var(--accent-fg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}
button.secondary { color: var(--fg); background: transparent; border-color: var(--line); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.url { max-width: 22rem; overflow-wrap: anywhere; }
a { color: var(--accent); }
#message { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; }
#message.error { color: var(--error); border-color: var(--error); }
#message.ok { color: var(--ok); border-color: var(--ok); }
.note { color: var(--muted); font-size: 0.85rem; }
[hidden] { display: none !important; }
