.admin-toast-stack {
  position: fixed;
  right: 24px;
  top: 86px;
  z-index: 2147483647;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}
.app-icon.tabler-icon {
  stroke-width: 1.7;
}
.admin-toast-icon .app-icon {
  width: 20px;
  height: 20px;
}
.footer-heart .app-icon {
  fill: currentColor;
}
.admin-toast {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 11px;
  padding: 16px 16px 18px;
  background: var(--surface, #fff);
  color: var(--text, #201729);
  border: 1px solid var(--border, #ece3f2);
  border-color: color-mix(in srgb, var(--toast-color, #8500d9) 28%, var(--surface, white));
  border-radius: 15px;
  box-shadow: 0 20px 50px #24113426;
  pointer-events: auto;
  animation: toast-enter 0.2s ease-out;
}
.admin-toast.is-success {
  --toast-color: #23865a;
}
.admin-toast.is-error {
  --toast-color: #bd3555;
}
.admin-toast.is-warning {
  --toast-color: #ad711b;
}
.admin-toast-icon {
  color: var(--toast-color, #8500d9);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--toast-color, #8500d9) 12%, var(--surface, white));
  border-radius: 11px;
}
.admin-toast strong {
  font-size: 13px;
  font-weight: 600;
}
.admin-toast p {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
  color: var(--muted, #766c80);
  overflow-wrap: anywhere;
}
.admin-toast button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--muted, #766c80);
  border-radius: 5px;
  cursor: pointer;
}
.admin-toast button svg {
  width: 17px;
  height: 17px;
}
.admin-confirm-dialog {
  width: min(430px, calc(100vw - 36px));
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px #1405234d;
  text-align: center;
}
.admin-confirm-dialog::backdrop {
  background: #170b2a70;
  backdrop-filter: blur(5px);
}
.admin-confirm-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 16px;
  margin: 0 auto 16px;
}
.admin-confirm-symbol svg {
  width: 25px;
  height: 25px;
}
#admin-confirm-dialog h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
#admin-confirm-dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
#admin-confirm-dialog [data-confirm-choice][hidden] {
  display: none;
}
#admin-confirm-dialog [data-confirm-choice='cancel'][hidden] + button {
  grid-column: 1 / -1;
}
#admin-confirm-dialog[data-tone='success'] [data-confirm-choice='confirm'] {
  background: #087a70;
  border-color: #087a70;
  color: white;
  box-shadow: none;
}
#admin-confirm-dialog[data-tone='warning'] [data-confirm-choice='confirm'] {
  background: #a35e08;
  border-color: #a35e08;
  color: white;
  box-shadow: none;
}
.admin-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--toast-color, var(--brand));
  transform-origin: left;
}
.admin-confirm-dialog[open] {
  animation: confirm-enter 180ms ease-out;
}
.admin-confirm-dialog[data-tone='warning'] .admin-confirm-symbol {
  background: #fff3d6;
  color: #a35e08;
}
.admin-confirm-dialog[data-tone='danger'] .admin-confirm-symbol {
  background: #fee2e2;
  color: #c52929;
}
.admin-confirm-dialog[data-tone='success'] .admin-confirm-symbol {
  background: #dff7f1;
  color: #087a70;
}
#admin-confirm-dialog[data-tone='danger'] [data-confirm-choice='confirm'] {
  background: #c52929;
  color: white;
  box-shadow: none;
}
@keyframes confirm-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.admin-confirm-actions .button {
  font-size: 12px;
}
@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .admin-toast-stack {
    right: 16px;
    top: 78px;
  }
  .admin-confirm-dialog {
    padding: 24px;
  }
  .admin-confirm-actions .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-toast,
  .admin-confirm-dialog[open] {
    animation: none;
  }
}
