#toast {
  position: fixed !important;
  top: 96px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  z-index: 1200 !important;
  width: max-content;
  max-width: min(620px, calc(100vw - 32px));
  min-height: 52px;
  padding: 14px 44px 14px 44px;
  border: 1px solid rgba(100, 226, 233, .28);
  border-radius: 14px;
  color: #e9fbfc;
  background: rgba(16, 23, 26, .96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -12px) scale(.98) !important;
  transition: opacity .22s ease, transform .22s ease;
}

/* 隐藏时不保留命中盒，防止透明提示层遮挡页面点击。 */
#toast:not(.show) { display: none; }

#toast::before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #071315;
  background: #76e5eb;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
}

#toast::after {
  content: '×';
  position: absolute;
  right: 16px;
  top: 50%;
  color: #778488;
  transform: translateY(-52%);
  font-size: 16px;
  font-weight: 400;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) !important;
  pointer-events: auto;
}

#toast[data-kind='error'] {
  border-color: rgba(255, 119, 110, .35);
  color: #fff0ee;
  background: linear-gradient(135deg, rgba(38, 20, 21, .97), rgba(21, 22, 26, .97));
}

#toast[data-kind='error']::before {
  content: '!';
  color: #24100f;
  background: #ff8b82;
}

@media (max-width: 720px) {
  #toast {
    top: 82px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto;
    max-width: none;
    transform: translateY(-12px) scale(.98) !important;
  }
  #toast.show { transform: translateY(0) scale(1) !important; }
}
