/* Replace the terminal blanket with an honest notice; retain editable drafts. */
body.affm-connection-lost #shiny-disconnected-overlay,
body.affm-connection-lost #ss-overlay,
body.affm-connection-lost #ss-connect-dialog,
body.affm-connection-lost .ss-connect-dialog,
body.affm-connection-lost #shiny-disconnected-dialog{display:none!important}
#affm-connection-status[hidden]{display:none}
#affm-connection-status{
  position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;
  transform:translateX(-50%);z-index:100000;width:max-content;
  max-width:calc(100% - 24px);box-sizing:border-box;display:flex;align-items:center;
  gap:12px;padding:12px 16px;background:#fff;color:#293e30;
  border:1px solid #b6c3b1;border-left:5px solid #6a785f;border-radius:4px;
  box-shadow:0 3px 15px #0002;font:15px/1.4 Arial,sans-serif;
}
#affm-connection-status button{
  min-height:44px;flex-shrink:0;padding:8px 14px;background:#fff;color:#315f43;
  border:1px solid currentColor;border-radius:4px;font:inherit;cursor:pointer;
}
body.affm-connection-lost #affm_map_workspace{opacity:.7}
@media(max-width:480px){#affm-connection-status{font-size:14px;gap:8px;padding:10px}}
