html.as2-overlay-open, html.as2-overlay-open body { overscroll-behavior: none; }
.as2-overlay { z-index: var(--as2-overlay-level) !important; overscroll-behavior: contain; }
.as2-overlay:not(.as2-overlay-top), .as2-overlay-closing { pointer-events: none; }
.as2-overlay-enter { animation: as2-overlay-in 220ms cubic-bezier(.2,.8,.2,1) both; }
.as2-overlay-enter[data-overlay-kind="sheet"] > :not(button) { animation: as2-sheet-in 220ms cubic-bezier(.2,.8,.2,1) both; }
.as2-overlay-closing { animation: as2-overlay-out 160ms ease-in both; }
@keyframes as2-overlay-in { from { opacity:var(--as2-overlay-enter-from,0); } to { opacity:1; } }
@keyframes as2-overlay-out { from { opacity:var(--as2-overlay-exit-from,1); } to { opacity:0; } }
@keyframes as2-sheet-in { from { translate: 0 12px; } to { translate: 0 0; } }
.as2-media-status { display:grid; place-content:center; justify-items:center; gap:12px; padding:20px; color:#f6f7f9; background:#141820; text-align:center; }
.as2-media-status[hidden] { display:none; }
.as2-media-status button { min-height:44px; min-width:44px; padding:10px 18px; font:inherit; background:var(--as2-button-fill,#245e79); color:var(--as2-button-text,#fff); border:1px solid var(--as2-button-border,#cbd5df); border-radius:12px; }
.as2-preview-recovery { position:absolute; inset:72px 16px 80px; z-index:5; border-radius:16px; }
.as2-preview-recovery[hidden] { display:none; }
.as2-preview-pending { position:fixed; inset:0; padding:max(24px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.vf-broadcast-image-frame { position:relative; min-width:0; min-height:100px; }
.vf-broadcast-image-frame > img { display:block; width:100%; }
.vf-broadcast-image-frame .as2-media-status { position:absolute; inset:0; border-radius:inherit; }
.vf-broadcast-image-frame .as2-media-status[hidden] { display:none; }
.vf-broadcast-image-frame.is-error > img { visibility:hidden; }
.vf-broadcast-detail-gallery > .vf-broadcast-image-frame:only-child,
.vf-broadcast-detail-gallery > .vf-broadcast-image-frame:first-child:nth-last-child(3) { grid-column:1 / -1; }
.vf-broadcast-detail-gallery > .vf-broadcast-image-frame:only-child > img,
.vf-broadcast-detail-gallery > .vf-broadcast-image-frame:first-child:nth-last-child(3) > img { aspect-ratio:16 / 10; }
.vf-broadcast-image-preview-stage { position:relative; }
.vf-broadcast-image-preview-stage > .as2-media-status { position:absolute; inset:0; }
.vf-broadcast-image-preview-stage > .as2-media-status[hidden] { display:none; }
.vf-broadcast-image-preview-stage.is-error > img { visibility:hidden; }
.vf-broadcast-image-preview, .venue-svg-preview { background:#141820 !important; }
.venue-photo-preview { --pswp-bg:#141820; }
.vf-broadcast-modal, .vf-broadcast-detail-modal, .image-annotation-modal { background:var(--as2-overlay,rgba(0,0,0,.48)) !important; backdrop-filter:none !important; }
.vf-broadcast-detail-modal, .vf-emergency-modal, .image-annotation-modal { padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) !important; }
.vf-broadcast-detail-card, .vf-emergency-card, .image-annotation-modal > section { max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom))) !important; overscroll-behavior:contain; }
.vf-broadcast-sheet { max-height:calc(100dvh - max(16px,env(safe-area-inset-top))) !important; }
.vf-broadcast-detail-card, .vf-broadcast-sheet,
.image-annotation-modal > section, .image-annotation-modal header {
  background:var(--as2-dialog-fill,#fff); color:var(--as2-dialog-text,#202a35); border-color:var(--as2-dialog-border,#cbd5df); box-shadow:var(--as2-dialog-shadow,none);
}
body .vf-broadcast-detail-head {
  background:var(--as2-dialog-fill,#071a31); border:0; box-shadow:none;
}
body .vf-broadcast-detail-head h2 { min-width:0; overflow-wrap:anywhere; }
body .vf-broadcast-detail-action { flex-shrink:0; }
body .vf-broadcast-detail-meta { justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
body .vf-broadcast-detail-level { min-height:28px; font-size:14px; }
body .vf-broadcast-detail-meta time { margin-left:auto; text-align:right; font-size:14px; }
body .vf-broadcast-detail-body { font-size:16px; }
.image-annotation-modal :is(h3,.image-annotation-copy p,.image-annotation-gallery-head strong) { color:var(--as2-dialog-text,#202a35); }
.image-annotation-modal :is(header > div > span,.image-annotation-copy > span,.image-annotation-gallery-head > span) { color:var(--as2-dialog-muted,#536170); }
:is(.venue-svg-preview__close,.venue-svg-preview__rotate,.venue-photo-preview .pswp__button--close,.venue-photo-preview .pswp__venue-preview-rotate,.vf-broadcast-image-preview-close,.vf-broadcast-image-preview-rotate,.image-annotation-modal header button) {
  min-width:44px; min-height:44px; opacity:1; background:var(--as2-button-fill,#245e79); color:var(--as2-button-text,#fff); border:1px solid var(--as2-button-border,#cbd5df); box-shadow:var(--as2-button-shadow,none);
  --as2-current-text:var(--as2-button-text); --as2-current-focus-inner:var(--as2-button-focus-inner); --as2-current-focus-outer:var(--as2-button-focus-outer);
}
.venue-photo-preview .pswp__button--close { --pswp-icon-color:var(--as2-button-text,#fff); --pswp-icon-color-secondary:var(--as2-button-text,#fff); }
.image-annotation-modal header button { width:44px; height:44px; }
.image-annotation-modal.is-landscape > section { max-height:none !important; }
.vf-emergency-card { background:#fff1ed !important; color:#641e16 !important; border:2px solid #a12b20 !important; backdrop-filter:none !important; }
.vf-emergency-card :is(.vf-emergency-kicker,.vf-emergency-title,.vf-emergency-time,.vf-emergency-body) { color:#641e16 !important; }
.vf-emergency-dismiss { background:#7c2419 !important; color:#fff !important; border:2px solid #7c2419 !important; min-height:44px; }
.vf-emergency-dismiss:focus-visible { outline:3px solid #fff !important; outline-offset:-5px; box-shadow:0 0 0 3px #141820 !important; }
@media (prefers-reduced-motion: reduce) {
  .as2-overlay, .as2-overlay-enter[data-overlay-kind="sheet"] > :not(button) { animation:none !important; }
  .venue-svg-preview__loading i { animation:none !important; }
  .vf-broadcast-marquee span { animation:none !important; transform:none !important; left:0 !important; min-width:0; width:100%; flex:1 1 auto; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden !important; }
  .vf-broadcast-marquee { white-space:normal !important; overflow:hidden; }
}

/* Keep preview close controls usable while the image is still arriving. */
body.audience-ui :is(.as2-preview-pending, .as2-preview-recovery).is-skeleton > p {
  width:min(76vw, 520px); height:min(56vh, 560px); margin:0;
  border-radius:16px; background:#e3e5e8; color:transparent; font-size:0;
}
