/* SheepCloud V3.1.2.1: notification layer above modal (V311 uses z-index:250).
   Keep errors readable on desktop/tablet/mobile, not under backdrop blur. */
#toastWrap.toast-wrap{
  position:fixed!important;
  z-index:2147482000!important;
  left:auto!important;
  right:18px!important;
  top:auto!important;
  bottom:120px!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  width:min(470px,calc(100vw - 28px))!important;
  max-height:min(74dvh,640px)!important;
  pointer-events:none!important;
  overflow:visible!important;
}
#toastWrap .toast{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:14px 16px!important;
  border-radius:13px!important;
  box-shadow:0 16px 45px rgba(20,34,43,.32)!important;
  font-size:clamp(13px,1.15vw,15px)!important;
  line-height:1.65!important;
  color:#fff!important;
  pointer-events:auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  max-height:min(60dvh,520px)!important;
  overflow:auto!important;
}
#toastWrap .toast.error{background:#a53e3e!important;border:1px solid #f3b9b9!important}
#toastWrap .toast.good{background:#357553!important}
#toastWrap .sc3121-toast-message{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;user-select:text}
#toastWrap .sc3121-toast-tools{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#toastWrap .sc3121-toast-tool{cursor:pointer;border:1px solid rgba(255,255,255,.64);background:rgba(0,0,0,.12);color:#fff!important;border-radius:8px;font:inherit;font-size:12px;font-weight:750;padding:5px 10px;min-height:31px}
#toastWrap .sc3121-toast-tool:hover,#toastWrap .sc3121-toast-tool:focus-visible{background:rgba(0,0,0,.28);outline:1px solid #fff}
@media(max-width:700px){
 #toastWrap.toast-wrap{right:12px!important;bottom:calc(98px + env(safe-area-inset-bottom,0px))!important;width:calc(100vw - 24px)!important;max-height:60dvh!important}
 #toastWrap .toast{font-size:13px!important;padding:12px 13px!important;max-height:55dvh!important}
}
