:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0d1a29;
  --panel-2: #102238;
  --line: #213a55;
  --text: #eef6ff;
  --muted: #8fa7be;
  --cyan: #32d6c4;
  --blue: #4aa8ff;
  --red: #ff6d7d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 80% 0%, #123253 0, transparent 35%), var(--bg); }
.shell { width: min(1220px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 72px; }
header, .toolbar, .card-head, .copy-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
header { margin-bottom: 28px; }
h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 4.4rem); line-height: .96; letter-spacing: -.055em; }
h2 { margin: 4px 0; font-size: 1.15rem; }
p { color: var(--muted); }
.eyebrow { margin: 0; color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.subtitle { margin: 0; font-size: 1.05rem; }
.pill { border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.pill span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #66798b; }
.pill.good span { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.pill.bad span { background: var(--red); box-shadow: 0 0 16px var(--red); }
.card, .metric { background: linear-gradient(145deg, rgba(16,34,56,.96), rgba(10,24,39,.96)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.card { padding: 22px; }
.login { display: grid; grid-template-columns: 1fr minmax(280px, 430px); align-items: center; gap: 28px; }
form { display: flex; gap: 10px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); background: #071421; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,168,255,.12); }
button { border: 0; border-radius: 10px; padding: 12px 16px; color: #03101a; background: var(--cyan); font-weight: 800; cursor: pointer; white-space: nowrap; }
button:hover { filter: brightness(1.08); }
button.secondary { color: var(--text); background: #1b324a; }
button.small { padding: 8px 12px; }
.toolbar { justify-content: flex-end; margin: 0 0 16px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.metric { padding: 18px; }
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin: 8px 0 4px; font-size: 1.85rem; }
.grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-bottom: 14px; }
.wide { margin-bottom: 14px; }
dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
pre { max-height: 230px; overflow: auto; padding: 14px; border-radius: 10px; color: #b9d4eb; background: #06111c; font-size: .78rem; }
code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bfe8ff; }
.copy-row { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #06111c; }
.hint, .muted { color: var(--muted); font-size: .87rem; }
.table-wrap { max-height: 440px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { position: sticky; top: 0; text-align: left; color: var(--muted); background: var(--panel-2); }
th, td { padding: 11px 9px; border-bottom: 1px solid rgba(33,58,85,.7); vertical-align: top; }
td code { white-space: normal; }
.badge { display: inline-block; padding: 4px 7px; border-radius: 999px; color: var(--cyan); background: rgba(50,214,196,.1); }
.badge.blocked { color: #ff9aa6; background: rgba(255,109,125,.1); }
.activity-item { display: grid; grid-template-columns: 185px 190px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.activity-item time { color: var(--muted); }
.error { min-height: 1.2em; color: var(--red); }
.hidden { display: none !important; }
@media (max-width: 850px) { .metrics { grid-template-columns: repeat(2, 1fr); } .grid, .login { grid-template-columns: 1fr; } header { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { .shell { width: min(100% - 22px, 1220px); padding-top: 28px; } .metrics { grid-template-columns: 1fr; } form { flex-direction: column; } .activity-item { grid-template-columns: 1fr; gap: 3px; } }
