:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #334155;
  --accent: #38bdf8;
  --good: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.topbar {
  padding: 28px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; }
p { color: var(--muted); }
.controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
input, select, button {
  border: 1px solid var(--line);
  background: #020617;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
button { cursor: pointer; background: var(--accent); color: #00111f; font-weight: 700; border-color: transparent; }
main { padding: 28px; max-width: 1500px; margin: 0 auto; }
.notice { padding: 14px 16px; background: #0b1220; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; color: var(--muted); }
.notice.ok { border-color: rgba(52,211,153,.5); color: var(--good); }
.notice.err { border-color: rgba(251,191,36,.5); color: var(--warn); }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel { background: rgba(17,24,39,.9); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.card span { color: var(--muted); display: block; margin-bottom: 8px; }
.card strong { font-size: 34px; letter-spacing: -0.04em; }
h2 { margin: 0 0 14px; font-size: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(51,65,85,.65); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td { color: #d1d5db; }
code { display: block; background: #020617; border: 1px solid var(--line); padding: 14px; border-radius: 12px; overflow-x: auto; }
@media (max-width: 980px) {
  .topbar { flex-direction: column; }
  .cards, .two { grid-template-columns: 1fr; }
}
