/* Account navigation and logout dialog styles from Nomagar auth.css. */
.auth-dialog { box-sizing: border-box; width: min(100% - 32px, 440px); padding: 24px; border: 1px solid #303844; border-radius: 12px; background: #11151b; color: #f9f9f9; box-shadow: 0 18px 48px rgba(0, 0, 0, .53); text-align: start; margin: auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.auth-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.auth-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-inline-start: auto; padding: 0; border: 1px solid #202630; border-radius: 5px; background: transparent; color: #f9f9f9; cursor: pointer; }
.auth-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.auth-nav [hidden] { display: none !important; }
.auth-nav a, .auth-nav button { color: var(--text, #f9f9f9); background: var(--bg1, #0c0f14); border: 1px solid var(--line, #303844); border-radius: 5px; padding: 8px 10px; font: inherit; text-decoration: none; cursor: pointer; }
.auth-nav button:disabled { opacity: .6; cursor: wait; }
.auth-nav [data-auth-nav-message] { max-width: 220px; overflow-wrap: anywhere; }
.auth-nav [data-auth-nav-message]:empty { display: none; }
.auth-nav [data-auth-nav-message][data-error="true"] { color: var(--ui-error-text); }
.auth-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-block-start: 18px; }
.auth-dialog h2 { font-size: 20px; font-weight: 700; line-height: normal; margin: 18px 0 8px; }
.auth-dialog h3 { font-size: 15px; font-weight: 400; line-height: normal; }
.auth-dialog p { font-size: 12px; line-height: 1.55; color: #a7adb6; margin: 0; }
.auth-dialog :is(.auth-button, .auth-link) { box-sizing: border-box; min-height: 34px; padding: 0 12px; border: 1px solid #161b23; border-radius: 5px; background: #161b23; color: #f9f9f9; font-size: 11px; line-height: normal; text-decoration: none; }
.auth-dialog .auth-button:not(.auth-button-danger) { border-color: #0067ff; background: #0067ff; }
.auth-dialog .auth-message, .auth-dialog [data-error="true"] { color: var(--ui-error-text, #ff969e); }
.auth-dialog-top { display: flex; justify-content: space-between; align-items: flex-start; }
.auth-dialog-warning { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #321820; }
.auth-dialog-warning img { display: block; }
.auth-dialog .auth-button.auth-button-danger { background: #321820; color: #ff5b68; border-color: #ff5b68; }
.auth-dialog-top .auth-close { margin: 0; }
.auth-dialog[open] { animation: nomagar-dialog-in 180ms cubic-bezier(.2,.7,.3,1) both; }
.auth-dialog[open]::backdrop { animation: nomagar-backdrop-in 180ms ease-out both; }
.auth-dialog[open].is-closing { animation: nomagar-dialog-out 180ms ease-in both; pointer-events: none; }
.auth-dialog[open].is-closing::backdrop { animation: nomagar-backdrop-out 180ms ease-in both; }
@keyframes nomagar-dialog-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes nomagar-dialog-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
@keyframes nomagar-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nomagar-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.auth-nav, .auth-dialog { color-scheme: dark; --ui-error-text: #ff969e; }
.auth-dialog { font: inherit; direction: rtl; }
.auth-nav :is(a, button):focus-visible, .auth-dialog button:focus-visible { outline: 2px solid var(--text) !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .auth-dialog[open], .auth-dialog[open]::backdrop { animation: none; } }
