:where(.reset-root) .ch-reset-btn {
  display: none;
  padding: 8px 4px;
  max-width: 76px;
  white-space: normal;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--ch-font-primary);
  background: var(--ch-warning-bg);
  color: var(--ch-warning);
  border: 1px solid var(--ch-warning-border);
  border-radius: var(--ch-radius-md);
  cursor: pointer;
  transition: opacity var(--ch-transition-fast), transform var(--ch-transition-fast), background-color var(--ch-transition-fast), color var(--ch-transition-fast), border-color var(--ch-transition-fast), box-shadow var(--ch-transition-fast);
}

:where(.reset-root) .ch-reset-btn:hover:not(:disabled) {
  background: var(--ch-warning);
  color: var(--ch-text-inverse);
}

:where(.reset-root) .ch-reset-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:where(.reset-root) .ch-reset-btn.visible {
  display: inline-flex;
}

/* Reset training data overlay (CH Training async reset flow) */
:where(.reset-root) .ch-reset-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ch-bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ch-space-md);
  z-index: calc(var(--ch-z-overlay) + 10);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ch-transition-normal), visibility var(--ch-transition-normal);
}

:where(.reset-root) .ch-reset-overlay.visible {
  opacity: 1;
  visibility: visible;
}

:where(.reset-root) .ch-reset-countdown {
  font-size: 64px;
  font-weight: 600;
  color: var(--ch-text-inverse);
  font-variant-numeric: tabular-nums;
}

:where(.reset-root) .ch-reset-status {
  color: var(--ch-text-inverse);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 480px;
  padding: 0 var(--ch-space-md);
}

:where(.reset-root) .ch-reset-actions {
  display: none;
  gap: var(--ch-space-md);
  margin-top: var(--ch-space-md);
}

:where(.reset-root) .ch-reset-actions.visible {
  display: flex;
}

/* Dismiss-only variant, used by showResetReloadStalled: the reset has
   already SUCCEEDED there and Retry would re-run the whole
   wipe-and-reanonymise, so the button is taken off the screen rather
   than left one click away. */
:where(.reset-root) .ch-reset-actions.dismiss-only .ch-reset-retry {
  display: none;
}

:where(.reset-root) .ch-reset-retry,
:where(.reset-root) .ch-reset-dismiss {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--ch-radius-md);
  cursor: pointer;
  border: 1px solid var(--ch-text-inverse);
  font-family: inherit;
}

:where(.reset-root) .ch-reset-retry {
  background: var(--ch-text-inverse);
  color: var(--ch-text-primary);
}

:where(.reset-root) .ch-reset-retry:hover {
  opacity: 0.9;
}

:where(.reset-root) .ch-reset-dismiss {
  background: transparent;
  color: var(--ch-text-inverse);
}

:where(.reset-root) .ch-reset-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}
