#toast-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    width: min(96vw, 500px);
    z-index: 2147483000;
}

#toast-stack .toast {
    pointer-events: auto;
}

.toast {
    --accent: #9ca3af;
    --bg: #f9fafb;
    --bd: #e5e7eb;
    --title-col: #111827;
    --text-col: #374151;
    --icon-size: 30px;
    --close-size: 15px;
    --subtitle-size: 1.2rem;
    --title-size: 1.5rem;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--bg);
    color: var(--text-col);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow:
        inset 8px 0 0 var(--accent),
        0 14px 28px rgba(0, 0, 0, 0.10),
        0 6px 10px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateX(-10px);
    transition: transform 0.75s ease, opacity 0.75s ease, box-shadow 0.75s ease;
}

.toast.toast--show {
    opacity: 1;
    transform: translateX(0);
}

.toast.toast--hide {
    opacity: 0;
    transform: translateX(12px);
}

.toast > img.toast-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    display: block;
}

.toast .toast__close img {
    width: var(--close-size);
    height: var(--close-size);
    display: block;
}

#toast-stack .toast > img.toast-icon {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    background: transparent;
}

.toast__title {
    display: block;
    font-weight: 700;
    margin: 0 0 3px 0;
    font-size: var(--title-size);
    color: var(--title-col);
}

.toast__text {
    font-size: var(--subtitle-size);
    line-height: 1.35;
}

#toast-stack .toast__close {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    line-height: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.toast__close:hover {
    filter: brightness(0.9);
}

#toast-stack .toast__close:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
    filter: none;
}

.toast::before {
    content: none;
}

.toast--success {
    --accent: #34d399;
    --bg: #f0fdf4;
    --bd: #bbf7d0;
    --title-col: #065f46;
    --text-col: #14532d;
}

.toast--info {
    --accent: #60a5fa;
    --bg: #eff6ff;
    --bd: #bfdbfe;
    --title-col: #1e3a8a;
    --text-col: #1e40af;
}

.toast--warning {
    --accent: #f59e0b;
    --bg: #fffbeb;
    --bd: #fde68a;
    --title-col: #7c2d12;
    --text-col: #78350f;
}

.toast--error {
    --accent: #f87171;
    --bg: #fef2f2;
    --bd: #fecaca;
    --title-col: #7f1d1d;
    --text-col: #7f1d1d;
}

body.is-auth .topbar,
body.is-auth .sidebar,
body.is-auth .sidebar__launcher {
    display: none !important;
}

body.is-auth .main-content {
    padding: 0 !important;
    background: transparent !important;
}

/* Default: shrink everything a bit (like 85% zoom). */
body {
    zoom: 0.85;
}

/* Keep auth screens (login, forgot password, etc.) at normal size. */
body.is-auth {
    zoom: 1;
}
