/* One viewport-bound dialog above the application navigation, including iOS safe areas. */
html.jarvis-dialog-open,body.jarvis-dialog-open{overflow:hidden!important;overscroll-behavior:none}
body.jarvis-dialog-open #mobilebar{visibility:hidden!important;pointer-events:none!important}
#overlay:has(.jarvis-dialog){position:fixed!important;inset:0!important;z-index:100000!important;isolation:isolate;max-width:none!important;transform:none!important}
#overlay .modalshade:has(.jarvis-dialog){position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;padding:12px!important;padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;background:#15263d99;box-sizing:border-box}
#overlay .jarvis-dialog{display:flex!important;flex-direction:column!important;min-height:0!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)))!important;width:min(820px,100%)!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;border-radius:20px!important;box-sizing:border-box;color:#14243b}
#overlay .dialog-closebar{flex:0 0 auto;display:flex;justify-content:flex-end;padding:10px 16px;border-bottom:1px solid #e4eaf1;background:#fff}
#overlay .dialog-content{flex:1 1 auto;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:18px 22px;box-sizing:border-box;scrollbar-gutter:stable}
#overlay .dialog-actions{flex:0 0 auto;padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e4eaf1;box-shadow:0 -4px 16px #2236510a;background:#fff;max-height:38dvh;overflow-y:auto}
#overlay .dialog-actions[hidden]{display:none!important}
#overlay .dialog-actions .section-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0!important}
#overlay .jarvis-dialog h2{font-size:20px!important;line-height:1.3!important;font-weight:650!important;margin:0 0 12px!important;overflow-wrap:anywhere}
#overlay .jarvis-dialog p,#overlay .production46-caption{font-size:14px!important;line-height:1.55!important}
#overlay .production46-preview{overflow-x:auto;touch-action:pan-x pan-y}
#overlay .production46-preview figure{flex:0 0 min(85%,320px)}
#overlay .production46-preview img{max-height:45dvh!important;width:100%;object-fit:contain!important}
@media(max-width:600px){#overlay .dialog-content{padding:14px}#overlay .dialog-actions{padding:10px 12px max(10px,env(safe-area-inset-bottom))}#overlay .dialog-actions .section-actions>button{flex:1 1 calc(50% - 8px)!important}#overlay .jarvis-dialog h2{font-size:18px!important}}
