.tp-toast-region, .tp-server-notifications { position: fixed; z-index: 1090; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(520px, calc(100% - 28px)); pointer-events: none; }
.tp-toast-region { display: flex; flex-direction: column; gap: 10px; max-height: 60dvh; overflow-y: auto; }
.tp-toast-region:empty { display: none; }
.tp-toast, .tp-notification-source { --toast-progress: #167d65; --toast-tint: #f0faf5; --toast-border: #cde5da; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 8px 12px 16px; border: 1px solid var(--toast-border); border-left: 3px solid var(--toast-progress); border-radius: 6px; background: var(--toast-tint); color: #23313a; box-shadow: 0 4px 18px rgba(22,40,50,.10); pointer-events: auto; }
.tp-notification-source { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.tp-notification-source[hidden] { display: none !important; }
.tp-toast--error, .tp-toast--danger { --toast-progress: #b33830; --toast-tint: #fff3f2; --toast-border: #efcfc8; }
.tp-toast--warning { --toast-progress: #806000; --toast-tint: #fff9df; --toast-border: #f0df9a; }
.tp-toast--info { --toast-progress: #007696; --toast-tint: #eff9fc; --toast-border: #c7e7f0; }
.tp-toast [data-toast-message] { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.tp-toast .tp-toast-close { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #4b5963; font-size: 14px; }
.tp-toast .tp-toast-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; min-height: 44px; height: auto; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--toast-progress); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.tp-toast .tp-toast-close:hover, .tp-toast .tp-toast-action:hover { background: rgba(22,40,50,.06); }
.tp-toast .tp-toast-action:disabled { opacity: .6; cursor: wait; }
.tp-toast button:focus-visible { outline: 2px solid var(--toast-progress); outline-offset: -2px; }
.tp-toast[aria-busy="true"] { opacity: .8; }
.tp-toast { position: relative; overflow: hidden; }
.tp-toast-progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--toast-progress); transform: scaleX(0); transform-origin: left; pointer-events: none; animation: tp-toast-fill var(--toast-duration) linear forwards; animation-play-state: paused; }
@keyframes tp-toast-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tp-toast-progress { animation: none; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tp-toast { animation: none; } }
