.notice-toast {
  position: fixed;
  z-index: 50;
  right: auto;
  top: auto;
  bottom: 24px;
  left: 50%;
  width: max-content;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 12px 34px #17102224;
  transform: translateX(-50%);
  animation: notice-toast-enter 260ms cubic-bezier(.2,.75,.25,1) both;
}

.notice-toast-info {
  border-color: #d8cafa;
  background: #f6f2ff;
  color: #5f43b0;
}

.notice-toast-success {
  border-color: #c7e8d3;
  background: #effaf3;
  color: #2f8057;
}

.notice-toast-warning {
  border-color: #e6bdc5;
  background: #fff0f2;
  color: #963f50;
}

:root[data-theme="dark"] .notice-toast-info {
  border-color: #59477d;
  background: #30283d;
  color: #ded0ff;
}

:root[data-theme="dark"] .notice-toast-success {
  border-color: #365f4b;
  background: #20352b;
  color: #c1efd2;
}

:root[data-theme="dark"] .notice-toast-warning {
  border-color: #71434e;
  background: #34272e;
  color: #ffd8e0;
}

@keyframes notice-toast-enter {
  from { opacity: 0; transform: translate(-50%, 18px) scale(.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-toast { animation-duration: 1ms; }
}
