:root {
  color-scheme: dark;
  --bg: #11151c;
  --panel: #1b222d;
  --panel-2: #202a36;
  --text: #eef3f8;
  --muted: #95a3b3;
  --line: #334052;
  --accent: #42d392;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, .button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: #07130e;
  font-weight: 700;
  cursor: pointer;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #0d1117;
  color: var(--text);
}
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 18px; background: #0d1117; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 24px; }
.brand img, .login-logo { width: 34px; height: 34px; }
.nav-link { display: block; padding: 10px 12px; border-radius: 6px; color: var(--muted); }
.nav-link.active, .nav-link:hover { background: var(--panel-2); color: var(--text); }
.topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 24px; }
.content { padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.wide { grid-column: 1 / -1; }
h1, h2 { margin: 0 0 14px; }
.big { font-size: 32px; font-weight: 800; margin: 0; }
.muted { color: var(--muted); margin-left: 8px; }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.log, .response {
  min-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.facts { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.list { padding-left: 20px; }
.error { color: var(--danger); }
.command-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.login-page { display: grid; place-items: center; padding: 24px; }
.login-box { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .command-form { grid-template-columns: 1fr; }
}
