:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0f766e;
  --primary-soft: #ccfbf1;
  --danger: #dc2626;
  --warning: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.header {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
  padding: 24px;
}
.header h1 { margin: 0 0 8px; font-size: 28px; }
.header p { margin: 0; opacity: .95; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.panel h2 { margin-top: 0; }
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  background: white;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}
button.primary { background: var(--primary); color: white; }
button.secondary { background: #e5e7eb; color: #111827; }
button.danger { background: #fee2e2; color: var(--danger); }
button.small { padding: 8px 12px; border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.active { background: #dcfce7; color: #166534; }
.badge.inactive { background: #fee2e2; color: #991b1b; }
.helper { color: var(--muted); font-size: 13px; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: none;
}
.alert.show { display: block; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}
