:root {
  color-scheme: dark;
  --bg: #0e1113;
  --panel: #171b1f;
  --line: #262c32;
  --text: #e8ecef;
  --muted: #8b959e;
  --accent: #19c37d;
  --warn: #f2a93b;
  --bad: #ef5b5b;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }

header a, .link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
header a:hover { color: var(--text); }

main { padding: 24px; max-width: 1800px; margin: 0 auto; }

.notice {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}
.notice.error { color: var(--bad); }

/* ---- admin ---- */

.list {
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
.row + .row { border-top: 1px solid var(--line); }
.row .name { font-weight: 600; }
.row .sub { color: var(--muted); font-size: 13px; }

.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.15s;
  pointer-events: none;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.hint { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 13px; }

form.login {
  max-width: 320px;
  margin: 64px auto;
  display: grid;
  gap: 10px;
}
input[type="password"], button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
button { background: var(--accent); border-color: var(--accent); color: #04130c; font-weight: 600; cursor: pointer; }
