.camp-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.camp-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 16px 44px 18px 58px;
  animation: camp-toast-in 0.22s ease-out;
}

.camp-toast--leaving {
  animation: camp-toast-out 0.18s ease-in forwards;
}

.camp-toast::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.camp-toast::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  width: 8px;
  height: 4px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg);
  border-radius: 1px;
}

.camp-toast--success {
  --camp-toast-accent: #059669;
}

.camp-toast--success::before {
  background: rgba(236, 253, 245, 0.95);
  border-color: rgba(167, 243, 208, 0.9);
}

.camp-toast--success::after {
  border-left-color: #059669;
  border-bottom-color: #059669;
}

.camp-toast--error {
  --camp-toast-accent: #dc2626;
}

.camp-toast--error::before {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(254, 202, 202, 0.95);
}

.camp-toast--error::after {
  content: "×";
  width: auto;
  height: auto;
  border: none;
  left: 28px;
  top: 22px;
  transform: none;
  font-size: 18px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.camp-toast--warning {
  --camp-toast-accent: #d97706;
}

.camp-toast--warning::before {
  background: rgba(254, 252, 232, 0.98);
  border-color: rgba(253, 230, 138, 0.95);
}

.camp-toast--warning::after {
  content: "!";
  width: auto;
  height: auto;
  border: none;
  left: 29px;
  top: 22px;
  transform: none;
  font-size: 17px;
  font-weight: 900;
  color: #b45309;
  line-height: 1;
}

.camp-toast--info {
  --camp-toast-accent: #2563eb;
}

.camp-toast--info::before {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(191, 219, 254, 0.95);
}

.camp-toast--info::after {
  content: "i";
  width: auto;
  height: auto;
  border: none;
  left: 30px;
  top: 22px;
  transform: none;
  font-size: 16px;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}

.camp-toast__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.camp-toast__body {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
  white-space: pre-line;
}

.camp-toast__body:empty,
.camp-toast__body[hidden] {
  display: none;
}

.camp-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.camp-toast__close:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #334155;
}

.camp-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: var(--camp-toast-accent, #2563eb);
  animation-name: camp-toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.camp-toast__copy-card {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.camp-toast__copy-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.camp-toast__copy-row {
  display: flex;
  gap: 6px;
}

.camp-toast__copy-input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #0f172a;
}

.camp-toast__copy-btn {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.camp-toast__copy-btn:hover {
  background: #f8fafc;
}

@keyframes camp-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes camp-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes camp-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
