/* tsx-confirm — the admin's in-page confirmation (assets/js/tsync-static/tsx-confirm.js). Colours are theme tokens, so light and
   dark follow the theme; the dialog never wider than the screen. */
.tsx-confirm[hidden] { display: none; }
.tsx-confirm { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tsx-confirm__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.tsx-confirm__dialog {
  position: relative; width: 100%; max-width: 28rem; padding: 20px 20px 16px;
  background: var(--tsync-color-surface, #ffffff); color: var(--tsync-color-text, #0f172a);
  border: 1px solid var(--tsx-n-200, #e4e4e7); border-radius: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}
.tsx-confirm__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: inherit; }
.tsx-confirm__msg { margin: 0 0 18px; color: var(--tsync-color-text-secondary, #475569); white-space: pre-line; overflow-wrap: anywhere; }
.tsx-confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tsx-confirm__actions .btn:focus-visible { outline: 2px solid var(--tsync-color-primary, #0d7a8a); outline-offset: 2px; }
.tsx-confirm__ok[aria-busy="true"] { cursor: progress; opacity: 0.8; }
html.tsx-confirm-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .tsx-confirm__dialog { animation: tsx-confirm-in 0.14s ease-out; }
  @keyframes tsx-confirm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
