*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --sidebar-bg:  #1a1f2e;
  --sidebar-w:   220px;
  --content-bg:  #f0f2f5;
  --card-bg:     #ffffff;
  --border:      #e2e8f0;
  --text:        #1e293b;
  --muted:       #64748b;
  --faint:       #94a3b8;
  --gold:        #c9a060;
  --gold-dim:    rgba(201,160,96,.15);
  --gold-hover:  #b8904f;
  --red:         #dc2626;
  --radius:      8px;
  --shadow:      0 1px 4px rgba(0,0,0,.07);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   Login page
───────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--content-bg);
}

.login-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.login-logo .logo-lock { font-size: 1.75rem; }
.login-logo .logo-name { font-size: 1.1rem; font-weight: 700; color: var(--faint); }

.login-box h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.login-box h2 {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.login-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}

.login-box input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
}

.login-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.login-box button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.7rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.login-box button:hover { background: var(--gold-hover); }

/* ─────────────────────────────────────────
   Admin layout: sidebar + content
───────────────────────────────────────── */
body.admin-page {
  background: var(--content-bg);
  min-height: 100vh;
}

/* ── Sidebar ── */
.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.sidebar-logo .logo-icon { font-size: 1.4rem; line-height: 1; }

.sidebar-logo .logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background .12s, color .12s;
}

.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
}

.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 0.6rem 0.5rem 0.75rem;
  flex-shrink: 0;
}

.sidebar-user {
  display: block;
  font-size: 0.72rem;
  color: #475569;
  padding: 0.25rem 0.75rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Content area ── */
.admin-content {
  margin-left: var(--sidebar-w);
  padding: 2rem;
  min-height: 100vh;
  max-width: calc(var(--sidebar-w) + 1100px);
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ─────────────────────────────────────────
   Breadcrumb
───────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--gold);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
  line-height: 1.4;
}

.button:hover { background: var(--gold-hover); color: #fff; }

.button-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover { background: #f1f5f9; color: var(--text); }

.button-danger { background: var(--red); }
.button-danger:hover { background: #b91c1c; }

.button-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.link-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  color: var(--gold);
  text-decoration: none;
  font-family: inherit;
}

.link-button:hover { text-decoration: underline; }
.link-button.danger { color: var(--red); }

/* ─────────────────────────────────────────
   Notices & Errors
───────────────────────────────────────── */
.notice {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.notice-success { background: #dcfce7; color: #166534; }
.notice-error   { background: #fee2e2; color: #991b1b; }

.error-list {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: 0.75rem 1rem 0.75rem 1.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 5px;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────
   Stat cards (dashboard)
───────────────────────────────────────── */
.stat-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 150px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   Action cards (dashboard)
───────────────────────────────────────── */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}

.action-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,160,96,.15);
}

.action-card-icon { font-size: 1.75rem; line-height: 1; margin-bottom: 0.25rem; }
.action-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.action-card-desc  { font-size: 0.8rem;  color: var(--muted); }

.action-card-cta {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ─────────────────────────────────────────
   Section heading
───────────────────────────────────────── */
.section-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 1.75rem 0 0.75rem;
}

.section-head:first-child { margin-top: 0; }

/* ─────────────────────────────────────────
   Game cards (games.php)
───────────────────────────────────────── */
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color .12s, box-shadow .12s;
}

.game-card:hover {
  border-color: #c7d2e0;
  box-shadow: 0 3px 12px rgba(0,0,0,.09);
}

.game-card-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.game-card-chips {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.game-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.game-card-body {
  padding: 0.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.game-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.game-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   Badges
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-draft    { background: #f1f5f9; color: #475569; }
.badge-active   { background: #dcfce7; color: #166534; }
.badge-archived { background: #fef9c3; color: #854d0e; }
.badge-escape   { background: var(--gold-dim); color: var(--gold); }
.badge-murder   { background: rgba(220,38,38,.1); color: #b91c1c; }

/* ─────────────────────────────────────────
   Pipeline cards (chapters.php, steps.php)
───────────────────────────────────────── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pipeline-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: border-color .12s;
  min-height: 64px;
}

.pipeline-card:hover { border-color: #c7d2e0; }

.pipeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  background: var(--content-bg);
  border-right: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.sort-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-right: 1px solid var(--border);
  gap: 2px;
}

.sort-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.4;
  font-family: inherit;
}

.sort-btn:hover {
  background: #e2e8f0;
  border-color: var(--border);
  color: var(--text);
}

.pipeline-body {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.pipeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  color: #475569;
  white-space: nowrap;
}

.pipeline-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-left: 1px solid var(--border);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 0.55rem;
  border-radius: 5px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background .1s, color .1s, border-color .1s;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
}

.icon-btn:hover {
  background: #f1f5f9;
  border-color: #c8d2de;
  color: var(--text);
}

.icon-btn.primary {
  background: var(--gold-dim);
  border-color: rgba(201,160,96,.3);
  color: var(--gold);
  font-weight: 600;
}

.icon-btn.primary:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.icon-btn.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--red);
}

/* ─────────────────────────────────────────
   Forms
───────────────────────────────────────── */
.admin-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.form-panel, .help-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.help-panel { position: sticky; top: 2rem; }

.form-panel-head, .help-panel-head {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #f8fafc;
}

.form-panel-body, .help-panel-body {
  padding: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-hint, .hint {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.2rem;
  font-weight: 400;
}

.form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.form-section-title:first-child { margin-top: 0; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Help tips in right panel */
.help-tip {
  background: rgba(201,160,96,.06);
  border: 1px solid rgba(201,160,96,.2);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.help-tip strong { color: var(--text); display: block; margin-bottom: 0.2rem; }
.help-tip:last-child { margin-bottom: 0; }

/* Live preview card */
.preview-game-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1rem;
  background: #f8fafc;
  margin-bottom: 1rem;
}

.preview-game-card .preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.preview-game-card .preview-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Quick links in help panel */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  transition: border-color .1s, background .1s;
  background: #fff;
}

.quick-link:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.quick-link-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* ─────────────────────────────────────────
   Tables
───────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafbfc; }

.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.actions a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
}

.actions a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   Empty state
───────────────────────────────────────── */
.empty-state {
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.empty-state p { margin-bottom: 1rem; }

.empty-state a { color: var(--gold); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   Misc utilities
───────────────────────────────────────── */
.text-muted { color: var(--muted); font-size: 0.875rem; }
.text-faint { color: var(--faint); }
.text-gold  { color: var(--gold); }

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text);
}

/* ─────────────────────────────────────────
   Murder mystery hub
───────────────────────────────────────── */
.murder-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.hub-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: box-shadow .15s;
  border: 1px solid var(--border);
}

.hub-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.hub-number { font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.hub-label  { font-size: 1rem; font-weight: 600; color: var(--text); }
.hub-action { font-size: 0.85rem; color: var(--gold); margin-top: 0.5rem; }
.hub-card-done .hub-number    { color: #22c55e; }
.hub-card-missing .hub-number { color: #f59e0b; }

/* ─────────────────────────────────────────
   Filter (data.php, results.php)
───────────────────────────────────────── */
.filter-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.filter-row .form-group { margin-bottom: 0; min-width: 140px; }
.filter-actions { display: flex; gap: 0.5rem; }
.filter-count { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }

.bulk-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.danger-button { background: var(--red); }
.danger-button:hover { background: #b91c1c; }

.type-chip {
  display: inline-block;
  font-size: 0.7rem;
  background: #f1f5f9;
  color: var(--muted);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  font-weight: 600;
}

/* ─────────────────────────────────────────
   Result detail
───────────────────────────────────────── */
.detail-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-table { width: 100%; border-collapse: collapse; }

.detail-table th {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  width: 160px;
  vertical-align: top;
}

.detail-table td { padding: 0.5rem 0; font-size: 0.875rem; color: var(--text); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

/* ─────────────────────────────────────────
   Backward-compat: old header-nav layout
   (pages not yet converted to sidebar)
───────────────────────────────────────── */
.admin-header {
  background: #1e293b;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
}

.admin-header .site-name { font-weight: 700; font-size: 1.1rem; }

.admin-header nav a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.875rem;
}

.admin-header nav a:hover { color: #f1f5f9; }

.admin-main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-main h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Old sort buttons (steps list) */
.sort-buttons { display: flex; gap: 2px; }
