:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #38bdf8;
  --danger: #fb7185;
  --ok: #34d399;
  --border: #243044;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: var(--text);
}
.shell { max-width: 1400px; margin: 0 auto; padding: 24px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 24px;
}
.eyebrow { margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
h1, h2 { margin: 0 0 12px; }
.panel {
  background: rgba(17, 24, 39, .92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stacked { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, textarea, select, button {
  border-radius: 12px; border: 1px solid var(--border);
  padding: 12px 14px; font: inherit; color: var(--text); background: #0b1220;
}
textarea { min-height: 92px; resize: vertical; }
button { background: var(--accent); color: #00111d; font-weight: 700; cursor: pointer; }
button.secondary { background: transparent; color: var(--text); }
button.ghost { background: transparent; color: var(--muted); }
.topbar-actions { display: flex; gap: 10px; }
.cards { display: grid; gap: 12px; }
.card {
  border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: #0b1220;
}
.card p { margin: 6px 0; color: var(--muted); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .82rem;
  background: rgba(56, 189, 248, .14);
  color: #7dd3fc;
}
.badge.danger { background: rgba(251, 113, 133, .14); color: #fda4af; }
.badge.ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.small { font-size: .9rem; color: var(--muted); }
@media (max-width: 1024px) {
  .grid.two, .grid.three, .row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
