[data-portal-toast-source] { display: none !important; }
.portal-toast { position: fixed; inset: 0 0 auto; margin: 0; transform: none; width: 100%; max-width: none; box-sizing: border-box; padding: 11px 22px; border: 0; border-bottom: 0; border-radius: 0; background: rgba(40, 94, 72, 0.8); color: #fff; font: 600 14px/1.4 system-ui, sans-serif; text-align: center; box-shadow: 0 4px 18px #20352f40; pointer-events: none; z-index: 2147483647; }
.portal-toast:not(:popover-open):not(.portal-toast-visible) { display: none; }
.portal-toast-visible { animation: portal-notice-in .2s ease-out both; }
.portal-toast-leaving { animation: portal-notice-out .3s ease-in both; }
@keyframes portal-notice-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes portal-notice-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .portal-toast-visible, .portal-toast-leaving { animation-duration: .01s; } }

/* Reserve space outside the dialog for the notification bar. */
:root { --dialog-top-clearance: calc(14px * 1.4 + 24px + 1px); --message-bar-height: calc(14px * 1.4 + 22px); }
:root body dialog {
    box-sizing: border-box;
    top: var(--dialog-top-clearance);
    bottom: var(--dialog-top-clearance);
    margin-block: 0;
    max-height: calc(100dvh - var(--dialog-top-clearance) * 2);
}
/* Keep the image picker bottom-aligned within the same outer clearance. */
:root body .competition-picker-dialog {
    top: auto;
    bottom: var(--dialog-top-clearance);
    margin-block: 0;
}
