/* Namespaced to work in both panel themes and the standalone RTL tools. */
dialog.app-dialog { box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(440px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; color: #334155; box-shadow: 0 24px 80px #0f172a40; font-family: inherit; text-align: start; }
dialog.app-dialog::backdrop { background: #0f172a80; backdrop-filter: blur(3px); }
.app-dialog .app-dialog-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.app-dialog .app-dialog-symbol { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; margin: 0; background: #eef2ff; color: #4f46e5; border-radius: 12px; font-size: 22px; font-weight: 700; }
.app-dialog h2 { min-width: 0; overflow-wrap: anywhere; margin: 0; padding: 0; background: none; border: 0; color: #0f172a; font-size: 17px; line-height: 1.5; font-weight: 700; }
.app-dialog p { margin: 0; font-size: 13px; line-height: 1.8; color: #475569; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-dialog .app-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.app-dialog button { box-sizing: border-box; min-height: 38px; min-width: 76px; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #475569; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.app-dialog button[hidden] { display: none; }
.app-dialog button[data-dialog-accept] { background: #4f46e5; border-color: #4f46e5; color: white; }
.app-dialog button:hover { filter: brightness(.96); }
.app-dialog button:focus-visible { outline: 2px solid #6366f1; outline-offset: 3px; }
.app-dialog--danger .app-dialog-symbol { background: #fff1f2; color: #be123c; }
.app-dialog--danger button[data-dialog-accept] { background: #be123c; border-color: #be123c; }
@media (pointer: coarse) { .app-dialog button { min-height: 44px; } }
