:root {
  color-scheme: dark light;
  --bg: #0e0e0e; --panel: #181818; --line: #2c2c2c; --text: #ededed; --muted: #9a9a9a;
  --accent: #ededed; --on-accent: #0e0e0e; --danger: #e5484d; --ok: #3fb950; --warn: #d29922;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fafafa; --panel: #ffffff; --line: #dcdcdc; --text: #141414; --muted: #666666; --accent: #141414; --on-accent: #fafafa; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px; flex: 1; }
footer { padding: 14px 16px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
h1 { font-size: 22px; margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--line); object-fit: cover; }
button, .button { font: inherit; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
label { display: block; margin: 12px 0 4px; font-weight: 500; }
input, select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.notice { border-left: 3px solid var(--muted); padding: 8px 12px; margin-bottom: 14px; background: var(--panel); border-radius: 0 8px 8px 0; }
.notice.error { border-color: var(--danger); }
.notice.ok { border-color: var(--ok); }
.status-ok { color: var(--ok); } .status-warn { color: var(--warn); } .status-bad { color: var(--danger); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { padding: 4px 10px; font-size: 13px; }
