:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --brand: #0b5fff;
  --ok: #0f8b3d;
  --warn: #b54708;
  --danger: #b42318;
  --border: #d0d5dd;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #eef3fb 0%, #f9fbfc 100%);
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

h1, h2, h3 { margin: 0 0 10px; }
.muted { color: var(--muted); }

label { display: block; margin: 8px 0 4px; font-weight: 600; }
input, select, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

button {
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #344054;
}

button.warn {
  background: var(--warn);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.pill.ok { background: #d1fadf; color: #026a2b; }
.pill.warn { background: #fef0c7; color: #93370d; }
.pill.danger { background: #fee4e2; color: #912018; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 8px;
  vertical-align: top;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  width: auto;
  min-width: 150px;
}

.topbar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px 24px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.small { font-size: 12px; }

@media (max-width: 700px) {
  .actions button { width: 100%; }
}
