.cloud-sync-launcher {
    position: fixed;
    right: 14px;
    bottom: 82px;
    z-index: 80;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #2f8050;
    color: #fff;
    padding: 0 15px;
    font-family: Nunito, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(32, 49, 40, .22);
}

.cloud-sync-panel {
    position: fixed;
    right: 14px;
    bottom: 134px;
    z-index: 80;
    display: none;
    width: min(380px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 160px));
    overflow: auto;
    border: 1px solid #d9ded6;
    border-radius: 10px;
    background: #fff;
    color: #203128;
    box-shadow: 0 22px 70px rgba(32, 49, 40, .22);
    font-family: Nunito, system-ui, sans-serif;
}

.cloud-sync-panel.open {
    display: block;
}

.cloud-sync-head,
.cloud-sync-body,
.cloud-sync-foot {
    padding: 14px;
}

.cloud-sync-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.cloud-sync-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.cloud-sync-subtitle,
.cloud-sync-status,
.cloud-sync-note {
    margin: 3px 0 0;
    color: #657268;
    font-size: 12px;
    line-height: 1.4;
}

.cloud-sync-close {
    width: 34px;
    height: 34px;
    border: 1px solid #d9ded6;
    border-radius: 8px;
    background: #fff;
    color: #203128;
    font-size: 20px;
    line-height: 1;
}

.cloud-sync-provider-list {
    display: grid;
    gap: 8px;
}

.cloud-sync-provider {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 1px solid #d9ded6;
    border-radius: 8px;
    background: #f8faf7;
    padding: 10px;
    text-align: left;
}

.cloud-sync-provider.active {
    border-color: #2f8050;
    background: #e4f2e8;
}

.cloud-sync-provider strong {
    display: block;
    font-size: 13px;
}

.cloud-sync-badge {
    border-radius: 999px;
    padding: 4px 8px;
    background: #eef1ee;
    color: #657268;
    font-size: 11px;
    font-weight: 800;
}

.cloud-sync-badge.connected {
    background: #dff3e5;
    color: #2f8050;
}

.cloud-sync-badge.missing {
    background: #fff1d6;
    color: #9a651f;
}

.cloud-sync-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.cloud-sync-action {
    min-height: 40px;
    border: 1px solid #d9ded6;
    border-radius: 8px;
    background: #fff;
    color: #203128;
    font-size: 12px;
    font-weight: 900;
}

.cloud-sync-action.primary {
    border-color: #2f8050;
    background: #2f8050;
    color: #fff;
}

.cloud-sync-action:disabled {
    cursor: wait;
    opacity: .65;
}

.cloud-sync-log {
    min-height: 42px;
    margin-top: 12px;
    border-radius: 8px;
    background: #f5f7f4;
    padding: 10px;
    color: #34433a;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
}

@media (max-width: 520px) {
    .cloud-sync-launcher {
        right: 10px;
        bottom: 76px;
    }

    .cloud-sync-panel {
        right: 10px;
        bottom: 126px;
        width: calc(100vw - 20px);
    }
}
