/* The hub's operator pages. One stylesheet, no framework, no web fonts: every
   byte served from this origin is a byte an attacker who replaced it could use
   to read chats in the browser (DOCS/public-access-spec.md, "What a
   compromised hub can still do"), so there is nothing here to fetch from
   anywhere else. */

:root {
  --bg: #11131a;
  --panel: #1a1d27;
  --line: #2b303d;
  --text: #e7e9ef;
  --muted: #9aa1b4;
  --accent: #6ea8fe;
  --bad: #ff8f8f;
  --good: #7ddba3;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, sans-serif;
}

main { max-width: 60rem; margin: 0 auto; }

h1 { font-size: 1.3rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }
a { color: var(--accent); }

.sub { color: var(--muted); margin: 0 0 1.5rem; }

section, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: none; }

button {
  font: inherit;
  color: var(--text);
  background: #262b38;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
button:hover { background: #2f3647; }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: #2b4a7d; border-color: #3a5f9c; }

input, select {
  font: inherit;
  color: var(--text);
  background: #0d0f15;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
}

form.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.muted { color: var(--muted); }
.bad { color: var(--bad); }
.good { color: var(--good); }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  margin-right: 0.25rem;
}
.note { white-space: pre-wrap; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
