.apionix-toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: 360px;
  height: 86px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 0;
  pointer-events: none;
  font-family: "DM Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.apionix-toast-root .toast-item {
  position: absolute;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid #304149;
  border-radius: 12px;
  background: linear-gradient(125deg, #152128 0%, #111b21 58%, #10191e 100%);
  color: #e8eef0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .46), 0 3px 10px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(80px);
  transition: transform .26s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
  will-change: transform, opacity;
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.toast-layout {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: flex-start;
  gap: 11px;
}

.toast-icon-box {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid #315447;
  border-radius: 9px;
  background: #142720;
  color: #83d0b4;
}

.toast-icon-box svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-error .toast-icon-box {
  border-color: #5b3d3b;
  background: #281d1c;
  color: #e79a92;
}

.toast-warning .toast-icon-box {
  border-color: #5b4b31;
  background: #292419;
  color: #e0bd78;
}

.toast-info .toast-icon-box {
  border-color: #354d4d;
  background: #1a2829;
  color: #94c6c6;
}

.toast-content {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 2px;
}

.toast-title {
  display: block;
  overflow: hidden;
  color: #f0f4f5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-message {
  margin: 3px 0 0;
  color: #a9b7bd;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.toast-close-btn {
  display: flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  margin: -2px -3px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #86969d;
  cursor: pointer;
}

.toast-close-btn:hover,
.toast-close-btn:focus-visible {
  border-color: #33454d;
  background: #1b282e;
  color: #edf2f3;
}

.toast-close-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.toast-item.removing { pointer-events: none; }

@media(max-width:560px) {
  .apionix-toast-root {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-width: 420px;
  }
  .apionix-toast-root .toast-item { padding: 12px 13px; }
}

@media(prefers-reduced-motion:reduce) {
  .apionix-toast-root .toast-item,
  .toast-close-btn { transition: none; }
}
