.mbb-toast-region{
  position:fixed;
  top:max(16px,env(safe-area-inset-top));
  inset-inline-end:max(16px,env(safe-area-inset-right));
  z-index:2147482500;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  width:min(420px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  overflow-x:hidden;
  overflow-y:auto;
  padding:2px;
  pointer-events:none;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.mbb-toast{
  --mbb-toast-accent:#2563eb;
  --mbb-toast-soft:#eff6ff;
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 32px;
  align-items:start;
  gap:11px;
  min-height:72px;
  padding:14px 12px 14px 14px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.34);
  border-inline-start:4px solid var(--mbb-toast-accent);
  border-radius:15px;
  background:rgba(255,255,255,.98);
  color:#0f172a;
  box-shadow:0 18px 45px rgba(15,23,42,.18),0 4px 14px rgba(15,23,42,.10);
  opacity:1;
  transform:none;
  animation:mbb-toast-enter .22s ease both;
  transition:opacity .22s ease,transform .22s ease,box-shadow .22s ease;
  pointer-events:auto;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.mbb-toast.is-closing{
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
}
.mbb-toast:hover{
  box-shadow:0 22px 52px rgba(15,23,42,.22),0 5px 16px rgba(15,23,42,.12);
}
.mbb-toast-success{--mbb-toast-accent:#16a34a;--mbb-toast-soft:#ecfdf3}
.mbb-toast-error{--mbb-toast-accent:#dc2626;--mbb-toast-soft:#fef2f2}
.mbb-toast-warning{--mbb-toast-accent:#d97706;--mbb-toast-soft:#fffbeb}
.mbb-toast-info{--mbb-toast-accent:#2563eb;--mbb-toast-soft:#eff6ff}
.mbb-toast-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:11px;
  background:var(--mbb-toast-soft);
  color:var(--mbb-toast-accent);
  font-size:20px;
  font-weight:900;
  line-height:1;
  user-select:none;
}
.mbb-toast-copy{
  min-width:0;
  padding-top:1px;
}
.mbb-toast-title{
  display:block;
  margin:0 0 3px;
  color:#0f172a;
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}
.mbb-toast-message{
  display:block;
  color:#475569;
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.mbb-toast-close{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  margin:-3px -2px 0 0;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#64748b;
  font:700 22px/1 Arial,sans-serif;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
[dir="rtl"] .mbb-toast-close{margin:-3px 0 0 -2px}
.mbb-toast-close:hover{
  background:#f1f5f9;
  color:#0f172a;
}
.mbb-toast-close:active{transform:scale(.94)}
.mbb-toast-close:focus-visible{
  outline:3px solid rgba(37,99,235,.24);
  outline-offset:1px;
}
.mbb-toast-progress{
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:3px;
  overflow:hidden;
  background:rgba(148,163,184,.15);
}
.mbb-toast-progress::after{
  content:"";
  display:block;
  width:100%;
  height:100%;
  background:var(--mbb-toast-accent);
  transform-origin:left center;
  animation:mbb-toast-countdown var(--mbb-toast-duration,5000ms) linear forwards;
}
[dir="rtl"] .mbb-toast-progress::after{transform-origin:right center}
.mbb-toast.is-paused .mbb-toast-progress::after{animation-play-state:paused}
@keyframes mbb-toast-enter{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes mbb-toast-countdown{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:640px){
  .mbb-toast-region{
    top:max(10px,env(safe-area-inset-top));
    inset-inline:10px;
    width:auto;
    max-height:calc(100vh - 20px);
  }
  .mbb-toast{
    grid-template-columns:34px minmax(0,1fr) 30px;
    min-height:66px;
    padding:12px 10px 12px 12px;
    border-radius:13px;
  }
  .mbb-toast-icon{width:32px;height:32px;border-radius:10px;font-size:18px}
  .mbb-toast-title{font-size:13.5px}
  .mbb-toast-message{font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
  .mbb-toast{transition:none;transform:none;animation:none}
  .mbb-toast-progress::after{animation:none}
}
@media print{.mbb-toast-region{display:none!important}}
