/* The Reporter's Desk — editorial admin (premium, mild palette) */
:root {
  --ink: #1c2434;
  --ink-soft: #3d4a5c;
  --sidebar: #1a2744;
  --sidebar-hover: #243352;
  --sidebar-active: #2f4268;
  --gold: #c4a574;
  --gold-soft: #e8dcc8;
  --accent: #9e4a5a;
  --accent-hover: #874058;
  --canvas: #f6f4ef;
  --surface: #ffffff;
  --surface-muted: #f8f6f2;
  --border: #e3dfd6;
  --border-soft: #ebe8e1;
  --muted: #6b7280;
  --success: #2d6a4f;
  --success-bg: #e8f5ee;
  --danger: #b42318;
  --danger-bg: #fef2f2;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(28, 36, 52, 0.04);
  --shadow-md: 0 8px 30px rgba(28, 36, 52, 0.08);
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-editorial: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.admin-body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
}

body.auth-body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--sidebar);
  color: #fff;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-editorial {
  font-family: var(--font-editorial);
  letter-spacing: -0.01em;
}

a {
  color: var(--sidebar);
}

/* ——— Login (frameless split) ——— */
.auth-split {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .auth-split {
    grid-template-columns: 1.05fr 1fr;
  }
}

.auth-panel--brand {
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  text-align: center;
  padding: 0;
  background: var(--sidebar);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

@media (min-width: 900px) {
  .auth-panel--brand {
    display: flex;
  }
}

.auth-brand-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar);
}

.auth-brand-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(165deg, var(--sidebar) 0%, #243a5c 48%, #1a2744 100%);
  color: #fff;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-form-inner--aligned {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(520px, 100%);
}

.auth-form-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-brand-logo-wrap {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.auth-form-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-form-brand-title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.auth-form-brand-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--gold-soft);
  line-height: 1.45;
  max-width: 18rem;
}

.auth-form-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.auth-form-footer a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
}

.auth-form-footer a:hover {
  color: #fff;
}

.form-grid--auth {
  max-width: none;
  width: 100%;
  gap: 1.15rem;
}

.form-grid--auth .form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.form-grid--auth .form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.form-grid--auth .form-check label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-grid--auth .form-row input[type="email"],
.form-grid--auth .form-row input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

.form-grid--auth .form-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.2);
}

.form-grid--auth .form-check {
  margin-top: 0.25rem;
}

.form-actions--stack .btn-lg {
  width: 100%;
}

/* ——— App shell ——— */
.admin-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: relative;
    height: auto;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
}

.sidebar-brand-text strong {
  display: block;
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.sidebar-brand-text span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.15rem;
}

.sidebar-stat {
  margin: 1rem 1rem 0.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}

.sidebar-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.2rem;
}

.sidebar-stat-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.sidebar-stat-link:hover {
  color: var(--gold-soft);
}

.nav-block {
  padding: 0.75rem 0.75rem 0;
}

.nav-block-label {
  margin: 0 0 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item.is-active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.nav-item--cta {
  background: rgba(196, 165, 116, 0.15);
  color: var(--gold-soft);
}

.nav-item--cta:hover,
.nav-item--cta.is-active {
  background: rgba(196, 165, 116, 0.25);
  color: #fff;
}

.nav-icon {
  width: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.25rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-sidebar {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-sidebar-muted {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.btn-sidebar-muted:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-main {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem;
  max-width: none;
  width: 100%;
}

@media (max-width: 640px) {
  .admin-main {
    padding: 1.25rem 1rem 2rem;
  }
}

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

.page-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-editorial);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Legacy topbar compat */
.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-topbar h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-topbar-sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--sidebar);
  color: #fff;
}

.filter-pill-count {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.filter-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-select,
.filter-search {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  background: var(--surface-muted);
  color: var(--ink);
}

.filter-search {
  flex: 1;
  min-width: 12rem;
}

.filter-select:focus,
.filter-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.25);
}

.filter-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card--live {
  background: linear-gradient(145deg, var(--sidebar) 0%, #2a3f5f 100%);
  border-color: transparent;
  color: #fff;
}

.stat-card--live .value {
  color: var(--gold-soft);
}

.stat-card--live .label {
  color: rgba(255, 255, 255, 0.75);
}

.stat-card .value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Panels & lists */
.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-toolbar {
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-muted);
}

.panel-toolbar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.article-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s var(--ease);
}

.article-row:last-of-type {
  border-bottom: none;
}

.article-row:hover {
  background: var(--surface-muted);
}

@media (max-width: 900px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.article-row-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}

.article-row-title:hover {
  color: var(--accent);
}

.article-row-slug {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.article-row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip--category {
  background: var(--gold-soft);
  color: var(--ink-soft);
}

.article-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.panel-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.panel-empty-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Cards & tables (dashboard) */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.data-table th {
  background: var(--surface-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.data-table tbody tr:hover td {
  background: #faf9f7;
}

/* Available panel */
.available-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.available-panel-head {
  padding: 1rem 1.35rem;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.available-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.available-panel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.available-count-badge {
  background: rgba(196, 165, 116, 0.25);
  color: var(--gold-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.available-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.available-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
}

.available-list-item:hover {
  background: var(--surface-muted);
}

.available-list-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.available-list-title:hover {
  color: var(--accent);
}

.available-panel-footer {
  padding: 1rem 1.35rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-soft);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}

.form-grid--article {
  max-width: none;
  width: 100%;
  gap: 0;
}

.panel--editor {
  padding: 0;
  overflow: hidden;
}

.article-form-fields {
  display: flex;
  flex-direction: column;
}

.form-section {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--gold-soft);
}

.form-section-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-section-body--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .form-section-body--grid {
    grid-template-columns: 1fr;
  }
}

.form-row--full {
  width: 100%;
}

.form-row--wide {
  grid-column: 1 / -1;
}

.form-row--checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 0.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.2);
}

.form-row textarea#excerpt {
  min-height: 100px;
  resize: vertical;
}

.form-row textarea#body {
  min-height: 320px;
  resize: vertical;
  line-height: 1.55;
}

.form-actions--bar {
  padding: 1.25rem 1.75rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-lg {
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(158, 74, 90, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--sidebar);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--sidebar-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-soft {
  background: var(--surface-muted);
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
}

.btn-soft:hover {
  background: var(--gold-soft);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-soft-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
}

.btn-soft-danger:hover {
  background: var(--danger-bg);
  border-color: #fecaca;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 5px;
}

.badge-published {
  background: var(--success-bg);
  color: var(--success);
}

.badge-draft {
  background: #f1f5f9;
  color: var(--muted);
}

.badge-featured {
  background: #eef2ff;
  color: #4338ca;
}

.badge-breaking,
.badge-gold {
  background: #fef9ee;
  color: #92600a;
}

/* Alerts */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.alert--floating {
  margin: 1rem 2rem 0;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.error-list {
  margin: 0;
  padding-left: 1.25rem;
}

.text-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-form {
  display: inline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.table-empty {
  padding: 2rem !important;
  text-align: center;
}

/* Pagination */
.list-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface-muted);
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
}

.admin-pagination-summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-pagination-summary strong {
  color: var(--ink);
}

.admin-pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

a.admin-page-btn:hover {
  background: var(--sidebar);
  color: #fff;
  border-color: var(--sidebar);
}

.admin-page-btn.is-active {
  background: var(--sidebar);
  color: #fff;
  border-color: var(--sidebar);
}

.admin-page-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-page-ellipsis {
  color: var(--muted);
  padding: 0 0.25rem;
}
