.app-layer-toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 45%;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 18px;
}

.app-layer-toast {
  max-width: min(86vw, 380px);
  min-width: 118px;
  padding: 11px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  word-break: break-word;
  background: rgba(15, 15, 18, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: appLayerToastIn 0.18s ease forwards;
}

.app-layer-toast.is-leaving {
  animation: appLayerToastOut 0.18s ease forwards;
}

.app-layer-mask {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: appLayerFadeIn 0.18s ease forwards;
}

.app-layer-mask.is-leaving {
  animation: appLayerFadeOut 0.16s ease forwards;
}

.app-layer-dialog {
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border-radius: 12px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  transform: translateY(12px) scale(0.98);
  animation: appLayerDialogIn 0.2s ease forwards;
}

.app-layer-dialog-body {
  padding: 24px 22px 17px;
  text-align: center;
}

.app-layer-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.24);
}

.app-layer-icon::before {
  content: "!";
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.app-layer-title {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.app-layer-message {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.app-layer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.app-layer-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.app-layer-btn:active {
  transform: scale(0.98);
}

.app-layer-btn-cancel {
  color: #4b5563;
  background: #f3f4f6;
}

.app-layer-btn-ok {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

@keyframes appLayerToastIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes appLayerToastOut {
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes appLayerFadeIn {
  to { opacity: 1; }
}

@keyframes appLayerFadeOut {
  to { opacity: 0; }
}

@keyframes appLayerDialogIn {
  to { transform: translateY(0) scale(1); }
}
