/* ==========================================================
 * MOYAMOVA 1.12.35 — Unified toast / notification visual
 * Uses the same light/dark palette as the refreshed mobile UI.
 * ========================================================== */

.toast-root{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(16px + var(--footer-h-actual,0px) + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  padding:0 12px;
  pointer-events:none;
  z-index:2147483645;
  box-sizing:border-box;
}

.toast{
  --toast-accent:#5b7cfa;
  pointer-events:auto;
  position:relative;
  width:auto;
  max-width:min(520px,92vw);
  min-height:44px;
  padding:10px 14px 10px 38px;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  border:1px solid #dfe6ef;
  border-radius:15px;
  background:rgba(255,255,255,.96);
  color:#182235;
  box-shadow:0 10px 30px rgba(31,45,74,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font:600 13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  letter-spacing:0;
  text-align:left;
  opacity:0;
  transform:translateY(10px) scale(.985);
  transition:opacity .18s ease,transform .18s ease;
}

.toast::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--toast-accent);
  transform:translateY(-50%);
  box-shadow:0 0 0 5px color-mix(in srgb,var(--toast-accent) 12%,transparent);
}

.toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.toast[data-toast-type="success"]{--toast-accent:#38a17e}
.toast[data-toast-type="warning"]{--toast-accent:#e9a72f}
.toast[data-toast-type="error"]{--toast-accent:#d75c70}
.toast[data-toast-type="info"]{--toast-accent:#5b7cfa}

html[data-theme="dark"] .toast,
html.dark .toast{
  background:rgba(18,30,43,.97);
  border-color:#263d52;
  color:#edf5ff;
  box-shadow:0 12px 34px rgba(0,0,0,.30);
}

.update-scrim{
  position:fixed;
  inset:0;
  background:rgba(5,12,24,.34);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:2147483644;
  backdrop-filter:saturate(1.08) blur(2px);
  -webkit-backdrop-filter:saturate(1.08) blur(2px);
}
.update-scrim.show{
  opacity:1;
  pointer-events:auto;
}

@media (max-width:899px){
  .toast-root{
    bottom:calc(14px + var(--footer-h-actual,0px) + env(safe-area-inset-bottom));
  }
  .toast{
    max-width:min(560px,calc(100vw - 24px));
    min-height:42px;
    padding:9px 12px 9px 36px;
    border-radius:14px;
    font-size:12px;
  }
  .toast::before{
    left:13px;
    width:9px;
    height:9px;
  }
}

@media (prefers-reduced-motion:reduce){
  .toast{transition:none}
}
