:root {
  --bg: #f6f7f9; --fg: #1c2330; --muted: #67707f; --line: #e3e6ea;
  --card: #fff; --accent: #2456d6; --accent-fg: #fff; --danger: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12151a; --fg: #e8eaee; --muted: #97a0ad; --line: #262b33;
          --card: #191d24; --accent: #6b93ff; --accent-fg: #101420; }
}
* { 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 { display: flex; justify-content: space-between; align-items: center;
         padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 650; letter-spacing: .2px; }
.brand span { color: var(--muted); font-weight: 400; }
.who { color: var(--muted); }
main { max-width: 960px; margin: 26px auto; padding: 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        padding: 18px; margin-bottom: 16px; }
.card.center { text-align: center; padding: 56px 24px; }
.muted { color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
select, input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px;
                background: var(--card); color: var(--fg); font: inherit; }
button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px;
         background: var(--card); color: var(--fg); font: inherit; cursor: pointer; }
button:hover { border-color: var(--accent); }
.btn, button.primary { background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); text-decoration: none; display: inline-block;
  padding: 9px 16px; border-radius: 7px; font-weight: 600; }
button.danger { color: var(--danger); }
button.linkish { border: none; background: none; color: var(--muted); text-decoration: underline; }
form#inviteForm { display: flex; gap: 10px; flex-wrap: wrap; }
form#inviteForm input[name=email] { flex: 1; min-width: 220px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr.disabled td { opacity: .55; }
td.actions, th.actions { text-align: right; white-space: nowrap; }
td .muted { font-size: 12.5px; display: block; }
.pill { padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.pill.ok { background: #e3f2e5; color: #19652a; }
.pill.off { background: #f7e3e1; color: #8c2620; }
@media (prefers-color-scheme: dark) {
  .pill.ok { background: #17301c; color: #7fd48f; }
  .pill.off { background: #391b18; color: #ff9d94; }
}
.note { color: #19652a; font-weight: 550; }
.note.err { color: var(--danger); }
h1 { font-size: 22px; margin: 0 0 8px; }
