:root {
  color-scheme: dark;
  --bg: #070a12;
  --card: #121a2e;
  --line: #24304d;
  --text: #e8eefc;
  --muted: #93a0bd;
  --accent: #5b9dff;
  --ok: #3ddc97;
  --err: #ff6b7a;
  --danger: #ff4d6d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, #1a2b55 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #13261f 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  padding: 1.25rem;
}
body.auth { display: grid; place-items: center; }
a { color: #8fd3ff; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin: 0 auto 1rem; max-width: 960px;
}
h1 { margin: 0 0 .25rem; font-size: 1.45rem; }
h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.card {
  max-width: 960px; margin: 0 auto 1rem;
  background: color-mix(in srgb, var(--card) 92%, black);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
label { display: block; margin-bottom: .85rem; font-size: .92rem; color: #c9d4ef; }
input, select, button {
  width: 100%; margin-top: .35rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: #0c1324; color: var(--text);
  padding: .7rem .8rem; font: inherit;
}
button {
  width: auto; cursor: pointer; background: linear-gradient(180deg, #4f8fff, #2f6fe0);
  border: none; font-weight: 600; padding: .7rem 1rem;
}
button:hover { filter: brightness(1.06); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
button.danger { background: linear-gradient(180deg, #ff6b81, #d93856); }
.row { display: flex; gap: .5rem; align-items: center; }
.row input { flex: 1; }
.suffix { color: var(--muted); white-space: nowrap; margin-top: .35rem; }
.grid { display: grid; gap: .2rem; }
.alert {
  max-width: 960px; margin: 0 auto 1rem; padding: .75rem 1rem;
  border-radius: 12px; border: 1px solid;
}
.alert.ok { background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.35); color: #b6f5d7; }
.alert.err { background: rgba(255,107,122,.08); border-color: rgba(255,107,122,.35); color: #ffc2c9; }
.hint { margin: .8rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.pill {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  background: rgba(91,157,255,.12); border: 1px solid rgba(91,157,255,.3); font-size: .8rem;
}
@media (max-width: 640px) {
  .top { flex-direction: column; }
}
