:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #f3f4f6;
}

* { box-sizing: border-box; }

body { margin: 0; }

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  background: #111827;
  color: white;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card.narrow {
  max-width: 420px;
  margin: 48px auto 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

input, select, button, .button {
  font: inherit;
}

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

button, .button {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

button.secondary, .button.secondary {
  background: #6b7280;
}

button.danger, .button.danger {
  background: #dc2626;
}

.inline-form { display: inline; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

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

.error { color: #b91c1c; }
.success { color: #047857; }
.muted { color: #6b7280; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 0.85rem;
}

.danger-zone { margin-top: 24px; }

.public-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
