.ati-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(18, 40, 26, 0.48);
}

.ati-confirm-overlay.is-open {
    display: flex;
}

.ati-confirm-box {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 20px 48px rgba(18, 40, 26, 0.28);
    border: 1px solid rgba(30, 81, 40, 0.16);
    overflow: hidden;
}

.ati-confirm-head {
    padding: 1rem 1.2rem 0.35rem;
    color: #1E5128;
    font-weight: 800;
    font-size: 1.05rem;
}

.ati-confirm-msg {
    padding: 0.35rem 1.2rem 1.15rem;
    color: #33403a;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.ati-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem 1rem;
    background: #f4f8f5;
    border-top: 1px solid rgba(30, 81, 40, 0.1);
}

.ati-confirm-btn {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.ati-confirm-btn.ok {
    background: #1E5128;
    color: #fff;
    border-color: #1E5128;
}

.ati-confirm-btn.ok:hover {
    background: #163d1e;
}

.ati-confirm-btn.cancel {
    background: #fff;
    color: #1E5128;
    border-color: rgba(30, 81, 40, 0.35);
}

.ati-confirm-btn.cancel:hover {
    background: #eef6f0;
}

html[data-theme="dark"] .ati-confirm-box {
    background: #1a2420;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .ati-confirm-head,
html[data-theme="dark"] .ati-confirm-msg {
    color: #e7f3ea;
}

html[data-theme="dark"] .ati-confirm-actions {
    background: #121a16;
    border-top-color: rgba(255, 255, 255, 0.08);
}
