/* Plainer staff tool: ink sidebar, dense tables, muted badges. No celebratory accents. */
h1,
h2,
.sidebar-brand,
.stat-value,
.metric-value {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
}
h1 {
  font-weight: 800;
  font-size: 22px;
  margin: 8px 0 16px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--coral);
  font-weight: 600;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--cream);
  text-decoration: underline;
  cursor: pointer;
}
.muted {
  color: rgba(41, 33, 27, 0.6);
  font-size: 14px;
}
.error {
  color: var(--coral);
  font-size: 14px;
  font-weight: 600;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  margin: 80px 24px;
}

/* Signed-in shell */
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}
.sidebar-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  opacity: 0.55;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  opacity: 0.75;
}
.sidebar-nav a.active {
  background: rgba(251, 243, 231, 0.12);
  opacity: 1;
  font-weight: 700;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  overflow-wrap: anywhere;
}
.content {
  flex: 1;
  padding: 32px 36px;
  min-width: 0;
}

/* Events list filters */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-bar input[type="search"] {
  flex: 0 1 320px;
  padding: 10px 12px;
  border: 1px solid rgba(41, 33, 27, 0.2);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.pills {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.pill-link {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  color: rgba(41, 33, 27, 0.65);
  text-decoration: none;
  background: rgba(41, 33, 27, 0.06);
}
.pill-link.active {
  background: var(--ink);
  color: var(--cream);
}

/* Dense data tables (events list, audit) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(41, 33, 27, 0.55);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(41, 33, 27, 0.12);
}
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(41, 33, 27, 0.07);
  vertical-align: top;
}
.table a {
  color: var(--ink);
  font-weight: 700;
}
.table-sub {
  color: rgba(41, 33, 27, 0.55);
  font-size: 12px;
  margin-top: 2px;
}

/* Muted status badges */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(41, 33, 27, 0.08);
  color: rgba(41, 33, 27, 0.7);
}
.badge-live {
  background: rgba(31, 138, 91, 0.14);
  color: var(--green);
}
.badge-suspended {
  background: rgba(240, 86, 63, 0.14);
  color: var(--coral);
}
.badge-pending {
  background: rgba(244, 178, 62, 0.2);
  color: #8a6413;
}

/* Event detail */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.page-head h1 {
  margin: 0;
}
.banner {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.banner-ok {
  background: rgba(31, 138, 91, 0.12);
  color: var(--green);
}
.banner-error {
  background: rgba(240, 86, 63, 0.12);
  color: var(--coral);
}
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.metric {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  min-width: 140px;
}
.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(41, 33, 27, 0.55);
  margin-bottom: 4px;
}
.metric-value {
  font-size: 18px;
}
.metric-limit {
  font-size: 13px;
  color: rgba(41, 33, 27, 0.55);
  margin-left: 4px;
}
.metric-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(41, 33, 27, 0.1);
  overflow: hidden;
  margin-top: 8px;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.metric-bar-ok {
  background: var(--green);
}
.metric-bar-high {
  background: var(--amber);
}
.metric-bar-over {
  background: var(--coral);
}
.metric-sub {
  font-size: 11px;
  color: rgba(41, 33, 27, 0.5);
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(41, 33, 27, 0.14);
  margin-bottom: 20px;
}
.tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(41, 33, 27, 0.6);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.detail-cards h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
/* Green "allowed" pill toggle — the checkbox stays for the zero-JS form POST. */
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(41, 33, 27, 0.2);
  transition: background 0.15s;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(41, 33, 27, 0.3);
  transition: transform 0.15s;
}
.toggle input:checked + .toggle-track {
  background: var(--green);
}
.toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}
.toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.toggle-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-suspended td {
  background: rgba(240, 86, 63, 0.06);
  color: rgba(41, 33, 27, 0.55);
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.field-row input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid rgba(41, 33, 27, 0.2);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}
.warning-note {
  background: var(--note-cream);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 4px 0;
}
.danger-note {
  background: rgba(240, 86, 63, 0.1);
  border: 1px solid rgba(240, 86, 63, 0.45);
  color: #a82c18;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
}
.suspend-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.btn-danger {
  background: var(--coral);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
a.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Content review */
.review-section {
  margin: 24px 0;
}
.review-section h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.review-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.review-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.play-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(41, 33, 27, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.tile-processing {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(41, 33, 27, 0.06);
  color: rgba(41, 33, 27, 0.55);
  font-size: 12px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.mod-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(41, 33, 27, 0.08);
  vertical-align: middle;
}
.data-table th {
  color: rgba(41, 33, 27, 0.55);
  font-weight: 600;
}
.search-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}
.inline-form {
  display: flex;
  gap: 6px;
}
.inline-form input {
  max-width: 160px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
}
.stat-label {
  font-size: 13px;
  color: rgba(41, 33, 27, 0.6);
  margin-top: 2px;
}
.stat-sub {
  font-size: 12px;
  color: rgba(41, 33, 27, 0.45);
  margin-top: 4px;
}
.review-entry {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-entry .entry-text {
  margin: 0;
  font-size: 14px;
}
.review-entry .entry-poster {
  max-width: 220px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

/* Muted review-status badges */
.badge-pending_approval {
  background: rgba(244, 178, 62, 0.2);
  color: #8a6413;
}
.badge-approved {
  background: rgba(31, 138, 91, 0.14);
  color: var(--green);
}
.badge-rejected {
  background: rgba(240, 86, 63, 0.14);
  color: var(--coral);
}
.badge-hidden {
  background: rgba(41, 33, 27, 0.1);
  color: rgba(41, 33, 27, 0.6);
}

/* Hard-delete confirmation */
.confirm-card {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.confirm-card code {
  font-size: 13px;
  background: rgba(41, 33, 27, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
