.app-notification-region {
  position: fixed;
  z-index: 2500;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}
.app-toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 11px;
  overflow: hidden;
  padding: 13px 13px 16px;
  color: #263652;
  background: rgba(255,255,255,.97);
  border: 1px solid #e4e9f2;
  border-left: 4px solid #526ad0;
  border-radius: 15px;
  box-shadow: 0 17px 44px rgba(28, 42, 72, .16);
  pointer-events: auto;
  animation: app-toast-in .24s cubic-bezier(.2,.75,.3,1) both;
  backdrop-filter: blur(12px);
}
.app-toast.is-success { border-left-color: #168f7d; }
.app-toast.is-error { border-left-color: #d94f6e; }
.app-toast.is-warning { border-left-color: #d89b37; }
.app-toast.is-info { border-left-color: #596bd6; }
.app-toast-icon { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: linear-gradient(135deg,#253653,#6876df); border-radius: 12px; font-size: 15px; }
.app-toast.is-success .app-toast-icon { background: linear-gradient(135deg,#168f7d,#2aab92); }
.app-toast.is-error .app-toast-icon { background: linear-gradient(135deg,#d94f6e,#b83d5c); }
.app-toast.is-warning .app-toast-icon { color: #fff; background: linear-gradient(135deg,#e4ae4a,#bd8121); }
.app-toast-copy { display: grid; min-width: 0; align-content: center; gap: 3px; }
.app-toast-copy strong { color: #263652; font-size: 12px; font-weight: 780; }
.app-toast-copy > span { color: #6e7b91; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.app-toast-dismiss { display: grid; width: 28px; height: 28px; place-items: center; color: #8993a5; background: #f5f6fa; border: 0; border-radius: 8px; font-size: 10px; }
.app-toast-dismiss:hover { color: #384b71; background: #eaf0f8; }
.app-toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #596bd6; transform-origin: left; animation: app-toast-progress var(--app-toast-duration,4300ms) linear forwards; }
.app-toast.is-success .app-toast-progress { background: #168f7d; }
.app-toast.is-error .app-toast-progress { background: #d94f6e; }
.app-toast.is-warning .app-toast-progress { background: #d89b37; }
.app-toast.is-info .app-toast-progress { background: #596bd6; }

.app-dialog-backdrop {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(17, 27, 47, .47);
  backdrop-filter: blur(7px);
  animation: app-dialog-fade .16s ease both;
}
.app-dialog-backdrop[hidden] { display: none; }
.app-dialog-card {
  position: relative;
  width: min(100%, 430px);
  padding: 27px;
  color: #293650;
  background: #fff;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(12, 22, 44, .3);
  animation: app-dialog-rise .2s cubic-bezier(.2,.75,.3,1) both;
}
.app-dialog-close { position: absolute; top: 15px; right: 15px; display: grid; width: 32px; height: 32px; place-items: center; color: #8792a5; background: #f5f6fa; border: 0; border-radius: 10px; font-size: 11px; }
.app-dialog-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: linear-gradient(135deg,#253653,#6876df); border-radius: 15px; box-shadow: 0 9px 20px rgba(65,84,155,.2); font-size: 19px; }
.app-dialog-card.is-danger .app-dialog-icon { background: linear-gradient(135deg,#d94f6e,#b83d5c); box-shadow: 0 9px 20px rgba(217,79,110,.2); }
.app-dialog-eyebrow { margin: 18px 0 5px; color: #77849a; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-dialog-card h2 { margin: 0; color: #253653; font-size: 20px; font-weight: 790; letter-spacing: -.035em; }
.app-dialog-message { margin: 8px 0 0; color: #6d7a91; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.app-dialog-input-wrap { display: grid; gap: 7px; margin-top: 16px; color: #58657d; font-size: 10px; font-weight: 720; }
.app-dialog-input-wrap[hidden] { display: none; }
.app-dialog-input { min-height: 42px; padding: 0 12px; color: #293650; border: 1px solid #dfe5ef; border-radius: 10px; outline: 0; }
.app-dialog-input:focus { border-color: #8f9fe5; box-shadow: 0 0 0 4px rgba(89,107,214,.12); }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.app-dialog-actions button { min-height: 39px; padding: 0 15px; border-radius: 10px; font: inherit; font-size: 11px; font-weight: 740; }
.app-dialog-cancel { color: #65738b; background: #fff; border: 1px solid #e2e7f0; }
.app-dialog-confirm { color: #fff; background: linear-gradient(118deg,#253653,#6876df); border: 0; box-shadow: 0 7px 15px rgba(65,84,155,.2); }
.app-dialog-confirm.is-danger { background: linear-gradient(118deg,#d94f6e,#b83d5c); box-shadow: 0 7px 15px rgba(217,79,110,.2); }
.app-dialog-actions button:focus-visible,.app-dialog-close:focus-visible,.app-toast-dismiss:focus-visible { outline: 3px solid rgba(89,107,214,.35); outline-offset: 2px; }
body.app-dialog-open { overflow: hidden; }

@keyframes app-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes app-toast-progress { to { transform: scaleX(0); } }
@keyframes app-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes app-dialog-rise { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) {
  .app-notification-region { top: 10px; right: 10px; width: calc(100vw - 20px); }
  .app-toast { grid-template-columns: 34px minmax(0,1fr) 28px; gap: 9px; padding: 11px 11px 15px; }
  .app-toast-icon { width: 33px; height: 33px; }
  .app-dialog-card { padding: 23px 19px; border-radius: 18px; }
  .app-dialog-card h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-toast,.app-dialog-backdrop,.app-dialog-card { animation: none !important; }
  .app-toast-progress { animation-duration: .01ms !important; }
}
