:root {
  --bg: #0f1115;
  --card: #171b22;
  --muted: #92a0b4;
  --text: #f2f4f8;
  --border: #293140;
  --accent: #6d8bff;
  --danger: #c74a4a;
  --success: #2b9b62;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.page { max-width: 1200px; margin: 0 auto; padding: 24px; }
.center-page { min-height: 100vh; display: grid; place-items: center; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.auth-card { width: 100%; max-width: 420px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.grid.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.row { display: flex; }
.row.gap { gap: 10px; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; }
input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d1015;
  color: var(--text);
}
button {
  padding: 11px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}
button.secondary { background: #2e3644; }
button.danger { background: var(--danger); }
button:disabled { opacity: .6; cursor: not-allowed; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.alert.error {
  background: rgba(199,74,74,.12);
  border: 1px solid rgba(199,74,74,.4);
  color: #ffb7b7;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.meta-list { display: grid; gap: 10px; margin-top: 16px; }
.meta-list > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.meta-list span { color: var(--muted); }
.meta-list strong { max-width: 65%; text-align: right; word-break: break-word; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 10px; border-radius: 999px;
  background: #222937; border: 1px solid var(--border); color: var(--text);
}
.log-card { margin-bottom: 24px; }
.logs {
  margin-top: 14px;
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.log-row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); white-space: pre-wrap; }
.log-row.info { color: #dce8ff; }
.log-row.warning { color: #ffd28b; }
.log-row.error { color: #ff9f9f; }
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
  .meta-list > div { flex-direction: column; }
  .meta-list strong { max-width: 100%; text-align: left; }
}
