:root {
  --bg: #0f1419;
  --card: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d8bfd;
  --bad: #f07178;
  --ok: #7fd962;
  --border: #2a3544;
  --flash: #2d3a4d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.top {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row.space { justify-content: space-between; }
.brand { font-weight: 700; color: var(--text); }
.nav { display: flex; gap: 1rem; margin-left: auto; }

main.wrap { padding: 1.5rem 1rem 3rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.card.narrow { max-width: 480px; }

h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }

.muted { color: var(--muted); }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }

.form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121920;
  color: var(--text);
}
.form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.form button, .btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
}
.form .full { grid-column: 1 / -1; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.45rem;
  text-align: left;
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 600; }
.table.tight td { font-size: 0.88rem; }
.table-scroll { overflow-x: auto; }

.actions { white-space: nowrap; }

.flash {
  background: var(--flash);
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.bad { color: var(--bad); font-weight: 600; }
.foot { padding: 1rem; color: var(--muted); }

code { background: #121920; padding: 0.1rem 0.35rem; border-radius: 4px; }
