/* Кастомные диалоги (ui-dialogs.js). Вынесено из JS из‑за CSP style-src без unsafe-inline. */
.ui-dlg-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.15s;
}
.ui-dlg-overlay.shown { opacity: 1; }
.ui-dlg-box {
    background: #fff;
    color: #1f1140;
    border-radius: 14px;
    width: min(440px, 100%);
    padding: 22px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(8px);
    transition: transform 0.15s;
    font-family: inherit;
}
.ui-dlg-overlay.shown .ui-dlg-box { transform: translateY(0); }
.ui-dlg-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1f1140;
}
.ui-dlg-msg {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    margin: 0 0 16px;
    white-space: pre-wrap;
}
.ui-dlg-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d8d4e5;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #1f1140;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.ui-dlg-input:focus { border-color: #f45e28; }
.ui-dlg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ui-dlg-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.15s;
    font-family: inherit;
}
.ui-dlg-btn-cancel { background: #f0f0f5; color: #444; }
.ui-dlg-btn-cancel:hover { background: #e0e0ea; }
.ui-dlg-btn-ok { background: #f45e28; color: #fff; }
.ui-dlg-btn-ok:hover { filter: brightness(1.08); }
.ui-dlg-btn-danger { background: #e74c3c; color: #fff; }
.ui-dlg-btn-danger:hover { filter: brightness(1.08); }
.ui-dlg-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ui-dlg-actions-stack .ui-dlg-btn {
    width: 100%;
    padding: 11px 18px;
}
.ui-dlg-btn-secondary {
    background: #f0f0f5;
    color: #1f1140;
}
.ui-dlg-btn-secondary:hover { background: #e0e0ea; }
