.gc-toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    pointer-events: none;
}

.gc-toast {
    --gc-toast-color: #2563eb;
    position: relative;
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
    align-items: start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1rem;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-left: 4px solid var(--gc-toast-color);
    border-radius: 0.75rem;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.2);
    pointer-events: auto;
    animation: gc-toast-enter 220ms ease-out both;
    transition: opacity 200ms ease, transform 200ms ease;
}

.gc-toast--success { --gc-toast-color: #159447; }
.gc-toast--warning { --gc-toast-color: #d18a00; }
.gc-toast--error,
.gc-toast--danger { --gc-toast-color: #d43d4f; }
.gc-toast--debug,
.gc-toast--info { --gc-toast-color: #2563eb; }

.gc-toast__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--gc-toast-color);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.gc-toast__content { min-width: 0; }

.gc-toast__title {
    display: block;
    margin: 0 0 0.2rem;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.gc-toast__message {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.gc-toast__close {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.gc-toast__close:hover,
.gc-toast__close:focus-visible {
    color: #111827;
    background: #f1f5f9;
    outline: none;
}

.gc-toast.is-leaving {
    opacity: 0;
    transform: translateX(0.75rem);
}

@keyframes gc-toast-enter {
    from { opacity: 0; transform: translateX(0.75rem); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 575.98px) {
    .gc-toast-region {
        top: 0.65rem;
        right: 0.65rem;
        width: calc(100vw - 1.3rem);
        max-height: calc(100vh - 1.3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-toast,
    .gc-toast.is-leaving {
        animation: none;
        transition: none;
    }
}
