/*
 * DarkAdmin - Dark Mode for Adminpanel - Settings Page Styles
 * Author: AlexanderWagnerDev
 */

.adm-settings-wrap {
  max-width: 900px;
  margin-top: 16px;
}

/* =============================================================================
   PAGE HEADER
   ============================================================================= */
.adm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.adm-page-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.adm-header-icon {
  font-size: 30px !important;
  width: 30px !important;
  height: 30px !important;
  color: #2271b1;
}
.adm-page-title {
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #1d2327;
  border: none !important;
}
.adm-page-subtitle {
  margin: 0;
  font-size: 12px;
  color: #646970;
}
.adm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-status-active   { background: #d1fadf; color: #12532e; }
.adm-status-inactive { background: #fee2e2; color: #7f1d1d; }
.adm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* =============================================================================
   CARDS
   ============================================================================= */
.adm-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden;
}
.adm-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: #f6f7f7;
  border-bottom: 1px solid #dcdcde;
}
.adm-card-header .dashicons {
  color: #2271b1;
  font-size: 17px !important;
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0;
}
.adm-card-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1d2327;
  border: none !important;
}
.adm-card-body {
  padding: 20px;
}
.adm-card-description {
  margin: 0 0 16px !important;
  font-size: 13px;
  color: #646970;
  line-height: 1.5;
}

/* =============================================================================
   FIELD ROW
   ============================================================================= */
.adm-field-divider {
  border: none;
  border-top: 1px solid #dcdcde;
  margin: 16px 0;
}
.adm-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.adm-field-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.adm-field-title {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  cursor: pointer;
}
.adm-field-desc {
  font-size: 12px;
  color: #646970;
  line-height: 1.4;
}

/* =============================================================================
   TOGGLE SWITCH
   ============================================================================= */
.adm-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  flex: 0 0 auto;
}
.adm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.adm-slider {
  position: absolute;
  inset: 0;
  background: #c3c4c7;
  border-radius: 999px;
  transition: background .2s ease;
  cursor: pointer;
}
.adm-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.adm-toggle input:checked + .adm-slider { background: #2271b1; }
.adm-toggle input:checked + .adm-slider::before { transform: translateX(24px); }
.adm-toggle input:focus-visible + .adm-slider { outline: 2px solid #2271b1; outline-offset: 2px; }

/* =============================================================================
   USER ACCESS -- MODE SELECTOR
   ============================================================================= */
.adm-access-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .adm-access-mode { grid-template-columns: 1fr; }
}
.adm-access-mode-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border: 2px solid #dcdcde;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  background: #fafafa;
  user-select: none;
  position: relative;
}
.adm-access-mode-option:hover {
  border-color: #2271b1;
  background: #f0f6fc;
  box-shadow: 0 0 0 3px rgba(34,113,177,.10);
}
.adm-access-mode-option.is-active {
  border-color: #2271b1;
  background: #f0f6fc;
  box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}
.adm-access-mode-option.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.4);
}
.adm-access-mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.adm-access-mode-option .dashicons {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  color: #646970;
  transition: color .15s;
}
.adm-access-mode-option.is-active .dashicons,
.adm-access-mode-option:hover .dashicons {
  color: #2271b1;
}
.adm-access-mode-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-access-mode-label strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  line-height: 1.2;
}
.adm-access-mode-label span {
  font-size: 11px;
  color: #646970;
  line-height: 1.4;
}

/* =============================================================================
   USER ACCESS -- EMPTY STATE
   ============================================================================= */
.adm-user-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  margin-bottom: 4px;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  background: #f6f7f7;
  text-align: center;
}
.adm-user-empty-icon {
  font-size: 36px !important;
  width: 36px !important;
  height: 36px !important;
  color: #c3c4c7;
}
.adm-user-empty-text {
  margin: 0 !important;
  font-size: 13px;
  color: #646970;
  line-height: 1.5;
  max-width: 380px;
}

/* =============================================================================
   USER ACCESS GRID
   ============================================================================= */
.adm-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.adm-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.adm-user-item:hover {
  border-color: #2271b1;
  background: #f0f6fc;
}
.adm-user-item input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  accent-color: #2271b1;
  width: 15px;
  height: 15px;
}
.adm-user-avatar img {
  border-radius: 50%;
  display: block;
}
.adm-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.adm-user-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-user-info span {
  font-size: 11px;
  color: #646970;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   PRESET THEMES
   ============================================================================= */
.adm-preset-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 700px) {
  .adm-preset-layout { grid-template-columns: 1fr; }
}
.adm-preset-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-preset-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid #dcdcde;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  background: #fafafa;
  user-select: none;
}
.adm-preset-tile:hover {
  border-color: #2271b1;
  background: #f0f6fc;
  box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
.adm-preset-tile.adm-preset-active {
  border-color: #2271b1;
  background: #f0f6fc;
  box-shadow: 0 0 0 3px rgba(34,113,177,.18);
}
.adm-preset-swatch {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}
.adm-preset-swatch-surface {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 18px;
  border-radius: 3px;
  opacity: .9;
}
.adm-preset-swatch-accent {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 20px;
  height: 8px;
  border-radius: 3px;
}
.adm-preset-swatch-text {
  position: absolute;
  bottom: 8px;
  left: 30px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.adm-preset-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.adm-preset-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
}
.adm-preset-info span {
  font-size: 11px;
  color: #646970;
}

.adm-preset-load-btn {
  flex-shrink: 0;
  font-size: 11px !important;
  padding: 3px 10px !important;
  height: auto !important;
  line-height: 1.6 !important;
  white-space: nowrap;
}
.adm-preset-tile.adm-preset-active .adm-preset-load-btn {
  background: #2271b1 !important;
  color: #fff !important;
  border-color: #2271b1 !important;
  cursor: default !important;
}

.adm-preset-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dcdcde;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  background: #1d2327;
  transition: background .25s;
}
.adm-preview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #646970;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
}
.adm-preview-topbar {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  background: var(--adm-preview-bar, #1d2327);
  transition: background .25s;
}
.adm-preview-topbar-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--adm-preview-primary, #2271b1);
  opacity: .9;
  flex-shrink: 0;
  transition: background .25s;
}
.adm-preview-topbar-items {
  display: flex;
  gap: 6px;
  flex: 1;
}
.adm-preview-topbar-item {
  height: 6px;
  border-radius: 3px;
  background: var(--adm-preview-text, #dcdcde);
  opacity: .25;
  transition: background .25s;
}
.adm-preview-main {
  display: flex;
  height: 110px;
}
.adm-preview-sidebar {
  width: 54px;
  background: var(--adm-preview-bg, #1d2327);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  transition: background .25s;
}
.adm-preview-sidebar-item {
  height: 7px;
  border-radius: 3px;
  background: var(--adm-preview-text, #dcdcde);
  opacity: .2;
  transition: background .25s;
}
.adm-preview-sidebar-item.is-active {
  background: var(--adm-preview-primary, #2271b1);
  opacity: .85;
}
.adm-preview-content {
  flex: 1;
  background: var(--adm-preview-surface, #2c3338);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background .25s;
}
.adm-preview-content-bar {
  height: 7px;
  border-radius: 3px;
  background: var(--adm-preview-text, #dcdcde);
  opacity: .18;
  transition: background .25s;
}
.adm-preview-content-bar.is-title {
  width: 45%;
  opacity: .35;
  height: 9px;
}
.adm-preview-content-card {
  flex: 1;
  border-radius: 4px;
  background: var(--adm-preview-bg, #1d2327);
  opacity: .7;
  transition: background .25s;
}
.adm-preview-content-btn {
  align-self: flex-start;
  width: 38px;
  height: 14px;
  border-radius: 3px;
  background: var(--adm-preview-primary, #2271b1);
  opacity: .85;
  transition: background .25s;
}
.adm-preview-name {
  padding: 6px 10px;
  background: var(--adm-preview-bg, #1d2327);
  font-size: 10px;
  font-weight: 700;
  color: var(--adm-preview-text, #dcdcde);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: background .25s, color .25s;
}

/* =============================================================================
   LAYOUT & SPACING GRID
   ============================================================================= */
.adm-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-bottom: 16px;
}
@media (max-width: 780px) {
  .adm-layout-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .adm-layout-grid { grid-template-columns: 1fr; }
}
.adm-layout-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-layout-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d2327;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: default;
}
.adm-layout-input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 12px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
  color: #1d2327;
  transition: border-color .15s, box-shadow .15s;
  height: 30px;
}
.adm-layout-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34,113,177,.15);
  outline: none;
}

body.adm-dark-active .adm-layout-label { color: var(--adm-text) !important; }
body.adm-dark-active .adm-layout-input {
  background: var(--adm-surface-2) !important;
  border-color: var(--adm-border) !important;
  color: var(--adm-text) !important;
}
body.adm-dark-active .adm-layout-input:focus {
  border-color: var(--adm-primary) !important;
  box-shadow: 0 0 0 2px rgba(34,113,177,.25) !important;
}

/* =============================================================================
   COLOR GRID & PALETTE ACTIONS
   ============================================================================= */
.adm-palette-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.adm-palette-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.adm-palette-actions .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
}
.adm-import-label {
  cursor: pointer;
}
.adm-import-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.adm-import-ok  { color: #12532e; background: #d1fadf; }
.adm-import-err { color: #7f1d1d; background: #fee2e2; }

.adm-color-group {
  margin-bottom: 20px;
}
.adm-color-group-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #646970;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}
.adm-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.adm-color-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-color-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d2327;
  display: block;
}
.adm-color-var-name {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #646970;
  font-family: Consolas, Monaco, monospace;
  margin-top: 2px;
}
.adm-color-item .wp-picker-container {
  display: block !important;
  width: 100% !important;
}
.adm-color-item .wp-picker-container .wp-color-result {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 34px !important;
  border-radius: 3px !important;
}
.adm-color-item .wp-picker-container .wp-color-result::before {
  content: "" !important;
  display: block !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 100% !important;
  background: inherit !important;
  border-right: 2px solid rgba(0,0,0,.15) !important;
  flex-shrink: 0 !important;
}
.adm-color-item .wp-picker-container .wp-color-result-text {
  display: block !important;
  flex: 1 !important;
  text-align: center !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: transparent !important;
  border-left: none !important;
}
.adm-color-reset-row {
  padding-top: 12px;
  border-top: 1px solid #dcdcde;
  margin-top: 4px;
}
.adm-color-reset-row .button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.adm-color-reset-row .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
}

/* =============================================================================
   CSS VARIABLE REFERENCE
   ============================================================================= */
.adm-var-reference {
  margin-bottom: 14px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  overflow: hidden;
}
.adm-var-reference-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f6f7f7;
  font-size: 12px;
  font-weight: 600;
  color: #1d2327;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.adm-var-reference-summary::-webkit-details-marker { display: none; }
.adm-var-reference-summary::before {
  content: "\25B6";
  font-size: 9px;
  color: #646970;
  transition: transform .15s ease;
  flex-shrink: 0;
}
details.adm-var-reference[open] .adm-var-reference-summary::before {
  transform: rotate(90deg);
}
.adm-var-reference-summary .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  color: #2271b1;
}
.adm-var-count {
  margin-left: auto;
  background: #2271b1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.6;
}
.adm-var-group {
  border-top: 1px solid #dcdcde;
}
.adm-var-group-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #646970;
  padding: 6px 12px 4px !important;
  margin: 0 !important;
  border: none !important;
  background: #fafafa;
}
.adm-var-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: #dcdcde;
}
.adm-var-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
}
.adm-var-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.1);
}
.adm-var-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.adm-var-copy {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}
.adm-var-copy code {
  font-size: 11px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: #2271b1;
  background: none;
  padding: 0;
  border: none;
}
.adm-var-copy:hover code { text-decoration: underline; }
.adm-var-copy-icon {
  font-size: 12px !important;
  width: 12px !important;
  height: 12px !important;
  color: #646970;
  opacity: 0;
  transition: opacity .15s;
}
.adm-var-copy:hover .adm-var-copy-icon { opacity: 1; }
.adm-var-label {
  font-size: 11px;
  color: #646970;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-var-hex {
  font-size: 10px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: #646970;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================================================
   CSS EDITOR
   ============================================================================= */
.adm-css-editor-wrap {
  border: 1px solid #dcdcde;
  border-radius: 6px;
  overflow: hidden;
}
.adm-css-editor {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 200px;
  padding: 12px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  background: #1e1e2e;
  color: #cdd6f4;
  border: none;
  outline: none;
  display: block;
}
.adm-css-editor::placeholder { color: #585b70; }

/* =============================================================================
   SUBMIT ROW / FOOTER
   ============================================================================= */
.adm-submit-row {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
}
.adm-footer {
  text-align: center;
  padding: 10px 0 4px;
  font-size: 12px;
  color: #646970;
}
.adm-footer a {
  color: #2271b1;
  text-decoration: none;
}
.adm-footer a:hover {
  text-decoration: underline;
}

/* =============================================================================
   DARK MODE OVERRIDES  (active when body.adm-dark-active is present)
   ============================================================================= */
body.adm-dark-active .adm-page-header,
body.adm-dark-active .adm-card {
  background: var(--adm-surface-1) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-card-header {
  background: var(--adm-bg) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-card-header .dashicons { color: var(--adm-link) !important; }
body.adm-dark-active .adm-card-header h2         { color: var(--adm-text) !important; }
body.adm-dark-active .adm-page-title             { color: var(--adm-text) !important; }
body.adm-dark-active .adm-header-icon            { color: var(--adm-link) !important; }
body.adm-dark-active .adm-page-subtitle,
body.adm-dark-active .adm-card-description,
body.adm-dark-active .adm-field-desc,
body.adm-dark-active .adm-footer                 { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-field-title            { color: var(--adm-text) !important; }
body.adm-dark-active .adm-color-label            { color: var(--adm-text) !important; }
body.adm-dark-active .adm-color-var-name         { color: var(--adm-text-soft) !important; }
body.adm-dark-active .adm-color-group-title      { color: var(--adm-text-soft) !important; }
body.adm-dark-active .adm-color-reset-row        { border-color: var(--adm-border) !important; }
body.adm-dark-active .adm-css-editor-wrap        { border-color: var(--adm-border) !important; }
body.adm-dark-active .adm-footer a               { color: var(--adm-link) !important; }
body.adm-dark-active .adm-status-active          { background: #12532e50; color: #6ee7a0; }
body.adm-dark-active .adm-status-inactive        { background: #7f1d1d50; color: #fca5a5; }
body.adm-dark-active .adm-field-divider          { border-color: var(--adm-border) !important; }

body.adm-dark-active .adm-access-mode-option {
  background: var(--adm-surface-2) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-access-mode-option:hover,
body.adm-dark-active .adm-access-mode-option.is-active {
  border-color: var(--adm-primary) !important;
  background: var(--adm-surface-3) !important;
  box-shadow: 0 0 0 3px rgba(34,113,177,.18) !important;
}
body.adm-dark-active .adm-access-mode-option.is-disabled {
  opacity: .3 !important;
}
body.adm-dark-active .adm-access-mode-option .dashicons      { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-access-mode-option.is-active .dashicons,
body.adm-dark-active .adm-access-mode-option:hover .dashicons { color: var(--adm-link) !important; }
body.adm-dark-active .adm-access-mode-label strong           { color: var(--adm-text) !important; }
body.adm-dark-active .adm-access-mode-label span             { color: var(--adm-text-muted) !important; }

body.adm-dark-active .adm-user-empty-state {
  background: var(--adm-bg) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-user-empty-icon { color: var(--adm-border) !important; }
body.adm-dark-active .adm-user-empty-text { color: var(--adm-text-muted) !important; }

body.adm-dark-active .adm-user-item {
  background: var(--adm-surface-2) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-user-item:hover {
  border-color: var(--adm-primary) !important;
  background: var(--adm-surface-3) !important;
}
body.adm-dark-active .adm-user-info strong { color: var(--adm-text) !important; }
body.adm-dark-active .adm-user-info span   { color: var(--adm-text-muted) !important; }

body.adm-dark-active .adm-import-ok  { color: #6ee7a0; background: #12532e50; }
body.adm-dark-active .adm-import-err { color: #fca5a5; background: #7f1d1d50; }

body.adm-dark-active .adm-var-reference          { border-color: var(--adm-border) !important; }
body.adm-dark-active .adm-var-reference-summary  { background: var(--adm-bg) !important; color: var(--adm-text) !important; }
body.adm-dark-active .adm-var-reference-summary::before { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-var-group              { border-color: var(--adm-border) !important; }
body.adm-dark-active .adm-var-group-title        { background: var(--adm-bg) !important; color: var(--adm-text-soft) !important; }
body.adm-dark-active .adm-var-grid               { background: var(--adm-border) !important; }
body.adm-dark-active .adm-var-item               { background: var(--adm-surface-2) !important; }
body.adm-dark-active .adm-var-copy code          { color: var(--adm-link) !important; }
body.adm-dark-active .adm-var-label,
body.adm-dark-active .adm-var-hex                { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-var-copy-icon          { color: var(--adm-text-muted) !important; }

body.adm-dark-active .adm-color-item .wp-picker-container { background: unset !important; border-color: var(--adm-border) !important; box-shadow: none !important; }
body.adm-dark-active .adm-color-item .wp-picker-container .wp-color-result { border-color: var(--adm-border) !important; }
body.adm-dark-active .adm-color-item .wp-picker-container .wp-color-result::before { border-right-color: var(--adm-border) !important; }
body.adm-dark-active .adm-color-item .wp-picker-container .wp-color-result-text { background: var(--adm-surface-2) !important; color: var(--adm-text) !important; }
body.adm-dark-active .wp-picker-container input[type="text"].wp-color-picker { background: var(--adm-surface-2) !important; color: var(--adm-text) !important; border-color: var(--adm-border) !important; }
body.adm-dark-active .wp-picker-input-wrap .button,
body.adm-dark-active .wp-picker-clear { background: var(--adm-surface-2) !important; color: var(--adm-text) !important; border-color: var(--adm-border) !important; }
body.adm-dark-active .iris-picker { background: var(--adm-surface-1) !important; border-color: var(--adm-border) !important; box-shadow: var(--adm-shadow-md) !important; }
body.adm-dark-active .iris-picker .iris-picker-inner input[type="text"] { background: var(--adm-surface-2) !important; color: var(--adm-text) !important; border-color: var(--adm-border) !important; }

body.adm-dark-active .adm-preset-tile {
  background: var(--adm-surface-2) !important;
  border-color: var(--adm-border) !important;
}
body.adm-dark-active .adm-preset-tile:hover {
  border-color: var(--adm-primary) !important;
  background: var(--adm-surface-3) !important;
  box-shadow: 0 0 0 3px rgba(34,113,177,.18) !important;
}
body.adm-dark-active .adm-preset-tile.adm-preset-active {
  border-color: var(--adm-primary) !important;
  background: var(--adm-surface-3) !important;
}
body.adm-dark-active .adm-preset-info strong { color: var(--adm-text) !important; }
body.adm-dark-active .adm-preset-info span   { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-preview-label      { color: var(--adm-text-muted) !important; }
body.adm-dark-active .adm-preset-preview     { border-color: var(--adm-border) !important; }
