.operation-toast-region {
  --operation-toast-top: clamp(16px, calc(18vh - 72px), 78px);
  position: fixed;
  top: var(--operation-toast-top);
  left: 50%;
  z-index: 1090;
  display: flex;
  width: min(496px, 100vw);
  max-height: calc(100vh - var(--operation-toast-top) - 12px);
  max-height: calc(100dvh - var(--operation-toast-top) - 12px);
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  pointer-events: none;
  scrollbar-width: thin;
}

.operation-toast {
  --operation-toast-accent: #238576;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: #fbfefd;
  border: 1px solid #a9d8cf;
  border-radius: 8px;
  box-shadow:
    0 18px 40px rgba(28, 39, 35, 0.18),
    0 3px 10px rgba(28, 39, 35, 0.08);
  color: #1f302b;
  pointer-events: auto;
}

.operation-toast.toast {
  display: block;
}

.operation-toast::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--operation-toast-accent);
  content: "";
}

.operation-toast.fade {
  transition: opacity 300ms ease;
}

.operation-toast.is-reflowing {
  transition:
    opacity 300ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.operation-toast-layout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 12px;
  padding: 14px 12px 14px 16px;
}

.operation-toast-icon {
  display: grid;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #dff3ee;
  border-radius: 50%;
  color: #176b5f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.operation-toast-icon::before {
  content: "i";
}

.operation-toast-copy {
  min-width: 0;
  padding-top: 1px;
}

.operation-toast-title {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.35;
}

.operation-toast-message {
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.operation-toast-close {
  width: 30px;
  height: 30px;
  margin: -2px -2px 0 0;
  padding: 0;
  background-size: 12px;
  border-radius: 6px;
  opacity: 0.48;
}

.operation-toast-close:hover,
.operation-toast-close:focus-visible {
  background-color: rgba(31, 48, 43, 0.08);
  opacity: 0.82;
}

.operation-toast-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--operation-toast-accent);
  transform: scaleX(1);
  transform-origin: left center;
  animation: operation-toast-countdown var(--operation-toast-duration) linear forwards paused;
}

.operation-toast.show .operation-toast-progress {
  animation-play-state: running;
}

.operation-toast.show:hover .operation-toast-progress,
.operation-toast.show:focus-within .operation-toast-progress {
  animation-play-state: paused;
}

.operation-toast-success .operation-toast-icon::before {
  content: "\2713";
}

.operation-toast-info {
  --operation-toast-accent: #3978a9;
  background: #fbfdff;
  border-color: #b4cee7;
  color: #244f73;
}

.operation-toast-info .operation-toast-icon {
  background: #e5f0fa;
  color: #2d6d9e;
}

.operation-toast-warning {
  --operation-toast-accent: #b88620;
  background: #fffdf7;
  border-color: #e2c478;
  color: #6b4a08;
}

.operation-toast-warning .operation-toast-icon {
  background: #fff0c7;
  color: #855c08;
}

.operation-toast-warning .operation-toast-icon::before,
.operation-toast-danger .operation-toast-icon::before {
  content: "!";
}

.operation-toast-danger {
  --operation-toast-accent: #bd4b3f;
  background: #fffafa;
  border-color: #e5a69c;
  color: #8d2f25;
}

.operation-toast-danger .operation-toast-icon {
  background: #fde7e3;
  color: #a63c31;
}

body.admin-body .operation-toast-icon,
body.admin-body .operation-toast-title,
body.admin-login-body .operation-toast-icon,
body.admin-login-body .operation-toast-title {
  font-weight: 700;
}

body.admin-body .operation-toast-message,
body.admin-login-body .operation-toast-message {
  font-weight: 400;
}

@keyframes operation-toast-countdown {
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 575.98px) {
  .operation-toast-region {
    padding-right: 12px;
    padding-left: 12px;
  }

  .operation-toast-layout {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 13px 10px 13px 14px;
  }

  .operation-toast-icon {
    width: 32px;
    height: 32px;
  }

  .operation-toast-close {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operation-toast.fade {
    transition-duration: 1ms;
  }

  .operation-toast-progress {
    animation-timing-function: steps(1, end);
  }
}
