/* Shared notifications used by the workspace and public tools. */
.form-toast,
.app-toast {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top)) + 58px);
  right: max(14px, env(safe-area-inset-right));
  z-index: 1300;
  width: min(390px, calc(100vw - 28px));
  box-sizing: border-box;
  border: 2px solid #111111;
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  padding: 14px 16px 15px;
  font-family: var(--font);
  box-shadow: 6px 6px 0 #111111;
  opacity: 0;
  transform: translateX(calc(100% + 36px));
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.form-toast.is-visible,
.app-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.form-toast-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.form-toast-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.form-toast-list li::marker {
  font-weight: 900;
}

.app-toast {
  min-height: 48px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.app-toast svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  stroke-width: 2.4;
}

.app-toast span {
  min-width: 0;
}

@media (max-width: 640px) {
  .form-toast,
  .app-toast {
    top: calc(max(10px, env(safe-area-inset-top)) + 54px);
    left: 10px;
    right: 10px;
    width: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .form-toast, .app-toast { transition: none; }
}
