.admin-console {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-console__hero,
.admin-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.admin-console__hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.admin-console__hero h2,
.admin-card__header h3 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-size: 1.9rem;
  color: var(--text, #101828);
}

.admin-console__hero p,
.admin-card__header p,
.admin-field-note,
.admin-empty-state p,
.admin-empty-row {
  color: var(--text-muted, #667085);
}

.admin-console__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600, #8f6a30);
}

.admin-console__hero-meta {
  display: flex;
  align-items: flex-start;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 106, 48, 0.16);
  background: rgba(195, 155, 92, 0.1);
  color: var(--accent-700, #6f4b18);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-card {
  padding: 24px;
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-card__header .admin-secondary-btn { white-space: nowrap; flex-shrink: 0; }

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.admin-status-tile {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248, 245, 238, 0.92));
}

.admin-status-tile__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #667085);
}

.admin-form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-grid label,
#admin-user-form-modal label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text, #101828);
  font-weight: 600;
}

.admin-form-grid input,
.admin-form-grid textarea,
#admin-user-form-modal input,
#admin-user-form-modal select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.14));
  background: var(--surface-2, #fcfbf8);
  color: var(--text, #101828);
  font: inherit;
}

.admin-form-grid textarea {
  resize: vertical;
  min-height: 110px;
}

.admin-form-grid input:focus,
.admin-form-grid textarea:focus,
#admin-user-form-modal input:focus,
#admin-user-form-modal select:focus {
  outline: none;
  border-color: var(--accent-500, #c39b5c);
  box-shadow: 0 0 0 3px rgba(195, 155, 92, 0.14);
}

.admin-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-2, #fcfbf8);
}

.admin-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.admin-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted, #667085);
  font-weight: 500;
}

.admin-form-field--full {
  width: 100%;
}

.admin-field-note {
  margin: 6px 0 0;
  line-height: 1.5;
  font-weight: 500;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-primary-btn,
.admin-secondary-btn,
.admin-link-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.admin-primary-btn {
  background: var(--accent-500, #c39b5c);
  color: #fff;
}

.admin-primary-btn:hover,
.admin-secondary-btn:hover,
.admin-link-btn:hover {
  transform: translateY(-1px);
}

.admin-secondary-btn,
.admin-link-btn {
  border-color: var(--border, rgba(15, 23, 42, 0.12));
  background: #fff;
  color: var(--text, #101828);
}

.admin-link-btn {
  padding: 8px 12px;
  font-size: 0.92rem;
}

.admin-link-btn--danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.04);
}

.admin-primary-btn:disabled,
.admin-secondary-btn:disabled,
.admin-link-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.admin-endpoint-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-muted, #667085);
  font-size: 0.9rem;
}

.admin-endpoint-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text, #101828);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-users-table th,
.admin-users-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-users-table th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #667085);
}

.admin-users-table td {
  color: var(--text, #101828);
}

.admin-table-actions {
  white-space: nowrap;
}

.admin-empty-state,
.admin-empty-row {
  padding: 18px 0;
}

.admin-empty-row {
  text-align: center;
}

.perm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
}

.perm-badge-off {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  text-decoration: line-through;
}

#admin-user-form-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
  z-index: 1000;
  padding: 24px;
}

#admin-user-form-modal .modal-content {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

#admin-user-form-modal h3 {
  margin: 0 0 18px;
  font-family: 'Newsreader', serif;
  font-size: 1.6rem;
}

#admin-user-form-modal fieldset {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}

#admin-user-form-modal legend {
  padding: 0 8px;
  font-weight: 700;
  color: var(--text, #101828);
}

.admin-inline-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-weight: 600;
}

.admin-inline-check input {
  width: 16px !important;
  height: 16px;
  margin: 0;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .admin-console__hero,
  .admin-card__header {
    flex-direction: column;
  }

  .admin-status-grid,
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* SR-tablet — dark theme overrides for the Admin page          */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.admin-console,
[data-theme="light"] .admin-console {
  background: transparent !important;
  color: #FFFFFF;
}

.admin-card,
[data-theme="light"] .admin-card {
  background: #14161B !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  color: #FFFFFF !important;
}

.admin-card__eyebrow,
[data-theme="light"] .admin-card__eyebrow,
.admin-console__eyebrow,
[data-theme="light"] .admin-console__eyebrow {
  color: #06B6D4 !important;
  font: 700 11px/1 var(--srt-font, system-ui) !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.admin-card__title,
[data-theme="light"] .admin-card__title,
.admin-console__title,
[data-theme="light"] .admin-console__title {
  font-family: var(--srt-font, system-ui) !important;
  font: 700 22px/1.2 var(--srt-font, system-ui) !important;
  color: #FFFFFF !important;
  letter-spacing: -0.01em;
}

.admin-card__description,
[data-theme="light"] .admin-card__description,
.admin-console__hero p,
[data-theme="light"] .admin-console__hero p {
  color: #6E7480 !important;
  font: 500 13px/1.5 var(--srt-font, system-ui) !important;
}

.admin-pill,
[data-theme="light"] .admin-pill {
  background: rgba(245,158,11,0.12) !important;
  color: #F59E0B !important;
  border: 1px solid rgba(245,158,11,0.30) !important;
  font: 700 11px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 6px 12px;
}

/* Status tile (Environment / Staging) */
.admin-status-tile,
[data-theme="light"] .admin-status-tile {
  background: #1B1F26 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
}
.admin-status-tile__label,
[data-theme="light"] .admin-status-tile__label {
  color: #6E7480 !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-status-tile__value,
[data-theme="light"] .admin-status-tile__value {
  font-family: var(--srt-font, system-ui) !important;
  font: 700 16px/1.2 var(--srt-font, system-ui) !important;
  color: #FFFFFF !important;
  margin-top: 4px;
}

/* Form fields */
.admin-form-field,
[data-theme="light"] .admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-form-field > span,
[data-theme="light"] .admin-form-field > span,
.admin-form-field > label,
[data-theme="light"] .admin-form-field > label {
  color: #6E7480 !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea,
.admin-card input[type="text"],
.admin-card input[type="email"],
.admin-card input[type="password"],
.admin-card input[type="number"],
.admin-card input[type="search"],
.admin-card select,
.admin-card textarea,
[data-theme="light"] .admin-form-field input,
[data-theme="light"] .admin-form-field select,
[data-theme="light"] .admin-form-field textarea,
[data-theme="light"] .admin-card input,
[data-theme="light"] .admin-card select,
[data-theme="light"] .admin-card textarea {
  background: #1B1F26 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font: 500 13px/1.4 var(--srt-font, system-ui) !important;
  outline: none;
  box-sizing: border-box;
}
.admin-card input::placeholder,
.admin-card textarea::placeholder {
  color: #4B5159 !important;
}
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  border-color: #06B6D4 !important;
  box-shadow: 0 0 0 2px rgba(6,182,212,0.18) !important;
}
.admin-card select option {
  background: #1B1F26;
  color: #FFFFFF;
}

/* Toggle row (Use Staging) */
.admin-toggle,
[data-theme="light"] .admin-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1B1F26 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  cursor: pointer;
}
.admin-toggle input[type="checkbox"] {
  accent-color: #06B6D4;
  width: 16px;
  height: 16px;
}
.admin-toggle__title {
  color: #FFFFFF !important;
  font: 700 12px/1 var(--srt-font, system-ui) !important;
}
.admin-toggle__subtitle {
  color: #6E7480 !important;
  font: 500 11px/1.4 var(--srt-font, system-ui) !important;
}

/* Buttons */
.admin-primary-btn,
[data-theme="light"] .admin-primary-btn {
  background: #06B6D4 !important;
  border: 1px solid #06B6D4 !important;
  color: #0B1014 !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font: 700 12px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: none !important;
}
.admin-primary-btn:hover,
[data-theme="light"] .admin-primary-btn:hover {
  background: #0891B2 !important;
  border-color: #0891B2 !important;
}
.admin-secondary-btn,
[data-theme="light"] .admin-secondary-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #D4D7DE !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font: 700 12px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.admin-secondary-btn:hover,
[data-theme="light"] .admin-secondary-btn:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.26) !important;
  color: #FFFFFF !important;
}

/* Field note (Set product IDs per item …) */
.admin-field-note,
[data-theme="light"] .admin-field-note {
  color: #6E7480 !important;
  font: 500 12px/1.5 var(--srt-font, system-ui) !important;
}
.admin-field-note strong,
.admin-field-note b {
  color: #B4BAC7 !important;
}

/* Users table */
.admin-users-table,
[data-theme="light"] .admin-users-table {
  width: 100%;
  border-collapse: collapse;
  color: #FFFFFF !important;
}
.admin-users-table thead th,
[data-theme="light"] .admin-users-table thead th {
  color: #6E7480 !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent !important;
}
.admin-users-table tbody td,
[data-theme="light"] .admin-users-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #D4D7DE !important;
  font: 500 13px/1.4 var(--srt-font, system-ui) !important;
}
.admin-users-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Permission chips. Active = green pill, inactive = subtle gray (no
   strikethrough — that read as broken). */
.admin-permission-chip,
.admin-perm-chip,
[data-theme="light"] .admin-permission-chip,
[data-theme="light"] .admin-perm-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
  text-decoration: none !important;
  background: rgba(16,185,129,0.12) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16,185,129,0.30) !important;
}
.admin-permission-chip.is-disabled,
.admin-perm-chip.is-disabled,
.admin-permission-chip--off,
.admin-perm-chip--off,
[data-theme="light"] .admin-permission-chip.is-disabled,
[data-theme="light"] .admin-perm-chip.is-disabled {
  background: rgba(255,255,255,0.03) !important;
  color: #4B5159 !important;
  border-color: rgba(255,255,255,0.08) !important;
  text-decoration: none !important;
}

/* Inline edit/delete action buttons */
.admin-link-btn,
[data-theme="light"] .admin-link-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #D4D7DE !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-right: 6px;
}
.admin-link-btn:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.24) !important;
  color: #FFFFFF !important;
}
.admin-link-btn--danger,
[data-theme="light"] .admin-link-btn--danger {
  border-color: rgba(239,68,68,0.30) !important;
  color: #F87171 !important;
}
.admin-link-btn--danger:hover {
  background: rgba(239,68,68,0.10) !important;
  border-color: rgba(239,68,68,0.50) !important;
  color: #FCA5A5 !important;
}

/* Empty state */
.admin-empty-state,
[data-theme="light"] .admin-empty-state {
  background: transparent !important;
  border: 1px dashed rgba(255,255,255,0.10) !important;
  color: #6E7480 !important;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font: 500 13px/1.4 var(--srt-font, system-ui) !important;
}

/* Add Admin / Edit Admin — slide-in drawer from the right (matches the
   Guests detail drawer pattern). Override the centered-modal base styles. */
#admin-user-form-modal,
[data-theme="light"] #admin-user-form-modal {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px);
  padding: 0 !important;
  z-index: 5000 !important;
}
#admin-user-form-modal[style*="display: none"],
#admin-user-form-modal[style*="display:none"] {
  display: none !important;
}
#admin-user-form-modal .modal-content,
[data-theme="light"] #admin-user-form-modal .modal-content {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(440px, 96vw) !important;
  max-width: 440px !important;
  height: 100vh !important;
  background: #14161B !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-left: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 0 !important;
  padding: 22px !important;
  box-shadow: -8px 0 24px rgba(0,0,0,0.40) !important;
  overflow-y: auto;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#admin-user-form-modal .modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #06B6D4;
}
#admin-user-form-modal h3 {
  font-family: var(--srt-font, system-ui) !important;
  font: 700 18px/1.2 var(--srt-font, system-ui) !important;
  color: #FFFFFF !important;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
#admin-user-form-modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #6E7480 !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
#admin-user-form-modal input,
#admin-user-form-modal select {
  background: #1B1F26 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 9px 11px !important;
  font: 500 13px/1.4 var(--srt-font, system-ui) !important;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  box-sizing: border-box;
}
#admin-user-form-modal input:focus,
#admin-user-form-modal select:focus {
  border-color: #06B6D4 !important;
}
#admin-user-form-modal fieldset {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0 16px;
}
#admin-user-form-modal fieldset legend {
  color: #B4BAC7 !important;
  font: 700 10px/1 var(--srt-font, system-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 6px;
}
#admin-user-form-modal .admin-inline-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #D4D7DE !important;
  font: 500 13px/1.4 var(--srt-font, system-ui) !important;
  text-transform: none;
  letter-spacing: 0;
  margin: 6px 0;
}
#admin-user-form-modal .admin-inline-check input[type="checkbox"] {
  accent-color: #06B6D4;
  width: 16px;
  height: 16px;
  margin: 0;
}
#admin-user-form-modal .admin-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ──────── Guest Labels admin section ──────── */
.admin-labels-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.admin-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.admin-label-row .admin-label-name { flex: 1 1 160px; min-width: 120px; }
.admin-label-row .admin-label-pos { width: 64px; flex: 0 0 auto; }
.admin-label-swatch {
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
}
.admin-label-row input[type="text"],
.admin-label-name,
.admin-label-pos {
  background: #1B1F26;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 5px 8px;
  color: #FFFFFF;
  font: 500 12px/1.2 var(--srt-font, system-ui);
}
.admin-label-color {
  width: 46px; height: 30px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 1px;
  cursor: pointer;
}
.admin-label-active {
  display: inline-flex; gap: 5px;
  align-items: center;
  font: 600 11px/1 var(--srt-font, system-ui);
  color: #B4BAC7;
  white-space: nowrap;
}
.admin-label-active input[type="checkbox"] { accent-color: #06B6D4; }
.admin-label-row .admin-secondary-btn {
  padding: 5px 10px;
  font: 600 11px/1 var(--srt-font, system-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-label-row .admin-label-delete[data-danger] {
  border-color: rgba(239,68,68,0.40);
  color: #EF4444;
}
.admin-label-row .admin-label-delete[data-danger]:hover {
  background: rgba(239,68,68,0.10);
  color: #F87171;
}

/* ── LIGHT THEME fixes (the [data-theme="light"] rules above were dark) ── */
[data-theme="light"] .admin-console,
[data-theme="light"] .admin-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
[data-theme="light"] .admin-card__title,
[data-theme="light"] .admin-console__title,
[data-theme="light"] .admin-status-tile__value { color: #0F172A !important; }
[data-theme="light"] .admin-card__eyebrow,
[data-theme="light"] .admin-console__eyebrow,
[data-theme="light"] .admin-card__description,
[data-theme="light"] .admin-field-note,
[data-theme="light"] .admin-status-tile__label { color: #64748B !important; }
[data-theme="light"] .admin-status-tile {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
[data-theme="light"] .admin-form-field,
[data-theme="light"] .admin-label-row input {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-form-field::placeholder { color: #94A3B8 !important; }
[data-theme="light"] .admin-toggle {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-users-table { color: #0F172A !important; }
[data-theme="light"] .admin-users-table th { color: #64748B !important; }
[data-theme="light"] .admin-users-table td,
[data-theme="light"] .admin-users-table th { border-color: #E2E8F0 !important; }
[data-theme="light"] .admin-empty-state { color: #64748B !important; }

/* ── Light-mode contrast completion ──────────────────────────────
   The dark block above (incl. its own [data-theme="light"] variants)
   forces white/pale ink and out-specifies the earlier light fix.
   These selectors restore dark text + readable buttons in light mode
   without touching dark mode. */

/* Bare text in cards (e.g. <strong>Staging</strong>, field-note words)
   inherits the dark card color — give the cards dark ink in light mode. */
[data-theme="light"] .admin-card,
[data-theme="light"] .admin-console { color: #0F172A !important; }
[data-theme="light"] .admin-status-tile strong,
[data-theme="light"] .admin-status-tile__value { color: #0F172A !important; }
[data-theme="light"] .admin-field-note strong,
[data-theme="light"] .admin-field-note b { color: #334155 !important; }

/* Users table rows (username / email / role) — match the dark rule's
   .admin-users-table tbody td specificity so the dark fix is beaten. */
[data-theme="light"] .admin-users-table tbody td { color: #0F172A !important; }
[data-theme="light"] .admin-users-table tbody tr:hover td { background: #F8FAFC !important; }

/* Deposit form fields → light inputs (were dark-on-light cards) */
[data-theme="light"] .admin-card input,
[data-theme="light"] .admin-card select,
[data-theme="light"] .admin-card textarea {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-card input::placeholder,
[data-theme="light"] .admin-card textarea::placeholder { color: #94A3B8 !important; }

/* Buttons — Add Admin / Edit were pale-on-pale */
[data-theme="light"] .admin-secondary-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-secondary-btn:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-link-btn {
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
[data-theme="light"] .admin-link-btn:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}
[data-theme="light"] .admin-link-btn--danger {
  border-color: rgba(185,28,28,0.30) !important;
  color: #b91c1c !important;
}
[data-theme="light"] .admin-link-btn--danger:hover {
  background: rgba(185,28,28,0.08) !important;
  border-color: rgba(185,28,28,0.50) !important;
  color: #991b1b !important;
}

/* ── Service shifts settings rows ── */
.admin-label-row.admin-shift-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  grid-template-columns: none;
}
.admin-shift-row .admin-label-name {
  flex: 1 1 160px;
  min-width: 120px;
}
.admin-shift-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--srt-font, system-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--srt-text-2, #B4BAC7);
  white-space: nowrap;
}
[data-theme="light"] .admin-shift-flag { color: #475569; }
.admin-shift-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--srt-font, system-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--srt-text-2, #B4BAC7);
  white-space: nowrap;
}
.admin-shift-time input[type="time"] { width: 110px; }
.admin-shift-time input[type="number"] { width: 64px; }
[data-theme="light"] .admin-shift-time { color: #475569; }
