:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d9e2ef;
  --text: #18212f;
  --muted: #5d6b82;
  --primary: #1f5eff;
  --danger: #c62828;
  --success: #18794e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.main { padding: 24px 16px 40px; }
.topbar {
  background: #0f1725;
  color: #fff;
  padding: 14px 0;
}
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.brand { font-weight: bold; font-size: 20px; margin-left: 0 !important; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-weight: bold; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 100px; }
button, .btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary { background: #4b5d79; }
.btn-danger { background: var(--danger); }
.btn-light { background: #eef3fb; color: var(--text); }
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.flash-success { background: #e8f7ef; color: var(--success); }
.flash-error { background: #fdeaea; color: var(--danger); }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2ff;
  color: #2342b2;
  font-size: 12px;
}
.muted { color: var(--muted); }
.actions a, .actions button { margin-right: 8px; margin-bottom: 6px; }
.secret-hidden {
  color: var(--muted);
  font-style: italic;
}
.kv { margin: 0; }
.kv dt { font-weight: bold; margin-top: 8px; }
.kv dd { margin: 2px 0 6px; }
.code {
  font-family: Consolas, monospace;
  background: #f3f6fa;
  padding: 2px 6px;
  border-radius: 4px;
}
.small { font-size: 13px; }
