.app-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, .48);
}

.app-confirm-backdrop.is-open {
    display: flex;
}

.app-confirm-dialog {
    width: min(420px, 100%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    overflow: hidden;
    direction: rtl;
}

.app-confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 10px;
}

.app-confirm-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff1f1;
    color: #d9534f;
    font-weight: 800;
    font-size: 20px;
}

.app-confirm-title {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
}

.app-confirm-body {
    padding: 0 16px 16px;
    color: #4b5563;
    line-height: 1.8;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
}

.app-confirm-actions button {
    min-width: 92px;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}

.app-confirm-cancel {
    background: #e5e7eb;
    color: #374151;
}

.app-confirm-ok {
    background: #d9534f;
    color: #fff;
}

.app-confirm-ok.neutral {
    background: #367fa9;
}

.header .navbar,
.navbar {
    position: relative;
}

.app-notify-host {
    position: absolute;
    z-index: 9100;
    top: 7px;
    right: 50%;
    transform: translateX(50%);
    display: grid;
    gap: 6px;
    width: min(430px, calc(100vw - 250px));
    pointer-events: none;
}

.app-notify-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #bfe3cc;
    border-right: 5px solid #2f8f5b;
    border-radius: 6px;
    background: #f0fff4;
    color: #14532d;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    direction: rtl;
}

.app-notify-item.is-open {
    opacity: 1;
    transform: translateY(0);
}

.app-notify-item strong {
    font-size: 13px;
    color: #17633a;
    white-space: nowrap;
}

.app-notify-item span {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-notify-item.is-error {
    background: #fff5f5;
    color: #7f1d1d;
    border-color: #f8d3d3;
    border-right-color: #d9534f;
}

.app-notify-item.is-error strong {
    color: #9f1239;
}

@media (max-width: 760px) {
    .app-notify-host {
        right: 8px;
        left: 8px;
        top: 54px;
        width: auto;
        transform: none;
        position: fixed;
    }
}
