/* Explicit operation metadata only; no status or danger is inferred from text. */
:is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-hint,
.dashboard-confirm-dialog .dashboard-dialog-details {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #62404c;
  border-radius: 6px;
  background: #271820;
  color: #f0cdd7;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) [data-operation-danger]:not([data-operation-danger="false"]) .dashboard-operation-hint,
:is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-hint[data-operation-danger]:not([data-operation-danger="false"]),
.dashboard-confirm-dialog[data-operation-danger="true"] .dashboard-dialog-details {
  border-color: #8a4557;
  background: #301820;
  color: #ffd3dc;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-actions > :is(button, a) {
  min-height: 44px;
  border: 1px solid var(--dashboard-border, #3b2d37);
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-actions > :is(button, a):focus-visible {
  border-color: #ffb2c0;
  outline: none;
  box-shadow: none;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) :is(button, a)[data-operation-danger]:not([data-operation-danger="false"]) {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #bc4e61;
  background: #9e263c;
  color: #fff1f4;
  white-space: normal;
  overflow-wrap: anywhere;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) :is(button, a)[data-operation-danger]:not([data-operation-danger="false"]):not(:disabled):not([aria-disabled="true"]):not(:focus-visible):hover {
  border-color: #f38a9e;
  background: #ad3047;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) :is(button, a)[data-operation-danger]:not([data-operation-danger="false"]):focus-visible {
  border-color: #ffb2c0;
  outline: none;
  box-shadow: none;
}

:is(.account-page, .admin-page, .dashboard-confirm-dialog) :is(button, a)[data-operation-danger]:not([data-operation-danger="false"]):is(:disabled, [aria-disabled="true"]) {
  opacity: .45;
  cursor: not-allowed;
}

.dashboard-confirm-dialog .dashboard-dialog-body .dashboard-dialog-details {
  color: #f0cdd7;
}

@media (max-width: 520px) {
  :is(.account-page, .admin-page, .dashboard-confirm-dialog) .dashboard-operation-actions > :is(button, a) {
    flex: 1 1 130px;
    min-width: 0;
    min-height: 44px;
    height: auto;
    white-space: normal;
  }
}
