/* Admin Panel Styles */
:root {
  --admin-primary: #2D5016;
  --admin-accent: #C9A227;
  --admin-bg: #f4f6f3;
  --admin-sidebar: #1a3310;
  --admin-text: #1a1a1a;
  --admin-muted: #6b7280;
  --admin-border: #e5e7eb;
  --admin-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  overflow-x: hidden;
}
body.admin-body.admin-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(235, 243, 235, 0.48);
  backdrop-filter: blur(4px);
  z-index: 110;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: min(360px, calc(100vw - 2rem));
  background: rgba(255,255,255,0.94);
  color: #243826;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 4.75rem;
  left: 1rem;
  right: 1rem;
  bottom: auto;
  z-index: 120;
  max-height: calc(100dvh - 5.75rem);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(45,80,22,0.12);
  box-shadow: 0 24px 80px rgba(20, 33, 12, 0.16);
  backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.admin-sidebar.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.admin-sidebar__brand {
  padding: 1.25rem 1.35rem 0.75rem;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-sidebar__brand a { font-weight: 700; font-size: 1.125rem; color: #1f3521; }
.admin-badge {
  font-size: 0.625rem;
  background: #d9af24;
  color: #182514;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-nav { flex: 1; padding: 0.75rem 0.85rem; overflow-y: auto; }
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  color: #253b27;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: #16a34a;
  color: white;
}
.pending-badge {
  background: #ef4444;
  color: white;
  font-size: 0.6875rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
}
.pending-badge:empty { display: none; }
.admin-sidebar__footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(45,80,22,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.admin-sidebar__footer a {
  opacity: 1;
  color: #253b27;
  font-weight: 700;
}
.admin-sidebar__footer a:hover { color: #16a34a; }

.admin-main {
  flex: 1;
  margin-left: 0;
  min-width: 0;
}
.admin-topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(1.1);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--admin-border);
  position: sticky;
  top: 0;
  z-index: 130;
}
.admin-menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(22,163,74,0.35);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(240,253,244,0.78);
  color: #15803d;
  box-shadow: 0 10px 28px rgba(22, 101, 52, 0.08);
}
.admin-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.admin-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.admin-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.admin-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.admin-topbar__brand {
  color: #1f2d1f;
  font-size: 1.125rem;
  font-weight: 800;
  white-space: nowrap;
}
.admin-topbar__title {
  flex: 1;
  color: var(--admin-muted);
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sound-toggle {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #fef3c7;
  color: #764d08;
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-sound-toggle.is-ready {
  background: #d1fae5;
  border-color: rgba(6, 95, 70, 0.2);
  color: #065f46;
}
.admin-sound-toggle.is-blocked {
  background: #fee2e2;
  border-color: rgba(153, 27, 27, 0.2);
  color: #991b1b;
}
.admin-bell {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  background: #fffaf0;
}
.admin-bell__icon {
  display: block;
}
.admin-bell__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  font-size: 0.75rem;
  font-weight: 800;
}
.admin-bell__badge:empty { display: none; }
.admin-store-link {
  color: #15803d;
  font-weight: 800;
  white-space: nowrap;
}
.admin-topbar__user { font-size: 0.875rem; color: var(--admin-muted); }
.admin-content { padding: 1.25rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--admin-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-card__label { font-size: 0.8125rem; color: var(--admin-muted); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.4rem; }
.stat-card__value { font-size: 1.75rem; font-weight: 700; color: var(--admin-primary); }
.stat-card__hint { font-size: 0.75rem; color: var(--admin-muted); margin-top: 0.35rem; }
.stat-card--alert .stat-card__value { color: #ef4444; }
.stat-card--live { background: linear-gradient(135deg, #18330d, #2d5016); color: #fff; }
.stat-card--live .stat-card__label,
.stat-card--live .stat-card__hint { color: rgba(255,255,255,0.78); }
.stat-card--live .stat-card__value { color: #fff; }
.stat-card--live a { color: var(--admin-accent); }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
  animation: live-pulse 1.8s infinite;
  display: inline-block;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.ad-share-bar {
  position: relative;
  width: 100%;
  max-width: 140px;
  height: 8px;
  border-radius: 999px;
  background: var(--admin-border);
  overflow: hidden;
}
.ad-share-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--admin-accent);
  border-radius: 999px;
}

/* Cards & Tables */
.admin-card {
  background: white;
  border-radius: var(--admin-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-card__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card__header h2 { font-size: 1rem; }
.admin-card__body { padding: 1.25rem; }
.admin-danger-card {
  border: 1px solid rgba(239, 68, 68, 0.18);
}
.admin-danger-card .admin-card__header {
  background: #fef2f2;
  border-bottom-color: rgba(239, 68, 68, 0.18);
}
.admin-danger-card .admin-card__header h2 {
  color: #991b1b;
}
.admin-danger-card p {
  color: var(--admin-muted);
  font-size: 0.9375rem;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}
.admin-table th {
  font-weight: 600;
  color: var(--admin-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table tr:hover { background: #fafafa; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge--pending { background: #fef3c7; color: #92400e; }
.badge--confirmed { background: #dbeafe; color: #1e40af; }
.badge--completed { background: #d1fae5; color: #065f46; }
.badge--cancelled { background: #fee2e2; color: #991b1b; }
.badge--approved { background: #d1fae5; color: #065f46; }
.badge--rejected { background: #fee2e2; color: #991b1b; }

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.admin-btn--primary { background: var(--admin-primary); color: white; }
.admin-btn--primary:hover { background: #3d6b1f; }
.admin-btn--accent { background: var(--admin-accent); color: var(--admin-text); }
.admin-btn--danger { background: #ef4444; color: white; }
.admin-btn--outline {
  background: white;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}
.admin-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.admin-btn--block { width: 100%; justify-content: center; }

/* Forms */
.admin-form .form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-form label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none;
  border-color: var(--admin-primary);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert--success { background: #d1fae5; color: #065f46; }
.alert--error { background: #fee2e2; color: #991b1b; }
.alert--warning { background: #fef3c7; color: #92400e; }
.alert--info { background: #dbeafe; color: #1e40af; }

/* Login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--admin-sidebar) 0%, var(--admin-primary) 100%);
  padding: 1rem;
}
.admin-login-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.admin-login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--admin-primary);
}
.admin-login-card p { color: var(--admin-muted); margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* Order detail */
.order-detail-grid {
  display: grid;
  gap: 1.5rem;
}
.order-meta { display: grid; gap: 0.75rem; }
.order-meta dt { font-size: 0.75rem; color: var(--admin-muted); text-transform: uppercase; }
.order-meta dd { font-weight: 500; }
.whatsapp-fallback {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.whatsapp-fallback__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Notification */
.order-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--admin-primary), #1f3f10);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.4s ease;
}
.order-notification[hidden] { display: none; }
.order-notification a { color: var(--admin-accent); font-weight: 600; }
.order-notification button { color: white; font-size: 1.25rem; opacity: 0.7; }
.order-notification .order-sound-status {
  color: #17280d;
  background: var(--admin-accent);
  opacity: 1;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
}
.order-notification .order-sound-status[hidden] { display: none; }
.order-notification.is-fresh {
  animation: slideIn 0.4s ease, notifyPulse 1.2s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes notifyPulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
  45% { box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 8px rgba(201,162,39,0.2); }
}

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--admin-text);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 300;
}

.image-preview { max-width: 120px; border-radius: 8px; margin-top: 0.5rem; }

.logo-manager {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(45,80,22,0.14);
  border-radius: 12px;
  background: #fbfcfa;
}
.logo-manager--empty {
  border-style: dashed;
}
.logo-manager__preview {
  min-height: 120px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, #eef2ee 25%, transparent 25%),
    linear-gradient(-45deg, #eef2ee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2ee 75%),
    linear-gradient(-45deg, transparent 75%, #eef2ee 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  overflow: hidden;
}
.logo-manager__preview img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 0.5rem;
  filter: drop-shadow(0 4px 10px rgba(20,42,13,0.22));
}
.logo-manager__preview span {
  padding: 0.75rem;
  text-align: center;
  color: var(--admin-primary);
  font-weight: 800;
}
.logo-manager__body {
  display: grid;
  gap: 0.65rem;
}
.logo-manager__body strong {
  color: var(--admin-primary);
}
.logo-manager__body p {
  color: var(--admin-muted);
  font-size: 0.875rem;
}
.logo-manager__upload {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(45,80,22,0.12);
  border-radius: 10px;
  background: white;
}
.logo-manager__upload span {
  color: #315236;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.logo-manager__upload input[type="file"] {
  max-width: 100%;
}
.logo-manager__danger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem;
  border: 1px solid rgba(239,68,68,0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}
.logo-remove-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #991b1b;
  font-weight: 800;
}
.logo-remove-option input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0.12rem;
  accent-color: #dc2626;
}
.logo-remove-option__text {
  display: grid;
  gap: 0.12rem;
}
.logo-remove-option__text strong {
  color: #991b1b;
}
.logo-remove-option__text small {
  color: #7f1d1d;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.logo-manager__danger .admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}
.logo-manager__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-field-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-weight: 700;
  color: #991b1b;
}

@media (max-width: 640px) {
  .logo-manager {
    grid-template-columns: 1fr;
  }
  .logo-manager__danger {
    grid-template-columns: 1fr;
  }
  .logo-manager__danger .admin-btn {
    width: 100%;
  }
}

.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}
.admin-toggle-card,
.admin-gallery-item {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: white;
}
.admin-toggle-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
}
.admin-checkbox-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 100%;
}
.admin-checkbox-stack label {
  margin: 0;
  font-weight: 700;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.admin-gallery-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow: hidden;
}
.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.admin-gallery-item span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}
.admin-field-hint {
  margin-top: 0.5rem;
  color: var(--admin-muted);
  font-size: 0.8125rem;
}
.admin-form .form-row--3 {
  display: grid;
  gap: 1rem;
}
.admin-check-grid,
.content-section-grid,
.content-repeat-list,
.admin-story-grid {
  display: grid;
  gap: 1rem;
}
.admin-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.admin-check-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: white;
  font-weight: 700;
}
.content-editor h3 {
  margin: 1.75rem 0 0.85rem;
}
.content-editor h3:first-child {
  margin-top: 0;
}
.content-edit-card,
.admin-story-card {
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}
.content-edit-card--wide {
  margin-bottom: 1rem;
}
.content-edit-card--new {
  background: #f8faf8;
  border-style: dashed;
}
.content-edit-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.content-edit-card__top span {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.content-edit-card__top label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--admin-muted);
}
.admin-story-card {
  display: grid;
  gap: 0.55rem;
}
.admin-story-card h4 {
  margin: 0;
  color: var(--admin-primary);
}

.content-page-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(45,80,22,0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,250,244,0.94)),
    radial-gradient(circle at 90% 10%, rgba(201,162,39,0.18), transparent 30%);
  box-shadow: 0 18px 45px rgba(20, 33, 12, 0.06);
}
.content-page-hero__eyebrow,
.content-panel__header span {
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.content-page-hero h2 {
  margin: 0.15rem 0 0.25rem;
  color: #1f3521;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}
.content-page-hero p,
.content-panel__header p {
  color: var(--admin-muted);
  max-width: 680px;
}
.content-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.content-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45,80,22,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #244124;
  font-size: 0.84rem;
  font-weight: 900;
}
.content-tabs a:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.content-save-bar {
  position: sticky;
  top: 5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(45,80,22,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 35px rgba(20, 33, 12, 0.08);
  backdrop-filter: blur(12px);
}
.content-save-bar span {
  color: #4b5f4d;
  font-size: 0.86rem;
  font-weight: 800;
}
.content-panel {
  scroll-margin-top: 6.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(45,80,22,0.1);
  border-radius: 16px;
  background: #f9fbf8;
}
.content-panel + .content-panel {
  margin-top: 1.25rem;
}
.content-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(45,80,22,0.1);
}
.content-panel__header h3 {
  margin: 0.1rem 0 0;
  color: #1f3521;
  font-size: 1.18rem;
}
.content-edit-card,
.admin-story-card {
  border-color: rgba(45,80,22,0.12);
  box-shadow: 0 8px 24px rgba(20, 33, 12, 0.05);
}
.content-edit-card--wide {
  margin-bottom: 1rem;
}
.content-edit-card--new {
  border-color: rgba(22,163,74,0.28);
  background: linear-gradient(135deg, #fbfffb, #f3faf3);
}
.content-edit-card h4 {
  margin: 0 0 0.8rem;
  color: #1f3521;
}
.content-edit-card__top {
  align-items: flex-start;
}
.content-edit-card__top strong {
  min-width: 0;
  color: #1f3521;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.content-toggle,
.content-delete-toggle {
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem !important;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}
.content-toggle {
  background: #ecfdf3;
  color: #166534 !important;
  border: 1px solid rgba(22,101,52,0.18);
}
.content-delete-toggle {
  background: #fff1f2;
  color: #9f1239 !important;
  border: 1px solid rgba(225,29,72,0.2);
}
.content-toggle input,
.content-delete-toggle input,
.admin-check-card input {
  width: 17px;
  height: 17px;
  accent-color: #16a34a;
}
.content-delete-toggle input {
  accent-color: #e11d48;
}
.content-toggle--inline,
.content-delete-toggle--inline {
  width: fit-content;
  margin-top: 0.75rem !important;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.65rem;
  margin-top: 0.7rem;
}
.admin-gallery-item {
  overflow: hidden;
}
.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.admin-gallery-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem;
  color: #244124;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    width: 260px;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    background: var(--admin-sidebar);
    color: rgba(255,255,255,0.9);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .admin-sidebar__brand {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .admin-sidebar__brand a { color: white; }
  .admin-nav {
    display: block;
    padding: 1rem 0;
    flex: 1;
  }
  .admin-nav a {
    border-radius: 0;
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 0;
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .admin-nav a:hover,
  .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: none;
  }
  .admin-sidebar__footer {
    display: flex;
    grid-template-columns: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .admin-sidebar__footer a {
    color: rgba(255,255,255,0.85);
    background: transparent;
    border: 0;
    padding: 0;
  }
  .admin-sidebar__footer a:hover {
    color: var(--admin-accent);
    background: transparent;
  }
  .admin-main { margin-left: 260px; }
  .admin-menu-toggle { display: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-form .form-row--2 { grid-template-columns: 1fr 1fr; }
  .admin-form .form-row--3 { grid-template-columns: repeat(3, 1fr); }
  .content-section-grid { grid-template-columns: repeat(2, 1fr); }
  .content-repeat-list { grid-template-columns: repeat(2, 1fr); }
  .admin-story-grid { grid-template-columns: repeat(2, 1fr); }
  .order-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-form .form-row--2 { grid-template-columns: 1fr 1fr; }
  .admin-form .form-row--3 { grid-template-columns: repeat(3, 1fr); }
  .content-section-grid { grid-template-columns: repeat(2, 1fr); }
  .content-repeat-list { grid-template-columns: repeat(2, 1fr); }
  .admin-story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .admin-table-wrap {
    overflow-x: visible;
  }
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table {
    border-collapse: separate;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tbody {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
  }
  .admin-table tr {
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 24px rgba(26, 51, 16, 0.06);
    overflow: hidden;
  }
  .admin-table tr:hover {
    background: white;
  }
  .admin-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    text-align: right;
    border-bottom: 1px solid var(--admin-border);
    white-space: normal !important;
    max-width: none !important;
    overflow-wrap: anywhere;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--admin-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }
  .admin-table td:last-child {
    border-bottom: 0;
  }
  .admin-table td[data-label="Actions"] {
    display: block;
    text-align: left;
  }
  .admin-table td[data-label="Actions"]::before {
    display: block;
    margin-bottom: 0.5rem;
  }
  .admin-table td.admin-table__empty {
    display: block;
    padding: 1.25rem;
    text-align: center !important;
    color: var(--admin-muted);
  }
  .admin-table td.admin-table__empty::before {
    content: none;
  }
  .admin-table td form {
    display: inline-flex !important;
    margin: 0.15rem 0.25rem 0.15rem 0;
  }
  .admin-table td .admin-btn {
    margin: 0.15rem 0.25rem 0.15rem 0;
  }
  .admin-sidebar__brand {
    padding: 1rem 1.1rem;
  }
  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.75rem;
    flex: initial;
  }
  .admin-nav a {
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 1px solid transparent;
  }
  .admin-nav a:hover,
  .admin-nav a.active {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
    transform: translateY(-1px);
  }
  .admin-sidebar__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem;
  }
  .admin-sidebar__footer a {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
  }
  .admin-sidebar__footer a:hover {
    background: #eef7ef;
    color: #15803d;
  }
}

@media (max-width: 767px) {
  .admin-table { font-size: 0.8125rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.65rem; }
  .order-notification {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .admin-content { padding: 1rem; }
  .admin-topbar {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .admin-topbar__brand { font-size: 1rem; }
  .admin-topbar__title { display: none; }
  .admin-sound-toggle {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }
  .admin-store-link { display: none; }
  .admin-topbar__user { display: none; }
  .admin-sidebar {
    top: 4.25rem;
    left: 0.75rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
  .admin-nav {
    grid-template-columns: 1fr;
  }
}

/* Admin polish: clearer drawer, topbar, and content editor ergonomics */
.admin-topbar {
  min-height: 74px;
}
.admin-menu-toggle {
  border-radius: 999px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: rgba(22,163,74,0.22);
}
.admin-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(22,101,52,0.12);
}
.admin-sidebar {
  border-radius: 18px;
}
.admin-sidebar.open {
  box-shadow: 0 28px 90px rgba(14, 35, 12, 0.22);
}
.admin-nav a {
  gap: 0.5rem;
}
.admin-nav a.active {
  font-weight: 900;
}
@media (max-width: 1023px) {
  body.admin-body.admin-menu-open {
    overflow: hidden;
  }
  .admin-sidebar {
    display: flex;
  }
  .admin-sidebar__brand {
    background: linear-gradient(135deg, #15340f, #26511a);
    color: #fff;
  }
  .admin-sidebar__brand a,
  .admin-sidebar__brand .admin-badge {
    color: #fff;
  }
  .admin-badge {
    background: rgba(255,255,255,0.16);
  }
}
@media (min-width: 1024px) {
  .admin-sidebar {
    border-radius: 0;
  }
  .admin-menu-toggle {
    display: none;
  }
  .content-page-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}
@media (max-width: 760px) {
  .content-page-hero,
  .content-panel {
    border-radius: 14px;
    padding: 1rem;
  }
  .content-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }
  .content-tabs a {
    white-space: nowrap;
  }
  .content-save-bar {
    top: 4.85rem;
    align-items: stretch;
    flex-direction: column;
  }
  .content-save-bar .admin-btn {
    width: 100%;
  }
  .content-panel__header {
    display: grid;
  }
  .content-edit-card__top {
    display: grid;
  }
}

/* Content editor rebuild */
.content-page-hero {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1rem;
  padding: 1.35rem;
}
.content-page-hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.65rem;
}
.content-page-hero__metrics span {
  display: grid;
  gap: 0.1rem;
  min-height: 64px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(45,80,22,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  color: #5b6b5e;
  font-size: 0.8rem;
  font-weight: 800;
}
.content-page-hero__metrics strong {
  color: #1f3521;
  font-size: 1.25rem;
  line-height: 1;
}
.content-save-bar {
  top: 1rem;
  margin: -0.25rem 0 1rem;
}
.content-save-bar strong {
  color: #166534;
}
.content-workbench {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.content-tablist {
  position: sticky;
  top: 10.2rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(45,80,22,0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 33, 12, 0.06);
}
.content-tab {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #304733;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.content-tab span {
  font-size: 0.92rem;
  font-weight: 900;
}
.content-tab small {
  color: #7a887c;
  font-size: 0.75rem;
  font-weight: 800;
}
.content-tab:hover {
  background: #f0fdf4;
  border-color: rgba(22,163,74,0.16);
}
.content-tab.is-active {
  background: linear-gradient(135deg, #1f6b2b, #164d20);
  border-color: #1f6b2b;
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 12px 26px rgba(22, 101, 52, 0.18);
}
.content-tab.is-active small {
  color: rgba(255,255,255,0.72);
}
.content-workspace {
  min-width: 0;
}
.content-pane[hidden] {
  display: none !important;
}
.content-panel {
  min-height: 520px;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(20, 33, 12, 0.06);
}
.content-panel + .content-panel {
  margin-top: 0;
}
.content-panel__header {
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
}
.content-panel__header h3 {
  font-size: 1.28rem;
}
.content-section-grid,
.content-repeat-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.content-edit-card {
  border-radius: 14px;
  padding: 1rem;
}
.content-edit-card--wide {
  padding: 1.1rem;
}
.content-edit-card__top {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(45,80,22,0.08);
}
.content-order-card {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(45,80,22,0.12);
  border-radius: 16px;
  background: #f8fbf7;
}
.content-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.content-order-card__head h4 {
  margin: 0 0 0.15rem;
  color: #1f3521;
  font-size: 1rem;
}
.content-order-card__head p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.82rem;
}
.content-order-card__head span {
  color: #5e6f62;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}
.content-order-list {
  display: grid;
  gap: 0.55rem;
}
.content-order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(104px, 0.22fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(45,80,22,0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 33, 12, 0.04);
}
.content-order-row.is-muted {
  opacity: 0.62;
}
.content-order-row.is-dragging {
  opacity: 0.48;
  box-shadow: 0 16px 32px rgba(20, 33, 12, 0.12);
}
.content-order-row__handle {
  width: 48px;
  min-height: 38px;
  border: 1px solid rgba(22,101,52,0.16);
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: grab;
}
.content-order-row__handle:active {
  cursor: grabbing;
}
.content-order-row__text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.content-order-row__text strong {
  color: #213824;
  overflow-wrap: anywhere;
}
.content-order-row__text small {
  color: #758178;
  font-size: 0.76rem;
  font-weight: 800;
}
.content-order-row__rank {
  display: grid !important;
  gap: 0.25rem !important;
  margin: 0 !important;
}
.content-order-row__rank span {
  color: #657368;
  font-size: 0.72rem;
  font-weight: 900;
}
.content-order-row__rank input {
  width: 100%;
  min-width: 0;
}
.content-card-section {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
}
.content-card-section + .content-card-section {
  margin-top: 1rem;
  border-top: 1px solid rgba(45,80,22,0.08);
}
.content-card-section h4 {
  margin: 0;
  color: #1f3521;
  font-size: 0.94rem;
}
.content-edit-card label:not(.content-toggle):not(.content-delete-toggle):not(.admin-gallery-item):not(.admin-check-card) {
  margin-top: 0.65rem;
}
.content-editor input[type="text"],
.content-editor input[type="number"],
.content-editor select,
.content-editor textarea {
  background: #fbfdfb;
}
.content-editor input[type="text"]:focus,
.content-editor input[type="number"]:focus,
.content-editor select:focus,
.content-editor textarea:focus {
  background: #fff;
}
.content-toggle,
.content-delete-toggle {
  white-space: nowrap;
}
.admin-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}
@media (min-width: 1180px) {
  .content-page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
    align-items: end;
  }
}
@media (max-width: 980px) {
  .content-workbench {
    grid-template-columns: 1fr;
  }
  .content-tablist {
    position: sticky;
    top: 5rem;
    z-index: 19;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.55rem;
    border-radius: 14px;
  }
  .content-tab {
    flex: 0 0 auto;
    min-width: 150px;
  }
  .content-tab.is-active {
    transform: none;
  }
}
@media (max-width: 560px) {
  .content-page-hero__metrics {
    grid-template-columns: 1fr;
  }
  .content-save-bar {
    top: 0.75rem;
  }
  .content-panel {
    min-height: 0;
    padding: 0.85rem;
  }
  .content-section-grid,
  .content-repeat-list {
    grid-template-columns: 1fr;
  }
  .content-edit-card__top span {
    gap: 0.45rem;
  }
}

/* Content custom section media UI */
.content-panel__header .admin-btn {
  flex: 0 0 auto;
  align-self: flex-start;
}
.content-edit-card__top strong small {
  display: block;
  margin-top: 0.2rem;
  color: #708073;
  font-size: 0.76rem;
  font-weight: 800;
}
.content-section-options {
  align-items: start;
}
.content-media-field {
  display: grid;
  gap: 0.65rem;
}
.content-media-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.content-media-field__head label {
  margin: 0 !important;
}
.content-media-field__head span {
  color: #647067;
  font-size: 0.78rem;
  font-weight: 800;
}
.admin-upload-dropzone {
  position: relative;
  min-height: 128px;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  margin: 0 !important;
  padding: 1rem;
  border: 1.5px dashed rgba(22, 101, 52, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240,253,244,0.92), rgba(255,255,255,0.98));
  color: #1f3521;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.admin-upload-dropzone:hover,
.admin-upload-dropzone.is-dragging {
  border-color: #16a34a;
  background: #f0fdf4;
  transform: translateY(-1px);
}
.admin-upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.admin-upload-dropzone__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #166534;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.18);
}
.admin-upload-dropzone strong {
  display: block;
  color: #1f3521;
  font-size: 0.98rem;
}
.admin-upload-dropzone small {
  display: block;
  margin-top: 0.22rem;
  color: #69786c;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}
.admin-selected-files {
  display: grid;
  gap: 0.45rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: #f7fbf7;
  border: 1px solid rgba(45,80,22,0.1);
}
.admin-selected-files[hidden] {
  display: none !important;
}
.admin-selected-file {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(45,80,22,0.08);
  color: #253b27;
  font-size: 0.82rem;
  font-weight: 800;
}
.admin-selected-file img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}
.admin-selected-file__info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.admin-selected-file__info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-selected-file small {
  flex: 0 0 auto;
  color: #6b7b6e;
  font-weight: 700;
}
.admin-gallery-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  color: #243826;
}
.admin-gallery-toolbar strong {
  font-size: 0.84rem;
}
.admin-gallery-toolbar span {
  color: #718075;
  font-size: 0.76rem;
  font-weight: 800;
}
.admin-gallery-grid--selectable {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.admin-gallery-grid--selectable .admin-gallery-item {
  position: relative;
  border: 1px solid rgba(45,80,22,0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 33, 12, 0.05);
}
.admin-gallery-item__check {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  width: 21px;
  height: 21px;
  accent-color: #16a34a;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
}
.admin-gallery-grid--selectable .admin-gallery-item img {
  border-radius: 10px;
  transition: opacity 0.18s ease, filter 0.18s ease;
}
.admin-gallery-item__meta {
  display: grid !important;
  gap: 0.05rem !important;
  color: #243826 !important;
  font-size: 0.75rem !important;
}
.admin-gallery-item__meta small {
  color: #6f7b72;
  font-weight: 800;
}
.admin-gallery-item__check:not(:checked) ~ img {
  opacity: 0.38;
  filter: grayscale(1);
}
.admin-gallery-item__check:not(:checked) ~ .admin-gallery-item__meta strong {
  color: #9f1239;
}
.admin-gallery-item__check:not(:checked) ~ .admin-gallery-item__meta small {
  color: #9f1239;
}
@media (max-width: 720px) {
  .content-panel__header {
    flex-wrap: wrap;
  }
  .content-panel__header p {
    flex-basis: 100%;
  }
  .admin-upload-dropzone {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .admin-upload-dropzone__icon {
    margin: 0 auto;
  }
  .content-order-card__head,
  .content-order-row {
    grid-template-columns: 1fr;
  }
  .content-order-card__head {
    display: grid;
  }
  .content-order-card__head span {
    white-space: normal;
  }
  .content-order-row__handle {
    width: 100%;
  }
  .content-media-field__head,
  .admin-gallery-toolbar {
    display: grid;
  }
}
