/* The admin site (docs/admin_client_spec.md). Mobile first; served by the server itself, as the
   Content-Security-Policy allows no inline styles or other sources. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #5f5f5a;
  --line: #d6d6d0;
  --accent: #2f5d8a;
  --accent-text: #ffffff;
  --error-bg: #fbe9e7;
  --error-text: #8a1c12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #222220;
    --text: #ececea;
    --muted: #a8a8a2;
    --line: #3b3b38;
    --accent: #7fb0e0;
    --accent-text: #10202f;
    --error-bg: #3a1a16;
    --error-text: #f2b8b0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bar {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}
h1 { font-size: 1.5rem; margin: 8px 0 4px; }
h2 { font-size: 1.1rem; margin: 0; }
p { margin: 0 0 8px; }
.who, .hint { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
form.stack { gap: 24px; margin-top: 16px; }
section.stack {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
input {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
button {
  font: inherit;
  font-weight: 600;
  padding: 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
.qr { background: #ffffff; padding: 12px; border-radius: 6px; align-self: center; width: min(240px, 100%); }
.qr svg { display: block; width: 100%; height: auto; }
.key { font-size: 0.95rem; word-break: break-all; user-select: all; }
.error {
  padding: 12px;
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--error-text);
}
@media (min-width: 720px) {
  .page { padding: 32px 16px; }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
form.inline { margin: 0; }
button.link {
  padding: 6px 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 12px; }
.nav a { color: var(--accent); text-decoration: none; font-weight: 500; }
section.card { margin-top: 16px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0 0 8px; overflow-wrap: anywhere; }
.sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sessions li { display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .facts { grid-template-columns: max-content 1fr; }
  .facts dd { margin: 0; }
}
