:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --border: #d9e1ea;
  --accent: #1d4ed8;
  --accent-dark: #143eab;
  --text: #0f172a;
  --muted: #475569;
  --danger: #b91c1c;
  --ok: #166534;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 240px);
  color: var(--text);
}
.container {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 18px 40px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
input, textarea, button {
  font: inherit;
}
input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: var(--accent-dark); }
.muted { color: var(--muted); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}
.stat strong { display: block; font-size: 24px; margin-top: 6px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
th {
  background: #f8fafc;
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.small { font-size: 13px; }
.list { margin: 0; padding-left: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
