* { box-sizing: border-box; }
body.admin-body, body.auth-body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #0b1020;
  color: #e5e7eb;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .brand { font-weight: 700; letter-spacing: 0.02em; }
.topnav a {
  color: #cbd5e1;
  margin-left: 16px;
  text-decoration: none;
  font-size: 14px;
}
.topnav a.active, .topnav a:hover { color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.container.wide { max-width: 1400px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; }
.muted { color: #9ca3af; font-size: 14px; }
.small { font-size: 13px; }
.err { color: #fecaca; }
.ok { color: #bbf7d0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-mini { display: flex; flex-direction: column; gap: 8px; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
label { font-size: 14px; color: #cbd5e1; }
input, select, textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f9fafb;
  font: inherit;
}
input.wide { width: 100%; min-width: 200px; }
.table-wrap { overflow-x: auto; border: 1px solid #1f2937; border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #1f2937; text-align: left; }
.table th { color: #94a3b8; font-weight: 600; }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill.active { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.pill.draft { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.pill.paused { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.pill.ended { background: rgba(248, 113, 113, 0.15); color: #fecaca; }
.btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { border-color: #475569; }
.btn.primary { background: linear-gradient(135deg, #22d3ee, #6366f1); border: none; color: #0b1020; font-weight: 600; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.danger { border-color: #7f1d1d; color: #fecaca; }
.btn.accent { border: none; background: #a78bfa; color: #1e1b4b; font-weight: 600; }
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 8px;
}
.tabs a {
  padding: 8px 12px;
  border-radius: 10px 10px 0 0;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}
.tabs a.active { background: #111827; color: #fff; }
.tab-note { align-self: center; margin-left: 8px; }
.panel {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.danger-zone { border-color: #7f1d1d; }
.checks label { display: block; margin: 6px 0; }
textarea.code { font-family: ui-monospace, monospace; font-size: 13px; width: 100%; }
.hidden { display: none !important; }

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: min(400px, 100%);
  padding: 28px;
  border-radius: 16px;
  background: #111827;
  border: 1px solid #1f2937;
}
.auth-card h1 { margin-top: 0; }
