/**
 * Visit Dock dialogs. Deliberately close to the error page and the MFA screen:
 * same rounded card, same brand blue, same button shapes.
 */
.vd-dlg-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    animation: vdDlgFade .12s ease;
}
.vd-dlg-overlay.is-closing { animation: vdDlgFade .12s ease reverse; }
@keyframes vdDlgFade { from { opacity: 0; } to { opacity: 1; } }

.vd-dlg {
    width: 420px;
    max-width: 100%;
    background: var(--color-surface, #fff);
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .5);
    padding: 1.5rem 1.6rem 1.2rem;
    animation: vdDlgRise .16s cubic-bezier(.2, .8, .3, 1);
}
@keyframes vdDlgRise { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.vd-dlg-head { display: flex; gap: .9rem; align-items: flex-start; }
.vd-dlg-ic {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.vd-dlg-ic--info    { background: #eff6ff; color: #2563eb; }
.vd-dlg-ic--warning { background: #fffbeb; color: #d97706; }
.vd-dlg-ic--danger  { background: #fef2f2; color: #dc2626; }
.vd-dlg-ic--success { background: #f0fdf4; color: #16a34a; }

.vd-dlg-txt { min-width: 0; }
.vd-dlg-txt strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text, #0f172a);
    margin-bottom: .25rem;
    letter-spacing: -.01em;
}
.vd-dlg-txt p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--color-text-muted, #64748b);
    word-break: break-word;
}

.vd-dlg-field { margin-top: 1rem; }
.vd-dlg-input {
    width: 100%;
    padding: .65rem .8rem;
    font-size: .95rem;
    font-family: inherit;
    color: var(--color-text, #0f172a);
    background: var(--color-bg, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
}
.vd-dlg-input:focus {
    outline: none;
    border-color: #2563eb;
    background: var(--color-surface, #fff);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.vd-dlg-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.4rem;
}
.vd-dlg-btn {
    padding: .6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.vd-dlg-btn--primary { background: #2563eb; color: #fff; }
.vd-dlg-btn--primary:hover { background: #1d4ed8; }
.vd-dlg-btn--danger  { background: #dc2626; color: #fff; }
.vd-dlg-btn--danger:hover { background: #b91c1c; }
.vd-dlg-btn--ghost {
    background: transparent;
    border-color: var(--color-border, #e2e8f0);
    color: var(--color-text, #334155);
}
.vd-dlg-btn--ghost:hover { background: var(--color-bg, #f8fafc); }
.vd-dlg-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Stop the page behind from scrolling while a dialog is up. */
body.vd-dlg-open { overflow: hidden; }

@media (max-width: 420px) {
    .vd-dlg { padding: 1.25rem 1.2rem 1rem; }
    .vd-dlg-actions { flex-direction: column-reverse; }
    .vd-dlg-btn { width: 100%; }
}
