body.app-alert-open {
    overflow: hidden;
}

.app-alert-shell[hidden] {
    display: none !important;
}

.app-alert-shell {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.app-alert-shell.is-open {
    opacity: 1;
}

.app-alert-dialog {
    width: min(560px, calc(100vw - 24px));
    max-width: 100%;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.18s ease;
}

.app-alert-shell.is-open .app-alert-dialog {
    transform: translateY(0) scale(1);
}

.app-alert-card {
    padding: 1.35rem 1.3rem 1.15rem;
    border: 1px solid rgba(132, 175, 134, 0.34);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf8 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.app-alert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f4ea 0%, #f5fbf6 100%);
    color: #2f6b39;
    box-shadow: inset 0 0 0 1px rgba(74, 148, 82, 0.12);
    font-size: 1.1rem;
}

.app-alert-shell[data-variant="success"] .app-alert-card {
    border-color: rgba(84, 176, 108, 0.34);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
}

.app-alert-shell[data-variant="success"] .app-alert-icon {
    background: linear-gradient(135deg, #dff4e4 0%, #f3fbf5 100%);
    color: #23713a;
    box-shadow: inset 0 0 0 1px rgba(54, 142, 77, 0.16);
}

.app-alert-title {
    margin: 0;
    color: #183a1f;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-alert-message {
    margin: 0;
    color: #33513a;
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.app-alert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.app-alert-button {
    min-width: 124px;
    min-height: 56px;
    padding: 0.85rem 1.45rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4a9452 0%, #3b7c43 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 22px rgba(74, 148, 82, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.app-alert-button--secondary {
    background: #ffffff;
    color: #33513a;
    border: 1px solid rgba(132, 175, 134, 0.38);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.app-alert-button:hover,
.app-alert-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(74, 148, 82, 0.26);
    filter: brightness(1.03);
    outline: none;
}

@media (max-width: 575.98px) {
    .app-alert-shell {
        padding: 0.85rem;
    }

    .app-alert-dialog {
        width: min(100%, calc(100vw - 16px));
    }

    .app-alert-card {
        padding: 1rem 1rem 0.95rem;
        border-radius: 20px;
    }

    .app-alert-header {
        align-items: flex-start;
    }

    .app-alert-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .app-alert-actions {
        flex-direction: column-reverse;
        justify-content: stretch;
    }

    .app-alert-button {
        width: 100%;
    }
}
