.wf-dlg-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--wf-space-4);
}

.wf-dlg {
    background: var(--wf-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-height: calc(100vh - (var(--wf-space-4) * 2));
    display: flex;
    flex-direction: column;
    outline: none;
}

.wf-dlg-sm { max-width: 420px; }
.wf-dlg-md { max-width: 640px; }
.wf-dlg-lg { max-width: 880px; }

.wf-dlg-header {
    display: flex;
    align-items: center;
    gap: var(--wf-space-3);
    padding: var(--wf-space-4) var(--wf-space-5);
    border-bottom: 1px solid var(--wf-border);
}

.wf-dlg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--wf-radius-md);
    background: var(--wf-surface-alt);
    color: var(--wf-text-muted);
    flex: none;
}

.wf-dlg-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--wf-text);
}

.wf-dlg-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--wf-text-subtle);
    border-radius: var(--wf-radius-md);
    cursor: pointer;
}
.wf-dlg-close:hover { background: var(--wf-surface-alt); color: var(--wf-text); }

.wf-dlg-body {
    padding: var(--wf-space-5);
    overflow-y: auto;
}

.wf-dlg-footer {
    display: flex;
    align-items: center;
    gap: var(--wf-space-2);
    padding: var(--wf-space-4) var(--wf-space-5);
    border-top: 1px solid var(--wf-border);
}
