/* Shared dialogs follow the original neutral site palette in both themes. */
.hermes-confirm { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 26px; border: 1px solid #383838; border-radius: 24px; background: #191919; color: #eee; box-shadow: 0 24px 90px #0008; overflow-y: auto; }
.hermes-confirm::backdrop { background: #0009; backdrop-filter: blur(4px); }
.hermes-confirm-heading { display: flex; align-items: center; gap: 12px; }
.hermes-confirm-heading h2 { margin: 0; font-size: 20px; font-weight: 600; color: inherit; }
.hermes-confirm-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border: 1px solid #484848; border-radius: 12px; }
.hermes-confirm p { margin: 20px 0 26px; font-size: 14px; line-height: 1.7; color: #c5c5c5; overflow-wrap: anywhere; }
.hermes-confirm-close, .hermes-flash-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border: none; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.hermes-confirm-close { margin-left: auto; }
.hermes-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
.hermes-confirm-actions button { padding: 11px 17px; min-height: 44px; border: 1px solid #484848; border-radius: 12px; background: transparent; color: #eee; font: inherit; font-size: 14px; cursor: pointer; }
.hermes-confirm-actions [data-confirm-accept] { background: #dedede; border-color: #dedede; color: #161616; font-weight: 600; }
.hermes-confirm button:focus-visible, .hermes-flash-close:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hermes-confirm-close:hover, .hermes-flash-close:hover { background: #ffffff12; }
.hermes-flash { top: 24px; right: 24px; left: auto; width: max-content; max-width: min(480px, calc(100vw - 32px)); border: 1px solid #484848; background: #191919; color: #eee; border-radius: 18px; padding: 12px 14px 12px 18px; gap: 12px; align-items: center; box-shadow: 0 10px 40px #0005; z-index: 100005; }
.hermes-flash > span { min-width: 0; overflow-wrap: anywhere; }
.hermes-flash > i { flex: 0 0 auto; }
html[data-theme="light"] .hermes-confirm, html[data-theme="light"] .hermes-flash { background: #fff; color: #202020; border-color: #ddd; }
html[data-theme="light"] .hermes-confirm p { color: #555; }
html[data-theme="light"] .hermes-confirm-symbol, html[data-theme="light"] .hermes-confirm-actions button { border-color: #ccc; color: #202020; }
html[data-theme="light"] .hermes-confirm-actions [data-confirm-accept] { color: #fff; background: #323232; border-color: #323232; }
html[data-theme="light"] .hermes-confirm-close:hover, html[data-theme="light"] .hermes-flash-close:hover { background: #00000009; }
@media (max-width: 480px) { .hermes-confirm { padding: 22px; border-radius: 20px; } .hermes-confirm-actions { flex-direction: column-reverse; } .hermes-confirm-actions button { width: 100%; } .hermes-flash { top: 16px; right: 16px; } }
