:root {
  --bg: #0b0d12;
  --panel: #111522;
  --card: #0f1320;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.45);

  --ok: #3ddc97;
  --warn: #ffd166;
  --err: #ff5c7a;
  --info: #7aa8ff;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans",
    "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Fixed gradient layer (does NOT scroll / does NOT repeat) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(122, 168, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(61, 220, 151, 0.10), transparent 55%),
    var(--bg);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  padding: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(122,168,255,0.25), rgba(61,220,151,0.18));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 16px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}

.card-label {
  font-size: 12px;
  color: var(--muted);
}
.card-value {
  font-size: 20px;
  font-weight: 750;
  margin-top: 8px;
}
.card-muted {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
}

.panel {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
}
.panel-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.seg {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 12px;
}
.seg.active {
  background: rgba(122,168,255,0.15);
  color: var(--text);
}

.search {
  width: min(320px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
  font-size: 12px;
}
.search::placeholder { color: rgba(255,255,255,0.35); }

.list {
  padding: 10px;
  background: var(--panel);
}

.row {
  display: grid;
  grid-template-columns: 160px 170px 120px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.row + .row { margin-top: 8px; }

.row:hover {
  border-color: var(--border);
  background: rgba(255,255,255,0.03);
}

.ts {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--text);
  width: fit-content;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--info);
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--err); }
.dot.info { background: var(--info); }

.mono { font-family: var(--mono); }

.reason {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.small {
  color: var(--faint);
  font-size: 12px;
}

.empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 14px 0 26px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}
