.mpd-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.mpd-dialog {
    background: var(--ext-panel-bg, #fff);
    border: 1px solid var(--ext-panel-border, #a3b8d0);
    border-radius: 6px;
    width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.mpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 38px;
    background: var(--ext-header-bg, linear-gradient(to bottom, #6db1e5, #2a72b5));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.mpd-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

.mpd-close:hover {
    color: #fff;
}

.mpd-body {
    padding: 20px;
}

.mpd-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--ext-panel-border, #d0d8e0);
}

.mpd-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
