﻿/* Admin shell. Near-black, aubergine, electric violet, antique gold. */

#view-admin.admin-shell-ready {
  color: #f4efe4;
}

#view-admin.admin-shell-ready .admin-shell-parked {
  display: none !important;
}

#view-admin.admin-shell-ready .admin-pre,
#view-admin.admin-shell-ready pre.mono,
#view-admin.admin-shell-ready [data-copy-json],
#view-admin.admin-shell-ready [data-json-group],
#view-admin.admin-shell-ready .admin-shell-json-hidden {
  display: none !important;
}

.admin-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  background: #0d0b14;
  border: 1px solid rgba(124, 58, 237, 0.55);
  border-radius: 12px;
}

.admin-shell-nav button,
.admin-shell-action,
.admin-shell-dialog button,
.admin-shell-dialog a,
.admin-shell-diagnostics button {
  min-height: 44px;
  min-width: 44px;
}

.admin-shell-destination {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #7c3aed;
  background: #140f1c;
  color: #f4efe4;
  cursor: pointer;
}

.admin-shell-destination[aria-current="page"] {
  background: #3b1f3a;
  border-color: #c9a227;
  color: #f4efe4;
}

.admin-shell-destination:focus-visible,
.admin-shell-action:focus-visible,
.admin-shell-dialog button:focus-visible,
.admin-shell-diagnostics button:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.admin-shell-destination-panel {
  background: #140f1c;
  border: 1px solid rgba(90, 45, 85, 0.85);
  border-radius: 12px;
  padding: 16px;
}

.admin-shell-destination-panel[hidden] {
  display: none !important;
}

.admin-shell-mount {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-shell-stub {
  margin: 0;
  color: #c9a227;
}

.admin-shell-actions {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.admin-shell-action-row {
  margin: 0;
  flex: 0 0 auto;
}

.admin-shell-action {
  width: auto;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: #0d0b14;
  color: #f4efe4;
  cursor: pointer;
  white-space: nowrap;
}

.admin-shell-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(80vh, 860px);
  padding: 0;
  border: 1px solid #c9a227;
  border-radius: 12px;
  background: #0d0b14;
  color: #f4efe4;
}

.admin-shell-dialog::backdrop {
  background: rgba(13, 11, 20, 0.72);
}

.admin-shell-dialog-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 860px);
}

.admin-shell-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #3b1f3a;
  border-bottom: 1px solid #c9a227;
}

.admin-shell-dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-shell-dialog-body {
  overflow: auto;
  padding: 16px;
}

.admin-shell-dialog input,
.admin-shell-dialog select,
.admin-shell-dialog textarea {
  min-height: 44px;
}

.admin-shell-diagnostics {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #140f1c;
  border: 1px dashed rgba(201, 162, 39, 0.7);
}

.admin-shell-diagnostics .status {
  margin: 0 0 8px;
}

#admin-maintenance-health button,
#admin-maintenance-health a.secondary,
#admin-help-reports button,
#admin-help-reports a.secondary,
#admin-integrations-status button,
#admin-set-maintenance-dialog button,
#admin-set-maintenance-dialog input,
#admin-set-maintenance-dialog select,
#admin-maintenance-detail-dialog button {
  min-height: 44px;
  min-width: 44px;
}
