:root {
  --bg: #08110d;
  --bg-2: #0e1a14;
  --panel: #12211a;
  --line: #1f3a2d;
  --text: #e7f6ee;
  --muted: #8eae9b;
  --green: #00e399;
  --green-2: #14b87a;
  --warn: #f3c16b;
  --bad: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 227, 153, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.top {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  margin-bottom: 28px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 36px; height: 36px; border-radius: 10px; background: #07140f;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--green); font-weight: 700;
}
h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.panel, .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card { padding: 16px; }
.panel { padding: 18px; }
.k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.v { margin-top: 8px; font-size: 18px; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.ok { color: var(--green); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
  border: 1px solid var(--line); color: var(--muted);
}
.pill.live { color: var(--green); border-color: rgba(0,227,153,0.35); background: rgba(0,227,153,0.08); }
.endpoint, .branch {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.endpoint:first-of-type, .branch:first-of-type { border-top: 0; padding-top: 0; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.conn {
  margin-top: 8px;
  background: #0a1611;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  overflow-x: auto;
  white-space: nowrap;
}
button, input, select {
  font: inherit; color: inherit;
}
button {
  background: var(--green); color: #052015; border: 0; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; cursor: pointer;
}
button.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
button.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255,107,107,0.4); }
input, select {
  width: 100%; background: #0a1611; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
form { display: grid; gap: 10px; }
.banner {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(243,193,107,0.35); color: var(--warn);
  background: rgba(243,193,107,0.08);
}
.error {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,107,107,0.35); color: #ffd4d4;
  background: rgba(255,107,107,0.08);
}
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login .panel { width: min(420px, 100%); }
.empty { padding: 24px 0; color: var(--muted); }
@media (max-width: 860px) {
  .grid, .cards { grid-template-columns: 1fr; }
  .top { flex-direction: column; }
}
