/* Toast — clean, minimal, subtle type hints only */

.tt-toast-host {
    position: fixed;
    z-index: 12100;
    pointer-events: none;
    width: min(380px, calc(100vw - 24px));
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    animation: tt-toast-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tt-toast-host--desktop {
    top: 20px;
    right: 18px;
    left: auto;
}

body:has(.header-container) .tt-toast-host--desktop {
    top: calc(68px + 14px);
}

.tt-toast-host--mobile {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(380px, calc(100vw - 16px));
    animation-name: tt-toast-in-mobile;
}

.tt-toast-host--out {
    animation: tt-toast-out 0.18s ease-in forwards;
}

.tt-toast-host--mobile.tt-toast-host--out {
    animation: tt-toast-out-mobile 0.18s ease-in forwards;
}

@keyframes tt-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tt-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes tt-toast-in-mobile {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tt-toast-out-mobile {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }
}

.tt-toast {
    --tt-toast-icon: #94a3b8;
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.06),
        0 1px 3px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Subtle icon tint only — no borders, stripes, or tinted backgrounds */
.tt-toast--success { --tt-toast-icon: #6b9e82; }
.tt-toast--error   { --tt-toast-icon: #b07a7a; }
.tt-toast--warning { --tt-toast-icon: #b8956a; }
.tt-toast--info    { --tt-toast-icon: #7a8db0; }

.tt-toast__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 38px 13px 14px;
    position: relative;
    min-width: 0;
}

.tt-toast__inner--stacked {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.tt-toast__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
    color: var(--tt-toast-icon);
}

.tt-toast__inner--stacked .tt-toast__icon {
    margin-top: 2px;
}

.tt-toast__text {
    flex: 1;
    min-width: 0;
}

.tt-toast__title {
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.tt-toast__message {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
    font-weight: 400;
}

.tt-toast__close {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tt-toast__inner--stacked .tt-toast__close {
    top: 8px;
    transform: none;
}

.tt-toast__close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.04);
    color: #475569;
}

.tt-toast__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #cbd5e1;
    transform-origin: left center;
    animation: tt-toast-progress linear forwards;
}

@keyframes tt-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Legacy */
.tt-toast__dot { display: none; }

.tt-toast-title,
.tt-floating-app-alert strong,
._saWrapper strong,
._ttN strong,
._ttInApp strong {
    font-weight: 500 !important;
}

.tt-toast__title strong,
.tt-toast__title b,
.tt-toast__message strong,
.tt-toast__message b {
    font-weight: 500;
}
