.akademi-alert-stack {
  position: fixed;
  z-index: 10000;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}
.akademi-alert-stack:popover-open {
  position: fixed !important;
  inset: 20px 20px auto auto !important;
  width: min(390px, calc(100vw - 32px));
  height: max-content;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
  color: inherit;
}
.akademi-alert-toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #e5ebe6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px #182a201f;
  color: #26362d;
  pointer-events: auto;
  animation: akademi-alert-in .2s ease-out;
}
.akademi-alert-toast[data-type="success"] .akademi-alert-icon { background: #e8f4eb; color: #287443; }
.akademi-alert-toast[data-type="error"] .akademi-alert-icon { background: #fff0ec; color: #a8452c; }
.akademi-alert-toast[data-type="info"] .akademi-alert-icon { background: #edf3f7; color: #416b84; }
.akademi-alert-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}
.akademi-alert-copy { min-width: 0; }
.akademi-alert-copy strong { display: block; margin-bottom: 3px; font-size: 12px; }
.akademi-alert-copy p { margin: 0; color: #68766e; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.akademi-alert-close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #849087;
  font-size: 18px;
  cursor: pointer;
}
.akademi-alert-close:hover { background: #f2f5f2; }
.akademi-alert-confirm {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.akademi-alert-confirm::backdrop {
  background: #15271e80;
}
.akademi-alert-dialog {
  box-sizing: border-box;
  width: 100%;
  padding: 27px 25px 22px;
  border: 1px solid #edf0ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px #0f1b1640;
  text-align: center;
  animation: akademi-alert-in .18s ease-out;
}
.akademi-alert-dialog-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border: 3px solid #f3d9a5;
  border-radius: 50%;
  color: #b47914;
  font-size: 27px;
  font-weight: 700;
}
.akademi-alert-dialog h2 { margin: 0 0 8px; color: #28372e; font-size: 19px; }
.akademi-alert-dialog p { margin: 0; color: #718077; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.akademi-alert-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.akademi-alert-actions button {
  min-width: 94px;
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid #e3e8e3;
  border-radius: 7px;
  background: #fff;
  color: #56645b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.akademi-alert-actions button:last-child { border-color: #143c32; background: #143c32; color: #fff; }
.akademi-alert-actions button:focus-visible, .akademi-alert-close:focus-visible { outline: 3px solid #87b59a; outline-offset: 2px; }
@keyframes akademi-alert-in { from { opacity: 0; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
  .akademi-alert-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .akademi-alert-toast, .akademi-alert-dialog { animation: none; }
}
