.app-alert[hidden] {
    display: none;
}

.app-alert {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.app-alert__dialog {
    width: min(100%, 440px);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-alert__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.app-alert__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.app-alert__close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.app-alert__message {
    margin: 0;
    padding: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-alert__actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
}

.app-alert__button {
    min-width: 5.5rem;
    border: 0;
    border-radius: 7px;
    padding: 0.7rem 1rem;
    background: #006b5f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.app-alert__close:focus-visible,
.app-alert__button:focus-visible {
    outline: 3px solid rgba(0, 107, 95, 0.28);
    outline-offset: 2px;
}

body.app-alert-open {
    overflow: hidden;
}
