:root {
  --bg: #0e1526;
  --panel: #18223d;
  --panel-2: #202d52;
  --line: #2c3a66;
  --text: #eef1f8;
  --muted: #9aa5c4;
  --accent: #f2b632;
  --accent-ink: #2a1f00;
  --good: #4cd17e;
  --bad: #ff5d5d;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
header.site .brand { font-weight: 800; letter-spacing: 0.04em; }
header.site .brand span { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0.5em 0; }
h2 { font-size: 1.1rem; margin: 1.2em 0 0.5em; }
p.muted, .muted { color: var(--muted); }
a { color: var(--accent); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 12px 0;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

input[type=text], input[type=number], select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 0.95rem; width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button {
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 8px; padding: 8px 14px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--bad); color: #2a0000; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; }

.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; background: var(--panel-2); color: var(--muted);
}
.pill.on { background: var(--good); color: #002a12; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; opacity: 0; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
