.profile-settings { position:relative; margin:0; padding:0; color:inherit; font:inherit; }
.profile-settings[hidden] { display:none !important; }
.profile-settings summary { display:inline-flex; cursor:pointer; padding:0; list-style:none; }
.profile-settings summary::-webkit-details-marker { display:none; }
.profile-settings__actions { position:absolute; top:calc(100% + 8px); right:0; z-index:1001; display:flex; flex-direction:column; gap:8px; padding:10px; background:#102010; border:1px solid #456045; border-radius:12px; min-width:190px; box-sizing:border-box; }
.profile-settings:not([open]) .profile-settings__actions { display:none; }
.footer-account-delete { appearance:none; border:0; background:transparent; color:inherit; font:inherit; text-decoration:underline; padding:4px; margin-left:12px; cursor:pointer; }
.footer-account-delete[hidden] { display:none !important; }
.site-footer .footer-links .footer-account-delete { font-size:.82rem; color:rgba(255,255,255,.55); }
.profile-settings__actions #logout-btn { display:block; padding:.7rem 1rem; border:1px solid #638763; border-radius:10px; background:#214721; color:#fff; font:inherit; text-align:center; text-decoration:none; box-sizing:border-box; min-height:44px; }
@media (max-width:800px) {
    .top-bar__menu .profile-settings { width:100%; }
    .profile-settings summary { display:flex; min-height:32px; align-items:center; }
    .profile-settings__actions { position:static; width:100%; min-width:0; margin-top:8px; }
}
.profile-settings button, .account-delete-dialog button {
    font:inherit; border:1px solid #aa5555; border-radius:10px; padding:.7rem 1rem;
    background:#542424; color:#fff; cursor:pointer; min-height:44px;
}
.account-delete-dialog {
    width:min(94vw,540px); max-height:90dvh; overflow-y:auto; box-sizing:border-box;
    border:1px solid #674848; border-radius:16px; padding:1.5rem;
    background:#102010; color:#fff; font:15px/1.5 system-ui,sans-serif;
}
.account-delete-dialog::backdrop { background:#000b; }
.account-delete-dialog h2 { font-size:1.25rem; margin:0 0 1rem; }
.account-delete-dialog p { margin:.75rem 0; }
.account-delete-dialog label { display:block; margin:1rem 0; }
.account-delete-dialog .delete-code-label[hidden] { display:none !important; }
.account-delete-dialog input { display:block; width:100%; box-sizing:border-box; margin-top:.4rem;
    border:1px solid #657565; border-radius:8px; padding:.65rem; background:#fff; color:#111; font:inherit; }
.account-delete-dialog .delete-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.account-delete-dialog .delete-cancel { background:#214721; border-color:#638763; }
.account-delete-dialog button:disabled { opacity:.5; cursor:default; }
.account-delete-dialog [role="alert"] { color:#ffb4b4; }
.account-delete-message { position:fixed; z-index:99991; top:16px; left:50%; transform:translateX(-50%);
    width:max-content; max-width:calc(100vw - 32px); padding:1rem; border:1px solid #639963;
    border-radius:12px; box-sizing:border-box; background:#163b16; color:#fff; font:15px/1.5 system-ui,sans-serif; }
