.editor-field { min-width: 0; }
.editor-field-label { display: block; margin-bottom: 7px; color: #4e4c46; font-size: 12px; font-weight: 800; }

.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%; min-height: 44px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.custom-select-trigger:focus,
.custom-select-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(207, 0, 112, .12); outline: 0; }
.custom-select-trigger:disabled { background: #f5f5f3; color: #a19f99; border-color: var(--line); cursor: not-allowed; }
.custom-select-trigger:disabled .custom-select-arrow { color: #a19f99; }
.custom-select-arrow { color: var(--accent); font-size: 16px; }
.custom-select-menu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; padding: 6px;
  border: 1px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink);
}
.custom-select-menu button {
  width: 100%; padding: 10px 11px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.custom-select-menu button:hover,
.custom-select-menu button:focus,
.custom-select-menu button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-dark); outline: 0; }

.admin-dialog-backdrop {
  position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(22, 23, 19, .68); backdrop-filter: blur(3px);
}
.admin-dialog {
  width: min(480px, 100%); padding: 28px; border: 2px solid var(--ink); background: var(--panel);
  box-shadow: 10px 10px 0 var(--accent); color: var(--ink);
}
.admin-dialog-eyebrow { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.admin-dialog h2 { margin: 9px 0 12px; font-size: 26px; }
.admin-dialog-message { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.admin-dialog-content input { margin-top: 20px; }
.admin-dialog-error { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.admin-dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.admin-dialog-actions .danger-button { margin-right: 0; }
.dialog-danger-confirm { background: #b42318; color: #fff; }

@media (max-width: 600px) {
  .admin-dialog { padding: 22px; box-shadow: 6px 6px 0 var(--accent); }
  .admin-dialog-actions { flex-wrap: wrap; }
}

/* Custom Checkbox Styling */
.permission-panel input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  background-color: #fff;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  position: relative;
  transition: all 0.12s ease-in-out;
  margin: 0;
  flex-shrink: 0;
}

.permission-panel input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.permission-panel input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: var(--accent);
}

.permission-panel input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: block;
}

.permission-panel input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 2px rgba(207, 0, 112, 0.15);
}

.permission-panel input[type="checkbox"]:disabled {
  background-color: #f5f5f3;
  border-color: var(--line);
  cursor: not-allowed;
}

.permission-panel input[type="checkbox"]:disabled:checked {
  background-color: #d9d9d9;
  border-color: #d9d9d9;
}
