:root {
  color-scheme: dark;
  --bg: #070910;
  --panel: #0d111d;
  --panel-2: #111827;
  --line: rgba(152, 164, 194, 0.18);
  --text: #edf3ff;
  --muted: #9ca8c4;
  --accent: #35c8ff;
  --accent-2: #b58cff;
  --danger: #ff6b7a;
  --good: #40e6a1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(53, 200, 255, 0.18), transparent 32rem),
    radial-gradient(circle at bottom left, rgba(181, 140, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(53, 200, 255, 0.35);
  background: linear-gradient(135deg, rgba(53,200,255,0.18), rgba(181,140,255,0.16));
  border-radius: 8px;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a, button {
  min-height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text);
  padding: 0 14px; font-weight: 700; cursor: pointer;
}
.nav a:hover, button:hover { border-color: rgba(53, 200, 255, 0.55); }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101d; border: 0; }
.danger { color: white; background: rgba(255, 107, 122, 0.16); border-color: rgba(255, 107, 122, 0.42); }
.hero { padding: 72px 0 42px; display: grid; gap: 28px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 0.95; letter-spacing: 0; }
.hero p, .muted { color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(9, 12, 22, 0.92);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.card h3 { margin: 0 0 8px; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; padding: 24px 0; }
.sidebar { position: sticky; top: 16px; align-self: start; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0,0,0,0.28); color: var(--text); padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
pre {
  overflow: auto; max-height: 440px; padding: 14px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.28); color: #d8e7ff;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; border: 1px solid var(--line); color: var(--muted); }
.badge.good { color: var(--good); border-color: rgba(64,230,161,0.35); }
.badge.bad { color: var(--danger); border-color: rgba(255,107,122,0.35); }
.notice { color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 14px; }

@media (max-width: 860px) {
  .hero, .layout, .grid, .grid.two { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .sidebar { position: static; }
}
