.sd-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.sd-modal-backdrop--visible { display: flex; }

.sd-modal {
    width: 100%;
    max-width: 480px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sd-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.sd-modal-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.sd-modal-sub {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-top: 2px;
}

.sd-modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sd-modal-close:hover { color: var(--color-text); background: var(--bg-tint); }

.sd-modal { border-color: rgba(255,255,255,0.1); }
